/*!
 * site.css — современный дизайн qveep (главная, общий каркас).
 * Дизайн-система: aurora-фон, 3 акцента по ролям, glow-тени, дисплейный шрифт.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- Переменные темы ---------- */
:root {
  /* Базовые поверхности (без изменений — совместимость) */
  --bg: #0e0f12;
  --bg-elev: #181a1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f5f7;
  --text-dim: rgba(244, 245, 247, 0.6);
  --text-mute: rgba(244, 245, 247, 0.4);

  /* Акценты по ролям: primary = действие, secondary = контент, tertiary = статус */
  --accent: #00bfff;            /* primary — cyan: CTA, кнопки */
  --accent-dim: rgba(0, 191, 255, 0.15);
  --accent-glow: rgba(0, 191, 255, 0.5);
  --accent-2: #a855f7;          /* secondary — nebula/purple: ссылки, теги, даты */
  --accent-2-dim: rgba(168, 85, 247, 0.15);
  --accent-3: #f59e0b;          /* tertiary — amber: featured, просмотры, рейтинги */
  --accent-3-dim: rgba(245, 158, 11, 0.15);

  /* Семантические цвета */
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;

  /* Радиусы и ширина (без изменений) */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --max-w: 1180px;

  /* Шрифты по роли */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Easing-палитра: характер вместо одинакового ease */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-med: 0.3s;
  --t-slow: 0.6s;

  /* Тени: глубина + glow для объёма */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(0, 191, 255, 0.15);
  --shadow-glow-strong: 0 0 32px rgba(0, 191, 255, 0.3);
}

/* ---------- Aurora-фон + зерно (атмосфера космоса) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(0, 191, 255, 0.09), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(245, 158, 11, 0.05), transparent 60%);
}
/* Лёгкое зерно — убирает «пластик» плоских заливок */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Утилиты теней (совместимы со старыми классами) ---------- */
.box-shadow-sm { box-shadow: var(--shadow-sm); }
.box-shadow-md { box-shadow: var(--shadow-md); }
.box-shadow-glow { box-shadow: var(--shadow-md), var(--shadow-glow); }

/* ---------- Уведомления: bell + dropdown ---------- */
.nav-notifications {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--bg);
  font-family: var(--font-sans);
}
.nav-badge.is-hidden { display: none; }

.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: min(360px, calc(100vw - 32px));
  max-height: 480px;
  display: none;
  flex-direction: column;
  background: rgba(24, 26, 31, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 200;
  overflow: hidden;
}
.notif-dropdown.is-open { display: flex; animation: fadeIn var(--t-med) var(--ease-out-expo); }
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.notif-read-all {
  background: none;
  border: 0;
  color: var(--accent-2);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.notif-read-all:hover { text-decoration: underline; }
.notif-dropdown-body {
  overflow-y: auto;
  flex: 1;
  max-height: 360px;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast);
}
.notif-item:hover { background: var(--surface-hover); }
.notif-item.is-unread { background: rgba(0, 191, 255, 0.05); }
.notif-item.is-unread::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-text { font-size: 0.85rem; line-height: 1.4; }
.notif-item-text b { color: var(--accent-2); font-weight: 600; }
.notif-item-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-top: 3px;
}
.notif-item-snippet {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}
.notif-empty {
  text-align: center;
  color: var(--text-mute);
  padding: 40px 20px;
  font-style: italic;
  font-size: 0.88rem;
  margin: 0;
}
.notif-dropdown-footer {
  display: block;
  text-align: center;
  padding: 11px;
  border-top: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 500;
}
.notif-dropdown-footer:hover { background: var(--surface-hover); }

@media (max-width: 480px) {
  .notif-dropdown { right: -8px; }
}

