/* ========== Сброс и базовые стили ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Фиолетовый блюр-фон */
body::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(75, 0, 130, 0.2) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ========== Шапка сайта ========== */
.site-header {
  padding: 12px 70px;
  position: relative;
  z-index: 10;
}

/* ========== Логотип ========== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* ========== Loader по центру ========== */
.loader-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.loader-content {
  text-align: center;
  max-width: 500px;
  padding: 0 20px;
}

/* Логотип в центре над прогресс-баром */
.loader-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 24px;
}

/* Прогресс-бар */
.progress-bar {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin: 0px auto 40px auto;
  padding: 0px;
  box-sizing: border-box;
}

.progress-fill {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    #8a2be2 50%,
    transparent 100%
  );
  animation: 2.5s ease-in-out 0s infinite normal none running pulse-line;
}

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

/* Заголовок */
.loader-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0px 0px 8px 0px;
  padding: 0px;
  box-sizing: border-box;
  color: #ffffff;
}

/* Текст описания */
.loader-text {
  font-size: 14px;
  line-height: 1.5;
  color: #a1a1a6;
  max-width: 380px;
  margin: 0px auto;
  padding: 0px;
  box-sizing: border-box;
}

/* Кнопка Telegram под текстом */
.loader-btn {
  background: transparent;
  position: relative;
  padding: 5px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #39c0ff;
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: #39c0ff;
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
  margin-top: 20px;
}

.loader-btn span { margin: 10px; }

.loader-btn::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.loader-btn:hover {
  color: #fff;
  border: 1px solid #2ba0d9;
}

.loader-btn:hover::before {
  box-shadow: inset 0 0 0 10em #2ba0d9;
}
