.mobile-toggle {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(72, 197, 243, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10, 45, 105, 0.14);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: var(--color-white);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background-color 0.25s ease,
    width 0.25s ease;
}

.mobile-toggle span + span {
  margin-top: 5px;
}

.mobile-toggle span:nth-child(2) {
  width: 18px;
  margin-left: auto;
  margin-right: auto;
}

.mobile-toggle:hover span:nth-child(2) {
  width: 22px;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.mobile-panel.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 36, 0.55);
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-panel.is-open .mobile-panel__overlay {
  opacity: 1;
}

.mobile-panel__content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 380px);
  height: 100%;
  background: var(--color-primary-dark);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: -24px 0 50px rgba(9, 18, 36, 0.28);
}

.mobile-panel.is-open .mobile-panel__content {
  transform: translateX(0);
}

.mobile-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mobile-panel__title {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.mobile-panel__close {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-white);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
}

.mobile-panel__close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(72,197,243,0.26);
  transform: translateY(-1px);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mobile-nav a {
  color: var(--color-white);
  font-weight: 700;
  padding: 1rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  transition: var(--transition-fast);
}

.mobile-nav a:hover {
  background: rgba(72,197,243,0.14);
  color: var(--color-primary);
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .site-header .btn--primary {
    display: none;
  }

  .site-header__outer {
    padding: 1.2rem 0;
  }

  .site-header__inner {
    min-height: 88px;
    padding: 0 1.25rem;
    border-radius: 24px;
  }

  .site-logo img {
    width: 188px;
  }
}

@media (max-width: 767px) {
  .site-header__outer {
    padding: 1rem 0;
  }

  .site-header__inner {
    min-height: 78px;
    padding: 0 1rem;
    border-radius: 22px;
    gap: 1rem;
  }

  .site-logo img {
    width: 164px;
  }

  .mobile-toggle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .mobile-toggle span {
    width: 20px;
  }

  .mobile-toggle span:nth-child(2) {
    width: 16px;
  }

  .mobile-toggle:hover span:nth-child(2) {
    width: 20px;
  }

  .mobile-panel__content {
    width: min(92vw, 360px);
    padding: 1.25rem;
    gap: 1.2rem;
  }

  .mobile-panel__title {
    font-size: 1.12rem;
  }

  .mobile-panel__close {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .mobile-nav a {
    padding: 0.95rem 0.95rem;
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .mobile-panel .btn--block {
    min-height: 54px;
  }

  .site-header.is-scrolled .site-header__outer {
    padding: 0;
  }

  .site-header.is-scrolled .site-header__inner {
    min-height: 74px;
  }
}

@media (max-width: 575px) {
  .site-header__outer {
    padding: 0.9rem 0;
  }

  .site-header__inner {
    min-height: 74px;
    padding: 0 0.9rem;
    border-radius: 20px;
  }

  .site-logo img {
    width: 150px;
  }

  .mobile-toggle {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .mobile-toggle span {
    width: 18px;
    height: 2px;
  }

  .mobile-toggle span:nth-child(2) {
    width: 14px;
  }

  .mobile-toggle:hover span:nth-child(2) {
    width: 18px;
  }

  .mobile-panel__content {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .mobile-nav a {
    padding: 0.9rem 0.9rem;
    font-size: 0.96rem;
  }

  .site-header.is-scrolled .site-header__inner {
    min-height: 70px;
  }
}