/* ============================================================
   ОСНОВА: шрифты, палитра, типографика, кнопки.

   Палитра намеренно почти монохромная: белый по чёрному и один
   тёплый акцент. Разноцветные «вселенные» превратили бы карту
   в детскую схему метро – различаются они номером и названием.
   Акцент тот же янтарный, что у Media Rocket, только светлее.
   ============================================================ */

@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(fonts/GolosText-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(fonts/GolosText-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url(fonts/GolosText-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url(fonts/GolosText-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(fonts/GolosText-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(fonts/GolosText-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-weight: 800; font-display: swap; src: url(fonts/GolosText-800-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 800; font-display: swap; src: url(fonts/GolosText-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(fonts/JetBrainsMono-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(fonts/JetBrainsMono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
  --bg: #07080B;
  --bg-2: #0C0E13;
  --panel: rgba(255, 255, 255, .025);
  --panel-hi: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #F2F3F5;
  --ink-70: rgba(242, 243, 245, .72);
  /* .56 на #07080B даёт контраст ~6:1 – хватает и для мелкого текста */
  --ink-50: rgba(242, 243, 245, .56);
  --ink-30: rgba(242, 243, 245, .3);
  --accent: #FFB25C;
  --accent-soft: rgba(255, 178, 92, .14);

  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 128px);
  --r: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--bg); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: .6em 1em; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 12px; }

/* --- небо: тонкая сетка, гаснущая к краям ------------------------
   Один фиксированный слой на всю страницу. Сетка нарисована
   градиентами, без картинок, и маской уходит в темноту – так нет
   ощущения «тетрадного листа». */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 178, 92, .06), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 85%);
  opacity: .55;
}

/* --- типографика ------------------------------------------------ */
.display {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.dim { color: var(--ink-30); }
.eyebrow {
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow-idx { color: var(--ink-50); margin-right: .6em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-70); max-width: 56ch; }
.lead + .lead { margin-top: 1em; }
.muted { color: var(--ink-50); margin-top: .5rem; }

/* --- кнопки ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .7em 1.5em;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: transparent;
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.btn .ar { transition: transform .35s var(--ease); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--sm { min-height: 40px; padding: .5em 1.15em; font-size: .9rem; }
@media (hover: hover) {
  .btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
  .btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
  .btn:hover .ar { transform: translateX(4px); }
}
.acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ============================================================
   КАРКАС: ширина, шапка, первый экран, секции.
   ============================================================ */

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0 0; }
.sec--tight { padding-top: clamp(40px, 5vw, 72px); }
main > :last-child { padding-bottom: var(--sec); }
.s-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 60rem; }
.s-head .lead { margin-top: 1.2rem; }

/* --- шапка -------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--top-h);
  background: rgba(7, 8, 11, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand .mark { color: var(--ink); }
.brand .mark circle:nth-child(2) { fill: var(--accent); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-weight: 600; font-size: .98rem; }
.brand-txt small { font: 500 .66rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }

.top-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.top-link {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  padding: .5em .75em;
  border-radius: 100px;
  font-size: .9rem;
  color: var(--ink-70);
  transition: color .25s, background-color .25s;
}
.top-idx { font: 500 .66rem var(--mono); color: var(--ink-30); }
.top-link.is-current { color: var(--ink); background: rgba(255, 255, 255, .06); }
.top-link.is-current .top-idx { color: var(--accent); }
@media (hover: hover) { .top-link:hover { color: var(--ink); } }
.top-cta { margin-left: .6rem; }

.top-burger { display: none; }

@media (max-width: 1180px) {
  .top-burger {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
    min-height: 40px;
    padding: .4em 1em;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    background: none;
    font-size: .9rem;
    cursor: pointer;
  }
  .top-burger-lines, .top-burger-lines::before { display: block; width: 14px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
  .top-burger-lines::before { content: ''; position: absolute; top: 5px; }
  .top-burger-lines { transform: translateY(-2.5px); }
  .top-burger[aria-expanded='true'] .top-burger-lines { transform: rotate(45deg); }
  .top-burger[aria-expanded='true'] .top-burger-lines::before { transform: translateY(-5px) rotate(-90deg); }

  .top-nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--top-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: rgba(7, 8, 11, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .top-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .top-link { padding: .95em 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .top-link.is-current { background: none; }
  .top-cta { margin: 1.2rem 0 0; }
}
/* Без скриптов меню не откроется – тогда держим его раскрытым
   списком под шапкой, чтобы переходы между проектами оставались. */
html:not(.js) .top { height: auto; position: relative; }
html:not(.js) .top-burger { display: none; }
@media (max-width: 1180px) {
  html:not(.js) .top-in { flex-wrap: wrap; padding-block: .8rem; }
  html:not(.js) .top-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; border: 0; width: 100%; }
}

/* --- первый экран --------------------------------------------- */
.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero-head { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.hero-lead { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-70); max-width: 52ch; }
.hero-sub { margin-top: 1.2rem; font-size: clamp(1.25rem, 2.3vw, 1.8rem); font-weight: 500; letter-spacing: -.01em; }

.hero--home { padding-top: clamp(40px, 6vw, 72px); }
.hero--home .hero-head { display: grid; gap: 0 4rem; }
.hero--home .display { font-size: clamp(2.3rem, 5vw, 4.4rem); }
@media (min-width: 1000px) {
  .hero--home .hero-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
  .hero--home .eyebrow { grid-column: 1 / -1; }
  .hero--home .hero-lead { margin: 0 0 .4rem; font-size: 1.05rem; }
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; }
}
.hero--page .display { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }

/* --- общие панели ------------------------------------------------ */
.panel {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012) 60%);
}
.panel--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.panel--row > div { max-width: 46rem; }
.panel--row .h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; }

