/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #000 url('background.jpg') center/cover no-repeat fixed;
  font-family: 'Roadkill', 'Impact', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Приглушённый фон */
.backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
            rgba(0,0,0,0.2) 0%,
            rgba(0,0,0,0.65) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Заголовок — яркий белый с красноватым свечением */
.big-title-img {
  position: fixed;         /* фиксируем поверх фона */
  top: 11vh;               /* регулируем вертикальное положение */
  left: 50%;               /* горизонтально по центру */
  transform: translateX(-50%);
  z-index: 12;             /* выше кнопок, но ниже снежинок, если нужно */
  pointer-events: none;    /* чтобы не мешало кликам по кнопкам */
  width: 100%;              /* масштабируем под экран */
  max-width: 700px;        /* ограничиваем слишком большие экраны */
}

.big-title-img img {
  width: 100%;
  height: auto;            /* сохраняем пропорции */
}



/* Контейнер с кнопками */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 39vh; /* кнопки под заголовком */
  width: 90%;
  max-width: 420px;
  padding: 20px;
  z-index: 12;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.btn {
  display: flex;
  align-items: center;
  white-space: nowrap;         /* ←←← ГЛАВНОЕ! Текст никогда не переносится */
  justify-content: center;
  gap: 16px;
  padding: 22px 32px;              /* ← больше по высоте и ширине */
  background: rgba(25,25,25,0.6);
  border: 2px solid #e63946;     /* чуть толще рамка */
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 44px;                 /* ← основной размер текста */
  font-weight: 400;
  letter-spacing: 2.5px;
  word-spacing: 5px;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);

  /* ←←← ГЛАВНОЕ: фиксированная минимальная ширина → все кнопки одинаковые! */
  min-width: 380px;                /* ← вот эта строчка делает их одного размера */
  width: 100%;                     /* растягивает до ширины контейнера */
  max-width: 420px;                /* но не шире контейнера */

  text-align: center;              /* текст по центру */
  box-sizing: border-box;
}

/* Иконки тоже чуть крупнее */
.btn i {
  font-size: 38px;
  transition: all 0.35s ease;
}

.btn:hover {
  background: #e63946;
  border-color: #ff1e1e;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
}

.btn:hover i {
  transform: scale(1.15);
}

/* Красная дымка и вспышки */
.fog-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fog {
  position: absolute;
  width: 200%;
  height: 400px;
  bottom: -100px;
  left: -50%;
  background: linear-gradient(transparent, rgba(230, 57, 70, 0.12));
  filter: blur(40px);
  opacity: 0.7;
}

.fog-1 { animation: fog 24s linear infinite; }
.fog-2 { animation: fog 32s linear infinite reverse; }
.fog-3 { animation: fog 28s linear infinite; }

@keyframes fog {
  0%   { transform: translateX(-20%) translateY(0); }
  100% { transform: translateX(20%) translateY(-30px); }
}

.red-flash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(230,57,70,0.08) 0%, transparent 50%);
  opacity: 0;
  animation: flash 14s infinite;
}

@keyframes flash {
  0%, 95%, 100% { opacity: 0; }
  96% { opacity: 1; }
}

.red-flash::before {
  content: "";
  position: absolute;
  width: 100%; height: 100%;
  animation: moveFlash 14s infinite;
}

@keyframes moveFlash {
  0%   { --x: 10%; --y: 20%; }
  25%  { --x: 85%; --y: 70%; }
  50%  { --x: 20%; --y: 80%; }
  75%  { --x: 90%; --y: 15%; }
  100% { --x: 10%; --y: 20%; }
}

