/* Scrolling Contact Ticker */
.top-ticker {
  background: linear-gradient(90deg, #0f1216 0%, #1b232c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 0.45rem;
  position: relative;
  z-index: 1000;
}

.top-ticker__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 2rem;
  flex-wrap: wrap;
}

.top-ticker__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f2f6fa;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  letter-spacing: 0.015em;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
  }

  svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 767px) {
  .top-ticker {
    padding-block: 0.4rem;
  }

  .top-ticker__inner {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .top-ticker__item {
    font-size: 0.82rem;
    width: 100%;
  }
}

.site_header {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  align-items: center;
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  z-index: 1200;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 8, 8, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.12);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease,
    border-color 0.35s ease,
    top 0.35s ease;

  &.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(8, 8, 8, 0.2);
    border-color: rgba(255, 119, 34, 0.35);
    padding-block: 0.65rem;
    top: 0.45rem;
  }

  .logo_premium {
    filter: invert(0.25);
  }

  &.payment {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.95) 100%);
    border-bottom: 2px solid rgba(57, 255, 20, 0.15);
    border-radius: 0;
    border-left: none;
    border-right: none;
    backdrop-filter: blur(10px);
    padding: 0.5rem;
  }

  @media screen and (max-width: 767px) {
    padding: 0.8rem 1rem;
    top: 84px;
    width: calc(100% - 1rem);
    left: 0;
    right: 0;

    &.scrolled {
      padding-block: 0.55rem;
      top: 0.35rem;
    }
  }

  .logo_header {
    max-width: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 11;

    .logo_mobile {
      display: none;
    }

    @media screen and (max-width: 767px) {
      .logo_desktop {
        display: none;
      }

      .logo_mobile {
        display: block;
        width: 40px;
      }
    }

    img {
      width: 100%;
      max-width: 110px;
    }
  }

  .site_navigation {
    @media screen and (min-width: 768px) {
      display: flex;
      align-items: center;
      gap: 2rem;

      .nav-close {
        display: none;
      }

      .btn-header-cta {
        display: none;
      }
    }

    @media screen and (max-width: 767px) {
      position: fixed;
      inset: 0;
      background: var(--white);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      transform: translateY(-100%);
      transition:
        transform 0.36s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
      opacity: 0;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      z-index: 1250;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 5.5rem 1.5rem 2rem;
      height: 90vh;

      &.active {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }

      .nav-close {
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
        right: 0.95rem;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        display: grid;
        place-items: center;
        font-size: 2.3rem;
        line-height: 1;
        cursor: pointer;
      }
    }

    ul {
      display: flex;
      gap: 1rem;
      list-style: none;
      li {
        margin: 0;
      }

      li a {
        text-decoration: none;
        font-weight: 600;
        color: rgba(8, 8, 8, 0.72);
        font-size: 1.2rem;
        border-radius: var(--border-radius-1);
        border: 1px solid transparent;
        transition:
          color 0.2s ease,
          background 0.2s ease,
          border-color 0.2s ease;
        display: block;

        &:hover {
          color: var(--black);
          background: rgba(255, 255, 255, 0.08);
          border-color: rgba(255, 255, 255, 0.12);
        }
      }

      @media screen and (max-width: 767px) {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
      }
    }
  }

  .header-right {
    position: relative;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    z-index: 1260;
    .dropdown-trigger {
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: none;
      border: none;
      padding: 5px;
      cursor: pointer;
      justify-content: center;
    }
    /* .logout-trigger {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid rgba(8, 8, 8, 0.14);
      background: rgba(255, 255, 255, 0.92);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
      transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

      img {
        width: 18px;
        height: 18px;
        display: block;
        filter: invert(1);
      }

      &:hover {
        background: rgba(255, 119, 34, 0.16);
        border-color: rgba(255, 119, 34, 0.34);
        transform: translateY(-1px);
      }

      @media screen and (max-width: 767px) {
        position: fixed;
        top: 10px;
        right: 4.2rem;
        z-index: 1301;
      }
    } */

    .header-cta-desktop {
      @media screen and (max-width: 767px) {
        display: none;
      }
    }

    .dropdown-menu {
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      background: var(--white);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      width: 25%;
      padding: 5rem 1.5rem 2rem;
      transform: translateY(-100%);
      -webkit-transform: translateY(-100%);
      opacity: 0;
      pointer-events: none;
      transition:
        transform 0.36s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
      box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
      overflow-y: auto;
      z-index: 9;

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        width: 50%;
      }

      @media screen and (max-width: 767px) {
        width: 85%;
      }

      &.active {
        transform: translateY(0);
        -webkit-transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
      }

      ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        li {
          margin: 0;
        }
        li a {
          display: block;
          padding: 0.75rem 1rem;
          font-size: 1.125rem;
          font-weight: 600;
          color: rgba(0, 0, 0, 0.75);
          border-radius: var(--border-radius-1);
          transition:
            color 0.2s,
            background 0.2s;

          &:hover {
            color: var(--primary);
            background: rgba(255, 119, 34, 0.06);
          }
        }
      }
    }
  }

  .btn-header-cta {
    padding: 0.55rem 1.5rem;
    font-size: 1.3rem;
    min-width: auto;
    border-radius: var(--border-radius-4);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    border: 1px solid rgba(8, 8, 8, 0.1);
    transition:
      background 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;

    &:hover {
      background: rgba(255, 119, 34, 0.16);
      color: var(--black);
      border-color: rgba(255, 119, 34, 0.35);
    }
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1261;
    position: relative;

    span {
      display: block;
      width: 26px;
      height: 2px;
      background-color: var(--black);
      transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: 2px;

      &:nth-child(2) {
        width: 18px;
        margin-left: auto;
        background: var(--primary);
      }
    }

    &.active,
    &[aria-expanded="true"] {
      span:first-child {
        transform: translateY(7px) rotate(45deg);
        background: var(--primary);
      }
      span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }
      span:last-child {
        transform: translateY(-7px) rotate(-45deg);
        background: var(--primary);
      }
    }

    @media screen and (max-width: 767px) {
      display: flex;
      width: 42px;
      height: 42px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(8, 8, 8, 0.15);
      align-items: center;
      justify-content: center;

      &.active,
      &[aria-expanded="true"] {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
        right: 0.95rem;
        z-index: 1301;
        background: rgba(8, 8, 8, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.36);
      }
    }

    @media screen and (min-width: 768px) {
      width: auto;
      height: auto;
      border: none;
      border-radius: 0;
      background: transparent;
    }

    @media screen and (max-width: 767px) {
      width: 44px;
      height: 44px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);

      &.active,
      &[aria-expanded="true"] {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);

        span:first-child,
        span:last-child {
          background: var(--white);
        }
      }
    }
  }

  @media screen and (min-width: 768px) {
    .mobile-nav {
      display: none;
    }
  }
}
