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

   Палитра намеренно почти монохромная: белый по чёрному и один
   тёплый акцент. Разноцветные «вселенные» превратили бы карту
   в детскую схему метро – различаются они номером и названием.
   Акцент тот же янтарный, что у 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-lead p + p { margin-top: .8em; }
.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; }

/* --- проекты -------------------------------------------------- */
.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; }
/* Факты проекта – одной строкой через точку, акцентным цветом:
   цифра должна читаться сразу, но не спорить с описанием. */
.card-facts { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .7rem; font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card-facts li + li::before { content: '·'; margin-right: .9rem; color: var(--ink-30); }
.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-facts { margin-top: .5rem; }
  .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: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: 5rem; } }
/* Фото держится рядом, пока читается длинный рассказ. */
@media (min-width: 900px) { .about-photo { position: sticky; top: 7.5rem; } }
.about-photo { position: relative; max-width: 320px; margin: 18px; }
.about-photo::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
}
.about-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(.3) contrast(1.05); }
.about-text .s-head { margin-bottom: 1.5rem; }

/* Рассказ по проектам: название с короткой меткой-цифрой, под ним
   абзацы. Тонкая линия слева вместо карточек – это текст, а не
   ещё один набор плиток. */
.story { display: grid; gap: 2.2rem; margin-top: 2.4rem; }
.story-it { position: relative; padding-left: 1.4rem; border-left: 1px solid var(--line-2); max-width: 62ch; }
.story-it::before { content: ''; position: absolute; left: -4px; top: .55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255, 178, 92, .7); }
.story-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: .7rem; }
.story-t { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.015em; }
.story-fact { font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.story-it p { color: var(--ink-70); }
.story-it p + p { margin-top: .8em; }
.story-link { display: inline-block; margin-top: .9rem; font: 500 .78rem var(--mono); color: var(--accent); }
@media (hover: hover) { .story-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.story-end { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.story-end .lead { color: var(--ink); }

/* --- площадки -------------------------------------------------- */
.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-meta--short { display: none; }
.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; }

/* Главная: группы площадок в одну строку на широком экране.
   Карточки компактнее, адрес площадки уходит на вторую строку.
   Столбцов не фиксированное число: добавится проект – строка
   перестроится сама (на узком экране группы встанут в две). */
@media (min-width: 1180px) {
  .mgs--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
  .mgs--row .mg { padding: 1.1rem .9rem; }
  .mgs--row .mg-h { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .mgs--row .mg-note { text-align: left; }
  .mgs--row .res { grid-template-columns: 2.3rem minmax(0, 1fr); gap: .6rem; padding: .55rem .6rem .55rem .5rem; }
  .mgs--row .res-kind { height: 2.3rem; font-size: .64rem; }
  .mgs--row .res-ar { display: none; }
  .mgs--row .res-title { font-size: .9rem; line-height: 1.25; }
  .mgs--row .res-meta { font-size: .76rem; }
  .mgs--row .res-meta--full { display: none; }
  .mgs--row .res-meta--short { display: block; }
}

/* --- направления ------------------------------------------------ */
/* Карточки отдельными плитками, а не общей таблицей: при пяти или
   семи направлениях в таблице оставались бы пустые серые клетки. */
.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; margin: 0; }
.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%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(.3) contrast(1.05); }

.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; }
  .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, что у вводного абзаца, и она
   наследовала его max-width: 56ch – поля не доходили до края карточки. */
form.lead { max-width: none; }
.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); }
.eco { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.eco-all { flex-shrink: 0; }
.eco-list { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 0; }
.eco-list li + li::before { content: '·'; margin: 0 .7rem; color: var(--ink-30); }
.eco-link { font-size: .9rem; color: var(--ink-70); white-space: nowrap; transition: color .25s; }
.eco-link.is-current { color: var(--accent); }
@media (hover: hover) { .eco-link:hover { color: var(--ink); } }

.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; padding-top: 1rem; padding-bottom: 1.4rem; font-size: .78rem; color: var(--ink-50); }
.foot-bottom a { transition: color .25s; }
@media (hover: hover) { .foot-bottom a:hover { color: var(--ink); } }
.brand--foot { gap: .5rem; color: var(--ink); }
.brand--foot b { font-weight: 600; font-size: .84rem; }
.foot-note { padding-bottom: 1.4rem; font-size: .72rem; color: var(--ink-30); }
/* на телефоне строка проектов переносится, и вторая строка начиналась
   с висящей точки – там вместо точек просто отступы */
@media (max-width: 640px) {
  .eco-list { gap: .5rem 1.3rem; }
  .eco-list li + li::before { content: none; }
}

