.top .nav-links {
  display: flex;
  align-items: center;
  gap: 29px;
}

.top .nav-promos,
.top .nav-segments,
.top .menu-icon-close {
  display: none;
}

.top .login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.top .login svg {
  flex: none;
}

@media (max-width: 1000px) {
  .top .nav-links {
    gap: 14px;
  }
}

@media (max-width: 800px) {
  body.menu-open {
    overflow: hidden;
  }

  .top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 242, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .top .top-inner {
    min-height: 74px;
    gap: 12px;
  }

  .top .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-height: calc(100dvh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 16px max(16px, calc((100vw - 720px) / 2)) 28px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(31, 35, 38, .1);
  }

  .top .nav.open {
    display: flex;
  }

  .top .nav-promos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 10px;
  }

  .top .nav-promos .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .top .nav-promos .btn-outline {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
  }

  .top .nav-links,
  .top .nav-segments {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .top .nav-links a,
  .top .nav-links a[aria-current=page],
  .top .nav-segments a {
    display: block;
    min-height: 46px;
    padding: 12px 10px;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
  }

  .top .nav-links a:hover,
  .top .nav-segments a:hover {
    background: #f4f0e6;
    color: var(--ink);
  }

  .top .nav-links .nav-desktop-plan {
    display: none;
  }

  .top .nav-segments {
    margin-top: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }

  .top .nav-segments span {
    padding: 0 10px 8px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .top .top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .top .top-actions > .btn {
    display: none;
  }

  .top .login {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 18px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }

  .top .login svg {
    width: 13px;
    height: 13px;
  }

  .top .menu-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
  }

  .top .menu-btn[aria-expanded=true] .menu-icon-open {
    display: none;
  }

  .top .menu-btn[aria-expanded=true] .menu-icon-close {
    display: block;
  }
}

@media (max-width: 560px) {
  .top .wrap {
    width: min(100% - 32px, 1160px);
  }

  .top .top-inner {
    min-height: 65px;
  }

  .top .logo img {
    width: 124px;
  }

  .top .nav {
    min-height: calc(100dvh - 65px);
    max-height: calc(100dvh - 65px);
  }
}
