/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif !important;
}

/* ===== HEADER STYLES ===== */
.header {
  background: linear-gradient(120deg, #0f172a, #1e3a8a);
  color: white;
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  z-index: 2000;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.visible {
  top: 0;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: relative;
}

/* СТИЛЬ ДЛЯ ЛОГОТИПА */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
}

.logo-subtitle {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 2px;
  color: white;
}

.header-nav {
  display: flex;
  gap: 30px;
  z-index: 10;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 12px 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  height: 48px;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a73e8, #b833ff);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #b833ff;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active {
  color: #b833ff;
}

.nav-link.active:after {
  width: 100%;
}

/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ВЫПАДАЮЩИХ МЕНЮ - ЦЕНТРИРОВАНИЕ */
/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ВЫПАДАЮЩИХ МЕНЮ - ЦЕНТРИРОВАНИЕ ТЕКСТА */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 15px;
  min-width: 220px;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover .dropdown-menu {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.dropdown-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0;
  text-align: center; /* ЦЕНТРИРОВАНИЕ ТЕКСТА */
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(26, 115, 232, 0.2), rgba(184, 51, 255, 0.2));
  color: #b833ff;
  /* transform: translateX(5px); Убираем смещение при наведении */
}

.header-actions {
  display: flex;
  gap: 15px;
  z-index: 10;
  align-items: center;
}

.header-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.btn-primary {
  background: linear-gradient(90deg, #1a73e8, #b833ff);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.4);
}

/* Стиль для телефона */
.phone-link {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  display: flex;
  align-items: center;
  height: 40px;
  font-weight: 600;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  height: 30px;
  justify-content: center;
  padding: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ОБНОВЛЕННОЕ МОБИЛЬНОЕ МЕНЮ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  z-index: 1999;
  overflow-y: auto;
  padding: 0;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-nav-list {
  list-style: none;
  padding: 20px;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.mobile-nav-link:hover {
  color: #b833ff;
}

.mobile-nav-link .submenu-toggle {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-nav-link.active .submenu-toggle {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding: 10px 0 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 5px 0;
}

.mobile-submenu.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-submenu a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 2px 0;
}

.mobile-submenu a:hover {
  background: linear-gradient(90deg, rgba(26, 115, 232, 0.2), rgba(184, 51, 255, 0.2));
  color: #b833ff;
  transform: translateX(5px);
}

/* Кнопки в мобильном меню */
.mobile-actions {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-phone:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #b833ff;
}

.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(90deg, #1a73e8, #b833ff);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.mobile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.4);
}

/* Анимации */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
  .header-nav {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-main {
    padding: 15px 20px;
  }
  
  .header-nav {
    display: none;
  }
  
  .header-actions {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Адаптив для логотипа на мобильных */
  .logo-image {
    width: 40px;
    height: 40px;
  }
  
  .logo-title {
    font-size: 18px;
  }
  
  .logo-subtitle {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  
  .logo-image {
    width: 35px;
    height: 35px;
  }
  
  .mobile-nav-link {
    font-size: 15px;
    padding: 16px 0;
  }
  
  .mobile-submenu a {
    font-size: 13px;
    padding: 10px 12px;
  }
}

    /* Стили для кнопки Telegram бота */
    .btn-telegram {
      background: linear-gradient(90deg, #0088cc, #00aced);
      color: white;
      border: none;
      position: relative;
      overflow: hidden;
      font-weight: 600;
    }
    
    .btn-telegram:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
    }
    
    /* Защитный контейнер */
    .telegram-bot-wrapper {
      position: relative;
      display: inline-block;
    }