/* xhns.org — ночной город, холодный неон, много воздуха.
   Ассеты по логическим путям /assets/... — build.py подменяет их на хешированные. */

/* ---------- шрифты ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-var.a65657b317.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.59d4a1004e.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-var.51f1dd17d3.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- токены ---------- */
:root {
  --bg: #07090c;
  --bg-2: #0d1117;
  --text: #e6edf3;
  --muted: #8b949e;
  --muted-strong: #aab4bf;
  --cyan: #38e0ff;
  --cyan-dim: #7fd5e8;
  --red: #ff3b5c;
  --line: rgba(56, 224, 255, .18);
  --line-soft: rgba(56, 224, 255, .09);
  --card: linear-gradient(180deg, rgba(230, 237, 243, .035), rgba(230, 237, 243, .012));
  --glow: 0 18px 60px -30px rgba(56, 224, 255, .55);

  --font-display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 11vh, 8rem);
  --radius: 14px;
}

/* ---------- сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(56, 224, 255, .09), transparent 55%),
    radial-gradient(90% 60% at 8% 8%, rgba(255, 59, 92, .05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image: url("/assets/svg/grid-bg.91ac4f6072.svg");
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 38%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 38%);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #9beeff; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cyan);
  color: #04121a;
  padding: .6rem 1rem;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 12, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); background: rgba(7, 9, 12, .88); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 66px;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: .18em;
}
.brand__dot { width: .32em; height: .32em; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(.9rem, 2.2vw, 1.9rem); }
.site-nav a {
  font-size: .875rem;
  color: var(--muted-strong);
  padding: .35rem 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transition: right .25s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.lang-switch {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .72rem;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lang-switch:hover { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 999px;
  padding: .55rem 1.05rem;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, color .2s ease;
}
.btn:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-1px); }
.btn--primary {
  background: var(--cyan);
  color: #04121a;
  border-color: var(--cyan);
  font-weight: 600;
  box-shadow: var(--glow);
}
.btn--primary:hover { background: #63e9ff; color: #04121a; }
.btn--lg { padding: .8rem 1.5rem; font-size: .9375rem; }
.btn--cv { padding: .45rem .95rem; }
@media (max-width: 860px) { .site-nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 400px) { .btn--cv { padding: .45rem .7rem; font-size: .8125rem; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 8vh, 6rem) clamp(3.5rem, 9vh, 6.5rem); overflow: hidden; }
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .85;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.06fr .94fr; } }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cyan); opacity: .7; }
.hero__name {
  font-size: clamp(2.5rem, 7.4vw, 5.2rem);
  letter-spacing: -.045em;
  line-height: .96;
  margin-bottom: 1.1rem;
}
.hero__name .decoded { display: inline-block; }
.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(.8125rem, .76rem + .28vw, .9375rem);
  color: var(--muted-strong);
  letter-spacing: .01em;
  margin-bottom: 1.7rem;
}
.hero__thesis {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .95vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--text);
  border-left: 2px solid var(--cyan);
  padding-left: 1.05rem;
  margin-bottom: 1.6rem;
  max-width: 26ch;
}
.hero__lead { color: var(--muted-strong); max-width: 60ch; margin-bottom: 2.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__art { position: relative; }
.hero__art picture, .hero__art img { border-radius: var(--radius); }
.hero__art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  mask-image: radial-gradient(115% 105% at 62% 38%, #000 52%, transparent 92%);
  -webkit-mask-image: radial-gradient(115% 105% at 62% 38%, #000 52%, transparent 92%);
}
.hero__art .art-credit { bottom: 3.9rem; }
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 9, 12, .82) 100%);
}
.art-credit {
  position: absolute;
  right: .9rem;
  bottom: .7rem;
  z-index: 2;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .05em;
  color: var(--muted);
  text-shadow: 0 1px 4px rgba(7, 9, 12, .95);
}
.art-credit a { color: var(--muted); border-bottom: 1px solid var(--line); }
.art-credit a:hover { color: var(--cyan); border-color: var(--cyan); }

.telemetry {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: -3.2rem;
  margin-inline: clamp(.5rem, 3vw, 1.6rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 560px) { .telemetry { grid-template-columns: repeat(4, 1fr); } }
.telemetry li { background: rgba(7, 9, 12, .78); padding: .7rem .8rem .75rem; }
.telemetry b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1rem, .9rem + .5vw, 1.35rem);
  color: var(--cyan);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.telemetry span { display: block; font-size: .6875rem; color: var(--muted); line-height: 1.35; margin-top: .18rem; }

/* Мобайл/планшет: арт сверху (п.3 дизайна), но кадр ниже — имя, роль и тезис
   обязаны попасть на первый экран. Блок стоит ПОСЛЕ .hero__art: у правил
   одинаковая специфичность, побеждает последнее. */
