/* ============================================
   АКТИВиСТ — Современные стили
   Чистый CSS, без зависимостей
   ============================================ */

/* --- Сброс и базовые стили --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Цвета */
  --color-primary: #0f172a;
  --color-secondary: #2563eb;
  --color-accent: #dc2626;
  --color-success: #16a34a;
  --color-bg: #f1f5f9;
  --color-bg-white: #ffffff;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #475569;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-hover: rgba(0, 0, 0, 0.15);
  --color-overlay: rgba(15, 23, 42, 0.6);

  /* Типографика */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  /* Размеры */
  --container-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  /* Переходы */
  --transition-fast: 0.15s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Тёмная тема */
[data-theme="dark"] {
  --color-primary: #f8fafc;
  --color-secondary: #60a5fa;
  --color-accent: #f87171;
  --color-bg: #0f172a;
  --color-bg-white: #1e293b;
  --color-bg-card: #1e293b;
  --color-text: #e2e8f0;
  --color-text-light: #94a3b8;
  --color-text-muted: #64748b;
  --color-border: #334155;
  --color-border-light: #1e293b;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-shadow-hover: rgba(0, 0, 0, 0.5);
  --color-overlay: rgba(0, 0, 0, 0.7);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Контейнер --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Шапка --- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.85);
  transition: background-color var(--transition);
}

