/* Общие стили для всех страниц */
:root {
  --bg: #070b16;
  --bg-soft: #0d1424;
  --card: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .10);
  --text: #eef2ff;
  --muted: #9aa6bd;
  --accent: #4a90d9;
  --accent-2: #7c5cff;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Фон */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(74, 144, 217, .28), transparent 60%),
    radial-gradient(700px 500px at 85% 15%, rgba(124, 92, 255, .22), transparent 65%),
    radial-gradient(600px 500px at 50% 100%, rgba(52, 211, 153, .12), transparent 70%);
  filter: blur(20px);
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* Верхняя навигация */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, .72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--text); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 35px rgba(74, 144, 217, .28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(124, 92, 255, .35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--border);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

/* Подвал */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 28px); }
  .nav-inner { padding: 12px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}



/* Кастомный темный скроллбар */
::-webkit-scrollbar {
  width: 10px;               /* Ширина скроллбара */
  height: 10px;              /* Высота для горизонтального */
}

::-webkit-scrollbar-track {
  background: var(--bg);     /* Цвет дорожки (как фон страницы) */
}

::-webkit-scrollbar-thumb {
  background: #2a354a;       /* Цвет ползунка (темно-синий/серый) */
  border-radius: 5px;        /* Закругление */
  border: 2px solid var(--bg); /* Отступы, чтобы ползунок казался тоньше */
}

::-webkit-scrollbar-thumb:hover {
  background: #4a90d9;       /* Синий цвет при наведении (в тон акценту) */
}

/* Поддержка скроллбара в Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2a354a var(--bg);
}