/* Outrun Media — стили сайта */

:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --surface: #131319;
  --surface-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1ec;
  --muted: #a09ea8;
  --dim: #6f6d79;
  --accent: #ff5a2c;
  --accent-2: #ff2d6f;
  --accent-soft: rgba(255, 90, 44, 0.14);
  --radius: 20px;
  --container: 1240px;
  --header-h: 72px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #0b0b0f; font-weight: 600; }
.skip:focus { left: 12px; }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.grad { background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 90, 44, 0.04); } }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #0b0b0f; box-shadow: 0 12px 32px -12px rgba(255, 90, 44, 0.7); }
.btn--primary:hover { transform: translateY(-1px); background: #ff6a40; box-shadow: 0 16px 40px -12px rgba(255, 90, 44, 0.85); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.05); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Шапка ---------- */

.header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.header.is-scrolled, .header.is-open { background: rgba(8, 8, 11, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: flex; align-items: center; flex: none; color: var(--text); }

/* Логотип «Импульс»: шлейфы вылетают слева, полукольцо докручивается, затем проявляется слово.
   Раз в несколько секунд шлейфы коротко «вытягиваются»; при наведении — тоже (см. main.js) */
.om-logo { display: block; width: auto; height: 24px; overflow: visible; }
.om-trail, .om-ring, .om-word { transform-box: fill-box; }
.om-trail { transform-origin: right center; }
.om-ring { transform-origin: left center; }
.om-trail:nth-child(2) { --i: 1; }
.om-trail:nth-child(3) { --i: 2; }
.om-trail:nth-child(4) { --i: 3; }
.om-trail:nth-child(5) { --i: 4; }

.js .om-trail { animation: om-idle 9s ease-in-out calc(4s + var(--i, 0) * 0.05s) infinite; }
.js:not(.om-seen) .om-trail {
  animation:
    om-trail 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.3s + var(--i, 0) * 0.07s) both,
    om-idle 9s ease-in-out calc(4s + var(--i, 0) * 0.05s) infinite;
}
.js:not(.om-seen) .om-ring { animation: om-ring 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.js:not(.om-seen) .om-word { animation: om-word 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both; }

@keyframes om-ring { from { transform: rotate(-200deg); opacity: 0; } }
@keyframes om-trail { from { transform: scaleX(0); opacity: 0; } }
@keyframes om-word { from { transform: translateX(-24px); opacity: 0; } }
@keyframes om-idle { 0%, 90%, 100% { transform: none; } 94% { transform: scaleX(1.35); } }

.nav { position: relative; isolation: isolate; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.25s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }

/* Подсветка пунктов меню: «капсула» переезжает за курсором и возвращается к текущей странице (main.js) */
.nav__pill {
  position: absolute; z-index: -1; left: 0; top: 50%; width: var(--w, 0); height: 38px; translate: var(--x, 0) -50%;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 999px; background: rgba(255, 255, 255, 0.055);
  opacity: 0; pointer-events: none;
  transition: translate 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.25s;
}
.nav__pill::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 18px; height: 2px; translate: -50% 0; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px 1px rgba(255, 90, 44, 0.7); opacity: 0; transition: opacity 0.3s; }
.nav__pill.is-on { opacity: 1; }
.nav__pill.is-current::after { opacity: 1; }
.nav__pill.is-instant { transition: none; }

/* Кнопка заявки в шапке: блик раз в несколько секунд и свечение при наведении */
.header__cta, .nav__cta { position: relative; overflow: hidden; isolation: isolate; }
.header__cta::after, .nav__cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%); translate: -130% 0; animation: sheen 7s ease-in-out 2.5s infinite; }
.header__cta:hover, .nav__cta:hover { box-shadow: 0 0 0 5px rgba(255, 90, 44, 0.16), 0 18px 44px -12px rgba(255, 90, 44, 0.95); }
.header__cta:hover::after, .nav__cta:hover::after { animation: sheen-now 0.8s ease-out; }
@keyframes sheen { 0%, 78% { translate: -130% 0; } 92%, 100% { translate: 130% 0; } }
@keyframes sheen-now { from { translate: -130% 0; } to { translate: 130% 0; } }

