/**
 * Charity Platform — white-label UI для благотворительных НКО
 * Стиль: Детский, дружелюбный, благотворительный
 * Цветовая палитра: Сереневый, голубой, синий - смесь для благотворительной организации
 */

/* ========================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ И СБРОС
   ======================================== */

:root {
  /* Основные цвета - белый и светлые оттенки */
  --color-white: #FFFFFF;
  --color-gray-50: #F8F9FF;
  --color-gray-100: #F0F2FF;
  --color-gray-200: #E8EBFF;
  --color-gray-300: #D1D7FF;
  --color-gray-400: #A8B5FF;
  --color-gray-500: #7C8FE8;
  --color-gray-600: #5A6BC7;
  --color-gray-700: #3D4A9E;
  --color-gray-800: #2A3570;
  --color-gray-900: #1A2142;
  --color-black: #0F1328;
  
  /* Основная цветовая палитра - сереневый, голубой, синий */
  /* Сереневые оттенки */
  --color-lilac-50: #F5F3FF;
  --color-lilac-100: #EDE9FE;
  --color-lilac-200: #DDD6FE;
  --color-lilac-300: #C4B5FD;
  --color-lilac-400: #A78BFA;
  --color-lilac-500: #8B5CF6;
  --color-lilac-600: #7C3AED;
  --color-lilac-700: #6D28D9;
  --color-lilac-800: #5B21B6;
  --color-lilac-900: #4C1D95;
  
  /* Голубые оттенки */
  --color-sky-50: #F0F9FF;
  --color-sky-100: #E0F2FE;
  --color-sky-200: #BAE6FD;
  --color-sky-300: #7DD3FC;
  --color-sky-400: #38BDF8;
  --color-sky-500: #0EA5E9;
  --color-sky-600: #0284C7;
  --color-sky-700: #0369A1;
  --color-sky-800: #075985;
  --color-sky-900: #0C4A6E;
  
  /* Синие оттенки */
  --color-blue-50: #EFF6FF;
  --color-blue-100: #DBEAFE;
  --color-blue-200: #BFDBFE;
  --color-blue-300: #93C5FD;
  --color-blue-400: #60A5FA;
  --color-blue-500: #3B82F6;
  --color-blue-600: #2563EB;
  --color-blue-700: #1D4ED8;
  --color-blue-800: #1E40AF;
  --color-blue-900: #1E3A8A;
  
  /* Акцентные цвета - смесь сереневого, голубого и синего */
  --color-primary: #6D5DD8; /* Сереневый с синим оттенком */
  --color-primary-hover: #5A4BC4;
  --color-primary-light: #8B7FE8;
  --color-primary-dark: #4C3FA3;
  
  --color-secondary: #5B8FE9; /* Голубой с синим */
  --color-secondary-hover: #4A7DD8;
  
  --color-accent: #7C3AED; /* Яркий сереневый */
  --color-accent-hover: #6D28D9;
  
  /* Градиенты для благотворительной темы */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #5B8FE9 50%, #3B82F6 100%);
  --gradient-soft: linear-gradient(135deg, #EDE9FE 0%, #E0F2FE 50%, #DBEAFE 100%);
  --gradient-hero: linear-gradient(135deg, #F5F3FF 0%, #F0F9FF 50%, #EFF6FF 100%);
  
  /* Статусные цвета */
  --color-success: #4CAF50;
  --color-warning: #FF9800;
  --color-error: #F44336;
  --color-info: #2196F3;
  
  /* Типографика */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-warm: 'Nunito', 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-calligraphy: 'Great Vibes', 'Yellowtail', 'Pacifico', 'Amatic SC', 'Dancing Script', 'Satisfy', cursive;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Отступы и размеры */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2rem;
  --spacing-3xl: 2.5rem;
  
  /* Радиусы скругления */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 48px;
  --radius-3xl: 60px;
  --radius-full: 9999px;
  
  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Z-index слои */
  --z-base: 0;
  --z-content: 10;
  --z-header: 100;
  --z-sidebar: 200;
  --z-modal: 1000;
  --z-tooltip: 2000;
  
  /* Переходы */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
  
  /* Размеры sidebar */
  --sidebar-width: 80px;
  --sidebar-collapsed-width: 60px;

  /* Размеры верхнего хедера */
  --topbar-height: 64px;

  /* Stripe-like platform tokens */
  --stripe-blurple: #635bff;
  --stripe-blurple-hover: #5851db;
  --stripe-blurple-light: rgba(99, 91, 255, 0.12);
  --stripe-navy: #0a2540;
  --stripe-text: #30313d;
  --stripe-text-muted: #697386;
  --stripe-border: #e6ebf1;
  --stripe-bg: #f6f9fc;
  --stripe-input-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(18, 42, 66, 0.02);
  --stripe-focus-ring: 0 0 0 3px rgba(99, 91, 255, 0.25);
}

/* Сброс стилей */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background: linear-gradient(
    135deg,
    #FFF5F7 0%,
    #FFF0F5 15%,
    #F5F3FF 30%,
    #FFF8E7 45%,
    #EFF6FF 60%,
    #F0F9FF 75%,
    #FFE4E1 90%,
    #E0F2FE 100%
  );
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  overflow-x: clip;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Обеспечиваем, чтобы контент был поверх фона */
.main-content {
  position: relative;
  z-index: 10;
  animation: fadeInMain 0.6s ease-out;
}

body.no-topbar .main-content {
  padding-top: 0;
}

@keyframes fadeInMain {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SIDEBAR (ЛЕВАЯ НАВИГАЦИЯ)
   ======================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-right: 2px solid transparent;
  border-image: linear-gradient(180deg, 
    rgba(139, 92, 246, 0.3) 0%,
    rgba(255, 182, 193, 0.3) 50%,
    rgba(91, 143, 233, 0.3) 100%) 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg) 0;
  z-index: 1000;
  transition: all var(--transition-base);
  box-shadow: 0 0 40px rgba(107, 93, 216, 0.12),
              4px 0 24px rgba(255, 182, 193, 0.08),
              inset -1px 0 0 rgba(255, 255, 255, 0.8);
}

.sidebar-logo {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 60px;
  margin-bottom: var(--spacing-2xl);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(107, 93, 216, 0.3),
              0 2px 8px rgba(255, 182, 193, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.sidebar-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sidebar-logo:hover::before {
  opacity: 1;
  animation: rotateShineLogo 3s linear infinite;
}

@keyframes rotateShineLogo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sidebar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  border-radius: 60px;
  position: relative;
  z-index: 1;
}

.sidebar-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(107, 93, 216, 0.4),
              0 4px 12px rgba(255, 182, 193, 0.3),
              inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  padding: 0 var(--spacing-md);
}

.sidebar-nav:first-of-type {
  flex: 1;
  padding-top: var(--spacing-sm);
}

.sidebar-nav:last-of-type {
  margin-top: auto;
  padding-bottom: var(--spacing-md);
}

.sidebar-nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: var(--radius-lg);
  color: var(--color-lilac-600);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  opacity: 1;
  transform: scale(1);
  overflow: hidden;
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}

.sidebar-nav-item:hover::before {
  opacity: 1;
}

.sidebar-nav-item:hover {
  color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: -3px 0 12px rgba(107, 93, 216, 0.15);
}

.sidebar-nav-item.active {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(107, 93, 216, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* Tooltip для иконок sidebar */
.sidebar-nav-item[data-tooltip]:not(.active)::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--color-gray-900) 0%, #1a1a2e 100%);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item:hover[data-tooltip]:not(.active)::after {
  opacity: 1;
  visibility: visible;
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(4px);
}

/* Стрелка tooltip */
.sidebar-nav-item[data-tooltip]:not(.active)::before {
  content: '';
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #1a1a2e;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.2));
}

.sidebar-nav-item:hover[data-tooltip]:not(.active)::before {
  opacity: 1;
  visibility: visible;
  left: calc(100% + 4px);
}

/* Активный элемент с индикатором */
.sidebar-nav-item.active {
  position: relative;
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  z-index: 2;
}

/* ========================================
   CSS ИКОНКИ — SVG MASK (чёткие, без артефактов)
   ======================================== */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Домой */
.icon-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* Новости (файл с текстом) */
.icon-news {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
}