/* ============================================================
   КАРТА ВСЕЛЕННЫХ – центр, орбиты, проекты и связи.

   SVG и HTML живут в одной сетке 1200×700: блок карты держит эти
   пропорции, точки проектов поставлены в процентах той же сетки.
   Поэтому линии из SVG приходят ровно в точки HTML на любой ширине.

   На узких экранах карта превращается в вертикальную цепочку:
   центр сверху, проекты списком на общей линии. Подсказки там
   видны сразу – наводить мышь на телефоне нечем.
   ============================================================ */

.wrap--map { margin-top: clamp(1rem, 2.5vw, 2rem); }

.map {
  position: relative;
  aspect-ratio: 1200 / 700;
  --px: 0;
  --py: 0;
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* лёгкий параллакс: дальние слои двигаются меньше ближних */
.layer { transition: transform 1.2s var(--ease); }
.layer--stars { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -8px)); }
.layer--orbits { transform: translate(calc(var(--px) * -4px), calc(var(--py) * -3px)); }

.layer--stars circle { fill: rgba(242, 243, 245, .42); }
.layer--stars .tw { animation: twinkle 6s ease-in-out infinite; }

.orbit { fill: none; stroke: rgba(242, 243, 245, .07); stroke-width: 1; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.orbit--main { stroke: rgba(242, 243, 245, .14); stroke-dasharray: none; }
.probe { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 178, 92, .9)); }
.probe--dim { fill: rgba(242, 243, 245, .7); filter: none; }