/* Первый показ за визит: пункты шапки мягко появляются по очереди */
.nav > a:nth-of-type(1) { --d: 1; } .nav > a:nth-of-type(2) { --d: 2; } .nav > a:nth-of-type(3) { --d: 3; }
.nav > a:nth-of-type(4) { --d: 4; } .nav > a:nth-of-type(5) { --d: 5; } .nav > a:nth-of-type(6) { --d: 6; }
.header__actions > :nth-child(1) { --d: 6; } .header__actions > :nth-child(2) { --d: 7; } .header__actions > :nth-child(3) { --d: 7; }
@media (min-width: 961px) {
  .js:not(.om-seen) .nav > a, .js:not(.om-seen) .header__actions > * { animation: nav-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) calc(0.45s + var(--d, 0) * 0.06s) both; }
}
@keyframes nav-in { from { opacity: 0; translate: 0 -8px; } }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang a { padding: 7px 10px; border-radius: 999px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--dim); transition: color 0.2s, background-color 0.2s; }
.lang a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lang a[aria-current] { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.burger { display: none; position: relative; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; }
.burger { transition: border-color 0.25s, box-shadow 0.25s; }
.burger:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform 0.25s, left 0.25s; }
.burger:hover span:last-child { left: 18px; }
.burger[aria-expanded="true"] span:last-child { left: 12px; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .header__inner { gap: 12px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px;
    background: rgba(8, 8, 11, 0.97); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open > a { animation: nav-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0) * 0.045s) both; }
  .nav__pill { display: none; }
  .nav a:not(.btn) { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__cta { display: inline-flex; margin-top: 20px; }
  .header__actions { margin-left: auto; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header__cta { display: none; }
  .om-logo { height: 21px; }
}

/* ---------- Первый экран ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--header-h) + 80px); }
.hero::before {
  content: ''; position: absolute; z-index: -2; inset: -10% -10% auto; height: 80%;
  background:
    radial-gradient(45% 55% at 78% 38%, rgba(255, 45, 111, 0.13), transparent 70%),
    radial-gradient(40% 50% at 12% 8%, rgba(255, 90, 44, 0.09), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: 64px; align-items: center; padding-bottom: 140px; }
/* Размер подобран так, чтобы самая длинная строка («Процент — твой.») не переносилась */
.hero__title { margin: 28px 0 26px; font-size: clamp(30px, 4.6vw, 66px); line-height: 1.04; }
.hero__lead { max-width: 580px; font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero__note svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.hero__facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__facts b { display: block; font: 600 30px/1 var(--font-display); letter-spacing: -0.02em; }
.hero__facts span { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Уходящая к горизонту сетка */
.horizon {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 42%;
  overflow: hidden; pointer-events: none; perspective: 360px; perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), #000 30%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), #000 30%);
}
.horizon::before {
  content: ''; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
  box-shadow: 0 0 60px 10px rgba(255, 70, 70, 0.28);
}
.horizon__plane {
  position: absolute; top: 0; left: -75%; right: -75%; height: 100%;
  background-image:
    linear-gradient(rgba(255, 90, 44, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 90, 44, 0.36) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(62deg); transform-origin: 50% 0;
  animation: drive 3s linear infinite;
}
@keyframes drive { to { background-position: 0 64px; } }

/* Пример расчёта выплаты */
.calc {
  position: relative; padding: 28px;
  border: 1px solid var(--line-2); border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 28, 37, 0.88), rgba(15, 15, 21, 0.9));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.calc::before {
  content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 44, 0.8), transparent);
}
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.calc__head .mono { color: var(--muted); }
.tag { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.25); }
.levels button { padding: 10px 6px; border: 0; border-radius: 10px; background: none; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.levels button:hover { color: var(--text); }
.levels button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.calc__row span { color: var(--muted); }
.calc__row b { font: 500 15px/1.2 var(--font-mono); white-space: nowrap; }
.calc__row--profit b { color: var(--text); }
.calc__total { margin-top: 22px; }
.calc__total .mono { color: var(--dim); font-size: 11px; }
.calc__big { margin-top: 10px; font: 600 clamp(40px, 4.4vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; }
.split { display: flex; height: 8px; margin: 20px 0 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.split i { display: block; width: 35%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.split__legend { display: flex; justify-content: space-between; font: 400 11px/1.3 var(--font-mono); color: var(--dim); }
.calc__payout { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--muted); }
.calc__payout b { font: 500 15px/1.2 var(--font-mono); color: var(--text); white-space: nowrap; }
.calc__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--dim); }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-bottom: 110px; }
  .hero__title { font-size: min(8.4vw, 64px); }
}
@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .hero__facts b { font-size: 24px; white-space: nowrap; }
  .calc { padding: 22px 18px; }
}

/* ---------- Бегущая строка ---------- */