/* Информация */
.icon-info {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

/* Контакты (конверт) */
.icon-contact {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

/* Вход */
.icon-login {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' y1='12' x2='3' y2='12'/%3E%3C/svg%3E");
}

/* Выход */
.icon-logout {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* Пользователи */
.icon-users {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

/* Админ (щит) */
.icon-admin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

/* Настройки */
.icon-settings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

/* Плюс */
.icon-plus {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

/* Редактировать */
.icon-edit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
}

/* Удалить */
.icon-delete {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
}

/* Благотворители (сердце) */
.icon-benefactors {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

/* Сохранить (дискета) */
.icon-save {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
}

/* Стрелка вправо */
.icon-arrow {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

/* Камера */
.icon-camera {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}

/* Замок */
.icon-lock {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* Предупреждение */
.icon-warning {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

/* Галочка */
.icon-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Календарь */
.icon-calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

/* Геопин */
.icon-map {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Телефон */
.icon-phone {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.4 2 2 0 0 1 3.6 1.22h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.78a16 16 0 0 0 6.29 6.29l1.62-.87a2 2 0 0 1 2.11.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.4 2 2 0 0 1 3.6 1.22h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.78a16 16 0 0 0 6.29 6.29l1.62-.87a2 2 0 0 1 2.11.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* Звезда */
.icon-star {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

/* Портфель / партнёрство */
.icon-briefcase {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E");
}

/* ─── Аватар с оверлеем загрузки ─── */
.dashboard-avatar {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 22%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(109, 93, 216, 0.3);
  overflow: hidden;
}
.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  color: #fff;
}
.dashboard-avatar:hover .avatar-upload-overlay,
.dashboard-avatar:focus .avatar-upload-overlay {
  opacity: 1;
}
.avatar-upload-overlay .icon {
  width: 22px;
  height: 22px;
}

/* ─── Admin: поиск пользователей ─── */
.admin-user-search-results {
  margin-top: 6px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}
.admin-user-search-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-gray-100);
  cursor: pointer;
  font-size: 13px;
  color: var(--color-gray-800);
  transition: background 0.15s;
}
.admin-user-search-item:last-child { border-bottom: none; }
.admin-user-search-item:hover { background: var(--color-lilac-50); }
.admin-user-search-item small { color: var(--color-gray-500); margin-left: 4px; }
.admin-selected-user {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--color-lilac-50);
  border-radius: var(--radius-md);
  font-size: 13px;
}

/* ========================================
   ОСНОВНОЙ LAYOUT
   ======================================== */

.main-content {
  margin-left: 0;
  padding-top: var(--topbar-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: padding-top var(--transition-base);
  position: relative;
  z-index: 1;
}

/* ========================================
   TOPBAR (ВЕРХНЯЯ НАВИГАЦИЯ)
   ======================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  overflow: visible;
  z-index: var(--z-sidebar);
  background: linear-gradient(to bottom, #ffffff 0%, #fafbff 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.topbar.topbar-scrolled {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(99, 102, 241, 0.2);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 0 var(--spacing-lg);
  max-width: 1600px;
  margin: 0 auto;
  overflow: visible;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.topbar-brand:hover {
  opacity: 0.9;
}

.topbar-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.topbar-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gray-900, #0f172a);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(220px, 28vw);
}

@media (max-width: 768px) {
  .topbar-brand-name { display: none; }
}

.topbar-banner-img {
  height: calc(var(--topbar-height) - 16px);
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  flex-grow: 0;
}

.topbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(107, 93, 216, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.topbar-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-gray-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.topbar-title small {
  display: block;
  font-weight: 500;
  color: var(--color-gray-500);
  font-size: 0.7rem;
  margin-top: 1px;
  letter-spacing: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 2px;
  flex: 1;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  color: var(--color-gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--color-gray-900);
  background: rgba(139, 92, 246, 0.06);
}

.topbar-link.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.topbar-link.active:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  color: #fff;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  justify-content: flex-end;
  min-width: 170px;
}

.topbar-actions .btn {
  box-shadow: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
}

.topbar-actions .btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
}

.topbar-actions .btn-secondary {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #5b21b6;
}

.topbar-actions .btn-secondary:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.topbar-actions .btn-outline {
  border-color: var(--color-gray-200);
  color: var(--color-gray-700);
}

.topbar-actions .btn-outline:hover {
  border-color: var(--color-gray-300);
  background: var(--color-gray-50);
}

.topbar-actions .topbar-btn-icon {
  min-width: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-actions .topbar-btn-icon .icon {
  margin: 0;
}

.topbar-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(107,93,216,0.1);
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.topbar-mobile-toggle:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.4);
}

.topbar-mobile-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-gray-700);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.topbar-mobile-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topbar-mobile-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.topbar-mobile-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

html.menu-open {
  overflow: hidden;
  height: 100%;
}

.topbar-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.topbar-menu-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.topbar-menu {
  position: fixed;
  top: calc(var(--topbar-height) + 8px);
  left: 12px;
  right: 12px;
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(107,93,216,0.1);
  padding: var(--spacing-lg);
  z-index: 9999;
  max-height: calc(100svh - var(--topbar-height) - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* iOS Safari: visibility+opacity вместо display:none — animation работает корректно */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.topbar-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.topbar-menu-grid {
  display: grid;
  gap: var(--spacing-sm);
}

.topbar-menu-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.topbar-menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

@media (max-width: 480px) {
  .topbar-menu-cols {
    grid-template-columns: 1fr;
  }
}

.topbar-menu-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-menu-section-label {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 10px 6px;
}

.topbar-menu-sep {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: 4px 0;
}

.topbar-menu-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

@media (max-width: 480px) {
  .topbar-menu-auth {
    grid-template-columns: 1fr;
  }
}

.topbar-menu .topbar-link {
  width: 100%;
  justify-content: flex-start;
  border-radius: var(--radius-lg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.container-fluid {
  width: 100%;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.container-admin {
  max-width: 1400px;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

/* ========================================
   ТИПОГРАФИКА
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-lg);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
}

em {
  font-style: italic;
}

/* ========================================
   КНОПКИ
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
              0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7C3AED 0%, #4A7DD8 50%, #2563EB 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 93, 216, 0.4);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-gray-900);
  border-color: var(--color-gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-400);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-gray-900);
  border-color: var(--color-gray-400);
}

.btn-outline:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
}

.btn-text {
  background-color: transparent;
  color: var(--color-gray-700);
  border-color: transparent;
  padding: var(--spacing-sm) var(--spacing-md);
}

.btn-text:hover:not(:disabled) {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
}

.btn-icon-lg {
  width: 48px;
  height: 48px;
}

/* ========================================
   ФОРМЫ
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.form-label-required::after {
  content: '*';
  color: var(--color-error);
  margin-left: var(--spacing-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  color: var(--color-gray-900);
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 93, 216, 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: var(--color-gray-100);
  cursor: not-allowed;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox,
.form-radio {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-sm);
  cursor: pointer;
}

.form-hint {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

.form-error {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

/* ========================================
   КАРТОЧКИ
   ======================================== */

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 16px rgba(107, 93, 216, 0.08), 
              0 2px 8px rgba(255, 182, 193, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  box-shadow: 0 12px 35px rgba(107, 93, 216, 0.25),
              0 4px 16px rgba(255, 182, 193, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-6px);
  border-color: rgba(255, 182, 193, 0.3);
  background: rgba(255, 255, 255, 0.98);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-md);
}

.card-content {
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
}

.card-footer {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-200);
}

/* ========================================
   СЕКЦИИ
   ======================================== */

.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  text-align: center;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   БЛАГОТВОРИТЕЛИ (BENEFACTORS)
   ======================================== */

.benefactors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.benefactor-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
}

.benefactor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.benefactor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(107, 93, 216, 0.15),
              0 4px 12px rgba(255, 182, 193, 0.1);
  border-color: var(--color-lilac-300);
}

.benefactor-card:hover::before {
  opacity: 1;
}

.benefactor-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.benefactor-card:hover .benefactor-logo {
  transform: scale(1.05);
}

.benefactor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.benefactor-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.benefactor-desc {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.benefactor-year {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(107, 93, 216, 0.3);
}

@media (max-width: 768px) {
  .benefactors-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .benefactor-card {
    padding: var(--spacing-lg);
  }
  
  .benefactor-logo {
    width: 100px;
    height: 100px;
  }
}

/* ========================================
   HERO СЕКЦИЯ
   ======================================== */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-3xl);
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(107, 93, 216, 0.03) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  animation: backgroundMove 80s linear infinite;
  z-index: 0;
}

/* Анимированные разноцветные частицы в стиле WorkOS */
.hero::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  z-index: 0;
  pointer-events: none;
  background: 
    /* Радужные частицы разных размеров и позиций */
    radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(255, 215, 0, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(50, 205, 50, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 10% 60%, rgba(0, 191, 255, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(75, 0, 130, 0.13) 0%, transparent 50%),
    radial-gradient(circle at 60% 10%, rgba(139, 0, 255, 0.17) 0%, transparent 50%),
    /* Дополнительные частицы в палитре темы */
    radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(91, 143, 233, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(124, 58, 237, 0.13) 0%, transparent 50%),
    radial-gradient(circle at 65% 40%, rgba(168, 85, 247, 0.11) 0%, transparent 50%);
  animation: particlesFloat 25s ease-in-out infinite;
}

@keyframes backgroundMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 40px);
  }
}

@keyframes particlesFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate(30px, -40px) rotate(5deg) scale(1.1);
    opacity: 1;
  }
  50% {
    transform: translate(-20px, 30px) rotate(-5deg) scale(0.9);
    opacity: 0.7;
  }
  75% {
    transform: translate(40px, 20px) rotate(8deg) scale(1.05);
    opacity: 0.9;
  }
}

/* ========================================
   УЛУЧШЕННЫЕ ЧАСТИЦЫ В HERO СЕКЦИИ
   ======================================== */

.hero-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  filter: blur(1px);
  animation: floatAndPulse 20s infinite ease-in-out;
  box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

/* Разные размеры, цвета, позиции и траектории для каждой частицы */
.hero-particle:nth-child(1) {
  width: 8px;
  height: 8px;
  color: #8B5CF6;
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.hero-particle:nth-child(2) {
  width: 12px;
  height: 12px;
  color: #3B82F6;
  left: 85%;
  top: 15%;
  animation-delay: 2s;
  animation-duration: 30s;
}

.hero-particle:nth-child(3) {
  width: 6px;
  height: 6px;
  color: #EC4899;
  left: 25%;
  top: 70%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.hero-particle:nth-child(4) {
  width: 10px;
  height: 10px;
  color: #10B981;
  left: 70%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 28s;
}

.hero-particle:nth-child(5) {
  width: 14px;
  height: 14px;
  color: #F59E0B;
  left: 50%;
  top: 30%;
  animation-delay: 3s;
  animation-duration: 26s;
}

.hero-particle:nth-child(6) {
  width: 7px;
  height: 7px;
  color: #06B6D4;
  left: 15%;
  top: 85%;
  animation-delay: 5s;
  animation-duration: 24s;
}

.hero-particle:nth-child(7) {
  width: 11px;
  height: 11px;
  color: #EF4444;
  left: 90%;
  top: 40%;
  animation-delay: 1.5s;
  animation-duration: 27s;
}

.hero-particle:nth-child(8) {
  width: 9px;
  height: 9px;
  color: #8B5CF6;
  left: 35%;
  top: 10%;
  animation-delay: 2.5s;
  animation-duration: 23s;
}

.hero-particle:nth-child(9) {
  width: 13px;
  height: 13px;
  color: #A78BFA;
  left: 60%;
  top: 80%;
  animation-delay: 4.5s;
  animation-duration: 29s;
}

.hero-particle:nth-child(10) {
  width: 8px;
  height: 8px;
  color: #14B8A6;
  left: 5%;
  top: 50%;
  animation-delay: 0.5s;
  animation-duration: 25s;
}

.hero-particle:nth-child(11) {
  width: 10px;
  height: 10px;
  color: #F97316;
  left: 80%;
  top: 25%;
  animation-delay: 3.5s;
  animation-duration: 31s;
}

.hero-particle:nth-child(12) {
  width: 6px;
  height: 6px;
  color: #7C3AED;
  left: 40%;
  top: 45%;
  animation-delay: 1.8s;
  animation-duration: 21s;
}

.hero-particle:nth-child(13) {
  width: 12px;
  height: 12px;
  color: #60A5FA;
  left: 95%;
  top: 70%;
  animation-delay: 4.2s;
  animation-duration: 28s;
}

.hero-particle:nth-child(14) {
  width: 9px;
  height: 9px;
  color: #DB2777;
  left: 20%;
  top: 35%;
  animation-delay: 2.8s;
  animation-duration: 26s;
}

.hero-particle:nth-child(15) {
  width: 11px;
  height: 11px;
  color: #059669;
  left: 75%;
  top: 90%;
  animation-delay: 5.5s;
  animation-duration: 24s;
}

.hero-particle:nth-child(16) {
  width: 7px;
  height: 7px;
  color: #D97706;
  left: 55%;
  top: 5%;
  animation-delay: 0.8s;
  animation-duration: 30s;
}

.hero-particle:nth-child(17) {
  width: 14px;
  height: 14px;
  color: #0EA5E9;
  left: 12%;
  top: 65%;
  animation-delay: 3.2s;
  animation-duration: 27s;
}

.hero-particle:nth-child(18) {
  width: 8px;
  height: 8px;
  color: #DC2626;
  left: 88%;
  top: 55%;
  animation-delay: 1.2s;
  animation-duration: 25s;
}

.hero-particle:nth-child(19) {
  width: 10px;
  height: 10px;
  color: #C026D3;
  left: 30%;
  top: 90%;
  animation-delay: 4.8s;
  animation-duration: 29s;
}

.hero-particle:nth-child(20) {
  width: 6px;
  height: 6px;
  color: #16A34A;
  left: 65%;
  top: 20%;
  animation-delay: 2.2s;
  animation-duration: 23s;
}

.hero-particle:nth-child(21) {
  width: 13px;
  height: 13px;
  color: #EA580C;
  left: 8%;
  top: 10%;
  animation-delay: 5.2s;
  animation-duration: 31s;
}

.hero-particle:nth-child(22) {
  width: 9px;
  height: 9px;
  color: #6366F1;
  left: 92%;
  top: 85%;
  animation-delay: 0.2s;
  animation-duration: 22s;
}

.hero-particle:nth-child(23) {
  width: 11px;
  height: 11px;
  color: #EC4899;
  left: 45%;
  top: 75%;
  animation-delay: 3.8s;
  animation-duration: 26s;
}

.hero-particle:nth-child(24) {
  width: 7px;
  height: 7px;
  color: #0D9488;
  left: 78%;
  top: 12%;
  animation-delay: 1.5s;
  animation-duration: 28s;
}

.hero-particle:nth-child(25) {
  width: 12px;
  height: 12px;
  color: #F59E0B;
  left: 22%;
  top: 55%;
  animation-delay: 4.5s;
  animation-duration: 24s;
}

@keyframes floatAndPulse {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.6;
  }
  20% {
    transform: translate(50px, -80px) scale(1.3) rotate(120deg);
    opacity: 0.8;
  }
  40% {
    transform: translate(-40px, 60px) scale(0.8) rotate(240deg);
    opacity: 0.5;
  }
  60% {
    transform: translate(80px, 40px) scale(1.5) rotate(360deg);
    opacity: 0.9;
  }
  80% {
    transform: translate(-60px, -50px) scale(0.9) rotate(480deg);
    opacity: 0.7;
  }
  95% {
    opacity: 0.4;
  }
}

/* Ускоренная анимация при hover на hero секции */
.hero:hover .hero-particle {
  animation-duration: 15s !important;
}

/* Responsive для частиц */
@media (max-width: 768px) {
  .hero-particle {
    display: none;
  }
  
  .hero-particle:nth-child(odd) {
    display: block;
  }
}

/* ========================================
   ВОЗДУШНЫЕ ШАРИКИ (BALLOONS)
   ======================================== */

.balloons-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.balloon {
  position: absolute;
  bottom: -150px;
  width: 50px;
  height: 65px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: floatUp 15s ease-in infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.balloon::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, currentColor, transparent);
}

.balloon::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 15px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(2px);
}

.balloon:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
  animation-duration: 18s;
  background: linear-gradient(135deg, #FF6B9D 0%, #FE5196 100%);
  color: #FF6B9D;
}

.balloon:nth-child(2) {
  left: 15%;
  animation-delay: 3s;
  animation-duration: 20s;
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: #FFA500;
  width: 45px;
  height: 58px;
}

.balloon:nth-child(3) {
  left: 25%;
  animation-delay: 6s;
  animation-duration: 22s;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #FFD700;
  width: 55px;
  height: 70px;
}

.balloon:nth-child(4) {
  left: 35%;
  animation-delay: 2s;
  animation-duration: 19s;
  background: linear-gradient(135deg, #98D8C8 0%, #6BCF7A 100%);
  color: #98D8C8;
}

.balloon:nth-child(5) {
  left: 45%;
  animation-delay: 7s;
  animation-duration: 21s;
  background: linear-gradient(135deg, #87CEEB 0%, #4A90E2 100%);
  color: #87CEEB;
  width: 48px;
  height: 62px;
}

.balloon:nth-child(6) {
  left: 55%;
  animation-delay: 4s;
  animation-duration: 23s;
  background: linear-gradient(135deg, #B19CD9 0%, #9370DB 100%);
  color: #B19CD9;
}

.balloon:nth-child(7) {
  left: 65%;
  animation-delay: 8s;
  animation-duration: 17s;
  background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 100%);
  color: #FFB6C1;
  width: 52px;
  height: 67px;
}

.balloon:nth-child(8) {
  left: 75%;
  animation-delay: 5s;
  animation-duration: 24s;
  background: linear-gradient(135deg, #FFDAB9 0%, #FFE4B5 100%);
  color: #FFDAB9;
}

.balloon:nth-child(9) {
  left: 85%;
  animation-delay: 9s;
  animation-duration: 16s;
  background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
  color: #FF69B4;
  width: 46px;
  height: 60px;
}

.balloon:nth-child(10) {
  left: 95%;
  animation-delay: 1s;
  animation-duration: 25s;
  background: linear-gradient(135deg, #DDA0DD 0%, #DA70D6 100%);
  color: #DDA0DD;
}

@keyframes floatUp {
  0% {
    bottom: -150px;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateX(30px) rotate(10deg);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    bottom: 110vh;
    opacity: 0;
    transform: translateX(-20px) rotate(-8deg);
  }
}

/* Мобильная версия - меньше шариков */
@media (max-width: 768px) {
  .balloon:nth-child(n+6) {
    display: none;
  }
}


.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  width: 100%;
  padding: 0 var(--spacing-xl);
  margin-top: var(--spacing-xl);
  transform: translateY(-20px);
}

.hero-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  margin: 0 auto var(--spacing-xl);
  animation: fadeInUp 0.8s ease-out;
  transform: translateY(-10px);
}

.hero-logo {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: contain;
  border-radius: 60px;
  filter: drop-shadow(0 8px 24px rgba(107, 93, 216, 0.2));
  animation: logoFloat 6s ease-in-out infinite;
  transition: transform var(--transition-base);
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-logo-day {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-transform: lowercase;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-title {
  font-family: var(--font-family-calligraphy);
  font-size: 3.8rem;
  font-weight: 400;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out 0.1s both;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(107, 93, 216, 0.1);
  transform: rotate(-1deg);
  white-space: nowrap;
  overflow: visible;
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    white-space: normal;
  }
}

.hero-subtitle {
  font-family: var(--font-family-calligraphy);
  font-size: 2rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-lilac-700);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.9;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: 1px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.7;
    letter-spacing: 0.5px;
  }
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ========================================
   PROJECT HERO (СЛАЙДЕР ПРОЕКТОВ)
   ======================================== */

.project-hero {
  position: relative;
  min-height: clamp(340px, 55vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--topbar-height) + 1.25rem) 0 1.75rem;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, #8B5CF6 0%, #5B8FE9 50%, #3B82F6 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  transition: background-image 0.6s ease;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 19, 40, 0.35) 0%, rgba(15, 19, 40, 0.5) 50%, rgba(15, 19, 40, 0.65) 100%);
  pointer-events: none;
}

.project-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 720px;
}

.project-hero-left {
  color: var(--color-white);
}

.project-hero-full {
  width: 100%;
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md) var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.project-hero-meta-item {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--font-size-sm);
}

.project-hero-meta-label {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-hero-meta-item > span:not(.project-hero-meta-label) {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

.project-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.project-hero-title {
  font-size: 3rem;
  font-weight: var(--font-weight-black);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--color-white);
  text-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.project-hero-subtitle {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  max-width: 760px;
  margin-bottom: var(--spacing-2xl);
}

.project-hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.project-hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.95);
}

.project-hero-actions .btn-outline:hover {
  border-color: transparent;
}

.project-hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.project-hero-dot[aria-current="true"] {
  background: rgba(255,255,255,0.9);
  transform: scale(1.35);
}

@media (max-width: 1024px) {
  .project-hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .project-hero {
    min-height: auto;
    padding: calc(var(--spacing-2xl) + var(--spacing-xl)) 0 var(--spacing-2xl);
  }
  .project-hero-title {
    font-size: 2rem;
  }
  .project-hero-actions .btn {
    width: 100%;
  }
  .project-hero-meta {
    gap: var(--spacing-sm) var(--spacing-lg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   СЕТКА
   ======================================== */

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   ALERT/УВЕДОМЛЕНИЯ
   ======================================== */

.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #4CAF50;
}

.alert-error {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #F44336;
}

.alert-warning {
  background-color: #FFF3E0;
  color: #E65100;
  border: 1px solid #FF9800;
}

.alert-info {
  background-color: #E3F2FD;
  color: #1565C0;
  border: 1px solid #2196F3;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.modal-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-gray-600);
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

/* Модальное окно для новостей */
#news-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

#news-modal.active {
  display: flex;
}

#news-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#news-modal .modal-content {
  background-color: var(--color-white);
  border-radius: var(--radius-3xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-gray-200);
}

#news-modal .modal-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
  display: none;
  position: relative;
}

#news-modal .modal-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
  pointer-events: none;
}

#news-modal .modal-body {
  padding: var(--spacing-3xl);
}

#news-modal .modal-category {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: var(--gradient-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-lg);
}

#news-modal .modal-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-tight);
}

#news-modal .modal-content-text {
  color: var(--color-gray-700);
  line-height: 1.8;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  white-space: pre-wrap;
  text-align: justify;
}

#news-modal .modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-200);
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

#news-modal .modal-meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Страница отдельной новости */
.news-article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--spacing-2xl);
  align-items: start;
}

.news-article-main {
  min-width: 0;
}

.news-article-loading.hidden,
.news-article-content.hidden,
.news-article-error.hidden {
  display: none !important;
}

.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-gray-600);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-xl);
  transition: color var(--transition-fast);
}

.news-article-back:hover {
  color: var(--color-primary, #8b5cf6);
}

.news-article-header {
  margin-bottom: var(--spacing-xl);
}

.news-article-category {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-lg);
}

.news-article-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-200);
}

.news-like-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.news-like-btn:hover:not(:disabled) {
  border-color: #ec4899;
  color: #ec4899;
}

.news-like-btn.liked {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border-color: transparent;
  color: #fff;
}

.news-like-btn.liked .news-like-icon {
  animation: like-pop 0.3s ease;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.news-like-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.news-like-icon {
  font-size: 1.1em;
}

.news-like-count {
  min-width: 1.5em;
}

.news-like-hint {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.news-like-hint a {
  color: var(--color-primary, #8b5cf6);
  text-decoration: none;
  font-weight: 500;
}

.news-like-hint a:hover {
  text-decoration: underline;
}

.news-article-hero-img {
  width: 100%;
  height: clamp(280px, 40vw, 440px);
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
}

.news-article-body {
  color: var(--color-gray-700);
  line-height: 1.85;
  font-size: var(--font-size-lg);
  white-space: pre-wrap;
}

.news-article-body p {
  margin-bottom: var(--spacing-md);
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

.news-article-sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + var(--spacing-lg));
}

.news-sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-gray-200);
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.news-sidebar-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.news-sidebar-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.news-sidebar-item-img {
  height: 70px;
  border-radius: var(--radius-md);
  min-width: 80px;
}

.news-sidebar-item-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.news-sidebar-item-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 4px;
  line-height: 1.3;
}