/* Бегущая строка */
.marquee {
  position: fixed;
  bottom: 48px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.marquee span {
  display: inline-block;
  color: #ffffff;
  font-size: 40px;
  font-weight: 100;
  letter-spacing: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  animation: marquee 60s linear infinite;
  animation-delay: -15s;
  transform: translateX(100vw);
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Снег */
.snow {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 15;
}

.snow span {
  position: absolute;
  top: -10vh;
  color: #fff;
  font-size: 18px;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(255,255,255,0.7);
  animation: snowfall linear infinite;
  user-select: none;
}

/* Разные размеры и скорости снежинок */
.snow span:nth-child(1)  { font-size: 16px; left: 5%;   animation-duration: 14s; animation-delay: 0s; }
.snow span:nth-child(2)  { font-size: 24px; left: 15%;  animation-duration: 18s; animation-delay: 2s; }
.snow span:nth-child(3)  { font-size: 14px; left: 25%;  animation-duration: 12s; animation-delay: 1s; }
.snow span:nth-child(4)  { font-size: 28px; left: 35%;  animation-duration: 22s; animation-delay: 4s; }
.snow span:nth-child(5)  { font-size: 20px; left: 45%;  animation-duration: 16s; animation-delay: 3s; }
.snow span:nth-child(6)  { font-size: 22px; left: 55%;  animation-duration: 20s; animation-delay: 1s; }
.snow span:nth-child(7)  { font-size: 18px; left: 65%;  animation-duration: 15s; animation-delay: 5s; }
.snow span:nth-child(8)  { font-size: 26px; left: 75%;  animation-duration: 19s; animation-delay: 2s; }
.snow span:nth-child(9)  { font-size: 15px; left: 85%;  animation-duration: 17s; animation-delay: 0s; }
.snow span:nth-child(10) { font-size: 30px; left: 10%;  animation-duration: 24s; animation-delay: 6s; }
/* остальные снежинки аналогично... */

@keyframes snowfall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

.icon {
  width: 44px;
  height: 44px;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(100%); /* делает ярче, белым */
}

.icon path {
  fill: #fff !important; /* гарантирует белый цвет */
  vertical-align: middle;
  display: inline-block;
  margin-right: 12px;
}

/* ─────────────────────── АДАПТИВ ─────────────────────── */

/* 1. Телефоны и планшеты до 768px (всё общее) */
@media (max-width: 768px) {
  .big-title-img {                     /* если у тебя картинка-заголовок */
    top: 16vh;                         /* чуть ниже на телефонах */
    max-width: 100%;
  }

  .container {
    margin-top: 34vh;                  /* кнопки под заголовком */
    padding: 14px;
  }

  .btn {
    font-size: 28px !important;
    padding: 18px 28px !important;
    gap: 14px !important;
    min-width: 320px !important;
    max-width: 380px !important;
  }

  .btn i {
    font-size: 36px !important;
  }

  .marquee span {
    font-size: 32px;
    letter-spacing: 5px;
    font-weight: 100;
    animation-delay: -20s;             /* появляется почти сразу */
  }

  .snow span {
    font-size: 13px !important;
  }
  .snow span:nth-child(4n) { font-size: 20px !important; }
}

/* 2. Очень маленькие телефоны (iPhone SE, старые Android) */
@media (max-width: 480px) {

  .icon {
    width: 30px;
    height: 30px;
  }

  .big-title-img {
    top: 14vh;
    max-width: 100%;
  }

  .container {
    margin-top: 32vh;
    padding: 12px;
  }

  .btn {
    font-size: 28px !important;
    padding: 16px 24px !important;
    gap: 12px !important;
    min-width: 280px !important;
  }

  .btn i {
    font-size: 24px !important;
  }

  .marquee span {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .snow span {
    font-size: 11px !important;
  }
  .snow span:nth-child(4n) { font-size: 17px !important; }
}

/* 3. Большие экраны (от 1200px и выше) — если захочешь ещё крупнее */
@media (min-width: 1200px) {
  .big-title-img {
    max-width: 800px;                  /* заголовок-картинка ещё больше */
  }

  .btn {
    font-size: 44px;
    padding: 26px 36px;
    min-width: 460px;
    max-width: 500px;
  }

  .btn i {
    font-size: 44px;
  }

  .marquee span {
    font-size: 48px;
    letter-spacing: 10px;
  }
}

