/* ═══════════════════════════════════════
   AnalyzAI — Shared site chrome (header + footer)
   ═══════════════════════════════════════

   WHY THIS FILE EXISTS
   The landing's header/footer styles live entirely inside landing_final.css,
   which also carries ~3900 lines of landing-only layout and scroll animation.
   Public biomarker pages need the same brand chrome but must stay light, so
   they must not load landing_final.css.

   These rules are COPIED VERBATIM from landing_final.css (header: lines 23-100,
   footer: 2170-2360, mobile: 2907-2926 + 3859-3919) so the chrome renders
   identically. landing_final.css is deliberately left untouched — the landing
   still uses its own copy, so this file cannot regress it.

   Consumed by: templates/biomarker/base.html only.

   NOTE ON DRIFT: this is a duplicate. If the landing chrome is restyled, update
   both. The alternative — extracting the rules out of landing_final.css — would
   have required editing the live landing's stylesheet and its cascade order.

   DELIBERATE DIFFERENCES from the landing (both are landing-only machinery):
   1. No .hamburger / .sidebar rules. The mobile sidebar navigates to landing
      section anchors (#section-how, #section-faq) that do not exist on a
      biomarker page, so those pages omit the hamburger and keep the "Войти"
      button visible on mobile instead (see the media query below).
   2. No .scroll-reveal. On the landing the footer carries scroll-reveal, which
      sets opacity:0 until the landing's IntersectionObserver adds .is-visible.
      Without that script the footer would be invisible, so biomarker pages use
      the footer markup without that class.
   ═══════════════════════════════════════ */

/* ═══ HEADER ═══ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 80px;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* NOTE: the landing's .badge-beta rule is deliberately NOT copied here. Biomarker
   pages dropped the Beta badge (T5a) — "Beta" refers to the manual review of
   generated reports and says nothing about a reference article — so the rule
   would be dead weight. The landing keeps its own badge and its own rule. */

/* "Войти" button — exact Figma spec */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: 0.07px;
  color: var(--color-primary);
  background: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-login:hover {
  background: var(--bg-section);
}

.btn-login:active {
  background: #E0E7FF;
}


/* ═══ FOOTER ═══ */

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 80px;
  background: #1A202C;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  padding: 80px 40px 160px 40px;
}

.footer__blocks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 49px;
}

/* --- Logo block --- */

.footer__logo-block {
  display: flex;
  gap: 40px;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
}

.footer__logo {
  width: 140px;
  height: 36px;
  flex-shrink: 0;
}

.footer__copyright {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #FFFFFF;
  width: 112px;
  white-space: nowrap;
}

/* --- Privacy links --- */

.footer__privacy {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
}

.footer__link {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 10px;
  transition: color 150ms ease;
}

.footer__link:hover {
  color: #4A90D9;
  text-decoration: underline;
}

.footer__link--terms {
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.07px;
  color: #4A90D9;
  text-decoration: underline;
}

.footer__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2px;
  font-size: 0;
  color: #A0AEC0;
}

.footer__sep::before {
  content: '';
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #A0AEC0;
}

/* --- Contact block --- */

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  width: 127px;
}

.footer__email {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #FFFFFF;
  text-decoration: none;
  text-align: right;
  width: 100%;
  transition: color 150ms ease;
}

.footer__email:hover {
  color: #4A90D9;
  text-decoration: underline;
}

/* --- Disclaimer --- */

.footer__disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #4A90D9;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.footer__disclaimer-text {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0px;
  color: #A0AEC0;
  flex: 1 0 0;
}


/* ═══ MOBILE ═══ */

@media (max-width: 768px) {

  .site-header {
    padding: 0 16px;
  }

  .header-content {
    padding: 20px 0;
    gap: 0;
  }

  /* Landing hides .btn-login here and shows the hamburger instead. Biomarker
     pages have no sidebar, so the login button stays — it is the only nav. */

  .footer {
    padding: 0 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .footer__content {
    /* Landing uses 80px 0 80px; trimmed bottom padding — that reserve is for
       the landing's sticky mobile CTA, which these pages do not have. */
    padding: 56px 0 56px 0;
  }

  /* Blocks: vertical stack on mobile (horizontal row on desktop) */
  .footer__blocks {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 40px;
  }

  /* Logo block: vertical, centered */
  .footer__logo-block {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer__copyright {
    text-align: center;
  }

  /* Privacy links: vertical column, no separators */
  .footer__privacy {
    flex-direction: column;
    align-items: center;
  }

  /* Hide circle dividers on mobile */
  .footer__sep {
    display: none;
  }

  .footer__link {
    text-align: center;
    padding: 8px 10px;
  }

  /* Contact: centered */
  .footer__contact {
    width: auto;
    align-items: center;
  }

  .footer__email {
    text-align: center;
  }

  .footer__disclaimer {
    width: 100%;
  }
}