.news-sidebar-item-excerpt {
  font-size: var(--font-size-xs);
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.4;
}

.news-comments {
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--spacing-xl);
}

.news-comment {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.news-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

.news-comment-pending {
  border-color: #f59e0b;
  background: #fffbeb;
}

.news-comment-badge {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: #92400e;
  background: #fde68a;
  padding: 3px 8px;
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .news-article-layout {
    grid-template-columns: 1fr;
  }
  .news-article-sidebar {
    position: static;
  }
}

/* ========================================
   ТАБЫ
   ======================================== */

.tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  border-bottom: 2px solid var(--color-gray-200);
}

.tab-button {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.tab-button:hover {
  color: var(--color-gray-900);
  background-color: var(--color-gray-50);
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ТАБЛИЦЫ
   ======================================== */

.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  background-color: var(--color-white);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background-color: var(--color-gray-100);
  border-bottom: 2px solid var(--color-gray-300);
}

.table th {
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--color-gray-200);
  color: var(--color-gray-700);
}

.table tbody tr:hover {
  background-color: var(--color-gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   BADGE/МЕТКИ
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.badge-secondary {
  background-color: var(--color-gray-200);
  color: var(--color-gray-800);
}

.badge-success {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.badge-warning {
  background-color: #FFF3E0;
  color: #E65100;
}

.badge-error {
  background-color: #FFEBEE;
  color: #C62828;
}

.badge-info {
  background-color: #E3F2FD;
  color: #1565C0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: linear-gradient(135deg, var(--color-lilac-800) 0%, var(--color-blue-800) 100%);
  color: var(--color-lilac-200);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--color-white);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-lg);
}

.footer-section p,
.footer-section a {
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer-section a:hover {
  color: var(--color-white);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  text-decoration: none;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 60px;
}

.footer-logo-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-size-sm);
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* ========================================
   UTILITY КЛАССЫ
   ======================================== */

.hidden {
  display: none !important;
}

.is-collapsing {
  opacity: 0 !important;
  transform: scale(0.98) !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

.divider-top {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-gray-200);
}

.text-muted {
  color: var(--color-gray-600);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.consent-label {
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.mb-sm {
  margin-bottom: var(--spacing-md);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mt-6 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.mb-6 { margin-bottom: var(--spacing-2xl); }

.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-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* ========================================
   АДАПТИВНЫЙ ДИЗАЙН
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 70px;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar-inner {
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }

  .topbar-actions {
    min-width: 140px;
  }

  .topbar-link {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
    --topbar-height: 60px;
  }

  .topbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .main-content {
    padding-top: var(--topbar-height);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.2;
  }

  .topbar-inner {
    padding: 0 16px;
    max-width: 100%;
  }

  .topbar-nav,
  .topbar-actions {
    display: none;
  }

  .topbar-mobile-toggle {
    display: inline-flex;
  }

  .topbar-banner-img {
    height: calc(var(--topbar-height) - 12px);
    max-width: 180px;
    width: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 2.5rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .card {
    padding: var(--spacing-lg);
  }
}

/* ========================================
   СПЕЦИФИЧНЫЕ КОМПОНЕНТЫ ДЛЯ САЙТА
   ======================================== */

/* Статистика на главной */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.1);
  box-shadow: 0 4px 16px rgba(107, 93, 216, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(107, 93, 216, 0.2);
  border-color: var(--color-primary);
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  font-weight: var(--font-weight-medium);
}

/* =============================================
   ГЛАВНАЯ СТРАНИЦА — PRODUCTION LAYOUT
   ============================================= */

.page-home .balloons-container { display: none; }

.page-home .project-hero,
.page-home .home-hero.project-hero {
  min-height: clamp(360px, 52vh, 520px);
  padding: calc(var(--topbar-height) + 1.25rem) 0 1.75rem;
}

.page-home .project-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
}

.page-home .project-hero-subtitle {
  font-size: var(--font-size-base);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: var(--spacing-lg);
}

.page-home .project-hero-kicker-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.page-home .home-hero-meta {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
  gap: var(--spacing-md) var(--spacing-lg);
}

.page-home .project-hero-actions {
  margin-bottom: var(--spacing-lg);
}

.page-home .project-hero-actions .btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: var(--font-size-sm);
}

.home-stats-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.home-stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.home-stats-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--color-gray-100);
}

.home-stats-list li:last-child { border-right: none; }

.home-stats-list strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-gray-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.home-stats-list span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-gray-500);
  line-height: 1.35;
  max-width: 140px;
}

.home-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.home-section--muted {
  background: linear-gradient(180deg, #fafbff 0%, #f5f3ff 100%);
}

.home-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.home-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.home-section-title--left { text-align: left; }

.home-section-lead {
  margin: 0.5rem 0 0;
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  line-height: 1.6;
  max-width: 520px;
}

.home-section-lead--left { margin-left: 0; }

.home-section-head--center .home-section-lead {
  max-width: 560px;
}

.home-section-cta { flex-shrink: 0; }

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.home-text-link:hover { color: var(--color-primary-dark); text-decoration: underline; }

.home-directions-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.home-section--directions {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, #f8f9fc 0%, #f3f4f8 50%, #fafbff 100%);
  border-top: 1px solid rgba(109, 93, 216, 0.08);
  border-bottom: 1px solid rgba(109, 93, 216, 0.08);
}

.home-directions-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 20%, rgba(109, 93, 216, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 75%, rgba(59, 130, 196, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 25% at 50% 100%, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
}

.home-directions-intro {
  position: sticky;
  top: calc(var(--topbar-height) + 1rem);
}

.home-directions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  perspective: 1400px;
}

.home-dir-card {
  --dir-accent: #6d5dd8;
  --dir-accent-soft: rgba(109, 93, 216, 0.14);
  --dir-accent-glow: rgba(109, 93, 216, 0.35);
  position: relative;
  border-radius: 20px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  animation: homeDirReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--dir-i, 0) * 0.07s + 0.05s);
}

@keyframes homeDirReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-dir-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--dir-accent-glow), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.home-dir-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 255, 0.92) 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 20px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(18px);
  transition: box-shadow 0.4s ease, border-color 0.35s ease, background 0.35s ease;
}

.home-dir-card__inner--wide {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.home-dir-card__inner--wide .home-dir-card__head {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.home-dir-card:hover .home-dir-card__glow,
.home-dir-card.is-tilted .home-dir-card__glow {
  opacity: 1;
}

.home-dir-card:hover .home-dir-card__inner,
.home-dir-card.is-tilted .home-dir-card__inner {
  border-color: rgba(109, 93, 216, 0.22);
  box-shadow:
    0 24px 48px rgba(79, 70, 229, 0.14),
    0 8px 20px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-dir-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.home-dir-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dir-accent-soft);
  color: var(--dir-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.35s ease, background 0.35s ease;
}

.home-dir-card__icon .icon {
  width: 20px;
  height: 20px;
}

.home-dir-card:hover .home-dir-card__icon,
.home-dir-card.is-tilted .home-dir-card__icon {
  transform: scale(1.06) translateZ(8px);
  background: color-mix(in srgb, var(--dir-accent-soft) 70%, white);
}

.home-dir-card--wide {
  grid-column: span 2;
}

.home-dir-num {
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, 'SF Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--dir-accent);
  opacity: 0.45;
}

.home-dir-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.home-dir-card p {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray-600);
  line-height: 1.55;
}

/* Accent variants */
.home-dir-card--violet { --dir-accent: #6d5dd8; --dir-accent-soft: rgba(109, 93, 216, 0.14); --dir-accent-glow: rgba(109, 93, 216, 0.4); }
.home-dir-card--blue   { --dir-accent: #2563eb; --dir-accent-soft: rgba(37, 99, 235, 0.12); --dir-accent-glow: rgba(37, 99, 235, 0.35); }
.home-dir-card--teal   { --dir-accent: #0d9488; --dir-accent-soft: rgba(13, 148, 136, 0.12); --dir-accent-glow: rgba(13, 148, 136, 0.35); }
.home-dir-card--rose   { --dir-accent: #db2777; --dir-accent-soft: rgba(219, 39, 119, 0.12); --dir-accent-glow: rgba(219, 39, 119, 0.32); }
.home-dir-card--amber  { --dir-accent: #d97706; --dir-accent-soft: rgba(217, 119, 6, 0.12); --dir-accent-glow: rgba(217, 119, 6, 0.32); }
.home-dir-card--purple { --dir-accent: #7c3aed; --dir-accent-soft: rgba(124, 58, 237, 0.12); --dir-accent-glow: rgba(124, 58, 237, 0.35); }
.home-dir-card--indigo { --dir-accent: #4f46e5; --dir-accent-soft: rgba(79, 70, 229, 0.12); --dir-accent-glow: rgba(79, 70, 229, 0.38); }
.home-dir-card--sky    { --dir-accent: #0284c7; --dir-accent-soft: rgba(2, 132, 199, 0.12); --dir-accent-glow: rgba(2, 132, 199, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .home-dir-card {
    animation: none;
    transition: none;
  }
  .home-dir-card__inner,
  .home-dir-card__icon,
  .home-dir-card__glow {
    transition: none;
  }
}

/* ─── Home: Как вы можете помочь ─── */
.home-section--help {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(180deg, #fafbff 0%, #f6f7fb 45%, #fafbff 100%);
  border-top: 1px solid rgba(109, 93, 216, 0.06);
}

.home-help-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 8% 15%, rgba(251, 146, 60, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 38% at 92% 20%, rgba(52, 211, 153, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(244, 114, 182, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 80%, rgba(96, 165, 250, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 50% 50%, rgba(109, 93, 216, 0.06) 0%, transparent 70%);
}

.home-section--help .home-section-head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.home-help-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  perspective: 1400px;
}

.home-help-card {
  --help-accent: #6d5dd8;
  --help-accent-soft: rgba(109, 93, 216, 0.14);
  --help-accent-glow: rgba(109, 93, 216, 0.38);
  position: relative;
  border-radius: 24px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-help-card.is-visible {
  animation: homeHelpReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--help-i, 0) * 0.12s);
}

@keyframes homeHelpReveal {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-help-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(145deg, var(--help-accent-glow), transparent 58%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.home-help-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.65rem);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 255, 0.88) 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 28px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(20px);
  transition: box-shadow 0.4s ease, border-color 0.35s ease, background 0.35s ease;
}

.home-help-card--featured .home-help-card__inner {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 243, 255, 0.94) 55%, rgba(239, 246, 255, 0.9) 100%);
  border-color: rgba(109, 93, 216, 0.14);
}

.home-help-card:hover .home-help-card__glow,
.home-help-card.is-tilted .home-help-card__glow {
  opacity: 1;
}

.home-help-card:hover .home-help-card__inner,
.home-help-card.is-tilted .home-help-card__inner {
  border-color: color-mix(in srgb, var(--help-accent) 28%, transparent);
  box-shadow:
    0 28px 56px color-mix(in srgb, var(--help-accent) 16%, transparent),
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.home-help-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.home-help-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--help-accent-soft);
  color: var(--help-accent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.home-help-card__icon .icon {
  width: 22px;
  height: 22px;
}

.home-help-card:hover .home-help-card__icon,
.home-help-card.is-tilted .home-help-card__icon {
  transform: scale(1.06) translateY(-2px);
  background: color-mix(in srgb, var(--help-accent) 18%, white);
}

.home-help-card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--help-accent);
  opacity: 0.55;
}

.home-help-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-gray-900);
  line-height: 1.25;
}

.home-help-card__text {
  margin: 0 0 1rem;
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.home-help-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.home-help-card__tags li {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--help-accent);
  background: var(--help-accent-soft);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--help-accent) 12%, transparent);
}

.home-help-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  padding: 0.65rem 1.15rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--help-accent);
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--help-accent) 35%, transparent);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-help-card__cta .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.home-help-card__cta:hover {
  background: var(--help-accent-soft);
  border-color: color-mix(in srgb, var(--help-accent) 50%, transparent);
  transform: translateY(-1px);
}

.home-help-card__cta:hover .icon {
  transform: translateX(3px);
}

.home-help-card__cta--primary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--help-accent) 0%, color-mix(in srgb, var(--help-accent) 70%, #2563eb) 100%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--help-accent) 35%, transparent);
}

.home-help-card__cta--primary:hover {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--help-accent) 90%, #000) 0%, color-mix(in srgb, var(--help-accent) 60%, #2563eb) 100%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--help-accent) 42%, transparent);
}

.home-help-card--violet { --help-accent: #6d5dd8; --help-accent-soft: rgba(109, 93, 216, 0.14); --help-accent-glow: rgba(109, 93, 216, 0.42); }
.home-help-card--blue   { --help-accent: #2563eb; --help-accent-soft: rgba(37, 99, 235, 0.12); --help-accent-glow: rgba(37, 99, 235, 0.38); }
.home-help-card--rose   { --help-accent: #db2777; --help-accent-soft: rgba(219, 39, 119, 0.12); --help-accent-glow: rgba(219, 39, 119, 0.35); }

@media (max-width: 960px) {
  .home-help-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-help-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .home-help-card__inner,
  .home-help-card__icon,
  .home-help-card__glow,
  .home-help-card__cta {
    transition: none;
  }
}

.home-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-action-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-action-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-action-card--featured {
  background: linear-gradient(145deg, #f5f3ff 0%, #eff6ff 100%);
  border-color: rgba(109, 93, 216, 0.2);
}

.home-action-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.home-action-card h3 {
  margin: 0 0 8px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-gray-900);
}

.home-action-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.55;
}

.home-action-card .home-text-link,
.home-action-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.home-cta {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #5b21b6 0%, #4f46e5 50%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
}

.home-cta-inner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-cta-inner p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-width: 420px;
}

.home-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.home-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.page-home .trusted-section {
  padding: 2rem 0;
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.page-home .trusted-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .home-stats-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-stats-list li:nth-child(2) { border-right: none; }
  .home-stats-list li:nth-child(1),
  .home-stats-list li:nth-child(2) {
    border-bottom: 1px solid var(--color-gray-100);
  }

  .home-directions-layout {
    grid-template-columns: 1fr;
  }

  .home-directions-intro {
    position: static;
  }

  .home-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-directions-grid {
    grid-template-columns: 1fr;
  }

  .home-dir-card--wide {
    grid-column: span 1;
  }

  .home-dir-card__inner--wide {
    flex-direction: column;
  }

  .home-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-cta-actions {
    width: 100%;
  }

  .home-cta-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Карточки направлений помощи */
.direction-card {
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-2xl);
  transition: all var(--transition-base);
  height: 100%;
}

.direction-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(107, 93, 216, 0.25);
}

.direction-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-2xl);
  color: var(--color-white);
}

.direction-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-md);
}

.direction-description {
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   СТРАНИЦА НОВОСТЕЙ — ПОРТАЛЬНЫЙ СТИЛЬ
   ======================================== */

.news-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-page-header {
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  border-bottom: 1px solid var(--color-gray-200);
}

.news-page-title-block {
  margin-bottom: var(--spacing-xl);
}

.news-page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-xs);
  letter-spacing: -0.02em;
}

.news-page-subtitle {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
  margin: 0;
}

.news-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: center;
  justify-content: space-between;
}

.news-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.news-search-icon {
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.5;
  pointer-events: none;
}

.news-search-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 2.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(109, 93, 216, 0.15);
}

.news-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.news-pill {
  padding: var(--spacing-xs) var(--spacing-md);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.news-pill:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-800);
}

.news-pill.active {
  background: var(--color-primary);
  color: white;
}

.news-page-content {
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.news-loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  grid-column: 1 / -1;
}

.news-skeleton {
  background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
  background-size: 200% 100%;
  animation: news-skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-xl);
  min-height: 280px;
}

.news-skeleton-featured {
  grid-column: 1 / -1;
  min-height: 320px;
}

@keyframes news-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
}

.news-empty-icon {
  font-size: 3rem;
  opacity: 0.4;
  margin-bottom: var(--spacing-md);
}

