html {
	min-height: 1000px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  background: #fff; /* чистый фон */
  text-align: center;
}

header {
  padding: 50px 0 100px;
}

header h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #333;
}

.tagline {
  font-size: 16px;
  font-weight: 500;
  margin: -15px 0 100px;
  color: #666; /* спокойный серый */
}

header .description {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
  color: #444;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: #6C63FF;
  color: white;
  transition: 0.2s;
}

.btn:hover {
  background: #574bd6;
}

footer {
  padding: 30px 20px;
  font-size: 14px;
  color: #888;
  border-top: 1px solid #eee;
  margin-top: 60px;
}

footer a {
  color: #6C63FF;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 🔹 Навигация */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center; /* ✅ теперь все элементы центрируются по вертикали */
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 1000;
}

.navbar .logo {
	padding-left: 10px;
  font-weight: 700;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  padding-top: 10px;
  margin-bottom: -5px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #6C63FF;
}

/* 🔹 Кнопка "Запустить RE:POSTER" */
.btn-launch {
  display: none; /* по умолчанию скрыта (для мобилок) */
  padding: 8px 20px;
  margin-top: -8px;
  margin-bottom: 8px;
  margin-left: 10px;
  margin-right: 10px;
  background: linear-gradient(135deg, #6C63FF, #8c7dff);
  color: #fff !important;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

/* 🟣 hover эффект */
.btn-launch:hover {
  background: linear-gradient(135deg, #7a72ff, #a293ff);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(108, 99, 255, 0.5);
}

/* 💫 лёгкая пульсация */
@keyframes pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.6); }
  70%  { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(108, 99, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108, 99, 255, 0); }
}
.btn-launch {
  animation: pulse 2.5s infinite;
}

/* ✨ свечение текста */
.btn-launch::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-25deg);
}

/* 🚀 "проблеск" при hover */
.btn-launch:hover::after {
  animation: shine 0.8s forwards;
}

@keyframes shine {
  100% { left: 125%; }
}

/* только для десктопа */
@media (min-width: 769px) {
  .btn-launch {
    display: inline-block;
  }
}

/* Бургер */
.burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 0;
}
.burger span:nth-child(2) {
  top: 8px;
}
.burger span:nth-child(3) {
  top: 16px;
}

/* когда активно */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

.logo-text-navbar {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-left: 6px;
  will-change: opacity, transform; /* помогает iOS не "дёргать" */
}

.navbar.scrolled .logo-text-navbar {
  opacity: 1;
  transform: translateY(0);
}

/* Логотип кликабельный */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  gap: 8px;
  cursor: pointer; /* 👈 курсор-указатель */
}

/* 🔹 Анимация логотипа при наведении — только когда .scrolled */
.navbar.scrolled .logo:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: brightness(1.1);
}

/* 🔹 Эффект при клике */
.logo.click-anim {
  animation: logoClick 0.3s ease;
}

@keyframes logoClick {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.9); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.logo-text {
  color: #222;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 50px;
}


.hero-logo h1 {
  font-size: 48px;
  margin: 0;
  color: #333;
}

.logo-img,
.logo-img-big {
  object-fit: contain;
  display: block;
}

/* для маленького логотипа в navbar */
.logo-img {
  height: 32px;
  width: 32px;
  margin: -6px; /* компенсируем отступы внутри PNG */
}

/* для большого логотипа в hero */
.logo-img-big {
  height: 60px;
  width: 60px;
  margin: -8px; /* уменьшаем «воздух» внутри */
}

/* 🔹 Выпадающее меню */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

/* 🔹 Выпадающее меню */
.dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;  /* ровно под ссылкой */
  margin-top:8px;
  right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 2000;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* 🔹 Невидимая зона для курсора */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;   /* над меню */
  left: 0;
  right: 0;
  height: 8px; /* мостик */
  background: transparent; /* невидимый */
}

.dropdown-menu a {
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #6C63FF;
}

