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 {
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin-left: 6px;
}

/* Логотип кликабельный */
.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: 10px;
  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: -10px;   /* над меню */
  left: 0;
  right: 0;
  height: 10px; /* мостик */
  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;
}

@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;
}

/* 🔹 Hero блок */
.features-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-hero-text {
  flex: 1;
  text-align: left;
}

.features-hero-text h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #333;
}

.features-hero-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.features-hero-video {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* 🔹 Сетка возможностей */
.features-grid-wrapper {
  background: linear-gradient(135deg, #f0ebff, #e6f0ff);
  padding: 80px 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature h3 {
  font-size: 20px;
  color: #6C63FF;
  margin-bottom: 12px;
}

.feature p {
  font-size: 15px;
  color: #444;
}

.features-cta h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

/* 🔹 Общие анимации появления */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Видео: старт слева */
.features-video {
  max-width: 45%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s ease, transform 1s ease;

  display: block;           /* убираем inline-артефакты */
  object-fit: cover;        /* видео будет обрезано по рамке без белых полос */
  background-color: black;  /* на всякий случай, если у видео прозрачные края */
}

.features-video.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 🔹 Текст: старт снизу */
.features-hero-text {
  flex: 1;
  text-align: left;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.features-hero-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Сетка (каждый блок) */
.feature {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 CTA */
.features-cta {
  text-align: center;
  padding: 80px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.features-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 🔹 Прячем hero до загрузки */
.features-hero.hidden {
  opacity: 0;
  visibility: hidden;
}

/* 🔹 Когда загрузилось */
.features-hero.loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

/* 🔹 Остальные блоки (фичи + CTA): плавный fade-up */
.feature,
.features-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.feature.visible,
.features-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .features-hero {
    flex-direction: column;
    text-align: center;
  }

  .features-hero-text {
    text-align: center;
    margin-top: 20px;
  }

  .features-hero .features-video {
    max-width: 60%;
    border-radius: 12px;
    margin: 20px 0 -20px;
  }
}