:root {
  --top-nav-ink: #0e3a27;
  --top-nav-border: rgba(14, 58, 39, 0.1);
  --top-nav-white: #ffffff;
}

.site-nav {
  background: var(--top-nav-white);
  border-bottom: 1px solid var(--top-nav-border);
  flex: 0 0 auto;
  position: relative;
  z-index: 50;
}

.site-nav__inner {
  align-items: center;
  display: flex;
  height: 88px;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 1280px;
  min-width: 0;
  padding: 0 24px;
  position: relative;
  width: 100%;
}

.site-brand {
  align-items: center;
  color: var(--top-nav-ink);
  display: inline-flex;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  min-width: 0;
  text-decoration: none;
}

.site-brand__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 48px;
  justify-content: center;
  transition: transform 180ms ease;
  width: 58px;
}

.site-brand:hover .site-brand__icon {
  transform: scale(1.04);
}

.site-brand__logo {
  display: block;
  height: 52px;
  max-width: 68px;
  object-fit: contain;
  width: auto;
}

.site-brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-brand__star {
  color: #b87500;
}

.site-brand__text {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  min-width: 0;
}

.site-brand__tagline {
  color: rgba(14, 58, 39, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-type-switcher {
  align-items: center;
  background: #f6fbfa;
  border: 1px solid rgba(14, 58, 39, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(14, 58, 39, 0.08);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: 14px;
  padding: 4px;
}

.site-type-switcher__item {
  align-items: center;
  border-radius: 999px;
  color: rgba(14, 58, 39, 0.72);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.site-type-switcher__item:hover,
.site-type-switcher__item.is-active {
  background: #dfeeea;
  color: var(--top-nav-ink);
  box-shadow: inset 0 0 0 1px rgba(14, 58, 39, 0.08);
}

.site-nav__links {
  align-items: center;
  display: flex;
  gap: 40px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.site-nav__link {
  color: rgba(14, 58, 39, 0.62);
  font-size: 18px;
  font-weight: 700;
  padding: 32px 0 29px;
  position: relative;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--top-nav-ink);
}

.site-nav__link.is-active::after {
  background: var(--top-nav-ink);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.site-nav__cta {
  align-items: center;
  background: var(--top-nav-ink);
  border-radius: 12px;
  color: var(--top-nav-white);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  min-width: 102px;
  padding: 0 22px;
  text-decoration: none;
  transition: background 180ms ease;
}

.site-nav__cta:hover {
  background: rgba(14, 58, 39, 0.92);
}

.site-nav__actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 14px;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.site-nav__auth-link,
.site-nav__logout button {
  background: transparent;
  border: 0;
  color: rgba(14, 58, 39, 0.72);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 0;
  text-decoration: none;
}

.site-nav__auth-link:hover,
.site-nav__auth-link.is-active,
.site-nav__logout button:hover {
  color: var(--top-nav-ink);
}

.site-nav__logout {
  margin: 0;
}

@media (max-width: 1080px) {
  .site-nav__links {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-nav__inner {
    align-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    height: 72px;
    padding: 10px 16px;
  }

  .site-brand {
    gap: 10px;
  }

  .site-brand__name {
    font-size: 18px;
  }

  .site-brand__tagline {
    font-size: 9px;
  }

  .site-brand__icon {
    height: 42px;
    width: 50px;
  }

  .site-brand__logo {
    height: 46px;
    max-width: 60px;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__actions {
    display: inline-flex;
    gap: 10px;
    margin-left: auto;
  }

  .site-nav__cta {
    display: none;
  }

  .site-nav__auth-link,
  .site-nav__logout button {
    font-size: 13px;
    padding: 6px 0;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .site-nav__inner {
    gap: 10px;
    height: 68px;
    padding: 8px 12px 10px;
  }

  .site-brand {
    gap: 6px;
  }

  .site-brand__name {
    font-size: 15px;
  }

  .site-brand__tagline {
    font-size: 8px;
  }

  .site-brand__icon {
    height: 38px;
    width: 42px;
  }

  .site-brand__logo {
    height: 40px;
    max-width: 52px;
  }

  .site-nav__actions {
    gap: 8px;
  }

}