.ln { fill: none; stroke: rgba(242, 243, 245, .12); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .4s, opacity .4s; }
.ln--spoke { stroke-dasharray: 3 6; }
.ln-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  stroke-dashoffset: 100;
  vector-effect: non-scaling-stroke;
  opacity: .8;
  animation: pulse 5.5s linear infinite;
}
.ln-pulse:nth-of-type(2n) { animation-delay: -1.8s; }
.ln-pulse:nth-of-type(3n) { animation-delay: -3.4s; animation-duration: 7s; }
.halo { fill: none; stroke: rgba(242, 243, 245, .1); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.sat { fill: rgba(242, 243, 245, .5); transition: fill .4s; }

/* фокус на проекте: его связи загораются, остальное приглушается */
.map.has-focus .ln, .map.has-focus .ln-pulse { opacity: .35; }
.map.has-focus .ln.is-on { opacity: 1; stroke: rgba(255, 178, 92, .75); stroke-dasharray: none; }
.map.has-focus .ln-pulse.is-on { opacity: 1; }
.map .halo.is-on { stroke: rgba(255, 178, 92, .6); }
.map .sat.is-on { fill: var(--accent); }

/* --- центр: Семён --------------------------------------------- */
.core {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 15rem;
}
.core-photo {
  width: clamp(88px, 10vw, 128px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px var(--bg), 0 0 0 8px rgba(255, 178, 92, .35), 0 0 60px rgba(255, 178, 92, .25);
}
.core-rings { position: absolute; top: calc(clamp(88px, 10vw, 128px) / 2); left: 50%; width: 0; height: 0; }
.core-rings i {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(clamp(88px, 10vw, 128px) + 44px);
  aspect-ratio: 1;
  border: 1px dashed rgba(242, 243, 245, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}
.core-rings i + i { width: calc(clamp(88px, 10vw, 128px) + 92px); border-style: solid; border-color: rgba(242, 243, 245, .06); animation-duration: 90s; animation-direction: reverse; }
.core-name { margin-top: 1.1rem; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: -.01em; }
.core-role { margin-top: .25rem; font: 500 .66rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }

/* --- проекты -------------------------------------------------- */
.nodes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16rem;
  transform: translate(-50%, -9px);
  pointer-events: auto;
  transition: opacity .4s;
}
.node:hover, .node:focus-within { z-index: 5; }
.map.has-focus .node:not(.is-focus) { opacity: .4; }

.node-hit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; outline-offset: 6px; }
.node-dot {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.node-dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--ink);
  transition: background-color .4s;
}
.node-label { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
/* тёмный ореол вокруг букв гасит линии связей, проходящие под
   подписью, – без плашек и рамок */
.node-label > span { text-shadow: 0 0 3px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg), 0 0 22px var(--bg); }
.node-idx { font: 500 .66rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); }
.node-name { font-weight: 800; font-size: clamp(1rem, 1.7vw, 1.45rem); letter-spacing: .01em; line-height: 1.05; transition: color .3s; }
.node-tag { font-size: .85rem; line-height: 1.35; color: var(--ink-50); max-width: 15rem; }

.node:hover .node-dot, .node:focus-within .node-dot { transform: scale(1.25); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 6px var(--accent-soft), 0 0 28px rgba(255, 178, 92, .6); }
.node:hover .node-dot::after, .node:focus-within .node-dot::after { background: var(--accent); }
.node:hover .node-name, .node:focus-within .node-name { color: var(--accent); }

/* --- подсказка при наведении --------------------------------------
   Подсказка – часть самого проекта, поэтому мышь можно увести на
   неё и нажать ссылку на второй сайт (у AutoLife их два). Отступ
   до неё сделан прозрачными полями, а не margin: иначе между
   подписью и подсказкой была бы щель, и она закрывалась бы. */