.news-empty-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-gray-800);
  margin: 0 0 var(--spacing-sm);
}

.news-empty-text {
  color: var(--color-gray-600);
  margin: 0;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-gray-200);
}

.news-pagination-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: white;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.news-pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-pagination-info {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

/* Карточки новостей */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--color-gray-200);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.news-card-img {
  width: 100%;
  height: 200px;
  background-color: var(--color-gray-200);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.03);
}

.news-card-body {
  padding: var(--spacing-xl);
}

.news-card-tags {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-sm);
}

.news-card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.news-card-pinned {
  font-size: 11px;
  color: var(--color-gray-500);
  padding: 4px 8px;
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
}

.news-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-sm);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin: 0 0 var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.news-card-meta time {
  font-variant-numeric: tabular-nums;
}

/* Featured-карточка */
.news-card-featured {
  grid-column: 1 / -1;
}

.news-card-featured-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-height: 360px;
}

.news-card-featured-img {
  background-color: var(--color-gray-200);
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.news-card-featured-body {
  padding: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-white);
}

.news-card-featured-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-md);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.news-card-featured-excerpt {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  line-height: 1.65;
  margin: 0 0 var(--spacing-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-cta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
}

.news-card-featured:hover .news-card-cta {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .news-search-wrap {
    max-width: none;
  }
  .news-card-featured-link {
    grid-template-columns: 1fr;
  }
  .news-card-featured-img {
    min-height: 220px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Обратная совместимость */
.news-image { width: 100%; height: 200px; background-color: var(--color-gray-200); }
.news-content { padding: var(--spacing-xl); }
.news-category { font-size: 11px; font-weight: 600; color: white; padding: 4px 10px; border-radius: var(--radius-full); }
.news-title { font-size: var(--font-size-lg); font-weight: 700; }
.news-excerpt { font-size: var(--font-size-sm); color: var(--color-gray-600); }
.news-meta { font-size: var(--font-size-xs); color: var(--color-gray-500); }
.news-read-more { margin-top: var(--spacing-md); }
.news-views { }

/* Админ панель */
.admin-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0;
}

.admin-shell {
  padding-top: var(--spacing-xl);
}

.admin-header-modern {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
}

.admin-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.admin-subtitle {
  margin: var(--spacing-xs) 0 0;
  color: var(--color-gray-600);
}

.admin-header-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--color-gray-600);
}

.modern-stat {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.admin-tabs-modern {
  position: sticky;
  top: calc(var(--topbar-height) + 8px);
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.admin-stat-card {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}

.admin-stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-xs);
}

.admin-stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

/* Форма авторизации */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: var(--gradient-hero);
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background-color: var(--color-white);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-gray-200);
}

.auth-title {
  text-align: center;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
}

.auth-subtitle {
  text-align: center;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-2xl);
}

/* Skeleton загрузка */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-300) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--spacing-sm);
}

.admin-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.admin-chart-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  padding: var(--spacing-lg);
}

.admin-chart-title {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.admin-pie-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  margin-top: var(--spacing-md);
}

.admin-pie {
  width: 180px;
  height: 180px;
  display: block;
}

.admin-pie-legend {
  display: grid;
  gap: var(--spacing-sm);
  align-content: start;
}

.admin-pie-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: var(--spacing-sm);
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.admin-pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.admin-pie-muted {
  color: var(--color-gray-500);
  font-size: var(--font-size-xs);
  margin-top: var(--spacing-xs);
}

.admin-chart-bar {
  width: 100%;
  height: 10px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
}

.admin-chart-segment {
  height: 100%;
}

.admin-chart-admin { background: #f97316; }
.admin-chart-moderator { background: #22c55e; }
.admin-chart-user { background: #3b82f6; }
.admin-chart-pending { background: #eab308; }
.admin-chart-completed { background: #16a34a; }

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: var(--color-gray-600);
}

.legend-item::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-item.admin-chart-admin::before { background: #f97316; }
.legend-item.admin-chart-moderator::before { background: #22c55e; }
.legend-item.admin-chart-user::before { background: #3b82f6; }
.legend-item.admin-chart-pending::before { background: #eab308; }
.legend-item.admin-chart-completed::before { background: #16a34a; }

.admin-users-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-md);
}

.admin-user-details {
  margin-top: var(--spacing-xl);
}

.admin-user-details-empty {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.admin-user-details-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  padding: var(--spacing-xl);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.admin-user-details-card h3 {
  margin: 0 0 var(--spacing-xs);
}

.admin-user-details-email {
  margin: 0 0 var(--spacing-md);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

.admin-user-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.admin-user-details-grid span {
  display: block;
  color: var(--color-gray-500);
}

/* SOC-style layout in the main site visual language */
body.admin-soc {
  background: var(--color-gray-50);
  color: var(--color-gray-800);
}

body.admin-soc .main-content.admin-main-soc {
  background: var(--gradient-hero);
}

body.admin-soc .topbar.topbar-admin-soc {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-gray-200);
}

body.admin-soc .admin-shell {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-3xl);
}

.admin-soc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: var(--spacing-lg);
  align-items: start;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.admin-soc-sidebar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  position: sticky;
  top: calc(var(--topbar-height) + 10px);
  z-index: 4;
  box-shadow: var(--shadow-lg);
}

.admin-soc-sidebar-head {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-gray-200);
}

/* White-label: настройки сайта в админке */
.admin-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.admin-site-block {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem 1.25rem;
  margin: 0;
  background: var(--color-gray-50);
}
.admin-site-block legend {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 0.35rem;
  color: var(--color-gray-800);
}
@media (max-width: 960px) {
  .admin-site-grid { grid-template-columns: 1fr; }
}

.admin-soc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  width: fit-content;
}

.admin-soc-operator-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-500);
}

.admin-soc-operator-name {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-900);
  display: block;
  margin-top: 2px;
  word-break: break-word;
}

.admin-soc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-soc-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  background: transparent;
  color: var(--color-gray-700);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-soc-nav-btn .icon {
  opacity: 0.85;
}

.admin-soc-nav-btn:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary-dark);
}

.admin-soc-nav-btn.active {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--color-primary-dark);
}

.admin-soc-workspace {
  min-width: 0;
}

body.admin-soc .admin-header-modern.admin-soc-command-strip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-800);
  margin-bottom: var(--spacing-lg);
}

body.admin-soc .admin-title {
  color: var(--color-gray-900);
}

body.admin-soc .admin-subtitle {
  color: var(--color-gray-600);
}

.admin-soc-strip-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

.admin-soc-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
}

.admin-soc-strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.admin-soc-strip-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--color-gray-700);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-300);
}

.admin-soc-overview {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

body.admin-soc .admin-soc-kpi.modern-stat {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-sm);
}

body.admin-soc .admin-stat-label {
  color: var(--color-gray-600);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.admin-soc .admin-stat-value {
  color: var(--color-gray-900);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
}

body.admin-soc .admin-soc-panel {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
}

body.admin-soc .admin-chart-title {
  color: var(--color-gray-700);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.admin-soc .admin-pie-legend-item {
  color: var(--color-gray-700);
}

body.admin-soc .admin-pie-muted {
  color: var(--color-gray-500);
}

body.admin-soc .tab-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

body.admin-soc .tab-content.active {
  display: block;
}

body.admin-soc .card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  color: var(--color-gray-800);
}

body.admin-soc .card-title {
  color: var(--color-gray-900);
}

body.admin-soc .form-label {
  color: var(--color-gray-700);
}

body.admin-soc .form-input,
body.admin-soc .form-textarea,
body.admin-soc .form-select {
  background: #fff;
  border-color: var(--color-gray-300);
  color: var(--color-gray-800);
}

body.admin-soc .table-container {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  overflow: auto;
  background: #fff;
}

body.admin-soc .table {
  color: var(--color-gray-800);
}

body.admin-soc .table thead {
  background: #f8fafc;
}

body.admin-soc .table th {
  color: var(--color-gray-600);
  border-color: var(--color-gray-200);
}

body.admin-soc .table td {
  border-color: var(--color-gray-200);
}

body.admin-soc .admin-user-details-card {
  background: #fff;
  border-color: var(--color-gray-200);
  color: var(--color-gray-800);
}

body.admin-soc .admin-user-details-empty,
body.admin-soc .admin-user-details-grid span {
  color: var(--color-gray-600);
}

body.admin-soc .alert {
  background: #fff;
  color: var(--color-gray-800);
  border-color: var(--color-gray-200);
}

@media (max-width: 960px) {
  .admin-soc-layout {
    grid-template-columns: 1fr;
  }

  .admin-soc-sidebar {
    position: relative;
    top: auto;
    max-height: none;
  }

  .admin-soc-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-soc-nav-btn {
    flex: 1 1 140px;
  }

  .admin-soc-nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ═══════════════════════════════════════════════════
   ADMIN-PANEL — MOBILE ADAPTIVE (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Sidebar — компактный заголовок, скрыть дата/метаданные */
  .admin-soc-sidebar {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    border-radius: var(--radius-lg);
  }

  .admin-soc-sidebar-head {
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .admin-soc-operator-label { display: none; }

  /* Nav — горизонтальный скролл с иконками */
  .admin-soc-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .admin-soc-nav::-webkit-scrollbar { display: none; }

  .admin-soc-nav-btn {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px 7px;
    min-width: 60px;
    font-size: 10px;
    border-radius: var(--radius-md);
  }

  .admin-soc-nav-btn .icon {
    width: 18px;
    height: 18px;
    font-size: 16px;
  }

  .admin-soc-nav-text {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58px;
  }

  .admin-soc-badge-count {
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
  }

  /* Command strip — убрать лишнее */
  .admin-soc-command-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
  }

  .admin-soc-strip-meta { display: none; }

  .admin-title { font-size: 1.1rem; }
  .admin-subtitle { font-size: 0.78rem; }

  /* Tab content — компактный padding */
  body.admin-soc .tab-content {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
  }

  /* Cards — меньше padding */
  body.admin-soc .card {
    padding: var(--spacing-md);
  }

  /* Stat cards — 2 колонки */
  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

  .admin-stat-card {
    padding: var(--spacing-md);
  }

  .admin-stat-value {
    font-size: 1.4rem;
  }

  /* Таблицы — горизонтальный скролл */
  body.admin-soc .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.admin-soc .table {
    min-width: 480px;
    font-size: 0.8rem;
  }

  body.admin-soc .table th,
  body.admin-soc .table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* Toolbar фильтров — перенос строк */
  .admin-users-toolbar {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .admin-users-toolbar .form-input,
  .admin-users-toolbar .form-select {
    min-width: 0;
    flex: 1 1 140px;
  }

  /* Формы — одна колонка */
  .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  /* Card header с кнопкой — перенос */
  .card > div[style*="justify-content:space-between"],
  .card > div[style*="justify-content: space-between"] {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  /* Bulk-bar */
  .bulk-bar {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* Pagination */
  .admin-pagination {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
  }

  /* Кнопки действий в таблице — только иконки */
  body.admin-soc .table .btn-sm {
    padding: 5px 8px;
    min-width: 32px;
  }

  /* Modal */
  .modal-box {
    margin: var(--spacing-md);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .modal-body {
    max-height: 55vh;
    overflow-y: auto;
  }
}

/* ═══════════════════════════════════════════════════
   ADMIN-PANEL — SMALL MOBILE (≤ 480px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
  }

  .admin-stat-value { font-size: 1.2rem; }
  .admin-stat-label { font-size: 10px; }

  .admin-soc-nav-btn {
    min-width: 52px;
    padding: 7px 8px;
  }

  .admin-soc-nav-text { max-width: 50px; font-size: 8px; }

  body.admin-soc .table { min-width: 400px; font-size: 0.75rem; }

  body.admin-soc .tab-content { padding: var(--spacing-sm); }

  body.admin-soc .card { padding: var(--spacing-sm); }

  .modal-box { margin: var(--spacing-sm); }
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: var(--spacing-lg);
}

.skeleton-card {
  height: 200px;
}

/* Анимация появления элементов */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Hover эффекты */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   АНИМАЦИЯ СОЦИАЛЬНЫХ ПАРТНЁРОВ — WorkOS marquee
   ======================================== */

.trusted-section {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  margin-bottom: 0;
}

.trusted-section__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(109, 93, 216, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 45% 50% at 80% 70%, rgba(59, 130, 196, 0.06) 0%, transparent 70%);
}

.trusted-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.trusted-head__title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-gray-900);
}

.trusted-head__lead {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.55;
}

.trusted-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0.5rem;
}

.trusted-marquee__row {
  overflow: hidden;
  width: 100%;
}

.trusted-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(120px, 12vw);
  z-index: 2;
  pointer-events: none;
}

.trusted-marquee__fade--left {
  left: 0;
  background: linear-gradient(90deg, #f8f9fc 0%, transparent 100%);
}

.trusted-marquee__fade--right {
  right: 0;
  background: linear-gradient(270deg, #f8f9fc 0%, transparent 100%);
}

.trusted-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: trustedMarquee var(--marquee-duration, 45s) linear infinite;
  will-change: transform;
}

.trusted-track--reverse {
  animation-name: trustedMarqueeReverse;
}

@keyframes trustedMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes trustedMarqueeReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.trusted-item {
  --partner-accent: #6d5dd8;
  flex-shrink: 0;
  position: relative;
  width: min(300px, 78vw);
  cursor: default;
}

.trusted-item__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 251, 255, 0.9) 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 20px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.trusted-item:hover .trusted-item__inner {
  transform: translateY(-4px) scale(1.02);
  border-color: color-mix(in srgb, var(--partner-accent) 35%, transparent);
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--partner-accent) 18%, transparent),
    0 6px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.trusted-logo-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.trusted-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trusted-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.trusted-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.trusted-since {
  font-size: 11px;
  font-weight: 600;
  color: var(--partner-accent);
  opacity: 0.85;
}

.trusted-item:hover .trusted-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.trusted-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--partner-accent) 25%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 20;
  min-width: 220px;
  max-width: 280px;
}

.trusted-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: color-mix(in srgb, var(--partner-accent) 25%, transparent);
}

.trusted-tooltip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 6px;
  line-height: 1.35;
}

.trusted-tooltip-desc {
  font-size: 12px;
  color: var(--color-gray-600);
  line-height: 1.5;
  margin: 0;
}

.trusted-tooltip-year {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--partner-accent);
  margin-bottom: 6px;
}

/* Legacy aliases (benefactors page) */
.trusted-title {
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-2xl);
}

.trusted-carousel { width: 100%; overflow: hidden; position: relative; }

.trusted-name-link {
  text-decoration: none;
  color: inherit;
}

.trusted-tooltip-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .trusted-track { animation: none !important; }
}

@media (max-width: 768px) {
  .trusted-item { width: min(280px, 85vw); }
  .trusted-logo-wrap { width: 100px; height: 42px; }
  .trusted-marquee__fade { width: 48px; }
  .trusted-tooltip { display: none; }
}

/* Responsive для карусели благотворителей — legacy */
@media (max-width: 768px) {
  .trusted-track {
    gap: var(--spacing-lg);
  }
  
  .trusted-item {
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 180px;
  }
  
  .trusted-name {
    font-size: var(--font-size-sm);
  }
  
  .trusted-logo {
    width: 100px;
    height: 50px;
  }
  
  .trusted-tooltip {
    display: none;
  }
}

/* Прокрутка */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-600);
}

/* Фокус для accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================
   ONBOARDING (диалоговый)
   ======================================== */

.onboarding-wrap {
  padding: calc(var(--topbar-height) + var(--spacing-2xl)) var(--spacing-md) var(--spacing-3xl);
  display: flex;
  justify-content: center;
}

.onboarding-card {
  width: 100%;
  max-width: 760px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-3xl);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  padding: var(--spacing-2xl);
  backdrop-filter: blur(8px);
}

.onboarding-header {
  margin-bottom: var(--spacing-xl);
}

.onboarding-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.02em;
}

.onboarding-subtitle {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  margin: 0 0 var(--spacing-sm);
  line-height: 1.5;
}

.onboarding-step {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-sm);
}

.onboarding-progress {
  height: 8px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.onboarding-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  transition: width 0.35s ease;
}

.onboarding-chat {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
}

.onboarding-msg {
  display: flex;
}

.onboarding-msg.bot {
  justify-content: flex-start;
}

