/* Базовый сброс и настройки светлой темы */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fdfdfd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Главный контейнер лоадера */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 80px; /* Отступ снизу для кнопок соцсетей */
}

/* --- АНИМАЦИИ --- */

/* 1. Левитация (плавное движение вверх-вниз, цикл 3.5 сек) */
.levitation-wrapper {
  margin-bottom: 40px;
  animation: levitate 3.5s ease-in-out infinite;
}

@keyframes levitate {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 2. Взмахи крыльев (быстрое сжатие по оси X, цикл 0.6 сек) */
.wings-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flap 0.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes flap {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.2);
  }
}

/* Стилизация силуэта бабочки */
.butterfly-svg {
  filter: drop-shadow(0px 15px 25px rgba(50, 80, 120, 0.15));
}

/* 3. Премиальный текст с эффектом дыхания (цикл 2.5 сек) */
.text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Градиентный заголовок бренда */
.brand-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin: 0;
  padding-left: 0.4em; /* Компенсация отступа справа для точного центрирования */
  
  background: linear-gradient(90deg, #9ca3af, #4b5563, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Тонкая линия под заголовком */
.divider-line {
  height: 2px;
  width: 32px;
  background-color: #d1d5db;
  margin-top: 12px;
  border-radius: 9999px;
  opacity: 0.5;
}

/* --- СОЦИАЛЬНЫЕ КНОПКИ (Светлый минимализм) --- */

.social-container {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 16px;
}

/* Минималистичные круглые кнопки */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0px 4px 12px rgba(50, 80, 120, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

/* Иконки в спокойном сером цвете */
.social-icon {
  width: 20px;
  height: 20px;
  fill: #6b7280;
  transition: fill 0.25s ease;
}

/* Эффекты при наведении */
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 20px rgba(50, 80, 120, 0.12);
}

.social-btn.youtube:hover .social-icon {
  fill: #ef4444; /* Мягкий красный цвет YouTube */
}

.social-btn.telegram:hover .social-icon {
  fill: #3b82f6; /* Мягкий синий цвет Telegram */
}

.social-btn:active {
  transform: translateY(-1px);
}
/* ==========================================
   Кнопки продуктов (Справа вверху)
   ========================================== */
.products-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.product-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  color: #1a1a1a;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.product-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  color: #000;
}

/* --- Всплывающие подсказки (Tooltips) --- */

/* Текст подсказки */
.product-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #1a1a1a;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Стрелочка подсказки */
.product-btn::before {
  content: '';
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  border-width: 4px;
  border-style: solid;
  border-color: transparent transparent transparent #1a1a1a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* Показ подсказки при наведении */
.product-btn:hover::after,
.product-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}