/* ===== Протокол24 — mobile header restore brand FORCE v2.0.16 ===== */

@media (max-width: 767px) {
  header,
  .p24-header,
  .p24-site-header,
  .p24-main-header {
    min-height: 58px !important;
  }

  header.p24-mobile-brand-force,
  .p24-mobile-brand-force {
    position: relative !important;
  }

  header.p24-mobile-brand-force > div,
  header.p24-mobile-brand-force .p24-container,
  header.p24-mobile-brand-force .p24-header-inner,
  header.p24-mobile-brand-force .p24-header-row,
  header.p24-mobile-brand-force .p24-header-wrap,
  .p24-mobile-brand-force > div,
  .p24-mobile-brand-force .p24-container,
  .p24-mobile-brand-force .p24-header-inner,
  .p24-mobile-brand-force .p24-header-row,
  .p24-mobile-brand-force .p24-header-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .p24-mobile-brand-force-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #10234f !important;
    text-decoration: none !important;
    font-weight: 950 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    z-index: 60 !important;
  }

  .p24-mobile-brand-force-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    background: #155dfc !important;
    color: #fff !important;
    font-weight: 950 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    box-shadow: 0 10px 24px rgba(21,93,252,.22) !important;
  }

  .p24-mobile-brand-force-text {
    display: inline !important;
    color: #10234f !important;
    font-weight: 950 !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Скрываем авторизацию/профиль только в мобильной шапке */
  header .p24-auth-state,
  header .p24-user-pill,
  header .p24-user-avatar,
  header .p24-logout-link,
  header .p24-header-auth-auto,
  header a[href*="logout"],
  header a[href*="logout=yes"],
  header a[href="/lk/"],
  header [class*="avatar"],
  header [class*="profile"],
  header [class*="logout"],
  header [class*="account"],
  .p24-mobile-brand-force .p24-auth-state,
  .p24-mobile-brand-force .p24-user-pill,
  .p24-mobile-brand-force .p24-logout-link,
  .p24-mobile-brand-force [class*="avatar"],
  .p24-mobile-brand-force [class*="profile"],
  .p24-mobile-brand-force [class*="logout"] {
    display: none !important;
  }

  /* Навигация скрыта рядом с бургером */
  header nav,
  header .p24-nav,
  header .p24-header-nav,
  .p24-mobile-brand-force nav,
  .p24-mobile-brand-force .p24-nav,
  .p24-mobile-brand-force .p24-header-nav {
    display: none !important;
  }

  /* Бургер справа */
  header button[class*="burger"],
  header .p24-burger,
  header .p24-mobile-burger,
  header .p24-menu-toggle,
  header button[aria-label*="меню" i],
  header button[aria-label*="menu" i],
  .p24-mobile-brand-force button[class*="burger"],
  .p24-mobile-brand-force .p24-burger,
  .p24-mobile-brand-force .p24-mobile-burger,
  .p24-mobile-brand-force .p24-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
    z-index: 70 !important;
  }
}