.onboarding-msg.user {
  justify-content: flex-end;
}

.onboarding-bubble {
  max-width: 88%;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 18px;
  line-height: 1.55;
  animation: onboarding-pop 0.18s ease-out both;
}

.onboarding-msg.bot .onboarding-bubble {
  background: var(--color-gray-100);
  color: var(--color-gray-800);
  border-top-left-radius: 6px;
}

.onboarding-msg.user .onboarding-bubble {
  background: var(--color-primary);
  color: #fff;
  border-top-right-radius: 6px;
}

@keyframes onboarding-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-controls {
  margin-top: var(--spacing-lg);
}

.onboarding-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.onboarding-option {
  border: 1px solid var(--color-gray-200);
  background: #fff;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-gray-800);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.onboarding-option:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 93, 216, 0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.onboarding-phone-row {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.onboarding-input {
  flex: 1;
  min-width: 220px;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-200);
}

.onboarding-primary {
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.onboarding-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(109, 93, 216, 0.25);
}

.onboarding-secondary {
  border: 1px solid var(--color-gray-300);
  background: #fff;
  color: var(--color-gray-800);
  font-weight: 600;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.onboarding-link-btn {
  margin-top: var(--spacing-sm);
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.onboarding-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.onboarding-review-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--font-size-sm);
}

.onboarding-review-list li span {
  color: var(--color-gray-500);
}

.onboarding-review-list li strong {
  color: var(--color-gray-900);
  text-align: right;
}

.onboarding-review-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-welcome-card {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  border: 1px solid rgba(109, 93, 216, 0.15);
  border-radius: var(--radius-lg);
}

.dashboard-welcome-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-welcome-head strong {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-gray-900);
}

.dashboard-welcome-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-gray-600);
}

.dashboard-welcome-dismiss {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-gray-500);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.dashboard-welcome-dismiss:hover {
  background: rgba(255,255,255,0.7);
  color: var(--color-gray-800);
}

.dashboard-welcome-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-welcome-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.dashboard-welcome-link:hover {
  background: #fff;
  border-color: rgba(109,93,216,0.35);
}

.dashboard-welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.dashboard-welcome-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: var(--spacing-md);
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dashboard-welcome-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dashboard-welcome-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.dashboard-welcome-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-gray-900);
}

.dashboard-welcome-item p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.dashboard-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-sm);
}

.dashboard-profile-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(109, 93, 216, 0.1);
  color: var(--color-primary-dark);
  font-weight: 600;
}

@media (max-width: 640px) {
  .onboarding-card {
    padding: var(--spacing-xl);
  }
  .onboarding-options {
    grid-template-columns: 1fr;
  }
}

/* Печать */
@media print {
  .sidebar,
  .footer,
  .btn,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}

/* =============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 19, 40, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  animation: fadeIn 0.18s ease;
}

.modal-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(15,19,40,0.22);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.modal-box-sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray-500);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--color-gray-900);
  background: var(--color-gray-100);
}

.modal-body {
  padding: var(--spacing-xl);
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.modal-footer .btn-danger {
  margin-right: auto;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================
   BULK ACTIONS BAR
   ============================================= */

.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  animation: fadeIn 0.15s ease;
}

.admin-bulk-bar .btn {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  font-size: var(--font-size-xs);
}

.admin-bulk-bar .btn:hover {
  background: rgba(255,255,255,0.28);
}

.admin-bulk-bar .btn-danger {
  background: rgba(239,68,68,0.85);
  border-color: rgba(239,68,68,0.5);
}

/* =============================================
   KPI ALERT
   ============================================= */

.admin-kpi-alert {
  border-color: var(--color-warning) !important;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%) !important;
}

.admin-kpi-alert .admin-stat-value {
  color: var(--color-warning) !important;
}

/* =============================================
   BADGE COUNT (счётчик на вкладке)
   ============================================= */

.admin-soc-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  margin-left: 6px;
  line-height: 1;
}

/* =============================================
   СТРОКА ВЫБОРА В ТАБЛИЦЕ
   ============================================= */

.table tbody tr.row-selected {
  background: var(--color-blue-50);
}

.table tbody tr.row-selected:hover {
  background: var(--color-blue-100);
}

/* =============================================
   КНОПКА DANGER
   ============================================= */

.btn-danger {
  background: var(--color-error);
  color: #fff;
  border: 1px solid var(--color-error);
}

.btn-danger:hover {
  background: #d32f2f;
  border-color: #d32f2f;
}

/* =============================================
   BADGE ERROR
   ============================================= */

.badge-error {
  background: rgba(244,67,54,0.12);
  color: #c62828;
  border: 1px solid rgba(244,67,54,0.25);
}

/* =============================================
   ТЕМНАЯ ТЕМА — модали
   ============================================= */

.theme-dark .modal-box {
  background: var(--color-gray-900);
  border: 1px solid rgba(255,255,255,0.1);
}

.theme-dark .modal-header {
  background: var(--color-gray-900);
  border-color: rgba(255,255,255,0.1);
}

.theme-dark .modal-footer {
  background: var(--color-gray-800);
  border-color: rgba(255,255,255,0.08);
}

.theme-dark .modal-title {
  color: var(--color-gray-100);
}

/* =============================================
   АДАПТИВ ДЛЯ МОДАЛЕЙ
   ============================================= */

@media (max-width: 640px) {
  .modal-box {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .admin-users-toolbar {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
}

/* =============================================
   DASHBOARD — ЛИЧНЫЙ КАБИНЕТ
   ============================================= */

.dashboard-hero {
  background: linear-gradient(135deg, var(--color-lilac-50) 0%, var(--color-sky-50) 100%);
  border-bottom: 1px solid var(--color-gray-200);
  padding: calc(var(--topbar-height, 64px) + 1.25rem) 0 1.25rem;
}

.dashboard-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-hero-info { flex: 1; min-width: 0; }
.dashboard-hero-name { font-size: 1.75rem; font-weight: 700; margin: 0 0 4px; }
.dashboard-hero-email { color: var(--color-gray-600); margin: 0 0 var(--spacing-sm); }
.dashboard-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dashboard-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.dashboard-container { padding: 1.5rem 0 3rem; max-width: 1100px; }

.dashboard-quicklinks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.dashboard-ql-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-gray-800);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s;
  min-width: 80px;
  text-align: center;
}
.dashboard-ql-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(109,93,216,0.12);
  transform: translateY(-2px);
  color: var(--color-primary);
}
.dashboard-ql-icon { font-size: 1.4rem; }

.dashboard-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-gray-200);
  margin-bottom: 1.5rem;
}
.dashboard-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  transition: all 0.2s;
}
.dashboard-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.dashboard-tab:hover:not(.active) { color: var(--color-gray-800); }

.dashboard-tab-content { display: none; }
.dashboard-tab-content.active { display: block; }

/* =============================================
   SETTINGS — НАСТРОЙКИ ПРОФИЛЯ
   ============================================= */

.settings-container {
  max-width: 1100px;
  padding: 1.5rem 0 4rem;
}

.settings-hero {
  padding-bottom: 1.5rem;
}

.settings-tabs {
  display: none;
  gap: 8px;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.settings-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.settings-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.settings-tab-icon { font-size: 1rem; line-height: 1; }

.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: calc(var(--topbar-height, 64px) + 12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.settings-nav-link strong {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-gray-900);
}

.settings-nav-link small {
  display: block;
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 2px;
}

.settings-nav-link:hover {
  background: var(--color-gray-50);
}

.settings-nav-link.active {
  background: rgba(109, 93, 216, 0.08);
  border-color: rgba(109, 93, 216, 0.2);
}

.settings-nav-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.settings-sidebar-card {
  margin-top: 12px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

.settings-sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-500);
  margin-bottom: 10px;
}

.settings-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-status-list li {
  font-size: 12px;
  padding-left: 18px;
  position: relative;
  color: var(--color-gray-700);
}

.settings-status-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-300);
}

.settings-status-list li.ok::before { background: var(--color-success); }
.settings-status-list li.warn::before { background: var(--color-warning); }

.settings-panels { min-width: 0; }

.settings-panel { display: none; }
.settings-panel.active { display: block; animation: settingsFadeIn 0.25s ease; }

@keyframes settingsFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.settings-card { padding: var(--spacing-xl); }

.settings-card-head {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-gray-100);
}

.settings-card-desc {
  margin: 6px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
}

.settings-subtitle {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-gray-900);
}

.settings-form-grid { gap: var(--spacing-md); }

.settings-form .form-group:last-of-type { margin-bottom: 0; }

.settings-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-input-row .form-input { flex: 1; min-width: 200px; }

.form-input-readonly {
  background: var(--color-gray-50);
  color: var(--color-gray-600);
  cursor: not-allowed;
}

.settings-email-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: var(--spacing-lg);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
}

.settings-email-banner p {
  margin: 4px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.settings-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-100);
}

.settings-unsaved {
  font-size: var(--font-size-sm);
  color: var(--color-warning);
  font-weight: 600;
}

.settings-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-password-wrap .form-input {
  padding-right: 48px;
  width: 100%;
}

.settings-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.settings-pw-toggle:hover { opacity: 1; }

.settings-pw-strength { margin-top: 10px; }

.settings-pw-strength-bar {
  height: 4px;
  background: var(--color-gray-200);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.settings-pw-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.2s, background 0.2s;
  background: var(--color-error);
}

.settings-pw-strength-bar span[data-level="medium"] { background: var(--color-warning); }
.settings-pw-strength-bar span[data-level="strong"] { background: var(--color-success); }

.settings-pw-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.settings-pw-rules li {
  font-size: 12px;
  color: var(--color-gray-500);
  padding-left: 16px;
  position: relative;
}

.settings-pw-rules li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--color-gray-400);
}

.settings-pw-rules li.ok {
  color: var(--color-success);
}

.settings-pw-rules li.ok::before {
  content: '✓';
  color: var(--color-success);
}

.settings-match-hint { color: var(--color-success) !important; }
.settings-match-error { color: var(--color-error) !important; }

.settings-totp-active,
.settings-totp-inactive {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.settings-totp-active {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.settings-totp-inactive {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
}

.settings-totp-active p,
.settings-totp-inactive p {
  margin: 8px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.settings-totp-setup {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-100);
}

.settings-totp-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.settings-totp-manual {
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.settings-totp-manual summary { cursor: pointer; }

.settings-totp-manual code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: 12px;
  word-break: break-all;
}

.settings-totp-code-wrap { max-width: 200px; }

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .page-profile .settings-sidebar,
  .page-dashboard .settings-sidebar {
    display: none;
  }

  .page-profile .settings-tabs,
  .page-dashboard .settings-tabs {
    display: flex;
  }
}

@media (max-width: 640px) {
  .settings-form-grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .settings-pw-rules {
    grid-template-columns: 1fr;
  }

  .settings-card {
    padding: var(--spacing-lg);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dashboard-card-wide { grid-column: span 2; }

.profile-dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 12px;
  font-size: var(--font-size-sm);
  margin: 0;
}
.profile-dl dt { color: var(--color-gray-600); font-weight: 500; }
.profile-dl dd { margin: 0; font-weight: 500; color: var(--color-gray-900); }

.security-items { display: flex; flex-direction: column; gap: 12px; }
.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}
.security-item-left { display: flex; align-items: center; gap: 10px; }
.security-item-left div p { font-size: 12px; color: var(--color-gray-600); margin: 2px 0 0; }
.security-icon { font-size: 1.25rem; }

.activity-stats { display: flex; gap: 2rem; }
.activity-stat { text-align: center; }
.activity-stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.activity-stat-label { font-size: 12px; color: var(--color-gray-600); }

.family-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.family-section-header { display: flex; align-items: center; justify-content: space-between; margin: 1.5rem 0 1rem; }
.family-section-header h3 { margin: 0; font-size: 1.1rem; }

.children-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.child-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.child-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.child-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.child-card-body { flex: 1; min-width: 0; }
.child-name { display: block; font-weight: 600; font-size: 0.95rem; }
.child-age { font-size: 12px; color: var(--color-gray-500); margin-left: 6px; }
.child-diagnosis { font-size: 12px; color: var(--color-gray-600); margin: 4px 0 0; }
.child-needs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sn-tag {
  background: var(--color-lilac-100);
  color: var(--color-lilac-800);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 500;
}

.special-needs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sn-checkbox { display: flex; align-items: center; gap: 6px; font-size: var(--font-size-sm); cursor: pointer; }

.dashboard-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dashboard-events-header h3 { margin: 0; }
.dashboard-events-list { display: flex; flex-direction: column; gap: 8px; }
.dashboard-event-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.dashboard-event-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateX(2px); }
.dashboard-event-date {
  min-width: 64px;
  text-align: center;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
}
.dashboard-event-date strong { display: block; font-size: 14px; font-weight: 700; }
.dashboard-event-info { flex: 1; min-width: 0; }
.dashboard-event-info strong { display: block; font-weight: 600; font-size: 0.9rem; }
.dashboard-event-info span { font-size: 12px; color: var(--color-gray-500); }

.dashboard-notice {
  margin-top: var(--spacing-md);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #fff3cd;
  color: #856404;
  font-size: var(--font-size-sm);
}

/* =============================================
   EVENTS PAGE — МЕРОПРИЯТИЯ
   ============================================= */

.page-hero { padding: 3rem 0 2rem; }
.page-hero-kicker {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.events-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}
.events-filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 99px;
  background: var(--color-white);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  transition: all 0.18s;
}
.events-filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.events-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.events-filter-sep { width: 1px; height: 28px; background: var(--color-gray-300); margin: 0 4px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 2rem;
}
.events-skeleton { display: contents; }

.event-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.event-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }

.event-card-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.event-card-cat {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-card-until {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.event-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.event-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.event-card-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.event-card-desc { font-size: var(--font-size-sm); color: var(--color-gray-600); margin: 0; }
.event-card-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--color-gray-600); }
.event-meta-item { display: flex; align-items: center; gap: 4px; }
.event-card-footer { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }

.events-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}

.event-modal-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.event-detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--font-size-sm);
}
.event-detail-row span { color: var(--color-gray-600); min-width: 80px; }
.event-modal-desc { font-size: var(--font-size-sm); line-height: 1.7; color: var(--color-gray-800); }

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */

#cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#cookie-banner.cookie-banner-show { bottom: 0; }
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto 16px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-icon { font-size: 1.5rem; flex-shrink: 0; }
.cookie-banner-inner p { flex: 1; font-size: var(--font-size-sm); color: var(--color-gray-700); margin: 0; }
.cookie-banner-inner p a { color: var(--color-primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* =============================================
   TOUR TOOLTIPS
   ============================================= */

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  pointer-events: none;
}
.tour-highlight {
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
  z-index: 9001;
  pointer-events: none;
}
.tour-tooltip {
  position: absolute;
  z-index: 9002;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  max-width: 340px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  font-size: var(--font-size-sm);
}
.tour-tooltip p { margin: 0 0 12px; font-size: 0.95rem; color: var(--color-gray-800); }
.tour-tooltip-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gray-300);
  display: block;
}
.tour-dots span.active { background: var(--color-primary); }

/* =============================================
   NEWS ARTICLE IMPROVEMENTS
   ============================================= */

.news-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.news-article-main { min-width: 0; }
.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--color-lilac-50);
  transition: background 0.2s;
}
.news-article-back:hover { background: var(--color-lilac-100); }

.news-article-header { margin-bottom: 1.5rem; }
.news-article-category {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.news-article-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-gray-900);
}
.news-article-meta {
  display: flex;
  gap: 16px;
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  flex-wrap: wrap;
  align-items: center;
}

.news-article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
  padding: 12px 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
}
.news-like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 2px solid var(--color-gray-300);
  border-radius: 99px;
  background: var(--color-white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-600);
  transition: all 0.2s;
}
.news-like-btn:hover { border-color: #ef4444; color: #ef4444; }
.news-like-btn.liked { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
.news-like-icon { font-size: 1.1rem; transition: transform 0.2s; }
.news-like-btn.liked .news-like-icon { transform: scale(1.2); }
.news-like-count { font-weight: 700; }
.news-like-hint { font-size: var(--font-size-sm); color: var(--color-gray-500); margin: 0; }
.news-like-hint a { color: var(--color-primary); text-decoration: underline; }

.news-article-hero-img {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
}
.news-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-800);
}

