/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
  --bg-light: #0B0C0F;
  --accent-primary: #7C4DFF;
  --accent-telegram: #27A7E7;
  --text-primary: #ffffff;
}

/* ========== БАЗА ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(124, 77, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(88, 166, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 30%, rgba(124, 77, 255, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Тонкий шум */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }

/* ========== LOADER ========== */
#loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #0a0a0f; display: flex; align-items: center; justify-content: center;
  z-index: 10000; transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px var(--accent-primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== КНОПКА TELEGRAM ========== */
.btn-telegram {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: 12px; transition: all 0.3s ease;
  border: none; cursor: pointer;
  color: #fff; background: var(--accent-telegram);
  box-shadow: 0 0 18px rgba(39,167,231,0.6);
}
.btn-telegram:hover {
  box-shadow: 0 0 30px rgba(39,167,231,0.9);
  transform: translateY(-3px);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ========== КОНТЕЙНЕР ЗАГЛУШКИ ========== */
.closed-container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 24px;
}
.closed-icon {
  font-size: 5rem;
  color: var(--accent-primary);
  margin-bottom: 30px;
  animation: pulse-icon 2s infinite;
  filter: drop-shadow(0 0 15px var(--accent-primary));
}
.closed-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}
.closed-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

/* Кнопка внутри анимации */
.closed-container .btn-telegram {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
  .closed-title { font-size: 1.8rem; }
  .closed-icon { font-size: 3.5rem; }
}