.node-card {
  position: absolute;
  width: 20rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .3s, transform .35s var(--ease), visibility 0s .3s;
}
.node:hover .node-card, .node:focus-within .node-card {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.node-card-in {
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(12, 14, 19, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  text-align: left;
}
.node[data-h='l'] .node-card { right: 100%; padding-right: 10px; }
.node[data-h='r'] .node-card { left: 100%; padding-left: 10px; }
.node[data-h='c'] .node-card { left: 50%; margin-left: -10rem; top: 100%; padding-top: 12px; }
.node[data-h='c'][data-v='u'] .node-card { top: auto; bottom: 100%; padding: 0 0 12px; }
.node[data-v='m']:not([data-h='c']) .node-card { top: -1.2rem; }
.node[data-v='d']:not([data-h='c']) .node-card { top: -1.2rem; }
.node[data-v='u']:not([data-h='c']) .node-card { bottom: -.6rem; }

.card-lead { font-size: .95rem; line-height: 1.45; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .9rem; }
.chips li { padding: .28em .7em; border: 1px solid var(--line); border-radius: 100px; font-size: .76rem; color: var(--ink-70); }
.chips .chips-more { border-style: dashed; color: var(--ink-50); }
.card-sites { margin-top: 1rem; border-top: 1px solid var(--line); }
.card-sites a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 0 0; font-size: .9rem; line-height: 1.3; }
.card-sites li + li a { padding-top: .45rem; }
.card-host { font: 500 .72rem var(--mono); color: var(--accent); white-space: nowrap; }
@media (hover: hover) { .card-sites a:hover span:first-child { color: var(--accent); } }

.map-hint { margin-top: 1rem; text-align: center; font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-30); }
@media (hover: none) { .map-hint { display: none; } }