/* ---------- @mention автодополнение ---------- */
.mention-dropdown {
  position: absolute;
  z-index: 1100;
  min-width: 220px;
  max-width: 320px;
  background: rgba(24, 26, 31, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  padding: 4px;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.mention-item.is-active,
.mention-item:hover { background: var(--accent-dim); }
.mention-avatar { border-radius: 50%; flex-shrink: 0; }
.mention-label { font-size: 0.88rem; color: var(--text); }
.mention-label span { color: var(--text-mute); font-family: var(--font-mono); font-size: 0.8rem; margin-left: 4px; }

/* ---------- Анимации ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp var(--t-slow) var(--ease-out-expo) forwards;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav-logo img { border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: background var(--t-fast) var(--ease-smooth),
              color var(--t-fast) var(--ease-smooth);
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link .icon { color: currentColor; }
.nav-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #001824;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--t-fast) var(--ease-out-expo),
              transform var(--t-fast) var(--ease-out-expo),
              box-shadow var(--t-fast) var(--ease-out-expo);
}
.nav-btn:hover {
  background: #33ccff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
/* Кнопка админ-панели — выделяется (янтарный акцент статуса/привилегии) */
.nav-admin {
  color: var(--accent-3) !important;
  font-weight: 600;
}
.nav-admin:hover {
  background: var(--accent-3-dim) !important;
  color: var(--accent-3) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14,15,18,0.35) 0%, rgba(14,15,18,0.65) 60%, var(--bg) 100%);
}
/* Звёзды: лёгкое мерцание поверх видео (CSS-only, ~40 точек) */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 45% 12%, rgba(0,191,255,0.7), transparent),
    radial-gradient(1px 1px at 63% 28%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 35%, rgba(168,85,247,0.6), transparent),
    radial-gradient(1px 1px at 8% 55%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 35% 68%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 55% 52%, rgba(0,191,255,0.5), transparent),
    radial-gradient(1px 1px at 72% 72%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 92% 62%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 18% 82%, rgba(255,255,255,0.5), transparent);
  animation: starsTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 70px 0;
}
.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  /* Gradient text: cyan → purple */
  background: linear-gradient(90deg, #f4f5f7 0%, #00bfff 45%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f4f5f7; /* fallback */
  filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.35));
}
/* Анимированный блик-линия под заголовком */
.hero-title::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  animation: heroLine 1.8s var(--ease-out-expo) 0.3s forwards;
}
@keyframes heroLine {
  to { width: min(280px, 60%); }
}
.hero-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 2px;
}

/* ---------- Заголовок секции ---------- */
.news-section { padding: 70px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-link {
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease-out-expo), color var(--t-fast);
}
.section-link:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 0.88rem;
}

/* ---------- Иконки ---------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  line-height: 0;
}
.icon svg { width: 100%; height: 100%; display: block; }

/* Меньшие/большие варианты */
.icon.icon--sm { width: 16px; height: 16px; }
.icon.icon--lg { width: 28px; height: 28px; }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  /* Glassmorphism: полупрозрачный фон + blur вместо сплошного */
  background: rgba(24, 26, 31, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  animation: slideUp var(--t-slow) var(--ease-out-expo);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}
