:root {
  --brand-logo-h: 3.85rem;
  --shell-max: 1140px;
}

html {
  scrollbar-gutter: stable;
}

.container,
.shell-bar__inner {
  width: min(var(--shell-max), 92vw);
  margin: 0 auto;
}

.shell-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.75rem 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none !important;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo__img {
  display: block;
  height: var(--brand-logo-h);
  width: auto;
  max-width: 14.75rem;
}

.brand-logo--header .brand-logo__img,
.brand-logo--header svg {
  height: var(--brand-logo-h);
  width: auto;
  max-width: 14.75rem;
  min-width: unset;
}

.brand-logo--auth {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 0.85rem;
}

.brand-logo--header {
  justify-content: flex-start;
}

.brand-logo--auth .brand-logo__img {
  height: var(--brand-logo-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 245, 242, 0.92);
  border-bottom: 1px solid rgba(229, 224, 218, 0.9);
  padding-top: env(safe-area-inset-top, 0);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.75rem 0;
}

.site-nav {
  display: flex;
  gap: clamp(0.35rem, 1.2vw, 0.65rem);
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.site-nav a:not(.btn) {
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 500;
  color: #6f6a65;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(.btn):hover {
  color: #161514;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.site-header .btn:active {
  transform: scale(0.98);
}

.site-header .btn--primary {
  background: #161514;
  color: #faf9f7;
  box-shadow: 0 12px 28px rgba(22, 21, 20, 0.14);
}

.site-header .btn--primary:hover {
  background: #2a2826;
  color: #fff;
}

.site-header .btn--ghost {
  background: transparent;
  color: #161514;
  border: 1px solid #e5e0da;
}

.site-header .btn--ghost:hover {
  border-color: #9a8262;
  color: #6f5c44;
}

@media (max-width: 720px) {
  :root { --brand-logo-h: 3.35rem; }

  .site-nav a:not(.btn) {
    display: none;
  }

  .site-header__inner,
  .shell-bar__inner {
    gap: 0.65rem;
    min-height: 3.35rem;
    padding: 0.65rem 0;
  }

  .site-nav {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .brand-logo--header .brand-logo__img,
  .brand-logo--header svg {
    max-width: 12.5rem;
  }
}

@media (max-width: 560px) {
  :root { --brand-logo-h: 2.85rem; }

  .site-header__inner {
    padding: 0.55rem 0;
    gap: 0.45rem;
  }

  .site-nav {
    gap: 0.28rem;
    flex-wrap: nowrap;
  }

  .site-header .btn {
    padding: 0.46rem 0.62rem;
    font-size: 0.72rem;
  }

  .brand-logo--header .brand-logo__img,
  .brand-logo--header svg {
    max-width: 9.5rem;
  }
}

@media (max-width: 380px) {
  .site-header .btn {
    padding: 0.42rem 0.5rem;
    font-size: 0.68rem;
  }

  .brand-logo--header .brand-logo__img,
  .brand-logo--header svg {
    max-width: 8.25rem;
  }
}