/* --- узкие экраны: карта цепочкой ------------------------------ */
@media (max-width: 899px) {
  .map { aspect-ratio: auto; padding: 1rem 0 0; }
  .map-svg { inset: -40px -16px; width: calc(100% + 32px); height: calc(100% + 80px); }
  .map-svg .layer--orbits, .map-svg .layer--links, .map-svg > circle { display: none; }
  .core { position: relative; left: auto; top: auto !important; transform: none; margin: 0 auto 2.4rem; }

  .nodes { position: relative; inset: auto; pointer-events: auto; padding-left: 0; }
  .nodes::before {
    content: '';
    position: absolute;
    left: 8px; top: 10px; bottom: 30px;
    width: 1px;
    background: linear-gradient(var(--line-2), var(--line-2) 80%, transparent);
  }
  .node { position: relative; left: auto; top: auto; width: auto; transform: none; padding: 0 0 2rem 2.2rem; }
  .node-hit { flex-direction: row; align-items: flex-start; text-align: left; gap: 0; }
  .node-dot { position: absolute; left: 0; top: 3px; }
  .node-label { align-items: flex-start; }
  .node-name { font-size: 1.45rem; }
  .node-tag { max-width: none; font-size: .95rem; }
  .node-card, .node:hover .node-card, .node:focus-within .node-card {
    position: static;
    width: auto;
    /* перебиваем отступы десктопных подсказок: у них селектор
       с атрибутами, он сильнее этого */
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .node-card-in { padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .card-lead, .chips { display: none; }
  .card-sites { margin-top: .6rem; border: 0; }
  .card-sites a { padding: .3rem 0 0; justify-content: flex-start; gap: .6rem; color: var(--ink-70); }
  .card-sites li + li a { padding-top: .3rem; }
  .card-sites a > span:first-child { display: none; }
  .map.has-focus .node:not(.is-focus) { opacity: 1; }

}

/* ============================================================
   БЛОКИ СТРАНИЦ: о Семёне, площадки, направления, фото, шаги,
   облако профессий, визуалы первых экранов.
   ============================================================ */

/* --- о Семёне и командах --------------------------------------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 5rem; } }
.about-photo { position: relative; max-width: 380px; }
.about-photo::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
}
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(.3) contrast(1.05); }
.about-text .s-head { margin-bottom: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts b { display: block; font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
.facts span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--ink-50); line-height: 1.35; }

/* --- площадки -------------------------------------------------- */
.mgs { display: grid; gap: 1rem; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mg { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.mg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.mg-note { font: 500 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); text-align: right; }
.res-list { display: grid; gap: .5rem; }
.res {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 1.2rem;
  align-items: center;
  gap: .9rem;
  padding: .65rem .8rem .65rem .65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .3s, background-color .3s;
}
.res-kind {
  display: grid;
  place-items: center;
  height: 2.6rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font: 500 .7rem var(--mono);
  letter-spacing: .06em;
  color: var(--ink-70);
  transition: color .3s, border-color .3s;
}
.res-body { display: flex; flex-direction: column; min-width: 0; }
.res-title { font-weight: 500; font-size: .96rem; }
.res-meta { font-size: .8rem; color: var(--ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-ar { color: var(--ink-30); transition: color .3s, transform .3s var(--ease); }
@media (hover: hover) {
  .res:hover { border-color: var(--line-2); background: var(--panel-hi); }
  .res:hover .res-kind { color: var(--accent); border-color: rgba(255, 178, 92, .4); }
  .res:hover .res-ar { color: var(--accent); transform: translate(2px, -2px); }
}
.sec .res-list:not(.mg .res-list) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ads-teaser { margin-top: 1rem; }

/* --- направления ------------------------------------------------ */
/* Карточки отдельными плитками, а не общей таблицей: при пяти или
   семи направлениях в таблице оставались бы пустые серые клетки. */
.dirs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
@media (min-width: 960px) { .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir { position: relative; padding: 1.6rem 1.5rem 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: background-color .4s, border-color .4s; display: flex; flex-direction: column; }
.dir-idx { font: 500 .72rem var(--mono); color: var(--accent); }
.dir-t { margin-top: 2.2rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.dir-x { margin-top: .6rem; color: var(--ink-50); font-size: .95rem; }
.dir-link { margin-top: auto; padding-top: 1.2rem; font: 500 .78rem var(--mono); color: var(--accent); }
@media (hover: hover) { .dir:hover { background: var(--panel-hi); border-color: var(--line-2); } }

/* --- фото -------------------------------------------------------- */
.photos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.photo { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.55) brightness(.85); transition: filter .6s, transform 1.2s var(--ease); }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35em .8em; border-radius: 100px; background: rgba(7, 8, 11, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (hover: hover) { .photo:hover img { filter: none; transform: scale(1.03); } }

/* --- шаги -------------------------------------------------------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: s; }
.step { position: relative; padding: 1.6rem 0 0; border-top: 1px solid var(--line-2); }
.step::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255, 178, 92, .8); }
.step-n { font: 500 .72rem var(--mono); color: var(--ink-50); }
.step-t { margin-top: 1rem; font-weight: 700; font-size: 1.25rem; }
.step-x { margin-top: .5rem; color: var(--ink-50); max-width: 34ch; }

/* --- большие ссылки (выпуски подкаста) --------------------------- */
.big-links { border-top: 1px solid var(--line); }
.big-link { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.big-link-k { font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.big-link-t { font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 2rem); letter-spacing: -.02em; transition: color .3s; }
.big-link-h { font: 500 .78rem var(--mono); color: var(--ink-50); }
@media (hover: hover) { .big-link:hover { padding-left: .6rem; } .big-link:hover .big-link-t { color: var(--accent); } }
@media (max-width: 640px) { .big-link { grid-template-columns: 1fr; gap: .3rem; } }

/* --- облако профессий ------------------------------------------- */
.cloud { display: grid; gap: .4rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cloud-track { display: flex; width: max-content; gap: 2.2rem; animation: marquee 60s linear infinite; }
.cloud-row--rev .cloud-track { animation-direction: reverse; animation-duration: 75s; }
.cloud-track span { font-weight: 800; font-size: clamp(2rem, 5.5vw, 4.4rem); letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--ink-30); }
.cloud-track span:nth-child(3n + 1) { color: var(--ink); -webkit-text-stroke: 0; }
.cloud-track span::after { content: '·'; margin-left: 2.2rem; color: var(--accent); -webkit-text-stroke: 0; }

/* --- визуалы первых экранов ------------------------------------ */
.hero-visual { position: relative; }

.collage { position: relative; aspect-ratio: 1 / 1.05; max-width: 520px; margin-inline: auto; }
.collage figure { position: absolute; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.collage img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) brightness(.9); }
.collage-a { left: 0; top: 0; width: 62%; height: 78%; }
.collage-b { right: 0; bottom: 0; width: 52%; height: 64%; }
.collage-tag { position: absolute; left: 0; bottom: 4%; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }

.host { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.host-photo { position: relative; width: min(300px, 70vw); }
.host-photo::before, .host-photo::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.host-photo::before { inset: -20px; border-style: dashed; animation: spin 80s linear infinite; }
.host-photo::after { inset: -46px; border-color: var(--line); }
.host-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(.3) contrast(1.05); }
.wave { width: min(420px, 90%); height: auto; }
.wave rect { fill: var(--ink-30); transform-box: fill-box; transform-origin: center; animation: wave 2.4s ease-in-out infinite; }
.wave rect:nth-child(4n) { fill: var(--accent); animation-delay: -.6s; }
.wave rect:nth-child(4n + 1) { animation-delay: -1.2s; }
.wave rect:nth-child(4n + 2) { animation-delay: -1.8s; }
.host-cap { font-weight: 600; }
.host-cap span { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-right: .6em; }

.cycle, .orbit-tags { width: min(440px, 100%); margin-inline: auto; overflow: visible; }
.cycle-orbit { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cycle-orbit--in { stroke: var(--line); stroke-dasharray: 2 6; }
.cycle-arc { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 18 82; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: arc 6s linear infinite; }
.cycle-arc:nth-of-type(2) { animation-delay: -2s; }
.cycle-arc:nth-of-type(3) { animation-delay: -4s; }
.cycle-pt circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.cycle-pt text, .cycle-sat text, .orbit-tags text { font: 500 13px var(--mono); letter-spacing: .12em; fill: var(--ink-70); }
.cycle-sat circle { fill: var(--accent); }
.cycle-sat text { fill: var(--ink-50); font-size: 11px; letter-spacing: .06em; }
.ot-pt circle { fill: var(--bg); stroke: var(--line-2); }
.ot-pt text { font-size: 11px; fill: var(--ink); }
.ot-core { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(255, 178, 92, .8)); }

/* --- юридические страницы --------------------------------------- */
.legal { max-width: 52rem; padding-top: clamp(48px, 7vw, 96px); }
.legal .h2 { margin-bottom: .6rem; }
.legal section { margin-top: 2.2rem; }
.legal section p, .legal section li { margin-top: .6rem; color: var(--ink-70); }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--accent); }

/* На телефоне портрет уже есть в центре карты – второй крупный
   снимок только отодвигал бы текст. */
@media (max-width: 899px) {
  .about-photo { max-width: 180px; margin-left: 18px; }
  .host-photo { width: min(220px, 60vw); }
}

/* ============================================================
   ФОРМЫ ЗАЯВОК и блок «Связаться».
   ============================================================ */

.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 4rem; } }
.contact-side .lead { margin-top: 1.4rem; }
.contact-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); align-self: center; }
.contact-list a { font-weight: 600; }
@media (hover: hover) { .contact-list a:hover { color: var(--accent); } }

.forms { display: grid; gap: 1rem; }
@media (min-width: 960px) { .forms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.disclaimer { margin-top: 1.5rem; max-width: 70ch; font-size: .85rem; color: var(--ink-50); }

.lead .h3 { font-size: 1.45rem; font-weight: 700; }
.lead-sub { margin-top: .4rem; color: var(--ink-50); }
.lead .h3 + .lead-sub, .lead .h3 { margin-bottom: 0; }
.lead > .h3 ~ .lead-grid, .lead > .lead-sub ~ .lead-grid { margin-top: 1.5rem; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 100px; }
.tab { min-height: 40px; padding: .45em 1.1em; border: 0; border-radius: 100px; background: none; color: var(--ink-70); font-size: .92rem; cursor: pointer; transition: background-color .25s, color .25s; }
.tab[aria-selected='true'] { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .tab:not([aria-selected='true']):hover { color: var(--ink); } }

.lead-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode { display: contents; border: 0; margin: 0; padding: 0; min-width: 0; }
.mode[hidden] { display: none; }
.f { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.f--wide, .lead-grid > .f:has(textarea) { grid-column: 1 / -1; }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }
.f-l { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); }
.f input, .f select, .f textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  font-size: 1rem;
  transition: border-color .25s, background-color .25s;
}
.f textarea { resize: vertical; min-height: 96px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-50) 50%), linear-gradient(135deg, var(--ink-50) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.f select option { background: var(--bg-2); color: var(--ink); }
.f input::placeholder, .f textarea::placeholder { color: var(--ink-30); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 178, 92, .04); }
.f.is-bad input, .f.is-bad select, .f.is-bad textarea { border-color: #FF7A6B; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.3rem; font-size: .88rem; color: var(--ink-50); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--ink-70); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-bad { color: #FF9A8E; }

.lead-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.lead-status { font-size: .92rem; color: var(--ink-70); }
.lead-status.is-ok { color: #8BE3A6; }
.lead-status.is-err { color: #FF9A8E; }
.lead.is-sending button[type='submit'] { opacity: .6; pointer-events: none; }
.lead-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-50); }

/* ============================================================
   ПОДВАЛ с блоком «Другие проекты Семёна» – одинаковый на всех
   сайтах экосистемы.
   ============================================================ */

.foot { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent 40%); }
.eco { padding-top: clamp(56px, 7vw, 96px); }
.eco-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.4rem; }
.eco-head .eyebrow { width: 100%; margin-bottom: -.6rem; }

