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;
}

blockquote {
  background: #f7f7f7;
  border-left: 4px solid #ddd;
  padding: 10px 15px;
  border-radius: 6px;
  color: #333;
}

.help-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.help-menu {
  width: 250px;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.help-menu ul {
  list-style: none;
  padding: 0;
}

.help-menu li {
  margin-bottom: 10px;
}

.help-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.help-menu a:hover {
  color: #6C63FF;
}

.help-content {
  flex: 1;
  padding-left: 30px;
}

blockquote {
  background: #f7f7f7;
  border-left: 4px solid #ddd;
  padding: 10px 15px;
  border-radius: 6px;
  color: #333;
}

.faq-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 5px 15px;
  gap: 30px;
}

/* Левая колонка: меню + кнопка */
.faq-left {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;   /* 🔹 липкая позиция */
  top: 100px;         /* отступ сверху (например, под navbar) */
  align-self: flex-start; /* чтобы sticky работал внутри flex-контейнера */
  height: fit-content;
}

/* меню */
.faq-menu {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px 15px 0 15px;
  height: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq-btn {
  display: block;
  text-align: center;
  background: #6C63FF;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.faq-btn:hover {
  background: #574bd6;
}

.faq-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-menu li {
  margin-bottom: 15px;
}
.faq-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.faq-menu a:hover {
  background: #f5f5f5;
}
.faq-menu a.active {
  background: #6C63FF;
  color: #fff;
}

/* контент */
.faq-content {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  /* ✅ выравнивание текста */
  text-align: left;
}
.faq-content h1,
.faq-content h2,
.faq-content h3 {
  color: #222;
}
.faq-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}
.faq-content blockquote {
  background: #f7f7f7;
  border-left: 4px solid #6C63FF;
  padding: 10px 15px;
  border-radius: 6px;
  margin: 15px 0;
}
.faq-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.faq-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 50px 0px;
}

.faq-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 40px;
}

/* 🔹 Анимация */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-section,
.faq-left,
.faq-content {
  opacity: 0; /* скрыто изначально */
  transform: translateY(25px);
}

.faq-section.animate,
.faq-left.animate,
.faq-content.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.faq-left.animate {
  animation-delay: 0.2s;
}

.faq-content.animate {
  animation-delay: 0.4s;
}

/* ✅ Адаптив под мобилки */
@media (max-width: 991px) {
  .faq-container {
    flex-direction: column;
    padding: 0px 20px 20px 20px;
  }

  .faq-left {
    flex: unset;
    width: 100%;
    gap: 15px;

    /* ❌ убираем липкость на мобилках */
    position: static;
    top: auto;
    align-self: auto;
  }

  .faq-menu,
  .faq-btn,
  .faq-content {
    width: 100%;
    box-sizing: border-box;
  }

  .faq-btn {
    width: 75%;
    margin: 0 auto;
    padding: 12px;
    font-size: 15px;
    display: block;
  }

  .faq-content {
    margin-top: 20px; /* нормальное расстояние */
    padding: 20px;
  }
}