/* ============================================================
   L Brother — Navigation
   Floating pill nav, framed logo, language toggle, mobile menu.
   ============================================================ */

/* ------------------------------------------------------------
   Floating nav shell
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding-inline: 14px;
  pointer-events: none; /* only the pill itself is clickable */
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(var(--container), 100%);
  padding: 11px 12px 11px 22px;
  background: rgba(252, 251, 250, .82);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-nav);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition:
    box-shadow .3s var(--ease),
    background .3s var(--ease);
}

/* Solidifies slightly once the page scrolls */
.nav.scrolled .nav-pill {
  background: rgba(252, 251, 250, .94);
  box-shadow: rgba(20, 18, 16, .1) 0 10px 34px 0;
}

/* ------------------------------------------------------------
   Logo — framed wordmark with superscript L and tagline
   ------------------------------------------------------------ */

.brand {
  display: flex;
  align-items: center;
  flex: none;
  color: var(--tw-ink);
}

.logo-frame {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 9px 12px 5px;
  line-height: 1;
  border: 1.8px solid currentColor;
}

.logo-frame .logo-word {
  padding-right: 1px;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: .17em;
}

.logo-frame .logo-l {
  position: absolute;
  top: 3px;
  right: 11px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .06em;
}

.logo-frame .logo-tag {
  margin-top: 4px;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: .2em;
  white-space: nowrap;
  opacity: .85;
}

/* Large variant — footer */
.logo-frame--lg {
  padding: 12px 18px 8px;
}

.logo-frame--lg .logo-word {
  font-size: 27px;
  letter-spacing: .18em;
}

.logo-frame--lg .logo-l {
  top: 5px;
  right: 17px;
  font-size: 13px;
}

.logo-frame--lg .logo-tag {
  margin-top: 6px;
  font-size: 9px;
}

/* ------------------------------------------------------------
   Nav links
   ------------------------------------------------------------ */

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--granite);
  border-radius: var(--r-pill);
  transition:
    background .2s,
    color      .2s;
}

.nav-links a:hover {
  background: rgba(20, 18, 16, .06);
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-cta {
  flex: none;
}

/* ------------------------------------------------------------
   Language toggle (RU / EN)
   ------------------------------------------------------------ */

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(20, 18, 16, .06);
  border-radius: var(--r-pill);
}

.lang button {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--slate);
  border-radius: var(--r-pill);
  transition: all .2s var(--ease);
}

.lang button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: rgba(20, 18, 16, .1) 0 2px 8px;
}

/* ------------------------------------------------------------
   Burger (mobile only — shown by the responsive stylesheet)
   ------------------------------------------------------------ */

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: rgba(20, 18, 16, .06);
  border-radius: 50%;
}

.burger span,
.burger span::before,
.burger span::after {
  content: "";
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}

.burger span::before {
  position: absolute;
  top: -6px;
}

.burger span::after {
  position: absolute;
  top: 6px;
}

/* ------------------------------------------------------------
   Mobile menu overlay
   ------------------------------------------------------------ */

.m-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 96px var(--gutter) 40px;
  background: var(--canvas);
  transform: translateY(-100%);
  transition: transform .4s var(--ease-out);
}

.m-menu.open {
  transform: translateY(0);
}

.m-menu a {
  padding: 14px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}

.m-menu .btn {
  margin-top: 24px;
}
