.top {
  padding: 0 !important;
}

.top-inner {
  width: 100%;
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.top .brand {
  order: 1;
  width: 132px;
  flex: 0 0 132px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.top .brand b {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.035em;
}

.toplinks {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 120px)) minmax(132px, 1fr);
  align-self: stretch;
  gap: 0;
}

.toplinks a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 2px solid transparent;
  color: #8e8a83;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.toplinks a:hover {
  background: rgba(234, 210, 142, .035);
  color: #d9d3c8;
}

.toplinks a.active {
  border-bottom-color: var(--gold);
  background: rgba(234, 210, 142, .055);
  color: var(--gold);
}

.toplinks .toplink-ask {
  align-self: center;
  justify-self: end;
  min-height: 36px;
  margin: 0 8px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--gold);
  color: #181611;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font: 700 10px var(--mono, "SFMono-Regular", monospace);
  letter-spacing: .055em;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.toplinks .toplink-ask:hover {
  border-color: #f2dc98;
  background: #f2dc98;
  color: #181611;
  box-shadow: 0 10px 30px rgba(234, 210, 142, .2);
  transform: translateY(-1px);
}

.ask-short {
  display: none;
}

.top .menubtn {
  order: 3;
  display: none;
}

@media (max-width: 1120px) {
  .top-inner {
    gap: 12px;
    padding: 0 20px;
  }

  .top .brand {
    width: 108px;
    flex-basis: 108px;
  }

  .toplinks {
    grid-template-columns: repeat(4, 86px) minmax(112px, 1fr);
  }

  .toplinks a {
    padding: 0 12px;
    font-size: 11px;
  }

  .toplinks .toplink-ask {
    min-height: 34px;
    margin: 0 5px;
    padding: 0 10px;
  }

}

@media (max-width: 860px) {
  .top-inner {
    gap: 10px;
    padding: 0 16px;
  }

  .top .brand {
    width: 104px;
    flex-basis: 104px;
  }

  .toplinks {
    grid-template-columns: repeat(4, 72px) minmax(92px, 1fr);
  }

  .top .menubtn {
    order: 0;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
  }

  .top:not([data-catalog-menu]) .menubtn {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-inner {
    gap: 6px;
    padding: 0 10px;
  }

  .top .brand {
    width: 82px;
    flex-basis: 82px;
  }

  .top .brand b {
    font-size: 17px;
  }

  .toplinks {
    grid-template-columns: repeat(4, 52px) minmax(68px, 1fr);
  }

  .toplinks a {
    padding: 0 5px;
    font-size: 10px;
  }

  .ask-full {
    display: none;
  }

  .ask-short {
    display: inline;
  }

  .toplinks .toplink-ask {
    min-height: 32px;
    margin: 0 3px;
    padding: 0 6px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .top-inner {
    padding: 0 6px;
  }

  .top .brand {
    display: none;
  }

  .toplinks {
    grid-template-columns: repeat(4, 45px) minmax(62px, 1fr);
  }

  .toplinks a {
    padding: 0 3px;
    font-size: 9px;
  }

  .toplinks .toplink-ask {
    margin: 0 2px;
    padding: 0 4px;
  }

  .top .menubtn {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}