/* Чтобы контент не прилипал к навбару */
header {
  margin-top: 70px;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* 🔹 Мобильная версия */
@media (max-width: 768px) {
	/* 🔹 Навигация */
	.navbar {
	  padding: 10px 13px 10px 13px;
	}
	
	.navbar .logo {
		margin-left: 2px;
	  padding-left: 0;
	}
	
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 52px;            /* чуть ниже навбара */
    left: 10px;
    right: 10px;
    background: #fff;
    padding: 15px;        /* равные отступы со всех сторон */
    border-radius: 12px;  /* округление углов */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); /* лёгкая тень */
    box-sizing: border-box;
    animation: fadeMenu 0.25s ease;
  }

  .nav-links.active {
    display: flex;
  }

  /* 👇 Важно! бургер */
  .burger {
    display: block;
    position: relative;
    z-index: 2000;
  }

  .nav-links a,
  .nav-links .dropdown-toggle {
	background-color: #f7f7f7;
    display: block;
    padding: 16px;
    margin: -5px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    border-radius: 8px;
    text-align: left;
    transition: all 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links .dropdown-toggle:hover {
    background: rgba(108,99,255,0.08);
    color: #6C63FF;
  }
  
  .dropdown-menu {
	margin: 0px;
	  background-color: transparent;
    position: static;
    box-shadow: none;
    border-radius: 0;
	margin-right: -4px;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
	  margin-top: -4px;
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-menu a {
	margin: 5px 0 5px 35px;
    padding: 10px 12px;
    font-size: 15px;
    color: #555;
    border-radius: 8px;
  }

  .dropdown-menu a:hover {
    background: rgba(108,99,255,0.05);
    color: #6C63FF;
  }
  
  /* 👇 если это кнопка */
  .nav-links .btn-launch {
    text-align: center;
  }

  /* Анимация */
  @keyframes fadeMenu {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  header {
    margin-top: 70px; /* фиксированный отступ под высоту navbar */
  }
}

/* 🔹 Hero общий */
.hero {
  padding: 60px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px; /* меньше отступ */
  max-width: 1200px;
  margin: 0 auto;
}

/* 🔹 Логотип */
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center; /* по центру для мобилок */
  gap: 12px;
  margin-bottom: 20px;
}

.hero-logo h1 {
  font-size: 48px;
  margin: 0;
  color: #333;
}

/* 🔹 Блок кнопок */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* 🔹 Кнопка возможности */
.btn-secondary {
  background: #eee;
  color: #333;
}

.btn-secondary:hover {
  background: #ddd;
}

/* 🔹 Видео */
.hero-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 1000px
}

/* 🔹 Видео на мобилках */
.hero-video {
  max-width: 100%;
  width: 400px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  
  display: block;           /* убираем inline-артефакты */
  object-fit: cover;        /* видео будет обрезано по рамке без белых полос */
  background-color: black;  /* на всякий случай, если у видео прозрачные края */
}

.hero.loaded .hero-video {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Анимация появления текста */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.loaded .hero-content > * {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Порядок появления */
.hero.loaded .hero-logo       { transition-delay: 0.1s; }
.hero.loaded .tagline         { transition-delay: 0.2s; }
.hero.loaded .description     { transition-delay: 0.3s; }
.hero.loaded .hero-buttons    { transition-delay: 0.4s; }

/* 🔹 Кнопки внутри hero-buttons */
.hero-buttons a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.loaded .hero-buttons a {
  opacity: 1;
  transform: translateY(0);
}

.hero.loaded .hero-buttons a:nth-child(1) { transition-delay: 0.5s; }
.hero.loaded .hero-buttons a:nth-child(2) { transition-delay: 0.6s; }

/* 🔹 Десктоп: две колонки */
@media (min-width: 992px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left; 
    gap: 100px; /* меньше расстояние между текстом и телефоном */
  }

  .hero-content {
    flex: 1;
    text-align: left;
  }

  .hero-logo {
    justify-content: flex-start; /* слева */
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-video-wrapper {
    flex: 0 0 500px; /* чуть компактнее */
  }

  .hero-video {
    width: 100%;
    transform: scale(0.9);
  }

  .hero.loaded .hero-video {
    transform: scale(1);
  }
}

/* 🔹 Мобилки */
@media (max-width: 768px) {
  .hero {
    gap: 15px; /* было 30px, стало меньше */
  }

  .hero-video-wrapper {
    min-height: auto; /* убираем принудительную большую высоту */
    margin-top: 50px; /* чтобы чуть отделить от кнопок */
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .btn {
    width: 70%; 
    max-width: 280px;
  }

  .btn-secondary {
    font-size: 14px;
    padding: 10px 0;
    width: 45%;
  }
  
  .hero-video {
    transform: translateY(40px); /* чуть ниже старт */
  }

  .hero.loaded .hero-video {
    transform: translateY(0);
    transition-delay: 0.3s; /* появляется после кнопок */
  }
}

/* 🔹 Статистика */
.stats {
  padding: 0px 20px 20px;
  text-align: center;
}

.stats h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;        /* всегда в одну линию */
  max-width: 800px;
  margin: 0 auto;
}

.stat {
  flex: 1;                  /* делим пространство поровну */
  min-width: 0;             /* чтобы не вылезали */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #6C63FF;
  margin-bottom: 8px;
  min-height: 56px;
  font-family: 'Inter', monospace;
}

.stat-label {
  font-size: 16px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 🔹 Мобилки */
@media (max-width: 768px) {
  .stats h2 {
    font-size: 20px;       /* меньше заголовок */
    margin-bottom: 20px;   /* чуть меньше отступ */
  }

  .stats-grid {
    gap: 10px;             /* меньше отступы */
  }

  .stat-number {
    font-size: 20px;       /* уменьшенные цифры */
    min-height: 24px;
  }

  .stat-label {
    font-size: 10px;       /* маленькие подписи */
  }
}