/* MENZIL - Логотип по центру шапки на мобильной (v3 - центрирование) */

@media (max-width: 768px) {
  /* === ШАПКА === */
  .navbar {
    padding: 8px 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: rgba(10, 15, 28, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* === КОНТЕЙНЕР шапки === */
  .navbar .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  
  /* === ЛОГОТИП ПО ЦЕНТРУ === */
  .navbar .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    max-width: calc(100% - 110px) !important;
    margin: 0 auto !important;
  }
  
  /* === ИКОНКА ЛОГОТИПА - КРАСИВАЯ === */
  .navbar .logo-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3) !important;
  }
  
  /* === ТЕКСТ ЛОГОТИПА === */
  .navbar .logo-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: left !important;
  }
  
  /* === НАЗВАНИЕ - крупное, видное === */
  .navbar .logo-name {
    font-size: 14px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-weight: 800 !important;
    color: #f1f5f9 !important;
  }
  
  /* === ПОДЗАГОЛОВОК - помещается полностью === */
  .navbar .logo-tag {
    font-size: 9px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    opacity: 0.7 !important;
    letter-spacing: 0.8px !important;
    margin-top: 1px !important;
    color: #94a3b8 !important;
  }
  
  /* === Скрыть горизонтальное меню === */
  .navbar .nav-menu {
    display: none !important;
  }
}

/* === Совсем узкие экраны (< 380px) === */
@media (max-width: 380px) {
  .navbar .logo {
    max-width: calc(100% - 100px) !important;
    gap: 8px !important;
  }
  
  .navbar .logo-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  
  .navbar .logo-name {
    font-size: 12px !important;
  }
  
  .navbar .logo-tag {
    font-size: 8px !important;
    letter-spacing: 0.5px !important;
  }
}

/* === ОЧЕНЬ узкие (< 340px) - скрыть подзаголовок === */
@media (max-width: 340px) {
  .navbar .logo-tag {
    display: none !important;
  }
}