/* ─── Chat-стиль комментариев (Telegram-like) ─── */
.news-comments {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-gray-200);
}
.news-comments-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.chat-window {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  min-height: 80px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  scroll-behavior: smooth;
}

.chat-empty {
  text-align: center;
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
  padding: 1.5rem 0;
  margin: 0;
}

/* Строка сообщения */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 78%;
}
.chat-msg-other { align-self: flex-start; }
.chat-msg-self  { align-self: flex-end; flex-direction: row-reverse; }

/* Аватар */
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

/* Обёртка пузыря */
.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.chat-msg-self .chat-bubble-wrap { align-items: flex-end; }

/* Имя автора */
.chat-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  padding-left: 4px;
}

/* Пузырь */
.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
  max-width: 100%;
}
.chat-msg-other .chat-bubble {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-bottom-left-radius: 4px;
  color: var(--color-gray-800);
}
.chat-msg-self .chat-bubble {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble p { margin: 0; }

/* Значок модерации */
.chat-pending-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: rgba(245,158,11,0.15);
  color: #b45309;
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 99px;
  padding: 1px 7px;
  margin-top: 4px;
}
.chat-msg-self .chat-pending-badge {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}

/* Время */
.chat-time {
  font-size: 10px;
  color: var(--color-gray-400);
  padding: 0 4px;
}

/* Полупрозрачность для ожидающих */
.chat-msg-pending .chat-bubble { opacity: 0.85; }

/* Строка ввода */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-gray-300);
  border-radius: 99px;
  padding: 6px 8px 6px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(109,93,216,0.12);
}
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--color-gray-800);
  min-width: 0;
}
.chat-input::placeholder { color: var(--color-gray-400); }
.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.chat-send-btn:hover { background: var(--color-primary-dark, #5a4cc0); }
.chat-send-btn:active { transform: scale(0.92); }
.chat-send-btn .icon { width: 16px; height: 16px; }

/* Sidebar */
.news-article-sidebar { position: sticky; top: calc(var(--topbar-height, 64px) + 1rem); }
.news-sidebar-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.news-sidebar-list { display: flex; flex-direction: column; gap: 12px; }
.news-sidebar-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.2s;
  padding: 8px;
}
.news-sidebar-item:hover { background: var(--color-gray-50); }
.news-sidebar-item-img {
  width: 72px;
  height: 60px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.news-sidebar-item-content { min-width: 0; flex: 1; }
.news-sidebar-item-cat {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.news-sidebar-item-title { font-size: 0.8rem; font-weight: 600; line-height: 1.3; display: block; margin-bottom: 2px; }
.news-sidebar-item-excerpt { font-size: 11px; color: var(--color-gray-500); margin: 0; }

/* ─── Event Detail Page ─── */
.event-detail-hero {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-gray-100);
}
.event-detail-hero.no-image {
  height: 120px;
}
.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}
.event-detail-main { min-width: 0; }
.event-detail-badges { margin-bottom: 1.2rem; }
.event-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 4px;
}
.event-detail-back:hover { text-decoration: underline; }
.event-detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  color: var(--color-gray-900);
}
.event-detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}
.event-detail-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-gray-700);
  line-height: 1.4;
}
.event-detail-meta-row strong { color: var(--color-gray-900); }
.event-detail-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-800);
}
.event-detail-description p { margin: 0 0 1rem; }

/* Sidebar: карточка регистрации */
.event-detail-sidebar {
  position: sticky;
  top: calc(var(--topbar-height, 64px) + 1.5rem);
}
.event-reg-card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.event-reg-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.event-reg-note {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.event-reg-note a { color: var(--color-primary); }
.event-reg-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.event-reg-status-ok {
  background: rgba(16,185,129,0.1);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.3);
}
.event-reg-status-closed {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-300);
}

@media (max-width: 900px) {
  .event-detail-layout { grid-template-columns: 1fr; }
  .event-detail-sidebar { position: static; }
  .event-detail-hero { height: 220px; }
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-gray-600);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; margin: 0 0 8px; }
.empty-state p { font-size: var(--font-size-sm); margin: 0; }

/* =============================================
   RESPONSIVE DASHBOARD / EVENTS
   ============================================= */

@media (max-width: 768px) {
  .dashboard-hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .dashboard-hero-actions { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card-wide { grid-column: span 1; }
  .news-article-layout { grid-template-columns: 1fr; }
  .news-article-sidebar { position: static; }
  .news-article-hero-img { height: 240px; }
  .events-grid { grid-template-columns: 1fr; }
  .profile-dl { grid-template-columns: 120px 1fr; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* =============================================
   ГЛОБАЛЬНЫЙ ПОИСК
   ============================================= */

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
}

.topbar-search-input {
  width: 180px;
  height: 34px;
  padding: 0 34px 0 11px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(139, 92, 246, 0.05);
  font-size: var(--font-size-sm);
  color: var(--color-gray-800);
  outline: none;
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.topbar-search-input::placeholder { color: var(--color-gray-500); }

.topbar-search-input:focus {
  width: 230px;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

.topbar-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-gray-500);
  pointer-events: none;
}

.topbar-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 340px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  z-index: 9999;
  overflow: hidden;
  display: none;
}

.topbar-search-dropdown.open { display: block; }

.search-dropdown-header {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gray-500);
  border-bottom: 1px solid var(--color-gray-100);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.search-result-item:hover { background: var(--color-gray-50); }

.search-result-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-gray-100);
}

.search-result-img-placeholder {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.search-result-body { flex: 1; min-width: 0; }

.search-result-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-subtitle {
  font-size: 12px;
  color: var(--color-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.search-result-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 600;
  flex-shrink: 0;
}

.search-badge-news { background: #dbeafe; color: #1d4ed8; }
.search-badge-event { background: #dcfce7; color: #166534; }
.search-badge-project { background: #fef3c7; color: #92400e; }

.search-dropdown-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

.search-dropdown-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--color-gray-100);
  text-align: center;
  font-size: 12px;
}

.search-dropdown-footer a {
  color: var(--color-lilac-600);
  text-decoration: none;
  font-weight: 500;
}

.search-dropdown-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .topbar-search { display: none; }
}

.search-result-item--full {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  padding: 14px 16px;
}

.search-result-item--full:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
}

.search-result-item--full .search-result-img,
.search-result-item--full .search-result-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
}

.search-filter-btn {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-200);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.search-filter-btn:hover {
  background: var(--color-gray-200);
}

.search-filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* =============================================
   УВЕДОМЛЕНИЯ
   ============================================= */

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 1300;
}

.notif-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  transition: background 0.15s, color 0.15s;
}

.notif-bell-btn:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 1400;
  overflow: hidden;
  display: none;
}

.notif-dropdown.open { display: block; }

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-gray-100);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-gray-900);
}

.notif-mark-all {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--color-lilac-600);
  font-weight: 500;
}

.notif-mark-all:hover { text-decoration: underline; }

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
}

.notif-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-gray-400);
  font-size: var(--font-size-sm);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-gray-50);
  transition: background 0.12s;
  position: relative;
}

.notif-item:hover { background: var(--color-gray-50); }

.notif-item--unread {
  background: rgba(109, 93, 216, 0.04);
}

.notif-item--unread::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-lilac-600);
}

.notif-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-item-body { flex: 1; min-width: 0; }

.notif-item-title {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-gray-900);
  margin-bottom: 2px;
}

.notif-item-msg {
  font-size: 12px;
  color: var(--color-gray-600);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-item-time {
  font-size: 11px;
  color: var(--color-gray-400);
  margin-top: 3px;
}

.notif-item-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-gray-400);
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.1s;
}

.notif-item:hover .notif-item-del { opacity: 1; }
.notif-item-del:hover { color: #e53e3e; }

/* =============================================
   СЧЁТЧИК МЕСТ
   ============================================= */

.seats-bar {
  height: 6px;
  background: var(--color-gray-200);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.seats-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.seats-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.seats-chip-bar {
  flex: 1;
  height: 5px;
  background: var(--color-gray-200);
  border-radius: 99px;
  overflow: hidden;
  max-width: 120px;
}

.seats-chip-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* =============================================
   ПАГИНАЦИЯ (admin)
   ============================================= */

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  flex-wrap: wrap;
}

/* =============================================
   QUILL EDITOR (admin)
   ============================================= */

.ql-toolbar.ql-snow {
  border-color: var(--color-gray-300) !important;
  border-radius: 8px 8px 0 0 !important;
  background: var(--color-gray-50) !important;
  font-family: 'Inter', sans-serif !important;
}

.ql-container.ql-snow {
  border-color: var(--color-gray-300) !important;
  border-radius: 0 0 8px 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
}

.ql-editor {
  min-height: 160px;
  color: var(--color-gray-900);
  line-height: 1.6;
}

.ql-editor.ql-blank::before {
  color: var(--color-gray-400) !important;
  font-style: normal !important;
}

/* =============================================
   TOAST УВЕДОМЛЕНИЯ
   ============================================= */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 360px;
  width: calc(100vw - 48px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  pointer-events: all;
  animation: toastIn 0.3s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
  border-left: 4px solid transparent;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-gray-900);
}

.toast-success { border-left-color: #22c55e; }
.toast-error   { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info    { border-left-color: #6C63FF; }

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.toast-success .toast-icon { background: #22c55e; }
.toast-error   .toast-icon { background: #ef4444; }
.toast-warning .toast-icon { background: #f59e0b; }
.toast-info    .toast-icon { background: #6C63FF; }

.toast-msg {
  flex: 1;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray-500);
  padding: 0 0 0 4px;
  transition: color 0.15s;
  margin-top: -2px;
}
.toast-close:hover { color: var(--color-gray-900); }

.toast-out {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0)    scale(1); }
  to   { opacity: 0; transform: translateX(40px) scale(0.95); }
}

@media (max-width: 480px) {
  #toast-container {
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

/* =============================================
   КАРТЫ / МЕРОПРИЯТИЯ
   ============================================= */
.event-admin-map {
  height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  background: var(--color-gray-100);
}
.event-map-block {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
}
.event-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.event-map-address {
  color: var(--color-gray-600);
  margin: 0 0 1rem;
  font-size: var(--font-size-sm);
}
.event-map-frame-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  margin-bottom: 0.75rem;
  background: var(--color-gray-100);
}
.event-map-leaflet-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
}
.event-map-leaflet {
  width: 100%;
  background: var(--color-gray-100);
  z-index: 0;
}
.event-map-view { margin-bottom: 0.75rem; }
.event-map-fallback-msg {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--color-gray-600);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}
.event-map-static {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
}
.event-map-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.contacts-map-frame {
  min-height: 280px;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
}
.contacts-map-frame .event-map-view { margin-bottom: 0; }
.contacts-map-frame .event-map-embed {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.contacts-map-frame .event-map-links {
  padding: 0.75rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}
.contacts-map-frame .event-map-frame { height: 280px; }
.event-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   ПАРТНЁРСТВО — Gege Studio + Stripe Checkout
   ============================================= */
body.page-partnership-stripe,
body.page-volunteer-stripe {
  --stripe-blurple: #635bff;
  --stripe-blurple-hover: #5851db;
  --stripe-blurple-light: rgba(99, 91, 255, 0.12);
  --stripe-navy: #0a2540;
  --stripe-text: #30313d;
  --stripe-text-muted: #697386;
  --stripe-border: #e6ebf1;
  --stripe-bg: #f6f9fc;
  --stripe-input-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(18, 42, 66, 0.02);
  --stripe-focus-ring: 0 0 0 3px rgba(99, 91, 255, 0.25);
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--stripe-bg);
  color: var(--stripe-text);
  min-height: 100vh;
}

body.page-partnership-stripe .topbar,
body.page-volunteer-stripe .topbar { display: none; }

.partner-checkout {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  min-height: 100vh;
}

.partner-checkout__aside {
  background: linear-gradient(165deg, #0a2540 0%, #1a365d 45%, #243b53 100%);
  color: #fff;
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.partner-checkout__aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 20% 0%, rgba(99, 91, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(109, 93, 216, 0.2), transparent 50%);
  pointer-events: none;
}

.partner-checkout__aside > * { position: relative; z-index: 1; }

.partner-checkout__hero { margin-bottom: 2rem; }

.partner-checkout__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.partner-checkout__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.partner-aside-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}

.partner-aside-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.55;
  transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.partner-aside-step--active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.partner-aside-step--done { opacity: 0.75; }

.partner-aside-step__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  padding-top: 2px;
}

.partner-aside-step--active .partner-aside-step__num { color: #a5b4fc; }

.partner-aside-step strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.partner-aside-step p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.partner-checkout__benefits { margin-top: auto; }

.partner-checkout__aside-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.partner-checkout__aside-foot a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.partner-checkout__aside-foot a:hover { text-decoration: underline; }

.partner-checkout__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  text-decoration: none;
}

.partner-checkout__link:hover { text-decoration: underline; }

.partner-checkout__main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  overflow-y: auto;
}

.partner-form-wrap {
  width: 100%;
  max-width: 520px;
}

.partner-progress { margin-bottom: 1.75rem; }

.partner-form .reg-viewport { min-height: 340px; }

.partner-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.partner-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  text-align: left;
  border: 1.5px solid var(--stripe-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--stripe-input-shadow);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.partner-type-card:hover {
  border-color: #c4cdd5;
  transform: translateY(-2px);
}

.partner-type-card--active {
  border-color: var(--stripe-blurple);
  background: var(--stripe-blurple-light);
  box-shadow: var(--stripe-focus-ring), var(--stripe-input-shadow);
}

.partner-type-card--other {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.partner-type-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--stripe-blurple-light);
  color: var(--stripe-blurple);
  margin-bottom: 4px;
}

.partner-type-card__icon .icon { width: 18px; height: 18px; }

.partner-type-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--stripe-text);
}

.partner-type-card__desc {
  font-size: 12px;
  color: var(--stripe-text-muted);
  line-height: 1.35;
}

.partner-type-error { margin-top: 0.75rem; }

.partner-summary {
  padding: 14px 16px;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: var(--stripe-bg);
  border: 1px solid var(--stripe-border);
}

.partner-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--stripe-border);
}

.partner-summary__row:last-child { border-bottom: none; }

.partner-summary__row span { color: var(--stripe-text-muted); }

.partner-summary__row strong {
  font-weight: 600;
  color: var(--stripe-text);
  text-align: right;
}

.stripe-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.stripe-input--error {
  border-color: #df1b41 !important;
  box-shadow: 0 0 0 3px rgba(223, 27, 65, 0.15), var(--stripe-input-shadow) !important;
}

.partner-field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #df1b41;
}

.partner-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

.partner-nav__back {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--stripe-text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.partner-nav__back:hover {
  color: var(--stripe-text);
  background: rgba(0, 0, 0, 0.04);
}

.partner-nav__next {
  margin-left: auto;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--stripe-blurple);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 2px 5px rgba(50, 50, 93, 0.12);
}

.partner-nav__next:hover {
  background: var(--stripe-blurple-hover);
}

.partner-nav .stripe-pay-btn {
  margin-left: auto;
  width: auto;
  flex: 1;
  max-width: 100%;
}

.partner-success {
  text-align: center;
  padding: 2rem 0 1rem;
  animation: homeHelpReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.partner-success__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: regHeroPulse 3s ease-in-out infinite;
}

.partner-success h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--stripe-text);
}

.partner-success p {
  margin: 0 auto;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--stripe-text-muted);
}

.partner-success__btn {
  display: inline-flex;
  margin-top: 1.75rem;
  width: auto;
  min-width: 200px;
  text-decoration: none;
}

