.sticky-header {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid hsl(0deg, 0%, 0%, 0.2);
  padding: 8px 8px;
  width: calc(100% - 32px);
  width: 100%;
  background: hsl(0deg, 0%, 100%, 0.98);
  box-shadow: 0px 4px 4px hsl(0deg, 0%, 0%, 0.1);
  color: var(--rust);
  font-feature-settings: "palt";
  z-index: 10;

  .sticky-header-content {
    width: 100%;
    max-width: var(--main-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
  }

  a {
    position: relative;
    color: var(--rust);
    font-weight: 400;
    text-decoration: none;
    transition: all;
    transition-duration: 0.2s;
    &.scroll {
      &:after {
        content: "▼";
        position: absolute;
        left: 50%;
        top: 65%;
        transform: translateX(-50%);
        opacity: 0.3;
        font-size: 10px;
      }
      &:hover:after {
        opacity: 1;
      }
    }
  }
  .sticky-logo {
    line-height: 1;
  }
  .sticky-logo a {
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.03em;
  }
  .sticky-menu {
    position: relative;
    top: -2px;
    display: flex;
    gap: 30px;

    @media (max-width: 720px) {
      gap: 10px;
    }

    a {
      color: var(--teal);
      font-size: 15px;
    }
  }
  .sticky-login a {
    display: inline-block;
    border: 1px solid var(--teal);
    border-radius: 6px;
    padding: 2px 10px;
    color: var(--teal);
    font-weight: 500;
    font-size: 14px;
    &:hover {
      opacity: 0.7;
    }
  }

  .sticky-toggle {
    display: none;
  }

  @media (max-width: 640px) {
    top: 0;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 0;
    padding: 8px;
    width: 100vw;

    &[aria-expanded="true"] {
      height: 100dvh;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      transition: height 0.5s ease;

      .sticky-toggle {
        background: var(--teal);
        color: white;
      }

      .sticky-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
      }
      .sticky-logo {
        position: absolute;
        top: 9px;
        left: 8px;
      }
      .sticky-menu {
        margin-top: 100px;
      }
      .sticky-right {
        position: absolute;
        top: 8px;
        right: 8px;
      }
    }
    &[aria-expanded="false"] {
      height: auto;

      .sticky-menu {
        display: none;
      }
    }

    .sticky-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .sticky-menu {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .sticky-toggle {
      display: block;
      border: 1px solid var(--teal);
      padding: 2px 4px 5px;
      background: #fff;
      color: var(--teal);
      font-size: 24px;
      font-weight: bold;
      line-height: 1;
      border-radius: 4px;
      transition: all 0.3s;
    }
    a.scroll::after {
      content: "▶";
      position: static;
      transform: none;
      padding-left: 10px;
    }
  }
  @media (min-width: 641px) {
    /* top: 8px; */
    top: 0;
  }
}

@media (max-width: 800px) {
  .sticky-header .sticky-logo a {
    font-size: 16px;
  }
}
