.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav.nav--mobile-ready {
    min-height: 68px;
    height: 68px;
    padding: 8px clamp(18px, 4vw, 34px);
    gap: 16px;
    isolation: isolate;
    background: rgba(7, 8, 10, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    backdrop-filter: blur(16px);
  }

  .nav.nav--mobile-ready .nav-brand {
    width: 142px;
    height: 52px;
    min-width: 142px;
    flex: 0 0 142px;
  }

  .nav.nav--mobile-ready .nav-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.25);
  }

  .nav.nav--mobile-ready .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 112, 52, .48);
    border-radius: 10px;
    background: rgba(255, 112, 52, .06);
    color: #ff7034;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s ease, border-color .2s ease;
  }

  .nav.nav--mobile-ready .nav-toggle:hover,
  .nav.nav--mobile-ready .nav-toggle[aria-expanded="true"] {
    background: rgba(255, 112, 52, .14);
    border-color: #ff7034;
  }

  .nav.nav--mobile-ready .nav-toggle:focus-visible,
  .nav.nav--mobile-ready .nav-links a:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 3px !important;
  }

  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .24s ease, opacity .18s ease;
  }

  .nav-toggle__icon { position: relative; }
  .nav-toggle__icon::before,
  .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__icon::before { transform: translateY(-6px); }
  .nav-toggle__icon::after { transform: translateY(6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: rotate(-45deg); }

  .nav.nav--mobile-ready .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: clamp(14px, 3vw, 30px);
    width: min(360px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 112, 52, .25);
    border-radius: 12px;
    background: #101114;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    font-size: 14px;
    letter-spacing: .09em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav.nav--mobile-ready.nav--open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav.nav--mobile-ready .nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 11px 16px;
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }

  .nav.nav--mobile-ready .nav-links a + a { border-top: 1px solid rgba(255,255,255,.07); }
  .nav.nav--mobile-ready .nav-links a:hover { background: rgba(255,112,52,.08); color: #ff7034; }
  .nav.nav--mobile-ready .nav-links a[data-mobile-active="true"] { color: #ff7034; background: rgba(255,112,52,.09); }
  .nav.nav--mobile-ready .nav-links a[data-mobile-active="true"]::before {
    content: "";
    width: 3px;
    height: 18px;
    margin-right: 12px;
    border-radius: 2px;
    background: #ff7034;
  }
  .nav.nav--mobile-ready .nav-links a[aria-current="page"]::after { display: none; }
}

@media (max-width: 620px) {
  .nav.nav--mobile-ready { min-height: 62px; height: 62px; }
  .nav.nav--mobile-ready .nav-brand { width: 128px; min-width: 128px; height: 46px; flex-basis: 128px; }
  .nav.nav--mobile-ready .nav-toggle { width: 44px; height: 44px; }
  .nav.nav--mobile-ready .nav-links { top: calc(100% + 6px); }
}

@media (max-width: 1024px) and (max-height: 500px) {
  .nav.nav--mobile-ready { min-height: 56px; height: 56px; }
  .nav.nav--mobile-ready .nav-brand { height: 42px; }
  .nav.nav--mobile-ready .nav-toggle { width: 42px; height: 42px; }
  .nav.nav--mobile-ready .nav-links { max-height: calc(100dvh - 68px); }
}

@media (prefers-reduced-motion: reduce) {
  .nav.nav--mobile-ready .nav-toggle,
  .nav.nav--mobile-ready .nav-toggle__icon,
  .nav.nav--mobile-ready .nav-toggle__icon::before,
  .nav.nav--mobile-ready .nav-toggle__icon::after,
  .nav.nav--mobile-ready .nav-links { transition: none; }
}