/* ============================================================
   ТЕМА «МОЁ ДЕЛО» – md.rsvpr.ru в фирменном стиле подкаста.

   Источник – графпак «Подкаст Мое дело/Мое дело графпак»
   (MOE_DELO_BRAND_SYSTEM): тёмно-синий фон #0F1D2E, плашки
   #132A3A с диагональным срезом справа, бирюзовый штрих #3BA7A3,
   шрифт Manrope, скругления 8–12 px. Тёплый #D9A441 по брендбуку
   только для служебных меток – на сайте его нет.
   Без теней, стекла, неона и глянца – так велит брендбук.

   Включается классом theme-md на <html> (SITES.md.theme в
   data.mjs). Шапка и подвал общие с экосистемой – они просто
   перекрашиваются через переменные.
   ============================================================ */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/Manrope-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/Manrope-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: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/Manrope-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/Manrope-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: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/Manrope-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/Manrope-700-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: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/Manrope-800-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/Manrope-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; }

.theme-md {
  --bg: #0F1D2E;
  --bg-2: #132A3A;
  --plate: #132A3A;
  --plate-hi: #183447;
  --panel: rgba(230, 232, 235, .03);
  --panel-hi: rgba(230, 232, 235, .055);
  --line: rgba(230, 232, 235, .09);
  --line-2: rgba(230, 232, 235, .2);
  --ink: #FFFFFF;
  --ink-70: rgba(230, 232, 235, .8);
  /* .62 на #0F1D2E даёт контраст ~5.5:1 – хватает и для мелкого текста */
  --ink-50: rgba(230, 232, 235, .62);
  --ink-30: rgba(230, 232, 235, .32);
  --accent: #3BA7A3;
  --accent-hi: #52BDB8;
  --accent-soft: rgba(59, 167, 163, .14);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* в бренде один шрифт: подписи – тот же Manrope капсом */
  --mono: var(--font);
  --r: 12px;
  /* срез правого края плашки и наклон бирюзового штриха */
  --cut: 28px;
  --tilt: -16deg;
}

/* --- фон: глубокий синий, бирюзовая дымка и тонкие диагонали ------
   Вместо сетки экосистемы – линии под тем же наклоном, что срез
   плашек. Всё на градиентах, без картинок. */
.theme-md .sky {
  background:
    radial-gradient(45% 40% at 88% 6%, rgba(59, 167, 163, .13), transparent 70%),
    radial-gradient(40% 30% at 4% 55%, rgba(59, 167, 163, .06), transparent 70%),
    repeating-linear-gradient(106deg, rgba(230, 232, 235, .028) 0 1px, transparent 1px 88px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  opacity: 1;
}

/* --- типографика ------------------------------------------------- */
.theme-md .display,
.theme-md .h2 { letter-spacing: -.02em; }
.theme-md .hero--page .display { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.01em; }
.theme-md .h3,
.theme-md .step-t,
.theme-md .big-link-t { font-weight: 800; }
.theme-md .dim { color: rgba(230, 232, 235, .45); }
.theme-md .eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .14em; }
.theme-md .eyebrow-idx { color: var(--ink-30); }
.theme-md .hero-sub { font-size: clamp(1.05rem, 1.9vw, 1.45rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); }

/* Бирюзовый штрих после «МОЁ ДЕЛО» – как на баннере канала.
   Сам символ «/» прозрачный: штрих рисуется фоном, поэтому толщина
   и наклон не зависят от шрифта. */
.slash {
  display: inline-block;
  width: .085em;
  height: .84em;
  margin-left: .16em;
  vertical-align: -.02em;
  overflow: hidden;
  color: transparent;
  background: var(--accent);
  transform: skewX(var(--tilt, -16deg));
}

/* --- кнопки: прямоугольные, главная – бирюзовая со срезом ---------
   Срез сделан на подложке ::before, а не на самой кнопке: иначе
   clip-path обрезал бы и рамку фокуса при переходе с клавиатуры. */
.theme-md .btn { border-radius: 8px; font-weight: 600; }
.theme-md .btn--solid {
  position: relative;
  isolation: isolate;
  padding-right: 2em;
  border-color: transparent;
  background: none;
  color: var(--bg);
}
.theme-md .btn--solid::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 8px 0 0 8px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background-color .3s;
}
@media (hover: hover) {
  .theme-md .btn:hover { border-color: var(--accent); background: var(--accent-soft); }
  .theme-md .btn--solid:hover { background: none; border-color: transparent; color: var(--bg); }
  .theme-md .btn--solid:hover::before { background: var(--accent-hi); }
}

/* --- шапка ------------------------------------------------------- */
.theme-md .top { background: rgba(15, 29, 46, .82); }
.theme-md .top-link.is-current { background: var(--accent-soft); }
@media (max-width: 1180px) {
  .theme-md .top-nav { background: rgba(15, 29, 46, .98); }
  .theme-md .top-link.is-current { background: none; }
}

/* ================================================================
   ПЛАШКА – главный элемент бренда: тёмная карточка, правый край
   срезан по диагонали, у нижнего правого угла бирюзовый штрих.
   Подложка и штрих – псевдоэлементы, содержимое не обрезается.
   ================================================================ */
