  <style>
    /* ===== БАЗОВЫЕ СТИЛИ ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Montserrat", sans-serif;
    }
    
    /* ===== 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-icon {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #1a73e8, #b833ff);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
    }
    
    .logo-text {
      display: flex;
      flex-direction: column;
    }
    
    .logo-title {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: 1px;
    }
    
    .logo-subtitle {
      font-size: 12px;
      opacity: 0.8;
      letter-spacing: 2px;
    }
    
    .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; /* Такая же высота как у nav-link */
    }
    
    .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      padding: 15px;
      min-width: 200px;
      z-index: 10000;
      background: linear-gradient(135deg, #1e3a8a, #0f172a);
    }
    
    .nav-item:hover .dropdown-menu {
      display: block;
    }
    
    .dropdown-menu a {
      display: block;
      color: white;
      text-decoration: none;
      padding: 10px 15px;
      border-radius: 4px;
      transition: all 0.3s ease;
      font-size: 14px;
    }
    
    .dropdown-menu a:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #b833ff;
    }
    
    .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; /* Такая же высота как у кнопки */
    }
    
    /* Mobile menu button (hidden by default) */
    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 20;
      height: 30px;
      justify-content: center;
    }
    
    .menu-toggle span {
      width: 25px;
      height: 3px;
      background: white;
      border-radius: 2px;
      transition: all 0.3s ease;
    }
    
    /* Мобильное меню */
    .mobile-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: linear-gradient(135deg, #1e3a8a, #0f172a);
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      z-index: 1000;
    }
    
    .mobile-menu.active {
      display: block;
    }
    
    .mobile-nav-list {
      list-style: none;
    }
    
    .mobile-nav-item {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-link {
      display: block;
      color: white;
      text-decoration: none;
      padding: 12px 0;
      font-weight: 500;
      transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
      color: #b833ff;
    }
    
    .mobile-submenu {
      display: none;
      padding-left: 20px;
    }
    
    .mobile-submenu.active {
      display: block;
    }
    
    .mobile-submenu a {
      display: block;
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      padding: 10px 0;
      font-size: 14px;
      transition: all 0.3s ease;
    }
    
    .mobile-submenu a:hover {
      color: #b833ff;
    }
    
    /* ===== АДАПТИВ ===== */
    @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;
      }
      
      .menu-toggle {
        display: flex;
      }
    }
  </style>