.eco-list { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.eco-item { position: relative; display: flex; flex-direction: column; background: var(--bg); transition: background-color .35s; }
.eco-main { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.3rem .6rem; flex: 1; }
.eco-idx { font: 500 .7rem var(--mono); color: var(--ink-50); }
.eco-name { margin-top: 1.2rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; transition: color .3s; }
.eco-tag { font-size: .86rem; color: var(--ink-50); line-height: 1.4; }
.eco-here { position: absolute; top: 1.3rem; right: 1.2rem; font: 500 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eco-sites { display: flex; flex-direction: column; gap: .2rem; padding: 0 1.3rem 1.3rem; }
.eco-sites a { font: 500 .72rem var(--mono); color: var(--ink-50); transition: color .25s; }
.eco-item.is-current .eco-idx { color: var(--accent); }
@media (hover: hover) {
  .eco-item:hover { background: var(--bg-2); }
  .eco-item:hover .eco-name { color: var(--accent); }
  .eco-sites a:hover { color: var(--accent); }
}

.foot-bottom { display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 2.5rem; font-size: .88rem; color: var(--ink-50); }
@media (min-width: 900px) { .foot-bottom { grid-template-columns: 1.1fr 1fr 1.4fr; } }
.foot-col { display: flex; flex-direction: column; gap: .4rem; }
.foot-col a { transition: color .25s; }
@media (hover: hover) { .foot-col a:hover { color: var(--ink); } }
.brand--foot .brand-txt b { color: var(--ink); }
.foot-legal { font-size: .8rem; }
.foot-note { padding-bottom: 2rem; font-size: .75rem; color: var(--ink-30); }

/* ============================================================
   ДВИЖЕНИЕ. Всё медленное и тихое: экосистема «дышит», а не
   мигает. При настройке «уменьшить движение» анимации гаснут,
   остаётся только подсветка при наведении.
   ============================================================ */

@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
@keyframes arc { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* host-photo::before не центрируется через translate – свой оборот */
.host-photo::before { animation-name: spin-plain; }
@keyframes spin-plain { to { transform: rotate(360deg); } }

/* появление при прокрутке – только если скрипт работает, иначе
   текст остался бы невидимым */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .layer { transform: none !important; }
}