.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__track ul { display: flex; flex: none; }
.marquee__track li { display: flex; align-items: center; gap: 48px; padding-right: 48px; font: 500 13px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__track li::after { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */

.section { position: relative; padding: 120px 0; }
.section--alt { border-block: 1px solid var(--line); background: var(--bg-2); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section__head--stack { grid-template-columns: 1fr; max-width: 820px; }
.label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.label::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(27px, 3.4vw, 46px); line-height: 1.1; }
.section__lead { max-width: 560px; font-size: 17px; color: var(--muted); }
.section__lead + .section__lead { margin-top: 14px; }
.section__more { margin-top: 40px; }

.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .section__head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Карточки */
.card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(19, 19, 25, 0.4)); transition: border-color 0.3s; }
.card:hover { border-color: var(--line-2); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card__num { font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--accent); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 28px 0 12px; font-size: 20px; line-height: 1.25; }
.card p { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .card { padding: 26px 22px; } }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.step:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.step__num { font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--dim); }
.step h3 { margin: 20px 0 10px; font-size: 20px; }
.step p { font-size: 15px; color: var(--muted); }
.step .tag { display: inline-block; margin-top: 18px; }
.step--accent .step__num { color: var(--accent); }
.step--accent .tag { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* Уровни */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tier { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tier--hot { border-color: rgba(255, 90, 44, 0.5); background: linear-gradient(180deg, rgba(255, 90, 44, 0.1), var(--surface) 45%); box-shadow: 0 30px 60px -40px rgba(255, 90, 44, 0.6); }
.tier__name { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tier__pct { margin: 24px 0 8px; font: 600 54px/1 var(--font-display); letter-spacing: -0.03em; }
.tier__sub { min-height: 42px; font-size: 14px; color: var(--muted); }
.tier__list { display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.tier__next { margin-top: auto; padding-top: 24px; font: 400 12px/1.5 var(--font-mono); color: var(--dim); }
.bullets li { position: relative; padding-left: 18px; color: var(--muted); }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }
.bullets b { color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr; } .tier__sub { min-height: 0; } }

/* Блок «текст + иллюстрация» */
.split-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.checks { display: grid; gap: 22px; margin-top: 36px; }
.checks li { display: flex; gap: 16px; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.checks b { display: block; margin-bottom: 4px; font-weight: 600; }
.checks span { font-size: 15px; color: var(--muted); }
.checks--no svg { color: var(--dim); }
@media (max-width: 960px) { .split-block { grid-template-columns: 1fr; gap: 48px; } }

/* Пример переписки */
.chat { padding: 20px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--surface); box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9); }
.chat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent); color: #0b0b0f; font: 600 13px/1 var(--font-display); }
.chat__title b { display: block; font-size: 15px; }
.chat__title span { font-size: 12px; color: var(--dim); }
.chat__body { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.msg--me { align-self: flex-end; border: 1px solid rgba(255, 90, 44, 0.25); border-radius: 16px 16px 4px 16px; background: rgba(255, 90, 44, 0.13); }
.msg time { display: block; margin-top: 6px; font: 400 10px/1 var(--font-mono); color: var(--dim); text-align: right; }
.chat__note { margin-top: 16px; font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); text-align: center; }

