html {
	min-height: 1400px;
}

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;
}

.plans {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.plans h2 {
  font-size: 32px;
  margin-bottom: 45px;
  text-align: center;
  font-weight: 600;
  color: #222;
}

/* ---------- Десктоп: таблица ---------- */
.plans-table {
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.plans-table div {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
  text-align: center;
}

.plans-table .feature {
  text-align: left;
  font-weight: 500;
  color: #444;
  background: #fafafa;
}

.plans-table .header {
  font-weight: 600;
  font-size: 16px;
  background: #fdfdfd;
}

.plans-table .price {
  font-weight: 700;
  color: #6C63FF;
  font-size: 15px;
}

.plans-table .btn {
  display: inline-block;
  padding: 8px 14px;
  background: #6C63FF;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.plans-table .btn:hover {
  background: #574bd6;
}

.plans-table .section {
  grid-column: 1 / -1;
  background: #f9f9f9;
  font-weight: 600;
  text-align: left;
  padding: 10px 16px;
  color: #222;
  border-top: 2px solid #e0e0e0;
}
.plans-table .section:first-of-type {
  border-top: none;
}

/* ---------- Анимация ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация для таблицы */
.plans-table div {
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards;
}

.plans-table div:nth-child(1) { animation-delay: 0.15s; }
.plans-table div:nth-child(2) { animation-delay: 0.3s; }
.plans-table div:nth-child(3) { animation-delay: 0.45s; }
.plans-table div:nth-child(4) { animation-delay: 0.6s; }

/* ---------- Мобилки: карточки ---------- */
.plans-cards {
  display: none;
}

.plan-period {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 50px auto;
  padding: 15px;

  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);

  max-width: 600px;

  /* 🔹 закрепление */
  position: sticky;
  top: 70px; /* отступ сверху (под navbar) */
  z-index: 999; /* чтобы было поверх таблицы */
}

.plan-period span {
  padding: 8px 16px;
  border-radius: 6px;
  background: #f1f1f1;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.plan-period span:hover {
  background: #e0e0e0;
}

.plan-period span.active {
  background: #6C63FF;
  color: #fff;
}

.discount-text {
  font-size: 12px;
  color: #d9534f; /* красноватый */
  margin-top: -9px;
  margin-bottom: -12px;
  font-weight: 700;
  border-bottom: none !important;
}

@media (max-width: 991px) {
  .plans-table {
    display: none; /* скрываем таблицу */
  }

  .plans-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .plan-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .plan-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: -4px;
    margin-bottom: 5px;
    text-align: center;
  }

  .plan-card .price {
    font-size: 28px;
    font-weight: 1000;
    color: #6C63FF;
    margin-top: -4px;
    margin-bottom: 15px;
    text-align: center;
  }

  .plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
  }

  .plan-card ul li {
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .plan-card ul li span {
    color: #444;
  }

  .plan-card ul li .value {
    font-weight: 500;
  }

  .plan-card .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;
  }

  .plan-card .btn:hover {
    background: #574bd6;
  }
  
  .plan-card ul li.section {
    display: block;
    background: #f9f9f9;
    font-weight: 600;
    color: #222;
    padding: 8px 0;
    text-align: center;
    border-radius: 8px;
    border-bottom: 2px solid #e0e0e0;
    margin-top: 10px;
  }

  .plan-card ul li.section:first-child {
    margin-top: 0;
  }
  
  .plan-period {
    top: 60px; /* чуть меньше отступ */
    max-width: 100%;
  }
  
  .discount-text {
	  font-size: 16px;
	  color: #d9534f; /* красноватый */
	  margin-top: 6px;
	  margin-bottom: 0px;
	  font-weight: 1000;
	  border-bottom: none !important;
	}
	
	.plan-card.highlighted {
    box-shadow: 0 0 0 3px #6C63FF inset, 0 4px 12px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    transform: scale(1.02);
  }
}

.animate {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 0.8s ease forwards;
}