.theme-md :is(.plate, .panel, .step, .big-link) {
  position: relative;
  isolation: isolate;
  padding-right: calc(var(--cut) + 1.6rem);
  border: 0;
  border-radius: 0;
  background: none;
}
.theme-md :is(.plate, .panel, .step, .big-link)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: var(--r) 0 0 var(--r);
  background: linear-gradient(180deg, rgba(230, 232, 235, .045), transparent 45%), var(--plate);
  box-shadow: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: background-color .35s;
}
.theme-md :is(.plate, .panel, .step, .big-link)::after {
  content: '';
  position: absolute;
  right: calc(var(--cut) + 14px);
  bottom: 18px;
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: var(--accent);
  transform: skewX(var(--tilt));
}

/* --- первый экран: фото как аватарка канала ---------------------- */
.theme-md .hero-grid { align-items: center; }
.theme-md .host { display: flex; flex-direction: column; align-items: center; gap: 0; }
.theme-md .host-photo { position: relative; width: min(340px, 74vw); }
.theme-md .host-photo::before {
  inset: -14px;
  border: 1px solid var(--line-2);
  animation: none;
}
/* бирюзовый штрих у кольца – эхо штриха в названии */
.theme-md .host-photo::after {
  inset: auto -2% auto auto;
  top: 6%;
  width: 6px;
  height: 22%;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  transform: skewX(var(--tilt));
}
/* height: auto обязателен: у <img> в разметке стоит height="640",
   и без него браузер растягивал фото в овал – отсюда и «кривое»
   фото в прежней версии */
