.catalog-page {
  font-family: var(--font-ui);
}

.catalog-page .app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  overflow: visible;
}

.catalog-page .brand span {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 20px;
  height: 20px;
}

.catalog-page .brand i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: currentColor;
}

.catalog-page .brand i:nth-child(1) { height: 10px; opacity: .72; }
.catalog-page .brand i:nth-child(2) { height: 17px; }
.catalog-page .brand i:nth-child(3) { height: 13px; opacity: .86; }

.catalog-page .profile-menu {
  z-index: 40;
  margin-left: auto;
}

.catalog-page .header-menu-button:focus-visible,
.catalog-page .profile-menu summary:focus-visible,
.catalog-page .tool-menu a:focus-visible {
  outline: 3px solid rgba(22, 114, 184, .22);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .catalog-page .app-header {
    gap: 9px !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .catalog-page .header-title {
    flex: 1;
    min-width: 0 !important;
  }

  .catalog-page .header-title p {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-page .profile-menu {
    display: block !important;
  }

  .catalog-page .header-menu-button {
    display: grid !important;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
  }

  .catalog-page .tool-menu {
    position: absolute;
    z-index: 50;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none !important;
    align-self: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid #d5e2eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 42, 68, .18);
  }

  .catalog-page .app-header.catalog-menu-open .tool-menu {
    display: grid !important;
  }

  .catalog-page .tool-menu a {
    min-height: 40px;
    padding: 0 12px !important;
  }

  :root[data-theme="dark"] .catalog-page .tool-menu {
    border-color: #355d7b;
    background: #10283e;
  }
}

@media (max-width: 520px) {
  .catalog-page .header-title p {
    display: none;
  }

  .catalog-page .header-title h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}