nav.top {
  --bg: oklch(0.96 0.012 88);
  --rule: oklch(0.82 0.018 88);
  --forest: oklch(0.30 0.065 148);
  --forest-deep: oklch(0.22 0.055 150);
  --cream: oklch(0.98 0.012 90);
  --radius-pill: 999px;
  display: block;
  min-height: 0;
  gap: normal;
  align-items: normal;
  justify-content: normal;
  flex-direction: initial;
  padding: 0;
  color: var(--forest-deep);
  font-family: system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
}

nav.top .wrap {
  width: auto;
  max-width: 1200px;
  height: 104px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.top .logo {
  display: flex;
  align-items: center;
  color: var(--forest-deep);
  text-decoration: none;
}

nav.top .logo-mark {
  display: block;
  height: 88px;
}

nav.top .logo-mark svg {
  height: 100%;
  width: auto;
  display: block;
}

nav.top .nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

nav.top .nav-menu {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--forest-deep);
  background: color-mix(in oklab, var(--cream) 72%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

nav.top .nav-menu span {
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

nav.top .nav-toggle:focus-visible ~ .nav-cta .nav-menu {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

nav.top .nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav.top .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  margin-right: 24px;
}

nav.top .nav-links a {
  color: var(--forest-deep);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

nav.top .nav-links a:hover {
  color: var(--forest);
}

nav.top .nav-cta .phone {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

nav.top .nav-cta .phone svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

nav.top .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

nav.top .btn:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  nav.top {
    display: block;
    padding: 0;
    flex-direction: initial;
  }

  nav.top .nav-links {
    display: none;
  }

  nav.top .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  nav.top .nav-toggle:checked ~ .nav-cta .nav-menu span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  nav.top .nav-toggle:checked ~ .nav-cta .nav-menu span:nth-child(2) {
    opacity: 0;
  }

  nav.top .nav-toggle:checked ~ .nav-cta .nav-menu span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav.top .nav-cta .phone {
    display: none;
  }

  nav.top .wrap {
    height: 82px;
    padding: 0 16px;
    position: relative;
  }

  nav.top .nav-cta {
    gap: 8px;
    margin-left: auto;
  }

  nav.top .nav-menu {
    display: inline-flex;
    flex: 0 0 auto;
  }

  nav.top .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(23, 32, 25, 0.14);
  }

  nav.top .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  nav.top .nav-links a:hover {
    background: color-mix(in oklab, var(--forest) 8%, transparent);
  }

  nav.top .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  nav.top .logo-mark {
    height: 66px;
  }
}