.theme-md .host-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: 0 0 0 1px var(--line);
  filter: none;
}
/* плашка «Ведущий» – как титр ведущего в выпусках */
.theme-md .host-plate {
  --cut: 26px;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: min(300px, 86vw);
  margin-top: -34px;
  padding: 1rem calc(var(--cut) + 2.4rem) 1.15rem 1.3rem;
}
.theme-md .host-plate::after { right: calc(var(--cut) + 12px); bottom: 14px; height: 32px; }
.plate-k { font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.host-plate b { font-weight: 800; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.host-at { font-size: .86rem; color: var(--ink-50); }

/* --- облако профессий: разделитель – бирюзовый «/» --------------- */
.theme-md .cloud-track span::after { content: '/'; font-weight: 400; }

/* --- «О чём говорим»: три плашки -------------------------------- */
.theme-md .steps { gap: 1rem; }
.theme-md .step { --cut: 34px; padding: 1.6rem calc(var(--cut) + 1.6rem) 2.6rem 1.6rem; }
.theme-md .step-n { font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: var(--accent); }
.theme-md .step-t { margin-top: 1.4rem; }
.theme-md .step-x { color: var(--ink-70); }

/* --- «Где смотреть»: плашки вместо строк ------------------------- */
.theme-md .big-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border: 0; }
.theme-md .big-link { --cut: 30px; display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem calc(var(--cut) + 1.6rem) 2.6rem 1.5rem; }
.theme-md .big-link-k { font-weight: 700; color: var(--accent); }
.theme-md .big-link-t { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.theme-md .big-link-h { margin-top: auto; padding-top: .8rem; color: var(--ink-50); }
@media (hover: hover) {
  .theme-md .big-link:hover { padding-left: 1.5rem; }
  .theme-md .big-link:hover::before,
  .theme-md .step:hover::before { background-color: var(--plate-hi); background-image: none; }
  .theme-md .big-link:hover .big-link-t { color: var(--ink); }
  .theme-md .big-link:hover .big-link-h { color: var(--accent); }
}

/* --- форма заявки ------------------------------------------------ */
.theme-md .panel { --cut: 44px; padding-right: calc(var(--cut) + 1.2rem); padding-bottom: clamp(2.4rem, 4vw, 3rem); }
.theme-md .tabs { border-radius: 10px; }
.theme-md .tab { border-radius: 7px; }
.theme-md .tab[aria-selected='true'] { background: var(--accent); color: var(--bg); font-weight: 600; }
.theme-md .f input,
.theme-md .f select,
.theme-md .f textarea { border-radius: 8px; background: rgba(15, 29, 46, .55); }
.theme-md .f input:focus,
.theme-md .f select:focus,
.theme-md .f textarea:focus { background: rgba(59, 167, 163, .07); }
.theme-md .f-l { font-weight: 700; }
.theme-md .contact-list .k { font-weight: 700; }

/* --- подвал ------------------------------------------------------ */
.theme-md .eco-idx,
.theme-md .eco-sites a,
.theme-md .eco-here { font-weight: 600; }

@media (max-width: 899px) {
  .theme-md .host-photo { width: min(260px, 66vw); }
}
/* на узком экране большой срез съедал ширину полей формы */
@media (max-width: 560px) {
  .theme-md .panel { --cut: 22px; }
}

/* ============================================================
   ТЕМА «ИНВЕСТИЦИИ» – estate.rsvpr.ru в стиле презентации
   «BR Invest» (Экоситстема/Br invest).

   Цвета сняты пипеткой со слайдов:
     фон              #EAE6CE (к краям #E3DDC7)
     светлая карточка #F5F5DB
     бежевая плашка   #CBBCA9 → прозрачная книзу (плашки с цифрами)
     полоса у карточек #D6C9B6
     текст            #4C3D36 – тёмно-коричневый, не чёрный
   Заголовки – Rubik жирный, текст – Fira Sans, как в презентации.
   Мягкие тени вместо рамок, скругления 22 px.

   Включается классом theme-invest на <html> (SITES.invest.theme
   в data.mjs). Шапка и подвал общие с экосистемой – перекрашены
   через переменные и пару точечных правил ниже.
   ============================================================ */

@font-face { font-family: 'Rubik'; font-weight: 300 900; font-display: swap; src: url(fonts/Rubik-var-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-weight: 300 900; font-display: swap; src: url(fonts/Rubik-var-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: 'Fira Sans'; font-weight: 400; font-display: swap; src: url(fonts/FiraSans-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans'; font-weight: 400; font-display: swap; src: url(fonts/FiraSans-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: 'Fira Sans'; font-weight: 500; font-display: swap; src: url(fonts/FiraSans-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans'; font-weight: 500; font-display: swap; src: url(fonts/FiraSans-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: 'Fira Sans'; font-weight: 600; font-display: swap; src: url(fonts/FiraSans-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Fira Sans'; font-weight: 600; font-display: swap; src: url(fonts/FiraSans-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; }

.theme-invest {
  --bg: #EAE6CE;
  --bg-2: #E3DDC7;
  --card: #F5F5DB;
  --plate: #CBBCA9;
  --bar: #D6C9B6;
  --panel: #F5F5DB;
  --panel-hi: #F8F8E4;
  --line: rgba(76, 61, 54, .12);
  --line-2: rgba(76, 61, 54, .26);
  --ink: #4C3D36;
  --ink-70: rgba(76, 61, 54, .88);
  /* .74 на #EAE6CE даёт контраст ~4.9:1 – хватает и для мелкого текста */
  --ink-50: rgba(76, 61, 54, .74);
  --ink-30: rgba(76, 61, 54, .42);
  --accent: #7A5E4D;
  --accent-soft: rgba(122, 94, 77, .12);
  --shadow: 0 24px 60px -24px rgba(76, 61, 54, .32), 0 2px 6px rgba(76, 61, 54, .06);

  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Rubik', 'Fira Sans', system-ui, sans-serif;
  /* моноширинного шрифта в презентации нет: подписи – тот же Fira */
  --mono: var(--font);
  --r: 22px;
}

/* --- фон: тёплая виньетка, как на слайдах ------------------------ */
.theme-invest .sky {
  background:
    radial-gradient(70% 60% at 50% 35%, #EDEAD3 0%, transparent 70%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(201, 188, 160, .35) 100%);
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 1;
}

/* --- типографика ------------------------------------------------- */
.theme-invest body { line-height: 1.55; }
.theme-invest :is(.display, .h2, .h3, .brand-txt b) { font-family: var(--head); }
.theme-invest .display { font-weight: 700; letter-spacing: -.015em; line-height: 1.04; }
.theme-invest .hero--page .display { font-size: clamp(2.1rem, 4.6vw, 4.1rem); }
/* «Санкт-Петербурга» не рвём по дефису */
.nowrap { white-space: nowrap; }
.theme-invest .h2 { font-weight: 700; letter-spacing: -.015em; line-height: 1.08; }
.theme-invest .h2--xl { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; }
.theme-invest .h2--lg { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.theme-invest .h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -.005em; }
.theme-invest .h3--lg { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.theme-invest .eyebrow { font-weight: 600; font-size: .78rem; letter-spacing: .14em; }
.theme-invest .eyebrow-idx { color: var(--ink-30); }
.theme-invest .lead { color: var(--ink-70); }
.theme-invest ::selection { background: var(--ink); color: var(--card); }

/* --- кнопки: тёмно-коричневая главная, прозрачная второстепенная --- */
.theme-invest .btn { font-weight: 500; }
.theme-invest .btn--solid { background: var(--ink); border-color: var(--ink); color: var(--card); }
@media (hover: hover) {
  .theme-invest .btn:hover { border-color: var(--ink); background: var(--accent-soft); }
  .theme-invest .btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--card); }
}

/* --- шапка ------------------------------------------------------- */
.theme-invest .top { background: rgba(234, 230, 206, .86); }
.theme-invest .top-link.is-current { background: var(--accent-soft); }
@media (max-width: 1180px) {
  .theme-invest .top-nav { background: rgba(234, 230, 206, .98); box-shadow: var(--shadow); }
  .theme-invest .top-link.is-current { background: none; }
}

/* ================================================================
   ПЕРВЫЙ ЭКРАН – фото в скруглённой рамке с тенью, на нём
   плашка с доходностью (как миниатюры слайдов на титуле).
   ================================================================ */
.theme-invest .hero-grid { align-items: center; }
.hero-photo { position: relative; margin: 0 0 2rem; }
.hero-photo img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute;
  left: clamp(-1rem, -2vw, 0rem);
  bottom: -2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--plate), var(--card) 130%);
  box-shadow: var(--shadow);
}
.hero-badge b { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1 var(--head); letter-spacing: -.01em; }
.hero-badge span { font-size: .84rem; line-height: 1.3; color: var(--ink-70); }

/* ================================================================
   ПОЛОСА: текст слева, фото справа растворяется в фоне (слайды
   «Ваш капитал…» и «Примеры объектов»).
   ================================================================ */
.band { position: relative; display: grid; overflow: hidden; border-radius: var(--r); background: var(--bg-2); box-shadow: var(--shadow); }
.band-text { position: relative; z-index: 1; padding: clamp(1.8rem, 4.5vw, 4rem); }
.band-text .h2 { margin-bottom: 1.4rem; }
.band-text p { max-width: 54ch; color: var(--ink-70); font-size: 1.05rem; }
.band-text p + p { margin-top: .8em; }
.band-key { padding-left: 1rem; border-left: 4px solid var(--bar); color: var(--ink) !important; font-weight: 500; }
.band-text .btn { margin-top: 1.6rem; white-space: normal; text-align: center; }
.band-photo { position: relative; min-height: 280px; }
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .band { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .band-photo::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 38%; background: linear-gradient(90deg, var(--bg-2), transparent); }
}
@media (max-width: 899px) {
  .band-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .band-photo::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 1; height: 30%; background: linear-gradient(180deg, var(--bg-2), transparent); }
}

/* ================================================================
   КАРТОЧКИ С ПОЛОСОЙ СЛЕВА (слайды 3–7 и 12–16) + большое фото
   и крупный заголовок, как в презентации.
   ================================================================ */
.income { display: grid; gap: 2rem; }
.income-side { display: grid; gap: 1.8rem; align-content: start; }
.income-photo { margin: 0; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.income-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 960px) {
  .income { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .income-side { position: sticky; top: calc(var(--top-h) + 2rem); }
  .income--flip .income-side { order: 2; }
  .income-photo img { aspect-ratio: 5 / 4; }
}
@media (max-width: 959px) { .income-photo img { aspect-ratio: 16 / 10; } }

.cards { display: grid; gap: 1.1rem; }
.card {
  position: relative;
  padding: 1.6rem 1.6rem 1.7rem 2rem;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card::before { content: ''; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 5px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--plate), var(--bar) 70%, transparent); }
.card-n { font: 600 .78rem var(--font); letter-spacing: .12em; color: var(--ink-50); }
.card .h3 { margin-top: .5rem; }
.card p { margin-top: .6rem; color: var(--ink-70); }
.card-link { display: inline-block; margin-top: .9rem; font-weight: 500; color: var(--accent); }
@media (hover: hover) { .card-link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ================================================================
   ЛИСТ – большая светлая карточка по центру (слайды 8 и 11).
   ================================================================ */
.sheet { padding: clamp(2rem, 5vw, 4.2rem) clamp(1.2rem, 4vw, 3.6rem); border-radius: calc(var(--r) + 6px); background: var(--card); box-shadow: var(--shadow); }
.sheet--center, .s-head--center { text-align: center; }
.s-head--center { margin-inline: auto; }
.sheet-sub { margin-top: .9rem; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink-70); }
.sheet-note { margin: 2rem auto 0; max-width: 62ch; text-align: center; font-size: .9rem; color: var(--ink-50); }

/* Плашки с цифрами – лесенкой, бежевые сверху и тающие книзу. */
.stats { display: grid; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.6rem); text-align: left; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { display: flex; flex-direction: column; gap: .5rem; min-height: 190px; padding: 1.4rem 1.3rem; border-radius: 10px; background: linear-gradient(180deg, var(--plate), rgba(203, 188, 169, .25) 70%, transparent); }
.stat b { font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--font); letter-spacing: -.01em; }
.stat span { max-width: 18ch; color: var(--ink-70); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 4rem); align-items: start; }
  .stat:nth-child(2) { margin-top: 4.5rem; }
  .stat:nth-child(3) { margin-top: 1.8rem; }
}