@media (max-width: 1023px) {
  .hero { padding-block: clamp(1.5rem, 4vh, 3rem) clamp(3rem, 7vh, 5rem); }
  .hero__media { order: -1; }
  .hero__art img { aspect-ratio: 4 / 3; object-position: 50% 20%; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .hero__art img { aspect-ratio: 16 / 9; }
}

/* ---------- секции ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line-soft); position: relative; }
.section--flush { border-top: 0; }
.section__head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); max-width: 62ch; }
.section__title { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); margin-bottom: 1rem; }
.section__intro { color: var(--muted-strong); max-width: 58ch; }
.section__num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .18em; color: var(--cyan-dim); text-transform: uppercase; }

/* ---------- ghost / shell ---------- */
.gs-grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
@media (min-width: 800px) { .gs-grid { grid-template-columns: 1fr 1fr; } }
.gs-col { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); padding: clamp(1.3rem, 3vw, 2rem); }
.gs-col__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; }
.gs-col__head svg { width: 34px; height: 34px; flex: none; color: var(--muted-strong); }
.gs-col--ghost .gs-col__head svg { color: var(--cyan); }
.gs-col h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.gs-col li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-strong);
  font-size: .9375rem;
  line-height: 1.55;
}
.gs-col li + li { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line-soft); }
.gs-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}
.gs-col li + li::before { top: 1.47em; }

.flow { margin-top: clamp(2rem, 5vw, 3rem); }
.flow__frame {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(13, 17, 23, .55);
  padding: clamp(.8rem, 2.5vw, 1.6rem);
  overflow-x: auto;
}
.flow__frame svg { width: 100%; min-width: 620px; height: auto; font-family: var(--font-mono); }
.flow__caption { margin-top: 1rem; color: var(--muted); font-size: .875rem; max-width: 62ch; }
#dot { filter: drop-shadow(0 0 6px rgba(56, 224, 255, .9)); }
#dot.is-refused { fill: var(--red); filter: drop-shadow(0 0 6px rgba(255, 59, 92, .9)); }

/* ---------- стенды ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 4vw, 2.2rem); }
.chip {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: .38rem .85rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line); }
.chip[aria-pressed="true"] { color: #04121a; background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.chip__count { color: var(--muted); margin-left: .35rem; }
.chip[aria-pressed="true"] .chip__count { color: rgba(4, 18, 26, .7); }

.stands-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .stands-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stands-grid { grid-template-columns: repeat(3, 1fr); } }
.stand {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.stand:hover, .stand:focus-within { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--glow); }
.stand[hidden] { display: none; }
/* Длинная страница: 12 высоких карточек стоят ~200 мс раскладки до первой
   отрисовки на мобиле. content-visibility откладывает их до подхода к вьюпорту;
   contain-intrinsic-size держит высоту скроллбара, чтобы не было прыжков. */
.stand { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.stand__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #0b1016, #10161d);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.stand__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stand__shot img.stand__shot--mobile {
  position: absolute;
  inset: 0;
  object-fit: contain;
  background: #080b0f;
  opacity: 0;
  transition: opacity .35s ease;
}
.stand:hover .stand__shot--mobile, .stand:focus-within .stand__shot--mobile { opacity: 1; }
.stand__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: .5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background-image: url("/assets/svg/grid-bg.91ac4f6072.svg");
  background-size: 96px 96px;
}
.stand__body { padding: clamp(1.05rem, 2.4vw, 1.35rem); display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.stand__meta { display: flex; align-items: center; gap: .6rem; }
.stand__meta svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.stand__class { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stand__lang {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: .1rem .35rem;
}
.stand__title { font-family: var(--font-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.stand__title a { color: var(--text); }
.stand__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stand:hover .stand__title a { color: var(--cyan); }
.stand__row { font-size: .875rem; line-height: 1.5; }
.stand__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: .3rem;
}
.stand__row p { color: var(--muted-strong); }
.stand__proof { display: flex; flex-wrap: wrap; gap: .35rem; }
.stand__proof li {
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--muted-strong);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: .2rem .45rem;
  background: rgba(56, 224, 255, .04);
}
.stand__foot {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  color: var(--muted);
}
.stand__open { margin-left: auto; position: relative; z-index: 2; color: var(--cyan); font-size: .8125rem; }
.stand__open::after { content: " →"; }

/* ---------- метод ---------- */
.method-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); }
@media (min-width: 760px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .method-grid { grid-template-columns: repeat(3, 1fr); } }
.principle {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.principle__num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; color: var(--cyan); }
.principle h3 { font-family: var(--font-text); font-weight: 600; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.principle p { color: var(--muted-strong); font-size: .9375rem; }
.principle__example {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.55;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding: .35rem 0 .35rem .7rem;
}
.day { margin-top: clamp(2.4rem, 6vw, 3.6rem); }
.day h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.day__intro { color: var(--muted-strong); font-size: .9375rem; margin-bottom: 1.6rem; max-width: 60ch; }
.day__list { border-left: 1px solid var(--line); padding-left: clamp(1rem, 3vw, 1.8rem); }
.day__list li { position: relative; padding-bottom: 1.1rem; display: grid; grid-template-columns: 4.2rem 1fr; gap: .9rem; align-items: baseline; }
.day__list li:last-child { padding-bottom: 0; }
.day__list li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1rem, 3vw, 1.8rem) - 4px);
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--cyan);
}
.day__list li:last-child::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.day__t { font-family: var(--font-mono); font-size: .8125rem; color: var(--cyan-dim); }
.day__e { color: var(--muted-strong); font-size: .9375rem; }

