/* HOLOSAPIENS — общие стили. Палитра: бирюза фона, свечение циан/золото, белый текст. */
:root {
  --bg-1: #a9e6ea;
  --bg-2: #5cc6d2;
  --bg-3: #3fb1c0;
  --cyan: #b9fbff;
  --cyan-deep: #22d3ee;
  --gold: #ffe9a8;
  --gold-deep: #f5c86a;
  --ink: #0e3a44;
  --ink-soft: #1f5663;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 20px 60px rgba(14, 58, 68, 0.18);
  --radius: 22px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(34, 211, 238, 0.35); }

/* фон: градиент на фиксированном слое (background-attachment: fixed ломается в мобильных браузерах) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 42%, #c9f1f4 0%, var(--bg-1) 30%, var(--bg-2) 68%, var(--bg-3) 100%);
}
/* живой фон */
#bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* шапка */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
  font-weight: 300; letter-spacing: 0.32em; font-size: 15px;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.75);
}
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.top nav a {
  color: var(--white); text-decoration: none; opacity: 0.9;
  padding: 6px 2px; border-bottom: 1px solid transparent;
  text-shadow: 0 1px 10px rgba(14, 58, 68, 0.25);
  transition: border-color 0.25s, opacity 0.25s;
}
.top nav a:hover, .top nav a[aria-current="page"] { border-color: rgba(255, 255, 255, 0.85); opacity: 1; }

/* главная: соты */
.hive {
  position: relative; z-index: 1;
  width: min(100%, 1120px); margin: 0 auto;
  padding: 0 8px 24px;
}
.hive svg { width: 100%; max-height: calc(100vh - 290px); min-height: 380px; height: auto; display: block; overflow: visible; margin: 0 auto; }
.hex { cursor: pointer; }
.hex polygon {
  fill: rgba(20, 90, 104, 0.13);
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: url(#glow-cyan);
  transition: fill 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease;
}
.hex.gold polygon { stroke: var(--gold); filter: url(#glow-gold); }
.hex.empty polygon { stroke-opacity: 0.4; fill: rgba(255, 255, 255, 0.04); stroke-dasharray: 6 8; }
.hex.empty { cursor: default; }
.hex text {
  fill: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(14, 58, 68, 0.45);
  stroke-width: 3px;
  pointer-events: none;
  transition: font-size 0.3s;
}
.hex .sub { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.hex.core polygon { fill: rgba(20, 90, 104, 0.22); stroke-width: 2.2; }
.hex.core text { font-size: 24px; font-weight: 300; letter-spacing: 0.22em; }
.hex.core .sub { font-size: 10px; letter-spacing: 0.3em; }
.hex.link:hover polygon, .hex.link:focus-visible polygon {
  fill: rgba(20, 90, 104, 0.36);
  stroke: var(--white);
  stroke-width: 2.6;
}
.hex.link:focus-visible { outline: none; }
.hex .node { fill: var(--white); filter: url(#glow-cyan); opacity: 0.9; }
.hex.gold .node { filter: url(#glow-gold); }

/* плавание сот */
@keyframes floaty {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -5px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes breathe {
  0%, 100% { stroke-opacity: 0.75; }
  50%      { stroke-opacity: 1; }
}
.hex { animation: floaty 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hex polygon { animation: breathe 5s ease-in-out infinite; }
.hex.link:hover { animation-play-state: paused; }

.hive-wrap { position: relative; z-index: 1; padding: clamp(8px, 3vh, 36px) 0 40px; }
.tagline {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; padding: 0 20px;
  text-align: center; color: var(--white);
  font-weight: 300; font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55;
  text-shadow: 0 2px 16px rgba(14, 58, 68, 0.35);
}
.sections {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  list-style: none; margin: 18px auto 0; padding: 0 16px; max-width: 760px;
  font-size: 13px;
}
.sections a {
  color: var(--white); text-decoration: none; opacity: 0.85;
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
  backdrop-filter: blur(6px); transition: background 0.25s, opacity 0.25s;
}
.sections a:hover { background: rgba(255, 255, 255, 0.25); opacity: 1; }

/* внутренние страницы */
.page {
  position: relative; z-index: 1;
  width: min(100% - 32px, 820px); margin: 12px auto 64px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(24px, 5vw, 56px);
  animation: rise 0.7s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.eyebrow {
  margin: 0 0 10px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); opacity: 0.8;
}
h1 { margin: 0 0 18px; font-weight: 300; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.15; letter-spacing: -0.01em; }
h2 { margin: 42px 0 12px; font-weight: 400; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.25; }
h3 { margin: 26px 0 8px; font-weight: 600; font-size: 17px; }
p, li { font-size: 16.5px; line-height: 1.7; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; font-weight: 300; }
blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 3px solid var(--cyan-deep); background: rgba(255, 255, 255, 0.35); border-radius: 0 14px 14px 0;
  font-weight: 300; font-size: 19px; line-height: 1.5;
}
hr { border: 0; height: 1px; background: rgba(14, 58, 68, 0.15); margin: 40px 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 20px 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile {
  background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px; padding: 18px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14, 58, 68, 0.14); }
.tile h3 { margin: 0 0 8px; overflow-wrap: anywhere; hyphens: auto; }
.tile p { margin: 0; font-size: 15px; }
.tile .num { font-size: 12px; letter-spacing: 0.2em; color: var(--ink-soft); opacity: 0.75; }
.btn {
  display: inline-block; margin: 8px 10px 8px 0; padding: 12px 22px;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px;
  background: var(--ink); color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 58, 68, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 58, 68, 0.3); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(14, 58, 68, 0.4); box-shadow: none; }
.symptoms li { margin-bottom: 10px; }
.symptoms b { font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 20px 0; }
.contact-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(14, 58, 68, 0.12); }
.contact-list .k { width: 110px; flex: none; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a { font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(14, 58, 68, 0.35); }
.contact-list a:hover { border-color: var(--ink); }
.articles { list-style: none; padding: 0; margin: 0; }
.articles li { padding: 18px 0; border-bottom: 1px solid rgba(14, 58, 68, 0.12); }
.articles a { font-size: 19px; text-decoration: none; font-weight: 500; }
.articles a:hover { text-decoration: underline; }
.articles .meta { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.05em; }
.articles .soon { opacity: 0.6; }
.next {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(14, 58, 68, 0.15);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
}
.next a { text-decoration: none; font-size: 15px; border-bottom: 1px solid rgba(14, 58, 68, 0.35); }
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 20px; font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--white); opacity: 0.8; text-shadow: 0 1px 8px rgba(14, 58, 68, 0.3);
}
footer a { color: inherit; text-decoration: none; }

@media (max-width: 640px) {
  .top { padding: 14px 16px; }
  .top nav { display: none; }
  .hive svg { max-height: none; min-height: 0; }
  .hex text { font-size: 18px; }
  .hex .sub { font-size: 11px; }
  .hex.core text { font-size: 24px; letter-spacing: 0.14em; }
  .hex.core .sub { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hex, .hex polygon, .card { animation: none !important; }
  html { scroll-behavior: auto; }
}
