/* Holiday Labs — canonical nav stylesheet.
   Injected on every page so the header chrome (logo + horizontal nav +
   UA/EN switcher + mobile burger) renders identically regardless of which
   artifact's inline CSS does or does not define these classes.
   Loaded AFTER the artifact's inline <style>, so on pages where the artifact
   already defines these rules (equal specificity), our values win by cascade
   source order — and they're written to match those artifacts' values. */

body > nav,
body > header > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}

nav .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #0f172a;
  font-family: inherit;
}
nav .logo > span {
  display: inline-block;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-top: 0;
}
nav .logo .badge {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: normal;
  font-family: inherit;
}
nav .logo small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #64748b;
  font-weight: 600;
  font-family: inherit;
  margin-top: 2px;
}

nav .nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .nav-links li {
  padding: 0;
  list-style: none;
}
nav .nav-links a {
  color: #0f172a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
nav .nav-links a:hover,
nav .nav-links a.active,
nav .nav-links a[aria-current='page'] {
  color: #1d4ed8;
}

nav .locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
nav .locale-switch a {
  color: #0f172a;
  text-decoration: none;
}

nav .burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
nav .burger span {
  width: 24px;
  height: 2px;
  background: #0f172a;
}

/* Canonical footer — guaranteed regardless of artifact CSS, same reasoning as the
   canonical nav above. Some artifacts don't define .foot-grid / .foot-bottom etc.,
   which makes the injected footer partial render as bullet-list stack. These rules
   keep the four-column grid + dark theme consistent on every page. */

footer#footer {
  background: #060f1d;
  color: #fff;
  padding: 70px 0 40px;
}
footer#footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
footer#footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
footer#footer .foot-grid h4 {
  color: #9fb3cc;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 600;
  font-family: inherit;
}
footer#footer .foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer#footer .foot-grid li {
  margin-bottom: 11px;
  list-style: none;
  padding: 0;
}
footer#footer .foot-grid a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
}
footer#footer .foot-grid a:hover {
  color: #fff;
}
footer#footer .foot-intro .logo {
  color: #fff;
}
footer#footer .foot-intro p {
  color: #9fb3cc;
  font-size: 15px;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.5;
}
footer#footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  color: #7e93ad;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  footer#footer .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}
@media (max-width: 560px) {
  footer#footer .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* Page-content tweaks. Keep these surgical; we are not restyling artifacts. */

/* /bioavailable.html hero metric block — the artifact mixes serif words
   ("любое", "пром.") with mono numerals ("+25%", "0") in the same .v slot,
   producing a 24px-vs-30px size mismatch that reads as a layout bug. Lift
   the mono slot to match the serif clamp so all four cells line up. */
.hm .v.mono {
  font-size: clamp(22px, 2.4vw, 30px);
}

@media (max-width: 900px) {
  nav .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px 32px;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-130%);
    transition: 0.35s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }
  nav .nav-links.open {
    transform: translateY(0);
  }
  nav .nav-links li {
    padding: 8px 0;
  }
  nav .burger {
    display: flex;
  }
}