/* ---------- опыт ---------- */
.track-grid { display: grid; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: start; }
@media (min-width: 1000px) { .track-grid { grid-template-columns: 1.35fr .65fr; } }
.episodes { display: grid; gap: clamp(1rem, 2.2vw, 1.4rem); }
@media (min-width: 640px) { .episodes { grid-template-columns: repeat(2, 1fr); } }
.episode { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); padding: clamp(1.15rem, 2.5vw, 1.5rem); }
.episode h3 { font-family: var(--font-text); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; margin-bottom: .6rem; letter-spacing: -.01em; }
.episode p { color: var(--muted-strong); font-size: .9375rem; }
.track-art { position: relative; }
.track-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  mask-image: linear-gradient(200deg, #000 55%, transparent 96%);
  -webkit-mask-image: linear-gradient(200deg, #000 55%, transparent 96%);
}
.track-art .art-credit { position: static; display: block; text-align: right; margin-top: .5rem; }
.timeline { margin-top: clamp(2rem, 5vw, 3rem); }
.timeline h3, .stack h3, .langs h3 { font-size: .8125rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-dim); margin-bottom: 1rem; }
.timeline li { display: grid; grid-template-columns: minmax(7.5rem, 9.5rem) 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line-soft); font-size: .9375rem; }
.timeline li:first-child { border-top: 0; }
.timeline__y { font-family: var(--font-mono); font-size: .8125rem; color: var(--cyan-dim); padding-top: .12em; }
.timeline__e { color: var(--muted-strong); }
.stack, .langs { margin-top: clamp(1.8rem, 4vw, 2.4rem); }
.stack p, .langs p { color: var(--muted-strong); font-size: .9375rem; line-height: 1.75; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- наука ---------- */
.science-list li { padding: .9rem 0; border-top: 1px solid var(--line-soft); color: var(--muted-strong); font-size: .9375rem; display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; }
.science-list li:first-child { border-top: 0; }
.science-list .mono { color: var(--cyan-dim); font-size: .75rem; padding-top: .3em; }
.science-foot { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }

/* ---------- контакт ---------- */
.contact { position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .21; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 9, 12, .72) 45%, var(--bg) 100%); }
.contact .container { position: relative; z-index: 1; }
.contact__email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 3vw, 3rem);
  letter-spacing: -.035em;
  display: inline-block;
  margin: .6rem 0 1.4rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: .1em;
}
.contact__email:hover { color: var(--cyan); border-color: var(--cyan); }
.contact__links { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.contact__note { margin-top: 1.6rem; color: var(--muted); font-size: .875rem; }
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 2rem 2.6rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: baseline; font-size: .8125rem; color: var(--muted); }
.site-footer p { max-width: 62ch; }
.site-footer .mono { margin-left: auto; }

/* ---------- баннер языка ---------- */
.lang-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(9, 14, 19, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  font-size: .8125rem;
}
.lang-hint__inner { display: flex; align-items: center; gap: .9rem; padding-block: .7rem; }
.lang-hint p { color: var(--muted-strong); }
.lang-hint a { text-decoration: underline; text-underline-offset: 3px; }
.lang-hint__close {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: .2rem .4rem;
}
.lang-hint__close:hover { color: var(--text); }
.lang-hint[hidden] { display: none; }

/* ---------- появление секций ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .3, 1); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(n + 6) { transition-delay: .3s; }
.js-off .reveal, .js-off .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .stand__shot--mobile { display: none; }
}
@media print { #hero-canvas, .lang-hint, .site-header { display: none; } body { background: #fff; color: #000; } }