/* ================================================================
   ДВЕ СТРАТЕГИИ (слайд 9): фото сверху, карточка снизу. Вторая
   карточка – на тон темнее, как на слайде.
   ================================================================ */
.strats { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .strats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.strat { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.strat--alt { background: var(--bg-2); }
.strat-photo { margin: 0; }
.strat-photo img { width: 100%; height: auto; aspect-ratio: 865 / 370; object-fit: cover; }
.strat-body { padding: 1.6rem clamp(1.3rem, 3vw, 2.2rem) 2rem; }
.strat-kind { display: flex; align-items: center; gap: .7rem; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }
.strat-key { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--ink); color: var(--card); font: 700 1rem var(--head); letter-spacing: 0; }
.strat .h3 { margin-top: .9rem; }
.strat-lead { margin-top: .5rem; color: var(--ink-70); }
.strat-rows { margin: 1.3rem 0 0; border-top: 1px solid var(--line); }
.strat-rows div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.strat-rows dt { font-size: .85rem; font-weight: 600; color: var(--ink-50); }
.strat-rows dd { margin: 0; }
.strat-note { margin-top: 1.1rem; padding-left: 1rem; border-left: 4px solid var(--bar); font-weight: 500; }
@media (max-width: 480px) { .strat-rows div { grid-template-columns: 1fr; gap: .2rem; } }

/* ================================================================
   ЭКОНОМИКА СДЕЛКИ (слайд 11): цифры – бежевые плашки, сложение
   и итог по строкам, внизу три главных числа.
   ================================================================ */
.eq { display: grid; gap: .6rem; margin-top: clamp(1.6rem, 4vw, 2.8rem); }
.eq-k { margin-top: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); }
.eq-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: .6rem; }
.chip { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 150px; min-height: 104px; padding: 1rem 1.1rem; border-radius: 10px; background: linear-gradient(180deg, var(--plate), rgba(203, 188, 169, .25) 75%, rgba(203, 188, 169, .08)); }
.chip b { font: 500 clamp(1.15rem, 1.8vw, 1.45rem)/1.15 var(--font); white-space: nowrap; }
.chip span { font-size: .84rem; line-height: 1.3; color: var(--ink-70); }
.chip--sum { background: var(--ink); color: var(--card); }
.chip--sum span { color: rgba(245, 245, 219, .78); }
.eq-op { display: grid; place-items: center; flex: 0 0 auto; width: 1.4rem; font: 500 1.5rem var(--font); color: var(--ink-30); }
.eq-total { display: grid; gap: .8rem; margin-top: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.eq-total li { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: 14px; border: 1px solid var(--line-2); }
.eq-total b { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--head); letter-spacing: -.01em; }
.eq-total span { font-size: .9rem; color: var(--ink-70); }
.eq-total-hi { background: linear-gradient(180deg, var(--plate), rgba(203, 188, 169, .3)); border-color: transparent !important; }
@media (max-width: 640px) {
  .eq-op { width: 100%; height: 1rem; font-size: 1.1rem; }
  .eq-op:not(:last-child) { line-height: 1; }
  .chip { flex-basis: 100%; min-height: 0; }
}

