@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  header {
    height: auto;
    min-height: 124px;
    padding: 0 16px;
    flex-wrap: wrap;
    align-content: flex-start;
  }

  header > div:first-child,
  .header-actions {
    height: 72px;
  }

  header > div:first-child strong {
    display: block;
  }

  .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .header-actions form {
    margin: 0;
  }

  .ghost-link {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
  }

  header nav {
    position: static;
    order: 3;
    flex: 0 0 calc(100% + 32px);
    width: calc(100% + 32px);
    height: 52px;
    margin: 0 -16px;
    gap: 0;
    align-items: stretch;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 14, 13, 0.96);
    z-index: auto;
  }

  header nav a {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    place-items: center;
    padding: 0 5px;
    font-size: 12px;
    white-space: nowrap;
  }

  main {
    padding-top: 32px;
    padding-bottom: 50px;
  }
}

@media (max-width: 350px) {
  header > div:first-child strong {
    display: none;
  }
}
