* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik Dirt', cursive;
    background-color: #1a1a1a;
    color: #e5e5e5;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}


.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 50px;
}

.glowing-title {
    /* Центрирование */
    text-align: center;
    margin-top: 50px; /* Отступ сверху, чтобы не прилипало */
    
    /* Стили текста */
    font-family: sans-serif;
    font-size: 3rem;
    
    /* Анимация: название | длительность | тип | бесконечно | туда-обратно */
    animation: colorShift 3s ease-in-out infinite alternate;
  }

  @keyframes colorShift {
    from {
      color: #ffcccc; /* Светло-красный */
    }
    to {
      color: #add8e6; /* Светло-голубой (LightBlue) */
    }
  }



  /* Сетка 4 в ряд */
 .video-grid {
    display: flex;            /* Выстраиваем в линию */
    justify-content: center;   /* Центрируем по горизонтали */
    gap: 20px;                /* Расстояние между карточками */
    padding: 40px 20px;
    flex-wrap: nowrap;        /* Запрещаем перенос на новую строку */
  }

  .video-item {
    position: relative;
    flex: 1;                  /* Равномерно распределяем место */
    max-width: 300px;         /* Ограничиваем ширину одной карточки */
    aspect-ratio: 16 / 9;     /* Делаем их строго одного размера */
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Тень для эффекта карточки */
    transition: transform 0.3s ease;
  }

  .video-item:hover {
    transform: translateY(-5px); /* Приподнимаем при наведении */
  }

  .video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* Видео заполняет карточку без искажений */
    opacity: 0.8;
  }


  /* Иконка плей на превью */
  .play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    pointer-events: none;
  }

  /* Модальное окно (фон) */
  .modal {
    display: none; /* Изначально скрыто */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
  }

  /* Контент внутри модалки */
  .modal-content {
    width: 60%;           /* Уменьшили ширину с 80% до 60% */
    max-width: 700px;     /* Поставили более строгое ограничение в пикселях */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #modalVideo {
    width: 100%;
    max-height: 80vh;     /* Видео не займет больше 80% высоты экрана */
    border-radius: 15px;  /* Скруглим углы для красоты */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    outline: none;
  }

  /* Немного уменьшим крестик, чтобы он соответствовал размеру */
  .close-btn {
    position: absolute;
    top: 15px; 
    right: 25px;
    font-size: 40px;
  }

  .close-btn:hover { color: #ffcccc; }





.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
  }

  .wow-back-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 50px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: #111;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Плавный переход */
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    box-shadow: 0 0 0 rgba(157, 0, 255, 0); /* Изначально свечения нет */
  }

  /* Эффект при наведении */
  .wow-back-button:hover {
    transform: translateY(-7px) scale(1.05);
    border-color: #9d00ff; /* Фиолетовая рамка */
    
    /* Многослойный фиолетовый неон (плавное загорание) */
    box-shadow: 0 0 10px #9d00ff, 
                0 0 20px #9d00ff, 
                0 0 40px rgba(157, 0, 255, 0.6);
  }

  /* Жидкий градиент внутри */
  .wow-back-button::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffcccc, #add8e6);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 0;
  }

  .wow-back-button:hover::before {
    top: 0;
  }

  .wow-back-button span {
    position: relative;
    z-index: 1;
    transition: 0.4s;
  }

  .wow-back-button:hover span {
    color: #000;
  }





body {
    margin: 0;
    padding: 0;
    /* Устанавливаем картинку на фон всего сайта */
    background-image: url('https://i.pinimg.com/1200x/fe/da/ec/fedaecbba9c25ba8ccbbbbe7971fdcaa.jpg');
    
    /* Делаем так, чтобы фон стоял на месте при скролле */
    background-attachment: fixed;
    
    /* Растягиваем картинку, чтобы она всегда заполняла экран */
    background-size: cover;
    
    /* Центрируем изображение */
    background-position: center;
    
    /* Добавляем темный оверлей прямо через градиент, 
       чтобы текст (заголовки и форма) не терялся на пестром фоне */
    background-color: rgba(0, 0, 0, 0.5); 
    background-blend-mode: darken;

    /* Шрифт и выравнивание контента */
    font-family: 'Montserrat', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }