:root {
  --bg: #0B1220;
  --surface: #121B2E;
  --text: #EAF0FF;
  --muted: #B6C2E2;
  --primary: #3B82F6;
  --secondary: #22C55E;
  --accent: #A78BFA;
  --border: rgba(255,255,255,0.12);
  --biotech: rgba(59,130,246,0.12);
  --biology: rgba(34,197,94,0.1);
  --lab: rgba(167,139,250,0.08);
  --future-medicine: rgba(234,240,255,0.04);
  --bio-tech-ui: biotech biology lab;
  --bio-tech-future: future medicine;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 8%, var(--biotech) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 18%, var(--biology) 0%, transparent 38%),
    linear-gradient(165deg, #0B1220 0%, #0E1830 45%, #0B1220 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(255,255,255,0.03) 47px,
      rgba(255,255,255,0.03) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(255,255,255,0.03) 47px,
      rgba(255,255,255,0.03) 48px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 70% 80%, var(--lab) 0%, transparent 45%),
    radial-gradient(circle at 20% 60%, var(--future-medicine) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.mono-accent {
  font-family: "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;
  letter-spacing: 0.04em;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.disclosure-banner {
  width: 100%;
  background: linear-gradient(90deg, #0E1A32 0%, #1A2A4A 50%, #0E1A32 100%);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  padding: 10px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  background: rgba(15,15,25,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.nav-desktop a {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 6px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--text);
  text-shadow: 0 0 8px var(--accent);
}

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15,15,25,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 950;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 72px 24px 40px;
}

.nav-drawer a {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.nav-drawer a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 940;
}

.drawer-overlay.open {
  display: block;
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 40px 0 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-badges img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-requisites {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-nz-disclosure {
  font-size: 12px;
  color: rgba(182,194,226,0.85);
  line-height: 1.65;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

.footer-nz-disclosure a {
  color: var(--secondary);
}

.age-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-overlay.active {
  display: flex;
}

.age-gate-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  animation: labPulse 0.5s ease;
}

@keyframes labPulse {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.age-gate-window h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.age-gate-window p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-ui:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 0 16px rgba(59,130,246,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1800;
  background: rgba(18,27,46,0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
}

.cookie-banner.active {
  display: block;
  animation: biologyRise 0.4s ease;
}

@keyframes biologyRise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 220px;
}

.cookie-inner a {
  color: var(--accent);
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.page-content h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

.page-content h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--primary);
}

.page-content h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.page-content p {
  margin-bottom: 14px;
  color: var(--muted);
}

.page-content ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

.page-content li {
  margin-bottom: 8px;
}

.page-shell {
  background: rgba(234,240,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--biotech);
  pointer-events: none;
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #f87171;
}

.form-error.visible {
  display: block;
}

.form-success {
  margin-top: 20px;
  padding: 16px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 10px;
  color: var(--secondary);
  font-size: 14px;
}

.biotech-rail {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}

.biology-chip {
  display: inline-block;
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  font-size: 11px;
  color: var(--secondary);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.28);
  padding: 4px 10px;
  border-radius: 4px;
}

.lab-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.future-medicine-glow {
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .nav-drawer {
    display: block;
  }
}

@media (max-width: 600px) {
  .disclosure-banner {
    font-size: 11px;
    padding: 10px 12px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .footer-top {
    flex-direction: column;
  }
}