/* ================================================================
   БЕЗОПАСНОСТЬ ИНВЕСТОРА (слайд 10): заголовок в «таблетке»,
   портрет, справа четыре пункта с иконками.
   ================================================================ */
.safe { display: grid; gap: 2.4rem; padding: clamp(1.4rem, 4vw, 3rem); border-radius: calc(var(--r) + 6px); background: var(--bg-2); box-shadow: var(--shadow); }
@media (min-width: 960px) { .safe { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 4rem; align-items: center; } }
.safe-side { position: relative; }
.pill { position: relative; z-index: 1; display: inline-block; padding: .6em 1em .65em; border-radius: 999px; background: #E6DFCB; box-shadow: var(--shadow); font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-align: center; }
.safe-photo { margin: -1.6rem 0 0; }
.safe-photo img { width: 100%; height: auto; border-radius: 6px; background: #D9D8D3; }
.safe-photo figcaption { margin-top: .8rem; font-size: .88rem; color: var(--ink-50); }
.safe-list { display: grid; gap: 1.8rem; }
.safe-it { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ico { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.safe-it .h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
.safe-it p { margin-top: .35rem; color: var(--ink-70); }
@media (max-width: 480px) { .safe-it { grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; } .ico { width: 44px; height: 44px; } }

/* ================================================================
   ПРИМЕРЫ ОБЪЕКТОВ (слайд 17): «после» большим кадром, «до»
   поверх него маленьким.
   ================================================================ */
.ba { position: relative; min-height: 340px; }
.ba figure { margin: 0; overflow: hidden; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; z-index: 2; left: 0; bottom: 8%; width: 42%; aspect-ratio: 398 / 524; border-radius: 4px; box-shadow: var(--shadow); }
.ba figcaption { position: absolute; top: .8rem; left: .8rem; padding: .25em .75em; border-radius: 999px; background: rgba(245, 245, 219, .9); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ba-after figcaption { left: auto; right: .8rem; }
@media (min-width: 900px) {
  .band--cases .ba-after::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 30%; background: linear-gradient(90deg, var(--bg-2), transparent); }
}
@media (max-width: 899px) { .ba { aspect-ratio: 1; min-height: 0; } .ba-before { bottom: 6%; left: 4%; } }

/* ================================================================
   УСЛОВИЯ (слайд 18): карточки-стрелки, как на слайде.
   ================================================================ */
.arrows { display: grid; gap: 1rem; }
@media (min-width: 900px) { .arrows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; } }
.arrow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 210px;
  padding: 1.6rem 3.6rem 1.8rem 1.6rem;
  background: var(--card);
  filter: drop-shadow(0 14px 22px rgba(76, 61, 54, .14));
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 50%, calc(100% - 44px) 100%, 0 100%);
}
.arrow-k { font: 600 1.15rem var(--head); }
.arrow-v { font: 700 clamp(2rem, 3.6vw, 2.8rem)/1.05 var(--head); letter-spacing: -.01em; }
.arrow-t { margin-top: .3rem; color: var(--ink-70); font-size: .95rem; }
@media (max-width: 899px) { .arrow { min-height: 0; } }

/* ================================================================
   ЗАЯВКА и общие части в светлой гамме.
   ================================================================ */
.theme-invest .panel { border: 0; background: var(--card); box-shadow: var(--shadow); }
.theme-invest .contact-list .k { font-weight: 600; }
.theme-invest .tabs { background: var(--bg-2); border-color: transparent; }
.theme-invest .tab[aria-selected='true'] { background: var(--ink); color: var(--card); }
@media (max-width: 480px) {
  .theme-invest .tabs { display: flex; flex-wrap: nowrap; width: 100%; }
  .theme-invest .tab { flex: 1; padding-inline: .6em; }
}
.theme-invest .f-l { font-weight: 600; letter-spacing: .08em; }
.theme-invest .f input,
.theme-invest .f select,
.theme-invest .f textarea { background: #FCFCEE; border-color: var(--line-2); }
.theme-invest .f input:focus,
.theme-invest .f select:focus,
.theme-invest .f textarea:focus { background: #FFFFF6; border-color: var(--ink); }
.theme-invest .f select option { background: #FCFCEE; color: var(--ink); }
.theme-invest .f.is-bad input,
.theme-invest .f.is-bad select,
.theme-invest .f.is-bad textarea { border-color: #B4472F; }
.theme-invest .consent.is-bad { color: #A63F2A; }
.theme-invest .lead-status.is-ok { color: #2E6B40; }
.theme-invest .lead-status.is-err { color: #A63F2A; }
.theme-invest .disclaimer { margin-top: 2rem; }

/* --- подвал ------------------------------------------------------ */
.theme-invest .foot { background: var(--bg-2); }

/* ============================================================
   ТЕМА «МЕДИА» – media.rsvpr.ru, сайт всех своих площадок.

   Образец – dubrovskiy-syndicate.com (его Семён показал как
   пример): почти чёрный фон, огромный заголовок капсом, за ним
   медленно плывущее размытое цветное пятно, а ниже – сетка
   плиток: круглая аватарка и цветная плашка с названием. Плитка
   приподнимается под курсором.

   Чем отличаемся от образца: плитка не уводит на канал сразу, а
   раскрывается списком площадок этого проекта (так просил Семён –
   сначала проекты, внутри площадки). Раскрытие сделано на <details>
   с одинаковым name: браузер сам закрывает соседнюю плитку, а без
   скриптов и в старых браузерах всё просто раскрывается и
   остаётся открытым.

   Включается классом theme-media на <html> (SITES.media.theme).
   Шапка и подвал общие с экосистемой, они перекрашиваются
   переменными.
   ============================================================ */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/Manrope-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/Manrope-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: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/Manrope-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/Manrope-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: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/Manrope-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/Manrope-700-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: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/Manrope-800-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/Manrope-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; }

.theme-media {
  --bg: #121215;
  --bg-2: #18181C;
  --panel: rgba(255, 255, 255, .03);
  --panel-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --ink: #F4F4F6;
  --ink-70: rgba(244, 244, 246, .74);
  /* .58 на #121215 даёт контраст ~6:1 – хватает и для мелкого текста */
  --ink-50: rgba(244, 244, 246, .58);
  --ink-30: rgba(244, 244, 246, .32);
  --accent: #FFB25C;
  --accent-soft: rgba(255, 178, 92, .14);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px;
}

/* --- фон: без сетки экосистемы, только мягкое свечение --------- */
.theme-media .sky {
  background:
    radial-gradient(50% 40% at 50% -4%, rgba(255, 178, 92, .1), transparent 72%),
    radial-gradient(40% 30% at 92% 32%, rgba(142, 91, 214, .07), transparent 72%);
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 1;
}

/* --- первый экран ------------------------------------------------
   Заголовок по центру во всю ширину, как в образце. Размытые пятна
   плывут за ним – они нарисованы на самой секции, в разметке их
   нет. */
.theme-media .hero--page { position: relative; overflow: hidden; padding-top: clamp(28px, 4vw, 64px); }
.theme-media .hero--page::before,
.theme-media .hero--page::after {
  content: '';
  position: absolute;
  width: clamp(220px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}
.theme-media .hero--page::before { background: #FF6B2C; top: -4%; left: 4%; animation: ball-a 34s ease-in-out infinite; }
.theme-media .hero--page::after { background: #3BA7A3; top: 18%; right: 2%; opacity: .34; animation: ball-b 46s ease-in-out infinite; }

@keyframes ball-a {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(38vw, 14%); }
  60% { transform: translate(14vw, 46%); }
}
@keyframes ball-b {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(-30vw, 30%); }
  70% { transform: translate(-6vw, -12%); }
}

.theme-media .hero-grid { display: block; text-align: center; }
.theme-media .hero-main { max-width: none; }
.theme-media .eyebrow { color: var(--ink-50); letter-spacing: .22em; }
.theme-media .hero-lead { margin: 1.2rem auto 0; max-width: 52ch; color: var(--ink-70); }
.theme-media .hero--page .acts { margin-top: 1.6rem; }
.theme-media .hero--page .acts { justify-content: center; }

/* Заголовок: «МОИ МЕДИА» и приписка «ресурсы» сверху справа в
   половину прозрачности (как «Media» в образце). Кегль заметно
   меньше, чем в образце: Семён попросил, чтобы первый экран не
   выглядел громоздким. */
.theme-media .hero--page .display {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ширина по самой длинной строке, иначе приписка «ресурсы»
     уезжает к краю экрана и теряет связь с заголовком */
  width: fit-content;
  margin-inline: auto;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.theme-media .mh-sup {
  align-self: flex-end;
  margin-right: clamp(4px, 3vw, 54px);
  margin-bottom: -.1em;
  font-size: .34em;
  letter-spacing: -.02em;
  opacity: .5;
}

/* Пятна за заголовком тоже меньше – иначе на спокойном первом
   экране они становятся главным, что видно. */
.theme-media .hero--page::before,
.theme-media .hero--page::after { width: clamp(200px, 26vw, 360px); }

/* --- плитки проектов -------------------------------------------- */
.theme-media .mt-grid {
  display: grid;
  gap: clamp(.9rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  align-items: start;
}
.mt { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; transition: transform .3s ease-out, border-color .3s, background-color .3s; }
@media (hover: hover) {
  /* «Приподнимается под курсором» – тот же приём, что в образце */
  .mt:hover { transform: translateY(-8px); border-color: var(--line-2); background: var(--panel-hi); }
}
.mt[open] { transform: none; border-color: color-mix(in srgb, var(--c) 45%, transparent); background: var(--panel-hi); }

.mt-sum { display: grid; justify-items: center; gap: .9rem; padding: 1.5rem 1.1rem 1.2rem; cursor: pointer; list-style: none; }
.mt-sum::-webkit-details-marker { display: none; }
.mt-sum::marker { content: ''; }

/* Круг: аватарка или монограмма на своём цвете */
.mt-ava {
  width: clamp(86px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: radial-gradient(70% 70% at 30% 25%, color-mix(in srgb, var(--c) 72%, #fff 28%), var(--c));
  box-shadow: 0 10px 34px -12px color-mix(in srgb, var(--c) 70%, transparent);
  color: var(--ct);
  font: 800 1.6rem/1 var(--font);
  letter-spacing: .02em;
  transition: box-shadow .3s;
}
img.mt-ava { background: var(--bg-2); }
.mt[open] .mt-ava { box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--c) 85%, transparent); }

/* Цветная плашка с названием – главная примета образца */
.mt-plate {
  display: grid;
  justify-items: center;
  gap: .1rem;
  width: 100%;
  padding: .6rem .7rem .7rem;
  border-radius: 12px;
  background: var(--c);
  color: var(--ct);
  text-align: center;
}
.mt-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.mt-note { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

.mt-kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.mt-kinds i {
  font: 500 .66rem/1 var(--font);
  letter-spacing: .08em;
  padding: .42em .55em;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--ink-50);
  font-style: normal;
}
.mt-open { display: inline-flex; align-items: center; gap: .45em; font-size: .84rem; color: var(--ink-50); }
.mt-sign { position: relative; width: 14px; height: 14px; }
.mt-sign::before,
.mt-sign::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transform: translateY(-50%); transition: transform .3s var(--ease); }
.mt-sign::after { transform: translateY(-50%) rotate(90deg); }
.mt[open] .mt-sign::after { transform: translateY(-50%) rotate(0); }
.mt[open] .mt-open { color: var(--ink-70); }

.mt-in { padding: 0 1.1rem 1.3rem; display: grid; gap: .9rem; }
.mt-lead { color: var(--ink-70); font-size: .94rem; }
.theme-media .mt-in .res-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.theme-media .mt-in .res { background: rgba(0, 0, 0, .18); }
@media (hover: hover) {
  .theme-media .res:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
  .theme-media .res:hover .res-kind { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
  .theme-media .res:hover .res-ar { color: var(--c); }
}
.mt-site { justify-self: start; }

/* Раскрытая плитка занимает всю строку: список площадок встаёт в
   два-три столбца, а не тянется узкой колонкой. Браузеры без :has
   покажут её в своей клетке – тоже рабочий вид. */
@supports selector(:has(*)) {
  @media (min-width: 720px) {
    .theme-media .mt-grid > li:has(.mt[open]) { grid-column: 1 / -1; }
    .theme-media .mt-grid > li:has(.mt[open]) .mt-sum { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 1.2rem; text-align: left; }
    .theme-media .mt-grid > li:has(.mt[open]) .mt-ava { width: 76px; }
    .theme-media .mt-grid > li:has(.mt[open]) .mt-plate { width: auto; justify-items: start; text-align: left; padding: .55rem 1rem .6rem; }
    .theme-media .mt-grid > li:has(.mt[open]) .mt-kinds { display: none; }
    .theme-media .mt-grid > li:has(.mt[open]) .mt-open { margin-left: auto; }
  }
}

/* --- остальные блоки: мягче и спокойнее, чем в экосистеме ------- */
.theme-media .sec--tiles { padding-top: clamp(40px, 6vw, 80px); }
.theme-media .h2 { text-transform: uppercase; letter-spacing: -.02em; }
.theme-media .step,
.theme-media .panel,
.theme-media .dir { border-radius: var(--r); }

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

@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 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; }
}
