.appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--appbar-surface);
  background-image: none;
  padding: calc(10px + var(--safe-top)) var(--page-gutter) 10px;
}

.appbar::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--brand-line-gradient);
}

.appbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--page-max);
  margin-inline: auto;
}

.appbar-inner .logo {
  justify-self: start;
}

.appbar-actions {
  justify-self: end;
  display: none;
  align-items: center;
  gap: 16px;
}

.appbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.appbar-phone:hover {
  color: var(--graphite);
}

.appbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-l1 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-l2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -0.025em;
  margin-top: 2px;
}

.logo-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 1023px) {
  .logo-img {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767px) {
  .logo-img {
    width: 40px;
    height: 40px;
  }
}

.appbar-cta {
  flex-shrink: 0;
}

.appbar .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--graphite);
  cursor: pointer;
}

.appbar .icon-btn.appbar-menu-btn {
  display: none;
  box-shadow: 0 2px 8px rgba(26, 29, 35, 0.08);
}

.mobile-menu {
  --menu-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.mobile-menu.is-open {
  pointer-events: auto;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 35, 0.45);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    opacity 0.3s var(--menu-ease),
    backdrop-filter 0.3s var(--menu-ease);
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, var(--hero-grid-dot) 1px, transparent 0),
    linear-gradient(
      165deg,
      var(--hero-bg-start) 0%,
      var(--paper) 42%
    );
  background-size: 22px 22px, 100% 100%;
  padding:
    calc(12px + var(--safe-top))
    var(--page-gutter)
    calc(16px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.32s var(--menu-ease);
  box-shadow: -12px 0 40px rgba(26, 29, 35, 0.14);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mobile-menu__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-menu__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--graphite);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.mobile-menu__close {
  flex-shrink: 0;
  margin-top: 2px;
}

.mobile-menu__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--graphite);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.mobile-menu__link:hover {
  background: var(--cream);
}

.mobile-menu__link.is-active {
  background: var(--lime-soft);
}

.mobile-menu__link-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cream);
  color: var(--graphite-3);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-menu__link.is-active .mobile-menu__link-ico {
  background: var(--lime);
  color: var(--graphite);
}

.mobile-menu__link-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mobile-menu__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--cream);
  color: var(--graphite);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.15s ease;
}

.mobile-menu__phone:hover {
  background: var(--lime-soft);
}

.mobile-menu__phone-ico {
  display: grid;
  place-items: center;
  color: var(--graphite-3);
}

.mobile-menu__cta {
  margin: 0;
}

.mobile-menu__cta:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__backdrop,
  .mobile-menu__panel {
    transition: none;
  }

  .mobile-menu.is-open .mobile-menu__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  body.menu-open .bottom-nav {
    display: none;
  }
}

.trust-strip {
  display: none;
  gap: 8px;
  align-items: center;
  padding: 8px var(--page-gutter) 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-strip strong {
  font-weight: 700;
  color: var(--graphite);
}

.trust-strip__sep {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.trust-strip__addr {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 2vw, 14px);
  overflow: hidden;
}

.bottom-nav .tab {
  display: flex;
  flex: 0 1 clamp(52px, 18vw, 76px);
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
  font-size: 8px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.03em;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
  justify-content: flex-end;
}

.bottom-nav__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.bottom-nav .tab.active {
  color: var(--graphite);
}

.bottom-nav .tab.active .nav-ico {
  background: var(--lime);
  color: var(--graphite);
}

.bottom-nav .nav-ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.bottom-nav .nav-ico svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 359px) {
  .bottom-nav {
    padding-inline: 0;
  }

  .bottom-nav .tab {
    font-size: 7px;
  }

  .bottom-nav .nav-ico {
    width: 28px;
    height: 28px;
  }

  .bottom-nav .nav-ico svg {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 768px) {
  .trust-strip {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .appbar-actions {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .site-nav-desktop {
    display: flex;
    gap: clamp(4px, 1vw, 12px);
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-wrap: wrap;
  }

  .site-nav-desktop a {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 0;
    color: var(--muted);
  }

  .site-nav-desktop a:hover {
    color: var(--graphite);
  }

  .site-nav-desktop a.is-active {
    background: transparent;
    color: var(--graphite);
    box-shadow: inset 0 -2px 0 var(--lime);
  }

  .appbar-inner--nav-compact {
    grid-template-columns: auto 1fr auto;
  }

  .appbar-inner--nav-compact .site-nav-desktop {
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
  }

  .appbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-nav-desktop {
    display: none;
  }

  .appbar-actions {
    display: none;
  }

  .appbar .icon-btn.appbar-menu-btn {
    display: grid;
  }
}