.partner-success__link {
  display: block;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .partner-checkout {
    grid-template-columns: 1fr;
  }

  .partner-checkout__aside {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .partner-aside-steps { display: none; }

  .partner-checkout__benefits { margin-top: 1.25rem; }

  .partner-checkout__main {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .stripe-field-row {
    grid-template-columns: 1fr;
  }

  .partner-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-aside-step,
  .partner-type-card,
  .partner-success__icon {
    transition: none;
    animation: none;
  }
}

/* =============================================
   ПОЖЕРТВОВАНИЯ — Stripe Checkout style
   ============================================= */
body.page-donate-stripe {
  --stripe-blurple: #635bff;
  --stripe-blurple-hover: #5851db;
  --stripe-blurple-light: rgba(99, 91, 255, 0.12);
  --stripe-navy: #0a2540;
  --stripe-navy-mid: #1a365d;
  --stripe-text: #30313d;
  --stripe-text-muted: #697386;
  --stripe-border: #e6ebf1;
  --stripe-bg: #f6f9fc;
  --stripe-input-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 6px rgba(18, 42, 66, 0.02);
  --stripe-focus-ring: 0 0 0 3px rgba(99, 91, 255, 0.25);
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--stripe-bg);
  color: var(--stripe-text);
  min-height: 100vh;
}

body.page-donate-stripe .topbar { display: none; }

.stripe-checkout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  min-height: 100vh;
}

/* —— Summary (left) —— */
.stripe-checkout__summary {
  background: linear-gradient(165deg, #0a2540 0%, #1a365d 45%, #243b53 100%);
  color: #fff;
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.stripe-checkout__summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 20% 0%, rgba(99, 91, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 91, 255, 0.15), transparent 50%);
  pointer-events: none;
}
.stripe-checkout__summary > * { position: relative; z-index: 1; }

.stripe-checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.stripe-checkout__back:hover { color: #fff; }

.stripe-checkout__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.stripe-checkout__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}
.stripe-checkout__org {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stripe-checkout__org-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.stripe-checkout__price-block { margin-bottom: 1.75rem; }
.stripe-checkout__price {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stripe-checkout__price-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0;
}

.stripe-checkout__line-items {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  margin-bottom: 2rem;
}
.stripe-checkout__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.9);
}
.stripe-checkout__line--muted {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.stripe-checkout__line--total {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  font-weight: 600;
  font-size: 15px;
}

.stripe-checkout__impact {
  flex: 1;
  margin-top: auto;
}
.stripe-checkout__impact-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}
.stripe-checkout__impact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stripe-checkout__impact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.6rem;
}
.stripe-impact-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stripe-blurple);
  margin-top: 7px;
}

.stripe-checkout__footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* —— Form (right) —— */
.stripe-checkout__main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  background: #fff;
}
.stripe-checkout__form-wrap {
  width: 100%;
  max-width: 440px;
}

.stripe-segment {
  display: flex;
  background: var(--stripe-bg);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 1.75rem;
  border: 1px solid var(--stripe-border);
}
.stripe-segment__btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--stripe-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.stripe-segment__btn.active {
  background: #fff;
  color: var(--stripe-text);
  box-shadow: 0 1px 3px rgba(18, 42, 66, 0.08), 0 1px 2px rgba(18, 42, 66, 0.04);
}
.stripe-segment__btn:hover:not(.active) { color: var(--stripe-text); }

.pay-panel { display: none; }
.pay-panel.active { display: block; }

.stripe-form { margin: 0; }
.stripe-fieldset {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.stripe-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--stripe-text);
  margin-bottom: 0.85rem;
  padding: 0;
  letter-spacing: -0.01em;
}

.stripe-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}
.stripe-amount-pill {
  padding: 11px 8px;
  border: 1px solid var(--stripe-border);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--stripe-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, color 0.15s;
  font-family: inherit;
  box-shadow: var(--stripe-input-shadow);
}
.stripe-amount-pill:hover {
  border-color: #c4cdd5;
}
.stripe-amount-pill.active {
  border-color: var(--stripe-blurple);
  background: var(--stripe-blurple-light);
  color: var(--stripe-blurple);
  box-shadow: var(--stripe-focus-ring), var(--stripe-input-shadow);
}

.stripe-field { margin-bottom: 1rem; }
.stripe-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stripe-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--stripe-text);
  margin-bottom: 6px;
}
.stripe-label-opt {
  font-weight: 400;
  color: var(--stripe-text-muted);
}
.stripe-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.stripe-input {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--stripe-text);
  background: #fff;
  border: 1px solid var(--stripe-border);
  border-radius: 6px;
  box-shadow: var(--stripe-input-shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
}
.stripe-input-wrap .stripe-input { padding-right: 36px; }
.stripe-input-suffix {
  position: absolute;
  right: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--stripe-text-muted);
  pointer-events: none;
}
.stripe-input::placeholder { color: #a3acb9; }
.stripe-input:hover { border-color: #c4cdd5; }
.stripe-input:focus {
  border-color: var(--stripe-blurple);
  box-shadow: var(--stripe-focus-ring), var(--stripe-input-shadow);
}
.stripe-input--readonly {
  background: var(--stripe-bg);
  color: var(--stripe-text-muted);
  cursor: default;
}
.stripe-input--readonly:hover,
.stripe-input--readonly:focus {
  border-color: var(--stripe-border);
  box-shadow: var(--stripe-input-shadow);
}
.stripe-select { cursor: pointer; }
.stripe-hint {
  font-size: 12px;
  color: var(--stripe-text-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

.stripe-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0.5rem 0 0;
  user-select: none;
}
.stripe-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.stripe-checkbox__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--stripe-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--stripe-input-shadow);
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.stripe-checkbox input:checked + .stripe-checkbox__box {
  background: var(--stripe-blurple);
  border-color: var(--stripe-blurple);
}
.stripe-checkbox input:checked + .stripe-checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.stripe-checkbox input:focus-visible + .stripe-checkbox__box {
  box-shadow: var(--stripe-focus-ring);
}
.stripe-checkbox__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--stripe-text);
}
.stripe-checkbox__text a {
  color: var(--stripe-blurple);
  text-decoration: none;
}
.stripe-checkbox__text a:hover { text-decoration: underline; }
.stripe-checkbox--consent {
  margin-top: 1rem;
  padding: 12px;
  background: var(--stripe-bg);
  border-radius: 8px;
  border: 1px solid var(--stripe-border);
}

.stripe-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  margin-top: 0.5rem;
  background: var(--stripe-blurple);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 2px 5px rgba(50, 50, 93, 0.12);
}
.stripe-pay-btn:hover:not(:disabled) {
  background: var(--stripe-blurple-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(50, 50, 93, 0.15);
}
.stripe-pay-btn:active:not(:disabled) { transform: scale(0.99); }
.stripe-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.stripe-pay-btn__amount {
  opacity: 0.85;
  font-weight: 500;
}

.stripe-powered {
  text-align: center;
  font-size: 12px;
  color: var(--stripe-text-muted);
  margin-top: 1.25rem;
}
.stripe-powered strong {
  color: var(--stripe-text);
  font-weight: 600;
}

.stripe-card-brands {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.stripe-card-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--stripe-text-muted);
  padding: 4px 8px;
  border: 1px solid var(--stripe-border);
  border-radius: 4px;
  background: #fff;
}

/* QR / requisites panel */
.stripe-alt-panel { padding-top: 0.25rem; }
.stripe-alt-lead {
  font-size: 14px;
  color: var(--stripe-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.stripe-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed var(--stripe-border);
  border-radius: 8px;
  background: var(--stripe-bg);
  color: var(--stripe-text-muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
}
.stripe-qr-box img#donate-qr-img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.12);
}
.stripe-requisites {
  border: 1px solid var(--stripe-border);
  border-radius: 8px;
  overflow: hidden;
}
.stripe-requisites__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stripe-text-muted);
  padding: 12px 16px;
  background: var(--stripe-bg);
  border-bottom: 1px solid var(--stripe-border);
}
.stripe-requisites-table {
  width: 100%;
  border-collapse: collapse;
}
.stripe-requisites-table td {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--stripe-border);
  vertical-align: top;
}
.stripe-requisites-table tr:last-child td { border-bottom: none; }
.stripe-requisites-table td:first-child {
  color: var(--stripe-text-muted);
  width: 38%;
  font-weight: 500;
}
.stripe-copy-btn {
  background: none;
  border: 1px solid var(--stripe-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--stripe-blurple);
  cursor: pointer;
  margin-left: 6px;
  font-family: inherit;
  transition: background 0.15s;
}
.stripe-copy-btn:hover { background: var(--stripe-blurple-light); }

body.page-donate-stripe .form-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #df1b41;
  margin-bottom: 1rem;
  text-align: left;
}

@media (max-width: 900px) {
  .stripe-checkout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .stripe-checkout__summary {
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .stripe-checkout__brand { margin-bottom: 1.5rem; }
  .stripe-checkout__price-block { margin-bottom: 1.25rem; }
  .stripe-checkout__line-items { margin-bottom: 1.25rem; }
  .stripe-checkout__impact { margin-top: 0; }
  .stripe-checkout__footer-note { margin-top: 1.25rem; }
  .stripe-checkout__main { padding: 1.5rem 1.25rem 2.5rem; }
  .stripe-field-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .stripe-amount-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   SETUP WIZARD
   ============================================= */
body.page-setup {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, #0f1328 0%, #1a2142 50%, #2a1f5e 100%);
  font-family: Inter, sans-serif;
  color: #fff;
}
.setup-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.setup-header { text-align: center; margin-bottom: 2rem; }
.setup-logo { font-size: 1.5rem; font-weight: 700; }
.setup-sub { font-size: 0.85rem; opacity: 0.65; margin: 0.35rem 0 0; }
.setup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
}
.setup-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.setup-step-dot.active { border-color: #635bff; background: #635bff; color: #fff; }
.setup-step-dot.done { border-color: #22c55e; background: #22c55e; color: #fff; }
.setup-step-line { width: 40px; height: 2px; background: rgba(255,255,255,0.15); }
.setup-panel { display: none; }
.setup-panel.active { display: block; }
.setup-panel h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.setup-lead { font-size: 0.9rem; opacity: 0.75; margin: 0 0 1.5rem; line-height: 1.5; }
.setup-form .form-group { margin-bottom: 1rem; }
.setup-form label { display: block; font-size: 0.82rem; margin-bottom: 0.35rem; opacity: 0.85; }
.setup-form .form-input, .setup-form .form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
}
.setup-btn { margin-top: 0.5rem; }
.setup-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 1rem; line-height: 2; }
.setup-hint { font-size: 0.82rem; opacity: 0.7; margin-bottom: 1.25rem; }
.setup-alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.88rem; }
.setup-alert--error { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); }
.setup-modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

/* =============================================
   КОНТАКТЫ
   ============================================= */
body.page-contacts .contacts-hero {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  padding: 3rem 0 2rem;
  text-align: center;
}
body.page-contacts .contacts-hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
body.page-contacts .contacts-hero p {
  color: var(--color-gray-600);
  max-width: 520px;
  margin: 0 auto;
}
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.contacts-info-grid {
  display: grid;
  gap: 0.75rem;
}
.contacts-info-item {
  display: flex;
  gap: 14px;
  padding: 1rem 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}
.contacts-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(109,93,216,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.contacts-info-item strong { display: block; font-size: var(--font-size-sm); margin-bottom: 2px; }
.contacts-info-item p, .contacts-info-item a {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray-600);
}
.contacts-form-card { padding: var(--spacing-xl); }
.contacts-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.contacts-help-card {
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}
.contacts-help-card h3 { font-size: var(--font-size-base); margin-bottom: 0.5rem; }
.contacts-help-card p { font-size: 13px; color: var(--color-gray-600); margin: 0 0 0.75rem; }

/* =============================================
   ЛИЧНЫЙ КАБИНЕТ (sidebar layout)
   ============================================= */
body.page-dashboard .dashboard-layout {
  align-items: start;
}

body.page-dashboard .dashboard-sidebar {
  position: sticky;
  top: calc(var(--topbar-height, 64px) + 12px);
}

body.page-dashboard .dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-dashboard .settings-nav-icon .icon {
  width: 18px;
  height: 18px;
}

body.page-dashboard .dashboard-container { padding-bottom: 3rem; }

body.page-dashboard .dashboard-panel-head {
  margin-bottom: 1.25rem;
}

body.page-dashboard .dashboard-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-gray-900);
}

body.page-dashboard .dashboard-panel-desc {
  margin: 0;
  font-size: 13px;
  color: var(--color-gray-600);
}

body.page-dashboard .dashboard-events-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.page-dashboard .dashboard-panels .settings-panel {
  animation: settingsFadeIn 0.2s ease;
}

.dashboard-sidebar-card {
  margin-top: 12px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}
.dashboard-quick-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dashboard-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.dashboard-quick-link:hover { background: var(--color-gray-50); }
.dashboard-reg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dashboard-reg-item:hover {
  border-color: rgba(109,93,216,0.35);
  box-shadow: 0 4px 16px rgba(109,93,216,0.08);
}

@media (max-width: 960px) {
  .donate-layout, .contacts-layout { grid-template-columns: 1fr; }
  .contacts-help-grid { grid-template-columns: 1fr; }
  .donate-side { order: -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .donate-side { grid-template-columns: 1fr; }
  body.page-dashboard .dashboard-layout { grid-template-columns: 1fr; }
  body.page-dashboard .dashboard-sidebar { position: static; }
  body.page-dashboard .dashboard-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  body.page-dashboard .settings-nav-link {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
  }
  body.page-dashboard .dashboard-sidebar-card:last-child { display: none; }
}

/* ─── Auth page (Cursor / WorkOS style) ─── */
body.page-auth {
  margin: 0;
  min-height: 100vh;
  background: #f6f8fb;
  font-family: Inter, system-ui, sans-serif;
}

body.page-auth .balloons-container,
body.page-auth .topbar {
  display: none !important;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-shell__aside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #050508;
  color: #f8fafc;
  overflow: hidden;
}

.auth-orb-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050508;
}

.auth-orb-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.auth-orb-canvas--fallback {
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.24) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--auth-accent, #6366f1) 42%, transparent) 0%, transparent 36%),
    radial-gradient(ellipse 90% 16% at 50% 62%, rgba(0, 0, 0, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(20, 24, 48, 0.55) 0%, transparent 65%),
    #050508;
}

.auth-orb-logo {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: authOrbLogoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.38));
  pointer-events: auto;
}

.auth-orb-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.auth-orb-logo__img {
  width: clamp(64px, 13vw, 84px);
  height: clamp(64px, 13vw, 84px);
  border-radius: 24%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 28px rgba(0, 0, 0, 0.4),
    0 0 48px color-mix(in srgb, var(--auth-accent, #6366f1) 28%, transparent);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.auth-orb-logo:hover .auth-orb-logo__img {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 36px rgba(0, 0, 0, 0.48),
    0 0 64px color-mix(in srgb, var(--auth-accent, #6366f1) 38%, transparent);
}

@keyframes authOrbLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb-logo { animation: none; }
}

.auth-shell__logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.5rem;
}

.auth-shell__logo {
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.auth-shell__org {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-shell__tagline {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.78);
  margin: 0 0 2rem;
}

.auth-shell__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-shell__features--cards {
  gap: 10px;
}

.auth-shell__features--cards li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.875rem;
  padding-left: 14px;
}

.auth-shell__features--cards li::before {
  display: none;
}

.auth-feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1;
}

.auth-shell__features li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(248, 250, 252, 0.85);
  font-size: 0.95rem;
}

.auth-shell__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-accent, #818cf8);
}

.auth-aside-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  justify-content: center;
}

.auth-aside-pill {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-shell__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
}

.auth-shell__back {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
}