/* Вертикали */
.vert { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vert__num { font: 500 12px/1 var(--font-mono); color: var(--accent); }
.vert h3 { margin-top: 28px; font-size: 26px; }
.vert__kind { margin-top: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.vert p { margin: 22px 0 28px; font-size: 15px; color: var(--muted); }
.vert dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.vert dt { font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.vert dd { margin: 8px 0 0; font-size: 14px; }

/* Вопросы */
.faq { border-top: 1px solid var(--line); }
/* Ответ раскрывается по высоте (main.js); открытый вопрос подсвечен полосой слева и круглой кнопкой */
.faq details { position: relative; border-bottom: 1px solid var(--line); }
.faq details::before { content: ''; position: absolute; left: -24px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2)); scale: 1 0; transform-origin: top; transition: scale 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.faq details[open]:not(.is-closing)::before { scale: 1 1; }
.faq summary { --icon: var(--accent); display: flex; align-items: center; gap: 24px; padding: 26px 0; list-style: none; font: 600 18px/1.35 var(--font-body); cursor: pointer; transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open]:not(.is-closing) summary { color: #fff; }
.faq summary::after {
  content: ''; flex: none; width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 50%;
  background: linear-gradient(var(--icon), var(--icon)) center / 13px 1.5px no-repeat, linear-gradient(var(--icon), var(--icon)) center / 1.5px 13px no-repeat;
  transition: rotate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.faq summary:hover::after { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.faq details[open]:not(.is-closing) summary { --icon: #0b0b0f; }
.faq details[open]:not(.is-closing) summary::after { rotate: 135deg; border-color: var(--accent); background-color: var(--accent); box-shadow: 0 8px 24px -8px rgba(255, 90, 44, 0.8); }
.faq__n { flex: none; width: 28px; font: 500 12px/1 var(--font-mono); color: var(--dim); transition: color 0.25s; }
.faq summary:hover .faq__n, .faq details[open]:not(.is-closing) .faq__n { color: var(--accent); }
.faq__a { max-width: 820px; padding: 0 40px 28px 52px; color: var(--muted); }
.faq__a p + p, .faq__a p + ul, .faq__a ul + p { margin-top: 12px; }
.faq__a ul { display: grid; gap: 8px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group__title { margin-bottom: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) {
  .faq summary { gap: 14px; padding: 22px 0; font-size: 16px; }
  .faq summary::after { width: 32px; height: 32px; }
  .faq details::before { left: -12px; }
  .faq__a { padding: 0 0 24px 42px; }
}

/* Призыв к действию */
.cta {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center;
  padding: 72px; overflow: hidden;
  border: 1px solid rgba(255, 90, 44, 0.32); border-radius: 32px;
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(255, 45, 111, 0.16), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(255, 90, 44, 0.14), transparent 60%),
    var(--surface);
}
.cta .section__lead { margin-top: 20px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.cta__meta b { display: block; margin-bottom: 4px; font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.bot { padding: 24px; border: 1px solid var(--line-2); border-radius: 22px; background: rgba(8, 8, 11, 0.6); }
.bot__title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bot ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.bot li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; counter-increment: q; }
.bot li:last-child { border-bottom: 0; }
.bot li::before { content: counter(q, decimal-leading-zero); flex: none; padding-top: 2px; font: 500 11px/1.4 var(--font-mono); color: var(--accent); }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; gap: 40px; padding: 48px 28px; border-radius: 26px; } }
@media (max-width: 560px) { .cta { padding: 40px 20px; } .cta__actions .btn { width: 100%; } }

/* ---------- Внутренние страницы ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 80px; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ''; position: absolute; z-index: -1; inset: -30% -10% auto; height: 130%;
  background: radial-gradient(40% 50% at 85% 30%, rgba(255, 45, 111, 0.11), transparent 70%), radial-gradient(35% 45% at 10% 0%, rgba(255, 90, 44, 0.09), transparent 70%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { max-width: 920px; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.08; }
.page-hero__lead { max-width: 700px; margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.page-hero .hero__actions { margin-top: 32px; }
.page-hero--doc { padding-bottom: 56px; }
.page-hero--doc h1 { font-size: clamp(28px, 3.6vw, 46px); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.stats div { padding: 24px 24px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 600 clamp(22px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Вакансии */
.vacancy { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 56px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vacancy + .vacancy { margin-top: 16px; }
.vacancy__side h2 { margin: 18px 0 14px; font-size: clamp(22px, 2.2vw, 28px); }
.vacancy__side p { font-size: 15px; color: var(--muted); }
.vacancy__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.vacancy__tags .tag:first-child { background: var(--accent-soft); color: var(--accent); }
.vacancy__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.vacancy__body h3 { margin-bottom: 16px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.vacancy__body .bullets { display: grid; gap: 10px; font-size: 14px; }
@media (max-width: 1100px) { .vacancy__body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .vacancy { grid-template-columns: 1fr; gap: 32px; padding: 30px 22px; } }
@media (max-width: 640px) { .vacancy__body { grid-template-columns: 1fr; gap: 26px; } }

/* Документы */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding: 72px 0 120px; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 12px; font-size: 14px; }
.doc__toc b { margin-bottom: 4px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.doc__toc a { color: var(--muted); transition: color 0.2s; }
.doc__toc a:hover { color: var(--text); }
.prose { max-width: 780px; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(20px, 2vw, 26px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; font: 700 17px/1.4 var(--font-body); letter-spacing: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { display: grid; gap: 8px; margin: 14px 0; padding-left: 22px; list-style: revert; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 90, 44, 0.6); text-underline-offset: 3px; }
.prose .note { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: 12px; background: var(--surface); }
.prose .note p { color: var(--text); }
.prose table { width: 100%; min-width: 600px; margin: 20px 0; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
.prose th { font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.prose td:first-child { color: var(--text); }
.prose .table-wrap { overflow-x: auto; }
.doc__meta { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 0 88px; }
  .doc__toc { position: static; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
}

/* Список документов */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-link { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s, transform 0.3s; }
.doc-link:hover { border-color: rgba(255, 90, 44, 0.45); transform: translateY(-2px); }
.doc-link b { font: 600 18px/1.3 var(--font-display); }
.doc-link span { font-size: 15px; color: var(--muted); }
.doc-link i { margin-top: auto; padding-top: 8px; font: normal 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) { .doc-list { grid-template-columns: 1fr; } }

/* 404 */
.not-found { display: grid; place-items: center; min-height: 80vh; padding: calc(var(--header-h) + 40px) 0 80px; text-align: center; }
.not-found b { display: block; font: 700 clamp(80px, 18vw, 200px)/1 var(--font-display); letter-spacing: -0.04em; }
.not-found p { max-width: 460px; margin: 16px auto 32px; color: var(--muted); }

/* ---------- Подвал ---------- */

.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.footer__brand .om-logo { height: 30px; }
.footer__brand p { max-width: 340px; margin: 24px 0 24px; font-size: 14px; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h2 { margin-bottom: 6px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.footer__col a, .footer__muted { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__muted { color: var(--dim); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Наклон карточек и подсветка за курсором ---------- */

.tilt { position: relative; --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.4s; }
.tilt.is-tilting { transition: transform 0.12s ease-out, border-color 0.3s, box-shadow 0.4s; }
.tilt::before, .tilt::after { content: ''; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.tilt::before { inset: 0; z-index: 0; background: radial-gradient(460px circle at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--accent)) 13%, transparent), transparent 46%); }
.tilt::after {
  inset: -1px; z-index: 2; padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--accent)) 90%, transparent), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tilt:hover { box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); }
.tilt:hover::before, .tilt:hover::after { opacity: 1; }
.tilt > * { position: relative; z-index: 1; }

/* ---------- Рубрики: цвета ---------- */

[data-cat="basics"], .chip--basics { --c: #ff5a2c; }
[data-cat="money"], .chip--money { --c: #3ddc97; }
[data-cat="metrics"], .chip--metrics { --c: #6aa8ff; }
[data-cat="verticals"], .chip--verticals { --c: #c58bff; }
[data-cat="safety"], .chip--safety { --c: #ffc24b; }
[data-cat="practice"], .chip--practice { --c: #ff4d8d; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- Карточка материала ---------- */

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

.post { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(19, 19, 25, 0.5)); }
.post:hover { border-color: transparent; }
.post__link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; }
.post__art {
  position: relative; height: 170px; overflow: hidden; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(120% 110% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 22px 22px;
}
.post__art svg { width: 100%; height: 100%; padding: 14px 16px; transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.post:hover .post__art svg { scale: 1.04; }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.post__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--dim); }
.post h3 { margin: 18px 0 10px; font-size: 19px; line-height: 1.28; transition: color 0.25s; }
.post:hover h3 { color: #fff; }
.post p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.post__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.post__arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); transition: background-color 0.3s, border-color 0.3s, color 0.3s, rotate 0.4s; }
.post__arrow svg { width: 15px; height: 15px; }
.post:hover .post__arrow { background: var(--c); border-color: var(--c); color: #0b0b0f; rotate: 45deg; }

.post.is-out { opacity: 0; scale: 0.96; transition: opacity 0.22s, scale 0.22s; }
.post.is-hidden { display: none; }
.post.is-pop { animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pop { from { opacity: 0; translate: 0 14px; scale: 0.98; } }

/* Иллюстрации рубрик (partials/art) */
.post__art .g-grid path, .post-hero__art .g-grid path { stroke: rgba(255, 255, 255, 0.06); fill: none; }
.s { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-linecap: round; }
.s-a { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-dash { stroke-dasharray: 4 6; }
.a-line { stroke-dasharray: 640; stroke-dashoffset: 0; }
.post:hover .a-line, .post-hero__art .a-line { animation: draw 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.post:hover .a-line--slow { animation-duration: 2.2s; }
@keyframes draw { from { stroke-dashoffset: 640; } }
.t-mono text, text.t-mono { font: 500 10px var(--font-mono); letter-spacing: 0.08em; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.t-left text { text-anchor: start; }
.t-mono .t-a, text.t-a { fill: var(--c); }
.t-mono .t-dim { fill: var(--dim); }
.t-strike { text-decoration: line-through; }
.node { fill: var(--bg-2); stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }
.node--a { fill: color-mix(in srgb, var(--c) 18%, var(--bg-2)); stroke: var(--c); }
.a-runner { fill: var(--c); opacity: 0; transition: opacity 0.3s; }
.post:hover .a-runner, .post-hero__art .a-runner { opacity: 1; }
.bar { fill: rgba(255, 255, 255, 0.07); transform-box: fill-box; transform-origin: 50% 100%; }
.bar--a { fill: color-mix(in srgb, var(--c) 40%, transparent); }
.split-spend { fill: rgba(255, 255, 255, 0.14); }
.post:hover .bar, .post-hero__art .bar { animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bar:nth-child(2) { animation-delay: 0.06s !important; } .bar:nth-child(3) { animation-delay: 0.12s !important; }
.bar:nth-child(4) { animation-delay: 0.18s !important; } .bar:nth-child(5) { animation-delay: 0.24s !important; }
@keyframes grow { from { scale: 1 0.2; } }
.dot-a { fill: var(--c); transform-box: fill-box; transform-origin: center; }
.post:hover .a-dots .dot-a { animation: blip 1s ease both; }
@keyframes blip { 40% { scale: 1.8; } }
.area { fill: color-mix(in srgb, var(--c) 10%, transparent); }
.tile rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.1); }
.tile { transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.post:hover .tile { translate: 0 -8px; }
.post:hover .tile--mid { translate: 0 -14px; transition-delay: 0.05s; }
.post:hover .tile + .tile + .tile { transition-delay: 0.1s; }
.ring { fill: none; stroke: var(--c); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ripple 3s ease-out infinite; }
.ring--2 { animation-delay: 1s; } .ring--3 { animation-delay: 2s; }
@keyframes ripple { 0% { opacity: 0.5; scale: 1; } 100% { opacity: 0; scale: 2.6; } }
.shield { fill: color-mix(in srgb, var(--c) 12%, var(--bg-2)); stroke: var(--c); stroke-width: 2; stroke-linejoin: round; }
.row { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.09); }
.pill { fill: rgba(255, 255, 255, 0.1); }
.sw rect { fill: rgba(255, 255, 255, 0.12); transition: fill 0.4s; }
.sw circle { fill: rgba(255, 255, 255, 0.7); transition: translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), fill 0.4s; }
.sw--on rect { fill: color-mix(in srgb, var(--c) 55%, transparent); }
.sw--on circle { fill: #fff; }
.a-switch rect { fill: color-mix(in srgb, var(--c) 55%, transparent); }
.post:hover .a-switch rect, .post-hero__art .a-switch rect { fill: rgba(255, 255, 255, 0.12); }
.post:hover .a-switch .knob, .post-hero__art .a-switch .knob { translate: -16px 0; fill: rgba(255, 255, 255, 0.6); }
.t-stop { opacity: 0; transition: opacity 0.3s 0.15s; letter-spacing: 0.2em; }
.post:hover .t-stop, .post-hero__art .t-stop { opacity: 1; }

/* ---------- Материалы: шапка с глобусом ---------- */

.ins-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 56px) 0 64px; border-bottom: 1px solid var(--line); }
.ins-hero__glow { position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(255, 90, 44, 0.16), transparent 70%); filter: blur(10px); }
.ins-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center; }
.ins-hero .eyebrow { margin-bottom: 26px; }
.ins-hero__title { font-size: clamp(40px, 6.2vw, 86px); line-height: 1.02; }
.ins-hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.ins-hero__stats b { display: block; font: 600 clamp(28px, 3vw, 40px)/1 var(--font-display); }
.ins-hero__stats span { display: block; margin-top: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.globe { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin: 0 0 0 auto; touch-action: pan-y; cursor: grab; user-select: none; }
.globe.is-drag { cursor: grabbing; }
.globe.is-pointer { cursor: pointer; }
.globe::before { content: ''; position: absolute; inset: 9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 44, 0.22), transparent); filter: blur(30px); }
.globe__canvas { display: block; width: 100%; height: 100%; }
.globe__label { position: absolute; left: 50%; bottom: 2%; translate: -50% 0; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8, 8, 11, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.globe__label.is-hot { color: var(--text); border-color: var(--r, var(--accent)); }

@media (max-width: 960px) {
  .ins-hero__inner { grid-template-columns: 1fr; }
  .globe { max-width: 460px; margin: 8px auto 0; }
}

/* ---------- Фильтры ---------- */

.ins-list { padding-top: 64px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.filter span { color: var(--dim); transition: color 0.25s; }
.filter:hover { border-color: rgba(255, 255, 255, 0.34); color: var(--text); }
.filter[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #0b0b0f; }
.filter[aria-pressed="true"] span { color: rgba(11, 11, 15, 0.55); }
.filters__count { margin: 22px 0 26px; color: var(--dim); }

/* ---------- Атлас гео: карта ---------- */

[data-region="en"] { --r: #6aa8ff; }
[data-region="weu"] { --r: #c58bff; }
[data-region="seu"] { --r: #ffc24b; }
[data-region="cee"] { --r: #3ddc97; }
[data-region="latam"] { --r: #ff4d8d; }
[data-region="mena"] { --r: #ff8a3d; }
[data-region="sea"] { --r: #3dd6dc; }

.atlas__stage { margin-bottom: 56px; }
.map { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(90% 80% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%), var(--bg); padding: 56px 16px 16px; }
.map__head { position: absolute; inset: 18px 20px auto; display: flex; justify-content: space-between; gap: 16px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.map__total b { font: 600 22px/1 var(--font-display); letter-spacing: 0; color: var(--text); margin-right: 6px; }
.map__legend { display: inline-flex; align-items: center; gap: 8px; }
.map__legend-hq { width: 8px; height: 8px; rotate: 45deg; background: var(--accent); }
.map__svg { display: block; width: 100%; height: auto; }
.map__c { fill: rgba(255, 255, 255, 0.055); stroke: var(--bg); stroke-width: 0.5; stroke-linejoin: round; transition: fill 0.25s; }
.map__c.is-atlas { fill: color-mix(in srgb, var(--r) 34%, #14141b); cursor: pointer; }
.map.is-focus .map__c.is-atlas { fill: color-mix(in srgb, var(--r) 14%, #14141b); }
.map.is-focus .map__c.is-on { fill: color-mix(in srgb, var(--r) 62%, #14141b); }
.map .map__c.is-hot { fill: var(--r); }
.map__pin { pointer-events: none; }
.map__pin-ring { fill: none; stroke: var(--r); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pin 2.6s ease-out infinite; }
.map__pin-dot { fill: #fff; stroke: var(--r); stroke-width: 2; }
.map.is-focus .map__pin:not(.is-on) { opacity: 0.25; }
@keyframes pin { 0% { scale: 0.4; opacity: 0.9; } 100% { scale: 1.8; opacity: 0; } }
.map__hq rect { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; }
.map__src { margin-top: 12px; font-size: 12px; color: var(--dim); }

.map__card { position: absolute; left: 18px; bottom: 18px; width: min(350px, calc(100% - 36px)); padding: 18px 18px 16px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(13, 13, 18, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); animation: card-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.map__card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; translate: 0 8px; } }
.map__card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--r, var(--dim)); }
.map__card h3 { margin: 10px 0 4px; font-size: 18px; line-height: 1.25; }
.map__card-country { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--muted); }
.map__card-hint { font-size: 14px; color: var(--muted); }
.fit { display: grid; gap: 7px; margin: 14px 0; }
.fit div { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.fit i { display: flex; gap: 4px; }
.fit b { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.fit b.on { background: var(--r); }
.map__card dl { display: grid; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.map__card dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 12.5px; }
.map__card dt { font: 500 10px/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.map__card dd { margin: 0; color: var(--text); }
.map__card-note { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.map__card-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted); cursor: pointer; }
.map__card-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }

/* ---------- Атлас гео: список регионов ---------- */

.atlas__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.atlas__item { position: relative; display: grid; gap: 8px; width: 100%; padding: 20px 0 20px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.atlas__item::before { content: ''; position: absolute; left: 0; top: 22px; width: 3px; height: 16px; border-radius: 2px; background: var(--r); transition: height 0.3s; }
.atlas__item:hover::before, .atlas__item[aria-pressed="true"]::before { height: calc(100% - 44px); }
.atlas__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.atlas__name { font: 600 16px/1.3 var(--font-body); transition: color 0.2s; }
.atlas__item:hover .atlas__name, .atlas__item[aria-pressed="true"] .atlas__name { color: var(--r); }
.atlas__n { font: 600 15px/1 var(--font-display); color: var(--r); }
.atlas__tier { font: 500 10px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.atlas__codes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.atlas__codes i { padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 5px; font: 500 10px/1 var(--font-mono); font-style: normal; color: var(--muted); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.atlas__codes i:hover, .atlas__codes i.is-hot { border-color: var(--r); background: var(--r); color: #0b0b0f; }

@media (max-width: 760px) {
  .map { padding: 52px 8px 8px; border-radius: 20px; }
  .map__head { inset: 14px 14px auto; }
  .map__legend { display: none; }
  .map__card { position: relative; left: auto; bottom: auto; width: auto; margin: 10px 2px 2px; }
  .atlas__list { grid-template-columns: 1fr; }
}

/* ---------- Страница материала ---------- */

.read-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.read-progress i { display: block; height: 100%; transform-origin: 0 50%; scale: var(--p, 0) 1; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.page-hero--post { padding-bottom: 64px; }
.page-hero--post .container { position: relative; z-index: 1; }
.page-hero--post h1 { max-width: 820px; font-size: clamp(30px, 4.4vw, 56px); }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 24px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.post-hero__art { position: absolute; right: max(-60px, calc((100vw - var(--container)) / 2 - 120px)); top: 50%; translate: 0 -40%; width: 560px; opacity: 0.55; pointer-events: none; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.post-hero__art svg { width: 100%; height: auto; }
@media (max-width: 1100px) { .post-hero__art { display: none; } }
.doc--post .doc__toc a { line-height: 1.4; }
.doc__back { margin-bottom: 10px; color: var(--accent) !important; font-weight: 600; }
.prose--post p, .prose--post li { font-size: 17px; }
.prose--post .table-wrap { margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose--post table { margin: 0; }
.prose--post tbody tr { transition: background-color 0.2s; }
.prose--post tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

/* ---------- Общее ---------- */

.section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.section__head--row .section__lead { margin-top: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); font-weight: 600; white-space: nowrap; transition: border-color 0.25s, gap 0.25s; }
.link-more svg { width: 16px; height: 16px; color: var(--accent); transition: rotate 0.3s; }
.link-more:hover { gap: 14px; border-color: var(--accent); }
.link-more:hover svg { rotate: 45deg; }
.cta--compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.cta--compact .cta__actions { margin-top: 0; }
@media (max-width: 960px) { .cta--compact .cta__actions { margin-top: 8px; } }

/* ---------- Первый экран: живой фон ---------- */

/* Свечение медленно «дышит», по линии горизонта бежит блик, поверх — едва заметное зерно */
.hero::before { animation: aurora 16s ease-in-out infinite alternate; }
@keyframes aurora {
  0% { translate: 0 0; scale: 1; }
  50% { translate: -3% 2%; scale: 1.06; }
  100% { translate: 3% -1%; scale: 1.02; }
}
.horizon::after {
  content: ''; position: absolute; z-index: 2; top: -1px; left: 0; width: 22%; height: 3px;
  background: radial-gradient(closest-side, #fff, rgba(255, 120, 80, 0.8) 40%, transparent);
  filter: blur(1px); animation: horizon-run 7s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes horizon-run { from { translate: -20% 0; } to { translate: 480% 0; } }
.hero__grain {
  position: absolute; z-index: -1; inset: -50%; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { translate: 0 0; } 20% { translate: -4% 3%; } 40% { translate: 3% -5%; }
  60% { translate: -2% 4%; } 80% { translate: 5% 2%; } 100% { translate: 0 0; }
}
.calc__big.is-bump { animation: bump 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes bump { 40% { scale: 1.05; filter: drop-shadow(0 0 18px rgba(255, 90, 44, 0.45)); } }
.levels { position: relative; isolation: isolate; }
.levels__pill { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); translate: var(--x, 0) 0; border-radius: 10px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: translate 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.4s; }
.levels.has-pill button[aria-pressed="true"] { background: none; }

/* ---------- Заголовки появляются по словам ---------- */

.words .w { display: inline-block; vertical-align: top; overflow: hidden; padding: 0.12em 0.02em 0.1em; margin: -0.12em -0.02em -0.1em; }
.words .w > span { display: inline-block; translate: 0 110%; transition: translate 0.85s cubic-bezier(0.2, 0.75, 0.15, 1) calc(var(--wi, 0) * 0.055s); }
.words.is-words-in .w > span { translate: none; }

/* ---------- Лестница уровней ---------- */

.ladder { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.ladder__rail { position: absolute; left: 32px; right: calc(25% - 44px); top: 9px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.ladder__rail i { display: block; height: 100%; transform-origin: 0 50%; scale: var(--p, 0) 1; background: linear-gradient(90deg, var(--dim), var(--accent) 35%, var(--accent-2)); box-shadow: 0 0 14px rgba(255, 90, 44, 0.8); }
.ladder__node { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 28px 0 22px; }
.ladder__dot { width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--bg); transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s, scale 0.4s; }
.ladder__name { font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); transition: color 0.4s; }
.ladder__node b { font: 600 15px/1 var(--font-display); color: var(--dim); transition: color 0.4s; }
.ladder__node.is-lit .ladder__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 22px rgba(255, 90, 44, 0.8); scale: 1.08; }
.ladder__node.is-lit .ladder__name, .ladder__node.is-lit b { color: var(--text); }
.tier { transition: border-color 0.5s, box-shadow 0.5s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tier.is-lit { border-color: rgba(255, 90, 44, 0.35); }
@media (max-width: 1100px) { .ladder { display: none; } }

/* ---------- Как деньги доходят до тебя ---------- */

.flow { margin-top: 56px; padding: 36px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(70% 120% at 50% 0%, rgba(255, 90, 44, 0.07), transparent 70%), var(--bg-2); }
.flow__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 34px; }
.flow__head h3 { font-size: clamp(22px, 2.2vw, 30px); }
.flow__head p { max-width: 460px; font-size: 15px; color: var(--muted); }
.flow__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.flow__rail { position: absolute; left: 28px; right: calc(25% - 43px); top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.flow__coin {
  position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc24b 45%, #ff8a3d);
  box-shadow: 0 0 0 4px rgba(255, 194, 75, 0.18), 0 0 22px rgba(255, 170, 60, 0.9);
  animation: coin-x 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes coin-x {
  0% { left: 0; opacity: 0; } 6% { opacity: 1; }
  25% { left: 33.33%; } 50% { left: 66.66%; } 75%, 92% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; }
}
.flow__step { position: relative; display: grid; gap: 8px; align-content: start; }
.flow__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--muted); animation: flow-hit 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s - 0.2s); }
.flow__icon svg { width: 24px; height: 24px; }
.flow__step b { font-size: 16px; }
.flow__step > span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
@keyframes flow-hit {
  0%, 14%, 100% { border-color: var(--line-2); color: var(--muted); box-shadow: none; }
  4% { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 10px 30px -10px rgba(255, 90, 44, 0.9); }
}
@media (max-width: 860px) {
  .flow { padding: 26px 20px; }
  .flow__steps { grid-template-columns: 1fr; gap: 22px; }
  .flow__step { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .flow__icon { grid-row: span 2; margin: 0; }
  .flow__rail { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .flow__coin { top: 0; left: 50%; margin: -8px 0 0 -8px; animation-name: coin-y; }
  @keyframes coin-y {
    0% { top: 0; opacity: 0; } 6% { opacity: 1; }
    25% { top: 33.33%; } 50% { top: 66.66%; } 75%, 92% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; }
  }
}

/* ---------- Вертикали: свой цвет и иконка ---------- */

.vert--ecom { --c: #6aa8ff; }
.vert--nutra { --c: #3ddc97; }
.vert--dating { --c: #ff4d8d; }
.vert { position: relative; }
.vert::before { content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--c, var(--accent)), transparent); opacity: 0.7; }
.vert__top { display: flex; align-items: center; justify-content: space-between; }
.vert__num { color: var(--c, var(--accent)); }
.vert__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); transition: background-color 0.3s, box-shadow 0.3s; }
.vert__icon svg { width: 24px; height: 24px; overflow: visible; }
.vert:hover .vert__icon { background: color-mix(in srgb, var(--c) 24%, transparent); box-shadow: 0 10px 30px -10px var(--c); }
.vert h3 { transition: color 0.3s; }
.vert:hover h3 { color: var(--c); }
.vi-cart, .vi-leaf, .vi-heart { transform-box: fill-box; }
.vert:hover .vi-cart { animation: cart 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.vert:hover .vi-leaf { transform-origin: 0% 100%; animation: leaf 1.2s ease-in-out; }
.vert:hover .vi-heart { transform-origin: center; animation: heart 0.9s ease-in-out; }
@keyframes cart { 30% { translate: 5px 0; } 55% { translate: -2px 0; } }
@keyframes leaf { 25% { rotate: -10deg; } 60% { rotate: 6deg; } }
@keyframes heart { 15% { scale: 1.22; } 30% { scale: 0.95; } 45% { scale: 1.14; } 60% { scale: 1; } }

/* ---------- География с глобусом ---------- */

.geo { overflow: hidden; }
.geo__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.globe--home { max-width: 500px; margin: 0; }
.geo__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 32px; }
.geo__stats b { display: block; font: 600 clamp(28px, 3vw, 40px)/1 var(--font-display); }
.geo__stats span { display: block; margin-top: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 960px) {
  .geo__inner { grid-template-columns: 1fr; gap: 24px; }
  .globe--home { max-width: 420px; margin: 0 auto; order: 2; }
}

/* ---------- Переписка «печатается» ---------- */

.js [data-typing].is-typing > :not(.typing) { display: none; }
.js [data-typing].is-typing > .is-shown { display: revert; animation: msg-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .chat__body[data-typing].is-typing > .is-shown { display: block; }
.js .bot ol[data-typing].is-typing > .is-shown { display: flex; }
@keyframes msg-in { from { opacity: 0; translate: 0 8px; scale: 0.98; } }
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); }
.typing--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: rgba(255, 90, 44, 0.13); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }
.bot .typing { margin: 10px 0 4px 25px; padding: 9px 12px; border-radius: 12px; }
.chat__title span.is-typing-now { color: var(--accent); }

/* ---------- Плавные переходы между страницами ---------- */

@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.22s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -6px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 12px; } }

/* ---------- Появление при прокрутке ---------- */

/* translate, а не transform: transform занят наклоном карточек (.tilt) */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.8s ease, translate 0.8s ease; }
.js .reveal.is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .words .w > span { translate: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