[data-theme="dark"] .site-header {
  background-color: rgba(30, 41, 59, 0.85);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.header-logo .logo-text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(120deg, #1e40af 0%, #2563eb 25%, #60a5fa 50%, #2563eb 75%, #1e40af 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  display: inline-block;
  animation: shineLogo 6s linear infinite;
  transition: opacity var(--transition-fast);
}

.header-logo .logo-text:hover {
  opacity: 0.85;
}

@keyframes shineLogo {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

[data-theme="dark"] .header-logo .logo-text {
  background: linear-gradient(120deg, #60a5fa 0%, #93c5fd 25%, #dbeafe 50%, #93c5fd 75%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.header-links a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.header-links a:hover {
  background-color: var(--color-border-light);
  color: var(--color-secondary);
  text-decoration: none;
}

/* Переключатель темы */
.theme-toggle {
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  color: var(--color-text);
}

.theme-toggle:hover {
  border-color: var(--color-secondary);
  background-color: var(--color-border-light);
}

/* --- Навигация --- */
.site-nav {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
}

[data-theme="dark"] .site-nav {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.site-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 20px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 3px 3px 0 0;
  transition: width var(--transition), left var(--transition);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
  left: 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

/* Мобильное меню */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  position: relative;
  width: 48px;
  height: 48px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff !important;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Герой-баннер --- */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

.hero-banner .hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
  max-width: 700px;
}

.hero-banner h1,
.hero-banner .hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-banner p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

/* --- Хлебные крошки --- */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.breadcrumbs li {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.breadcrumbs li::after {
  content: '›';
  margin: 0 10px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.breadcrumbs li:last-child::after {
  content: '';
  margin: 0;
}

.breadcrumbs li:last-child {
  color: var(--color-text);
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- Основной контент с боковой панелью --- */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 24px 0 48px;
}

.main-content {
  min-width: 0;
}

.sidebar {
  align-self: flex-start;
  position: sticky;
  top: 100px;
}

/* --- Контент страницы --- */
.page-content {
  background-color: var(--color-bg-card);
  padding: 36px 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: background-color var(--transition), border-color var(--transition);
}

.page-content h1 {
  font-size: 28px;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-content h2 {
  font-size: 22px;
  color: var(--color-text);
  margin: 32px 0 16px;
  line-height: 1.3;
  font-weight: 700;
}

.page-content h3 {
  font-size: 18px;
  color: var(--color-text);
  margin: 24px 0 12px;
  line-height: 1.3;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content ul {
  list-style-type: disc;
}

.page-content ol {
  list-style-type: decimal;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.page-content a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.page-content a:hover {
  text-decoration-color: var(--color-secondary);
}

.page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.page-content table th,
.page-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.page-content table th {
  background-color: var(--color-border-light);
  font-weight: 700;
  color: var(--color-text);
}

.page-content table tr:last-child td {
  border-bottom: none;
}

.page-content table tr:hover td {
  background-color: var(--color-border-light);
}

.page-content img {
  border-radius: var(--radius-md);
  margin: 12px 0;
}

/* --- Боковая панель --- */
.sidebar {
  background-color: var(--color-bg-card);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: background-color var(--transition), border-color var(--transition);
}

.sidebar h2 {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-secondary);
  font-weight: 700;
}

.sidebar .nav-list {
  margin-bottom: 24px;
}

.sidebar .nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--color-text);
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.sidebar .nav-list a::before {
  content: '→';
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.sidebar .nav-list a:hover {
  background-color: var(--color-border-light);
  color: var(--color-secondary);
  padding-left: 16px;
  text-decoration: none;
}

.sidebar .nav-list a:hover::before {
  transform: translateX(3px);
  color: var(--color-secondary);
}

.sidebar .news-list {
  margin-bottom: 24px;
}

.sidebar .news-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar .news-item:last-child {
  border-bottom: none;
}

.sidebar .news-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.sidebar .news-item a {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.sidebar .news-item a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* --- Информационный блок --- */
.info-block {
  margin: 28px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--color-border-light) 0%, var(--color-bg) 100%);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14px;
  line-height: 1.8;
}

.info-block p {
  margin-bottom: 12px;
}

.info-block p:last-child {
  margin-bottom: 0;
}

/* --- Список файлов/документов --- */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.doc-list li:hover {
  background-color: var(--color-border-light);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
}

.doc-list a::before {
  content: '📄';
  font-size: 18px;
}

.doc-list a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

/* --- Футер --- */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  padding: 48px 0 32px;
  margin-top: 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-info .company-name {
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-info p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 6px;
}

.footer-info a {
  color: #60a5fa;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-info a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.footer-licence {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.7;
}

.footer-licence a {
  color: #64748b;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.3);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.footer-licence a:hover {
  color: #94a3b8;
  text-decoration-color: #94a3b8;
}

.footer-counter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: #ffffff !important;
  text-decoration: none;
}

.btn-small {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* --- Карта --- */
.map-container {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

/* --- Новости (статьи) --- */
.news-list .news-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-list .news-item:last-child {
  border-bottom: none;
}

.news-list .news-item time {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.news-list .news-item h3 {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: 700;
}

.news-list .news-item p {
  margin-bottom: 14px;
}

/* --- Формы --- */
.subscribe-form,
.feedback-form {
  max-width: 560px;
  margin: 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group .required {
  color: var(--color-accent);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label span {
  line-height: 1.5;
}

/* --- Список информационных ссылок --- */
.info-links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.info-links li {
  margin: 0;
  padding: 0;
}

.info-links a {
  display: block;
  padding: 14px 18px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.info-links a::before {
  content: '▸';
  margin-right: 10px;
  color: var(--color-secondary);
  font-size: 16px;
}

.info-links a:hover {
  background-color: var(--color-border-light);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  text-decoration: none;
  transform: translateX(3px);
}

/* --- Пагинация --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.pagination-current,
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination-current {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
}

.pagination-link {
  background-color: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.pagination-link:hover {
  background-color: var(--color-secondary);
  color: #ffffff !important;
  text-decoration: none;
  border-color: var(--color-secondary);
  transform: translateY(-1px);
}

/* --- Карточки фондов --- */
.fund-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.fund-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.fund-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), #60a5fa);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.fund-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: transparent;
}

.fund-card h3 {
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: 700;
}

.fund-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.fund-card .fund-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-success);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.fund-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Таблица расходов --- */
.expenses-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.expenses-table th,
.expenses-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.expenses-table th {
  background-color: var(--color-border-light);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.expenses-table td {
  vertical-align: top;
  color: var(--color-text-light);
}

.expenses-table tr:last-child td {
  border-bottom: none;
}

.expenses-table tr:hover td {
  background-color: var(--color-border-light);
}

/* --- Контакты --- */
.contacts-block {
  margin: 24px 0;
  padding: 28px;
  background: linear-gradient(135deg, var(--color-border-light) 0%, var(--color-bg) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contacts-block h2 {
  margin-top: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 20px 0;
}

.contact-item {
  margin-bottom: 16px;
}

.contact-item h3 {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contact-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 500;
}

.contact-item a {
  color: var(--color-secondary);
  font-weight: 500;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item h3 {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-info-item p {
  font-size: 14px;
  line-height: 1.6;
}

/* --- Куки-баннер --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
  min-width: 280px;
}

.cookie-banner p a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-accept:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.cookie-reject {
  background: none;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-reject:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* --- Кнопка «Наверх» --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}

/* --- Анимация появления при скролле --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Адаптивность --- */
@media (max-width: 960px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --container-width: 100%;
  }

  .container {
    padding: 0 16px;
  }

  .header-top {
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .header-logo .logo-text {
    font-size: 22px;
  }

  .header-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .header-links a {
    font-size: 12px;
    padding: 6px 10px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Мобильное меню */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav .container {
    flex-direction: column;
  }

  .site-nav .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .site-nav .nav-menu.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .page-content {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .page-content h1 {
    font-size: 22px;
  }

  .page-content h2 {
    font-size: 19px;
  }

  .page-content h3 {
    font-size: 16px;
  }

  .page-content p,
  .page-content li {
    font-size: 14px;
  }

  .page-content table,
  .expenses-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .hero-banner {
    min-height: 200px;
  }

  .hero-banner h1 {
    font-size: 24px;
  }

  .hero-banner p {
    font-size: 15px;
  }

  .hero-banner .hero-content {
    padding: 40px 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-info p {
    font-size: 12px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fund-cards {
    grid-template-columns: 1fr;
  }

  .info-links {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 300px;
  }

  .doc-list a {
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .acc-header {
    font-size: 14px;
    padding: 14px 16px;
  }

  .acc-content {
    padding: 16px;
  }

  .acc-content p,
  .acc-content li {
    font-size: 13px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner p {
    min-width: auto;
    font-size: 13px;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .subscribe-form,
  .feedback-form {
    max-width: 100%;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group textarea {
    font-size: 14px;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-content {
    padding: 20px 16px;
  }

  .page-content h1 {
    font-size: 20px;
  }

  .fund-card {
    padding: 20px;
  }

  .contacts-block {
    padding: 20px;
  }
}

/* --- Печать --- */
@media print {
  .site-header,
  .site-nav,
  .sidebar,
  .site-footer,
  .back-to-top,
  .cookie-banner,
  .hero-banner {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .page-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #666;
  }
}

/* --- Утилиты --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* --- SEO стили --- */
.ulet_seo,
strong .ulet_seo,
h3 .ulet_seo {
  font-weight: inherit !important;
  font-size: inherit !important;
}

/* --- Анимация загрузки --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Скроллбар --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-light);
}

/* --- Выделение текста --- */
::selection {
  background-color: rgba(37, 99, 235, 0.2);
  color: var(--color-text);
}

/* --- Аккордеон --- */
.accordion {
  margin: 24px 0;
}

.acc-item {
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-bg-card);
  transition: border-color var(--transition-fast);
}

.acc-item:hover {
  border-color: var(--color-text-muted);
}

.acc-header {
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-family);
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-border-light) 0%, var(--color-bg) 100%);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.acc-header:hover {
  color: var(--color-secondary);
}

.acc-header[aria-expanded="true"] {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

.acc-icon {
  display: inline-block;
  margin-right: 12px;
  font-size: 14px;
  color: var(--color-secondary);
  transition: transform var(--transition);
  min-width: 16px;
}

.acc-icon.open {
  transform: rotate(90deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.acc-content {
  padding: 20px 24px;
}

.acc-content h3 {
  font-size: 16px;
  color: var(--color-text);
  margin: 20px 0 12px;
  font-weight: 700;
}

.acc-content p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.acc-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style-type: decimal;
}

.acc-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.acc-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style-type: disc;
}

.acc-content ul li {
  margin-bottom: 6px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.accordion-nested .acc-item {
  margin-bottom: 6px;
  border-color: var(--color-border-light);
}

.accordion-nested .acc-header {
  font-size: 15px;
  padding: 12px 16px;
  background: var(--color-bg);
}

.accordion-nested .acc-content {
  padding: 16px 20px;
}