.auth-shell__back:hover { color: #0f172a; }

.auth-shell__legal {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.auth-card--modern {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__mark { display: none; }

.auth-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.auth-card__lead {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-idp-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.auth-idp-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.auth-idp-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.auth-idp-btn--vk { border-color: #0077ff33; }
.auth-idp-btn--vk .auth-idp-btn__icon { color: #0077ff; }

.auth-idp-btn__icon--max {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-idp-btn__badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-form-modern .form-group { margin-bottom: 1rem; }

.smart-captcha-wrap {
  margin: 0.75rem 0;
}
.smart-captcha-wrap:empty {
  display: none;
  margin: 0;
}

.auth-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.35rem;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.auth-field-link {
  font-size: 0.8125rem;
  color: #6366f1;
  text-decoration: none;
}

.auth-field-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-field-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.auth-submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.auth-submit-btn:hover:not(:disabled) { background: #1e293b; }
.auth-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.auth-field-link--block {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.auth-account-found {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: authAccountFoundIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes authAccountFoundIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-account-found__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #fc3f1d 0%, #ff6b4a 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(252, 63, 29, 0.25);
  overflow: hidden;
}

.auth-account-found__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-account-found__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.3;
}

.auth-account-found__name {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.auth-account-found__email {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-account-found__switch {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  text-decoration: none;
}

.auth-account-found__switch:hover {
  text-decoration: underline;
}

.auth-card--confirm .auth-card__header { display: none; }
.auth-card--confirm .auth-card__footer { margin-top: 1.25rem; }

.auth-card__footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-card__footer a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-shell__aside { display: none; }
  .auth-card__mark {
    display: inline-block;
    margin-bottom: 0.75rem;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .auth-card--modern {
    padding: 1.5rem 1.25rem;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  body.page-auth { background: #fff; }
}

/* ─── Register wizard (Gege Studio–style) ─── */
.page-register .reg-wizard-card {
  max-width: 440px;
  overflow: hidden;
}

.reg-progress {
  margin-bottom: 1.5rem;
}

.reg-progress__track {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.reg-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reg-progress__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.reg-viewport {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.reg-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: none;
}

.reg-step--active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.reg-step--exit-left {
  animation: regExitLeft 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.reg-step--exit-right {
  animation: regExitRight 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.reg-step--enter-right {
  animation: regEnterRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}

.reg-step--enter-left {
  animation: regEnterLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}

@keyframes regExitLeft {
  to { opacity: 0; transform: translateX(-28px); }
}

@keyframes regExitRight {
  to { opacity: 0; transform: translateX(28px); }
}

@keyframes regEnterRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes regEnterLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}

.reg-step__head { margin-bottom: 1.25rem; }
.reg-step__head--center { text-align: center; }

.reg-step__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.reg-step__sub {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.reg-hero-icon {
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
  animation: regHeroPulse 3s ease-in-out infinite;
}

.reg-hero-icon img { border-radius: 12px; }

@keyframes regHeroPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15); }
  50% { transform: scale(1.04); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.22); }
}

.reg-stagger {
  opacity: 0;
  transform: translateY(12px);
}

.reg-stagger-run {
  animation: regStaggerIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.07s + 0.05s);
}

@keyframes regStaggerIn {
  to { opacity: 1; transform: translateY(0); }
}

.reg-intro-cta { margin-top: 0.5rem; }

.reg-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.reg-optional {
  font-weight: 400;
  color: #94a3b8;
}

.reg-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #ef4444;
}

.auth-field-input--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.reg-pwd-strength {
  margin-top: 0.5rem;
}

.reg-pwd-strength__bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.reg-pwd-strength__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.35s ease, background 0.35s ease;
}

.reg-pwd-strength__text {
  font-size: 0.7rem;
  color: #64748b;
}

.reg-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.reg-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}

.reg-summary__row:last-child { border-bottom: none; }
.reg-summary__row span { color: #64748b; }
.reg-summary__row strong { color: #0f172a; font-weight: 600; text-align: right; }

.reg-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

.reg-consent input { position: absolute; opacity: 0; pointer-events: none; }

.reg-consent__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  transition: border-color 0.15s, background 0.15s;
}

.reg-consent input:checked + .reg-consent__box {
  background: #6366f1;
  border-color: #6366f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.reg-consent a { color: #6366f1; }

.reg-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.reg-nav__back {
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.reg-nav__back:hover { color: #0f172a; background: #f1f5f9; }

.reg-nav__next,
.reg-nav__submit { flex: 1; margin-top: 0; }

.auth-shell__aside--register { position: relative; overflow: hidden; }

.reg-aside-glow { display: none; }

.reg-aside-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.reg-aside-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  opacity: 0.45;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reg-aside-step--active {
  opacity: 1;
  transform: translateX(0);
}

.reg-aside-step--done { opacity: 0.7; }

.reg-aside-step__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #818cf8;
  min-width: 1.5rem;
}

.reg-aside-step strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.reg-aside-step p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .reg-step--exit-left,
  .reg-step--exit-right,
  .reg-step--enter-right,
  .reg-step--enter-left,
  .reg-stagger-run,
  .reg-hero-icon,
  .reg-aside-glow {
    animation: none !important;
    transition: none !important;
  }
  .reg-stagger { opacity: 1; transform: none; }
}

/* =============================================================
   Версия для слабовидящих
   ============================================================= */

.a11y-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-lg, 10px);
  background: #fff;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.a11y-toggle-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.a11y-toggle-btn--active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.a11y-toggle-btn--auth {
  position: absolute;
  top: 0;
  right: 0;
}

.a11y-toggle-btn--fixed {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10050;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.a11y-toggle-btn__text {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.a11y-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10040;
  background: #111827;
  color: #f9fafb;
  border-bottom: 3px solid #fbbf24;
  font-size: 0.875rem;
}

.a11y-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.a11y-bar__label {
  font-weight: 700;
  white-space: nowrap;
}

.a11y-bar__group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.a11y-bar__group-label {
  color: #d1d5db;
  margin-right: 0.15rem;
}

.a11y-bar__btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 2px solid #6b7280;
  border-radius: 4px;
  background: #1f2937;
  color: #f9fafb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.a11y-bar__btn:hover {
  border-color: #fbbf24;
}

.a11y-bar__btn--active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
}

.a11y-bar__btn--swatch-light { background: #fff; color: #000; }
.a11y-bar__btn--swatch-dark { background: #000; color: #fff; }
.a11y-bar__btn--swatch-blue { background: #9dd1ff; color: #063462; }

.a11y-bar__exit {
  margin-left: auto;
  padding: 0.4rem 0.85rem;
  border: 2px solid #f9fafb;
  border-radius: 4px;
  background: transparent;
  color: #f9fafb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.a11y-bar__exit:hover {
  background: #f9fafb;
  color: #111827;
}

body.a11y-bar-active {
  padding-top: 52px;
}

body.a11y-bar-active .topbar {
  top: 52px;
}

body.a11y-bar-active.page-auth .auth-shell {
  padding-top: 52px;
}

/* Режим для слабовидящих — базовые переопределения */
html.a11y-mode {
  --a11y-font-scale: 1.25;
  font-size: calc(100% * var(--a11y-font-scale, 1.25));
}

html.a11y-mode.a11y-font-lg { --a11y-font-scale: 1.25; }
html.a11y-mode.a11y-font-xl { --a11y-font-scale: 1.5; }

html.a11y-mode:not(.a11y-font-lg):not(.a11y-font-xl) {
  --a11y-font-scale: 1;
}

html.a11y-mode {
  --a11y-bg: #ffffff;
  --a11y-fg: #000000;
  --a11y-link: #0000cc;
  --a11y-border: #000000;
}

html.a11y-mode.a11y-contrast-dark {
  --a11y-bg: #000000;
  --a11y-fg: #ffffff;
  --a11y-link: #ffff00;
  --a11y-border: #ffffff;
}

html.a11y-mode.a11y-contrast-blue {
  --a11y-bg: #9dd1ff;
  --a11y-fg: #063462;
  --a11y-link: #063462;
  --a11y-border: #063462;
}

html.a11y-mode,
html.a11y-mode body {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
}

html.a11y-mode body *:not(.a11y-bar):not(.a11y-bar *):not(.a11y-toggle-btn):not(.a11y-toggle-btn *) {
  text-shadow: none !important;
  box-shadow: none !important;
}

html.a11y-mode .topbar,
html.a11y-mode .topbar-menu,
html.a11y-mode .footer,
html.a11y-mode .auth-card,
html.a11y-mode .card,
html.a11y-mode .dashboard-card,
html.a11y-mode .admin-panel,
html.a11y-mode .page-section,
html.a11y-mode .project-hero,
html.a11y-mode .hero-section {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
  backdrop-filter: none !important;
}

html.a11y-mode h1,
html.a11y-mode h2,
html.a11y-mode h3,
html.a11y-mode h4,
html.a11y-mode h5,
html.a11y-mode h6,
html.a11y-mode p,
html.a11y-mode li,
html.a11y-mode span,
html.a11y-mode label,
html.a11y-mode td,
html.a11y-mode th {
  color: var(--a11y-fg) !important;
}

html.a11y-mode a {
  color: var(--a11y-link) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

html.a11y-mode .btn,
html.a11y-mode button:not(.a11y-bar__btn):not(.a11y-bar__exit):not(.a11y-toggle-btn),
html.a11y-mode .auth-submit-btn,
html.a11y-mode .auth-idp-btn {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
  border: 2px solid var(--a11y-border) !important;
  background-image: none !important;
}

html.a11y-mode .btn:hover,
html.a11y-mode button:not(.a11y-bar__btn):hover {
  outline: 3px solid var(--a11y-link) !important;
  outline-offset: 2px;
}

html.a11y-mode input,
html.a11y-mode textarea,
html.a11y-mode select {
  background: var(--a11y-bg) !important;
  color: var(--a11y-fg) !important;
  border: 2px solid var(--a11y-border) !important;
  font-size: 1rem !important;
}

html.a11y-mode :focus-visible {
  outline: 3px solid var(--a11y-link) !important;
  outline-offset: 2px !important;
}

html.a11y-mode .balloon,
html.a11y-mode .balloons-container,
html.a11y-mode .hero-particles,
html.a11y-mode .hero-particle,
html.a11y-mode .auth-orb-canvas,
html.a11y-mode .project-hero-bg,
html.a11y-mode .project-hero-overlay {
  display: none !important;
}

html.a11y-mode.a11y-images-off img:not(.a11y-toggle-btn__icon):not(.topbar-logo-img):not(.auth-orb-logo__img):not(.auth-card__mark) {
  visibility: hidden !important;
}

html.a11y-mode.a11y-images-off [style*="background-image"] {
  background-image: none !important;
}

html.a11y-mode .topbar {
  border-bottom: 3px solid var(--a11y-border) !important;
  position: sticky;
}

html.a11y-mode .topbar-link.active {
  font-weight: 800 !important;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .a11y-toggle-btn__text { display: none; }
  .a11y-bar__inner { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .a11y-bar__exit { margin-left: 0; width: 100%; text-align: center; }
  body.a11y-bar-active { padding-top: 88px; }
  body.a11y-bar-active .topbar { top: 88px; }
}

/* ── Content pages (about, benefactors, news, events) — see platform v3 block below ── */

body.page-about .card,
body.page-benefactors .benefactor-card--modern {
  border: 1px solid var(--color-gray-100, #f1f5f9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.benefactors-grid--modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.benefactor-card--modern {
  padding: 1.5rem;
  border-radius: var(--radius-xl, 16px);
  background: #fff;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.benefactor-card--modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109, 93, 216, 0.12);
}

.benefactors-loading {
  text-align: center;
  color: var(--color-gray-500);
  padding: 2rem;
}

.family-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-my-regs {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-gray-100);
}

.dashboard-subsection-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-gray-800);
}

.dashboard-reg-item {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-lg, 12px);
  background: var(--color-gray-50, #f8fafc);
  border: 1px solid var(--color-gray-100);
  text-decoration: none;
  color: inherit;
}

.dashboard-reg-item:hover {
  border-color: var(--site-primary, #6d5dd8);
  background: #fff;
}

.dashboard-reg-item span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  margin-top: 0.2rem;
}

.chat-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.news-comments-guest {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  text-align: center;
}

body.page-news .hero-particles,
body.page-about .hero-particles,
body.page-benefactors .balloon { display: none !important; }

/* ── Platform-wide Stripe-like design (v3) ── */
body.page-platform {
  font-family: Inter, var(--font-family);
  background: var(--stripe-bg);
  color: var(--stripe-text);
}

body.page-platform .balloon,
body.page-platform .hero-particles,
body.page-platform .balloons-container { display: none !important; }

body.page-platform .topbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stripe-border);
  box-shadow: 0 1px 2px rgba(18, 42, 66, 0.04);
}

body.page-platform .topbar-inner {
  gap: 0.5rem;
}

body.page-platform .topbar-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  overflow: hidden;
}

body.page-platform .topbar-link {
  color: var(--stripe-text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 8px;
}

body.page-platform .topbar-link:hover:not(.active) {
  color: var(--stripe-navy);
  background: rgba(99, 91, 255, 0.06);
}

body.page-platform .topbar-link.active {
  background: var(--stripe-blurple-light);
  color: var(--stripe-blurple);
  font-weight: 600;
  box-shadow: none;
}

body.page-platform .topbar-link.active:hover {
  background: rgba(99, 91, 255, 0.18);
  color: var(--stripe-blurple-hover);
}

body.page-platform .topbar-actions {
  min-width: 0;
  flex-shrink: 0;
  gap: 4px;
}

body.page-platform .topbar-search-input {
  width: 148px;
  height: 32px;
  border-color: var(--stripe-border);
  background: #fff;
  box-shadow: var(--stripe-input-shadow);
}

body.page-platform .topbar-search-input:focus {
  width: 180px;
  border-color: var(--stripe-blurple);
  box-shadow: var(--stripe-focus-ring);
}

@media (max-width: 1280px) {
  body.page-platform .topbar-link {
    padding: 6px 7px;
    font-size: 0.78rem;
  }
  body.page-platform .topbar-search-input {
    width: 120px;
  }
  body.page-platform .topbar-search-input:focus {
    width: 150px;
  }
}

@media (max-width: 1080px) {
  body.page-platform .topbar-search {
    display: none;
  }
}

body.page-platform .btn-primary {
  background: var(--stripe-blurple);
  border-color: var(--stripe-blurple);
}

body.page-platform .btn-primary:hover {
  background: var(--stripe-blurple-hover);
  border-color: var(--stripe-blurple-hover);
}

body.page-platform .card {
  border: 1px solid var(--stripe-border);
  box-shadow: var(--stripe-input-shadow);
  border-radius: 12px;
}

body.page-platform .section-title {
  background: none;
  -webkit-text-fill-color: var(--stripe-navy);
  color: var(--stripe-navy);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.page-platform .section-subtitle {
  color: var(--stripe-text-muted);
  margin-bottom: var(--spacing-lg);
}

.content-page-hero {
  padding: calc(var(--topbar-height, 64px) + 1.25rem) 0 1.25rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  text-align: center;
  border-bottom: 1px solid var(--stripe-border);
}

.content-page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.5rem;
  color: var(--stripe-navy);
}

.content-page-lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--stripe-text-muted);
  line-height: 1.55;
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stripe-blurple);
  background: var(--stripe-blurple-light);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.content-page-hero--compact { padding-bottom: 0.75rem; }
.content-page-hero--events { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0f2fe 100%); }

body.page-platform .main-content > .section:first-child:not(.content-page-hero) {
  padding-top: calc(var(--topbar-height) + var(--spacing-lg));
}

/* Stripe modal — жалобы на комментарии */
.stripe-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.stripe-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.stripe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
}

.stripe-modal__panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(10, 37, 64, 0.18);
  border: 1px solid var(--stripe-border);
  overflow: hidden;
}

.stripe-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--stripe-border);
}

.stripe-modal__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--stripe-navy);
  letter-spacing: -0.02em;
}

.stripe-modal__close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--stripe-text-muted);
  padding: 0 0.25rem;
}

.stripe-modal__body { padding: 1rem 1.25rem 0; }

.stripe-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--stripe-text-muted);
  line-height: 1.5;
}

.stripe-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
}

.stripe-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stripe-text);
  margin-bottom: 0.35rem;
}

.stripe-field-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--stripe-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  box-shadow: var(--stripe-input-shadow);
  resize: vertical;
}

.stripe-field-input:focus {
  outline: none;
  border-color: var(--stripe-blurple);
  box-shadow: var(--stripe-focus-ring);
}

.report-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.report-category-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--stripe-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}

.report-category-option:has(input:checked) {
  border-color: var(--stripe-blurple);
  background: var(--stripe-blurple-light);
}

.report-category-option input { accent-color: var(--stripe-blurple); }

/* Admin — жалобы */
.admin-report-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  max-width: 120px;
}

.admin-report-cell small {
  color: var(--color-gray-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row-reported {
  background: rgba(244, 67, 54, 0.04);
}

.chat-report-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0.45;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: opacity 0.15s, background 0.15s;
}

.chat-report-btn:hover:not([disabled]) {
  opacity: 1;
  background: rgba(244, 67, 54, 0.08);
}

.chat-report-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}