.modal-close:hover { 
  background: var(--surface-hover); 
  color: var(--text);
  transform: scale(1.1);
}
.modal-body { padding: 32px; }
.modal-loading { text-align: center; color: var(--text-dim); padding: 40px; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { 
  from { opacity: 0; transform: translateY(20px); } 
}

/* Детальный вид новости в модале */
.news-detail-cover {
  height: 200px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.news-detail-date {
  color: var(--accent);
  font-size: 0.85rem;
}
.news-detail h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f4f5f7 0%, #00bfff 60%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f4f5f7; /* fallback для браузеров без background-clip:text */
}
.news-detail-excerpt { 
  color: var(--text-dim); 
  margin: 0 0 20px; 
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.news-detail-body { line-height: 1.7; }
.news-detail-body :is(h1,h2,h3) { margin: 1.4em 0 0.5em; }
.news-detail-body p { margin: 0.8em 0; }
.news-detail-body ul, .news-detail-body ol { padding-left: 1.4em; }

/* ---------- Комментарии ---------- */
.cmt-section { 
  margin-top: 32px; 
  border-top: 1px solid var(--border); 
  padding-top: 24px;
}
.cmt-title { 
  margin: 0 0 16px; 
  font-size: 1.1rem; 
  font-weight: 600;
  position: relative;
}
.cmt-title::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
}
.cmt-list { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}
.cmt-item {
  display: flex;
  gap: 12px;
  transition: transform 0.2s ease;
}
.cmt-item:hover {
  transform: translateX(4px);
}
.cmt-item.cmt-reply { margin-left: 32px; }
.cmt-reply-btn {
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 4px 0 0;
  font-family: inherit;
  transition: color var(--t-fast);
}
.cmt-reply-btn:hover { color: var(--accent-2); }
.cmt-form-inline { margin: 8px 0 8px 44px; }
.cmt-form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.cmt-cancel-reply {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.cmt-cancel-reply:hover { background: var(--surface); }
.cmt-avatar { 
  border-radius: 50%; 
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,191,255,0.3);
}
.cmt-body { 
  flex: 1; 
  min-width: 0; 
}
.cmt-meta { 
  font-size: 0.85rem; 
  color: var(--text-mute); 
  margin-bottom: 3px;
}
.cmt-meta b { 
  color: var(--text); 
  font-weight: 600;
}
.cmt-meta time { 
  margin-left: 8px;
}
.cmt-text { 
  font-size: 0.93rem; 
  line-height: 1.5;
}
.cmt-empty { 
  color: var(--text-mute); 
  font-style: italic;
  text-align: center;
}
.cmt-login-hint { 
  color: var(--text-dim);
  background: rgba(0,191,255,0.1);
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
}
.cmt-login-hint a { 
  color: var(--accent); 
  font-weight: 600;
}

.cmt-form { 
  margin-top: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}
.cmt-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  transition: all 0.2s ease;
}
.cmt-form textarea:focus { 
  outline: none; 
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.cmt-submit {
  align-self: flex-start;
  background: var(--accent);
  color: #001824;
  border: 0;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cmt-submit:hover { 
  background: #33ccff; 
  transform: translateY(-1px);
}
.cmt-submit:active {
  transform: translateY(1px);
}

/* ---------- Скролл-навигация (кнопка "Наверх") ---------- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #001824;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--t-med) var(--ease-spring);
  z-index: 999;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: #33ccff;
  box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
  transform: translateY(-2px);
}

/* ---------- CTA секция ---------- */
.cta-section { padding: 60px 0 80px; }
.cta-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: rgba(24, 26, 31, 0.5);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.cta-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-text {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 0 28px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out-expo),
              box-shadow var(--t-fast) var(--ease-out-expo);
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-primary {
  background: var(--accent);
  color: #001824;
}
.cta-primary:hover { box-shadow: var(--shadow-glow); }
.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-ghost:hover { background: var(--surface); box-shadow: none; }

/* ---------- TOC (оглавление статьи в модале) ---------- */
.news-toc {
  margin: 16px 0 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-2);
}
.news-toc-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.news-toc ul { list-style: none; padding: 0; margin: 0; }
.news-toc-item { margin-bottom: 4px; }
.news-toc-item a {
  color: var(--accent-2);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--t-fast);
}
.news-toc-item a:hover { color: var(--text); text-decoration: underline; }
.news-toc-item.news-toc-sub { padding-left: 16px; }
.news-toc-item.news-toc-sub a { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
  .modal-dialog {
    max-height: 92vh;
    width: min(100%, calc(100% - 32px));
    border-radius: 12px;
  }
  .modal-close { 
    top: 10px; 
    right: 10px; 
    width: 40px; 
    height: 40px;
  }
  .modal-body { padding: 20px; }
  
  .nav-link span:not(.icon) { display: none; }
  .nav-btn span:not(.icon) { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-content { padding: 40px 0; }
  .hero-title { font-size: clamp(2rem, 12vw, 3.5rem); }
  
  .news-section { padding: 40px 0; }
  .section-title { font-size: 1.6rem; }
}

/* ---------- Оптимизация производительности ---------- */
.site-nav, 
.news-card, 
.nav-btn,
.scroll-top {
  will-change: transform;
}
/* ---------- Hero: расширенный value proposition ---------- */
.hero-tagline {
  margin: 8px 0 0;
  color: var(--text-mute);
  font-size: 0.98rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #001824;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out-expo),
              box-shadow var(--t-fast) var(--ease-out-expo);
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), var(--shadow-glow); }
.hero-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.hero-btn-ghost:hover { background: var(--surface); box-shadow: none; }

/* ---------- Skeleton loading ---------- */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skeleton-cover { height: 170px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-body { padding: 18px 20px 22px; }
.skeleton-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.11) 50%, rgba(255,255,255,0.05) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-bottom: 10px; }
.skeleton-line.short { width: 50%; }
.skeleton-line.mid { width: 75%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
