/* ======= Шрифты и базовая стилизация ====== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* { box-sizing: border-box; }
html,body { height: 100%; margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg,#020003 0%, #000 100%);
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  overflow: hidden; /* отключаем скролл страницы для эффектов — если нужен контент, убрать */
}

/* ======= Звезды (фон) ======= */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 1px, transparent 1px) 0 0/3px 3px,
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px) 50px 80px/4px 4px;
  animation: starScroll 80s linear infinite;
  opacity: 0.25;
}
@keyframes starScroll { from { transform: translateY(0); } to { transform: translateY(-1200px); } }

/* ======= Canvas (дым) ======= */
#smokeCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* обязательно, чтобы кнопка кликая работала */
}

/* ======= Центрирование контента ======= */
.center-root {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  -webkit-touch-callout: none; /* удобство на мобиле */
}

/* Блок с логотипом и кнопкой — всегда по центру */
.center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  transform: translateZ(0);
  text-align: center;
  padding: 20px;
  width: 100%;
  max-width: 980px;
}

/* Лого */
.logo {
  width: 360px;
  max-width: 70vw;
  height: auto;
  user-select: none;
  will-change: transform, filter;
  transition: transform .35s ease;
  filter: drop-shadow(0 0 18px rgba(180,0,255,0.7));
  animation: neon 2.2s infinite alternate, subtleGlitch 6s infinite;
}

/* Неон */
@keyframes neon {
  0% { filter: drop-shadow(0 0 10px rgba(120,0,255,0.6)); transform: translateY(0); }
  100% { filter: drop-shadow(0 0 32px rgba(200,0,255,0.95)); transform: translateY(-6px); }
}

/* Легкий случайный глитч */
@keyframes subtleGlitch {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(1px) translateY(-1px); }
  50% { transform: translateX(-1px) translateY(1px); }
  75% { transform: translateX(1px) translateY(1px); }
  100% { transform: translateX(0) translateY(0); }
}

/* Кнопка "Позвоните нам" */
.btn-call {
  display: inline-block;
  padding: 18px 52px;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  background: linear-gradient(180deg,#ffd100 0%, #ffbf00 100%);
  border-radius: 60px;
  border: 3px solid #2200ff;
  box-shadow:
    0 6px 22px rgba(0,0,0,0.6),
    0 0 22px rgba(255,200,0,0.35),
    0 0 40px rgba(120,0,255,0.25) inset;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform, box-shadow;
  -webkit-tap-highlight-color: transparent;
}

/* hover / active */
.btn-call:hover, .btn-call:focus {
  transform: translateY(-6px) scale(1.04);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.6),
    0 0 44px rgba(255,230,0,0.55),
    0 0 60px rgba(160,0,255,0.35) inset;
  outline: none;
}
.btn-call:active {
  transform: translateY(-2px) scale(0.995);
}

/* ======= Адаптив ======= */
@media (max-width: 1024px) {
  .logo { width: 320px; }
  .btn-call { font-size: 22px; padding: 16px 42px; }
}

@media (max-width: 600px) {
  .logo { width: 240px; }
  .btn-call { font-size: 18px; padding: 12px 34px; border-radius: 44px; }
}

@media (max-height: 420px) {
  /* маленькие экранчики по высоте — уменьшаем отступы */
  .center-block { gap: 18px; }
  .logo { width: 180px; }
  .btn-call { font-size: 16px; padding: 10px 24px; }
}
