/* ============ Tokens ============ */
:root {
  --bg: #f5f6fa;
  --surface: #f8f8fc;
  --ink: #191c1f;
  --muted: #636884;
  --line: #e4e6ef;
  --accent: #0a5cff;        /* 220° - чистый синий, контраст 5.27 на белом */
  --accent-2: #4d8bff;
  --accent-deep: #0040c8;
  --accent-soft: #e6eeff;
  --dark: #191c1f;
  --deep: var(--bg);   /* цвета в секции с роликами нет, фон как у страницы */

  --container: 1240px;
  --gutter: 40px;
  --side: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --section: 120px;
  --radius: 20px;
  --shadow: 0 14px 44px rgba(22, 20, 34, .06);
  --shadow-hover: 0 22px 56px rgba(70, 54, 130, .10);
  --header: 80px;   /* как у mediacube */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 150ms;
  --t: 250ms;
  --t-slow: 350ms;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.32;   /* 132% как в их тексте */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/web/page-background.webp") center top / cover no-repeat;
  opacity: .28;
  pointer-events: none;
  z-index: -2;
}
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .08;
  background-image: radial-gradient(#171922 .55px, transparent .55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section-pad { padding: var(--section) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--dark); color: #fff; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.i { width: 16px; height: 16px; flex: none; }

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s, border-color .22s;
}
.btn .i { transition: transform .22s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .i { transform: translateX(3px); }
.btn-dark { background: linear-gradient(135deg, #12131a, #1f2130); color: #fff; box-shadow: 0 12px 28px rgba(18, 19, 26, .14); }
.btn-dark:hover { box-shadow: 0 16px 34px rgba(18, 19, 26, .2); }
.btn-light { background: rgba(255, 255, 255, .6); border-color: #d8dae3; }
.btn-light:hover { border-color: #b9b0f0; background: #fff; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 560; white-space: nowrap; }
.text-link .i { transition: transform .2s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }

.card-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22242e;
  color: #fff;
  transition: background-color .2s, transform .2s var(--ease);
}
.card-arrow:hover { background: var(--accent); transform: translateX(2px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.eyebrow b { font-weight: 500; color: #c3bcdc; padding: 0 6px; }

/* Ритм секций: вместо одной схемы «надзаголовок + большой заголовок + лид
   справа», повторённой на каждом блоке, три разных типа вступления. */
.intro-center { text-align: center; max-width: 42ch; margin-inline: auto; }
.intro-center .section-intro-side, .intro-center .intro-side { display: none; }
.intro-inline { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.intro-inline h2 { margin: 0; }
.intro-inline .intro-side { max-width: 46ch; }
.intro-inline .intro-side p { margin: 0; }
@media (max-width: 760px) { .intro-inline { display: block; } .intro-inline .intro-side { margin-top: 14px; } }

/* Заголовки и подписи - Unbounded. Он шире Inter, поэтому ниже везде
   поджат трекинг и немного снижен кегль, иначе строки не встают. */
h1, h2, h3, h4,
.eyebrow, .btn, .brand, .stat strong, .metric-card b, .case-metrics strong,
.svc-block h3, .steps h3, .work-head h3, .ig-name {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
}
h1, h2, h3, h4 { letter-spacing: -.07em; line-height: .96; }   /* почерк befluence: -0.07em и 94-96% */

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25, 25, 30, .07);
}
.nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 2.2vw, 32px); }
.nav-shell > .brand { justify-self: start; }
.nav-center { display: flex; align-items: center; gap: 0; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.brand-mark { width: 28px; height: 29px; object-fit: contain; }
.desktop-nav { display: flex; align-items: stretch; gap: 0; height: var(--header); }
/* Пункт меню во всю высоту шапки, подчёркивание на 4px по нижней кромке -
   снято с их mc-header.css. Там же: при наведении подчёркивания нет,
   оно только у текущего раздела. */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--header);
  padding: 0 16px;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent); border-radius: 4px 4px 0 0;
  opacity: 0; transform: scaleX(0); transform-origin: center;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.nav-link:hover, .nav-link.is-active, .nav-link.is-current, .nav-item.is-active > .nav-link, .nav-item.is-current > .nav-link, .nav-item.is-open > .nav-link { color: var(--accent); }
.nav-link.is-active::after, .nav-link.is-current::after, .nav-item.is-active > .nav-link::after, .nav-item.is-current > .nav-link::after { opacity: 1; transform: scaleX(1); }
.nav-trigger .chev { width: 11px; height: 11px; color: currentColor; opacity: .7; transition: transform .25s var(--ease); }
.nav-item { position: relative; display: flex; height: var(--header); }
.nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  z-index: 120;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(22, 20, 34, .12);
  opacity: 0;
  visibility: hidden;
  /* У mediacube подменю появляется мгновенно, а закрывается затуханием 0.3s -
     так оно не «догоняет» курсор при быстром проходе по шапке. */
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-item:hover > .nav-sub, .nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; transition: none; }
.nav-item:hover .chev, .nav-item.is-open .chev { transform: rotate(180deg); }
.nav-sub a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 14px; color: #3a3c48; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--accent-soft); color: var(--accent); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; justify-self: end; }
.nav-center .lang-menu { right: auto; left: 50%; transform: translateX(-50%); }
/* Высота, радиус и отступы кнопок - по их же --mc-header-cta-height: 48px,
   радиус 12px, padding 12px 32px, шрифт 16/600. */
.btn-nav { min-height: 48px; padding-inline: 32px; font-size: 16px; font-weight: 600; }
.btn-nav.btn-dark:hover { box-shadow: 0 10px 30px -5px rgba(10, 92, 255, .45); }
.btn-ghost {
  min-height: 48px; padding-inline: 22px; border-radius: 12px;
  background: #fff; color: var(--accent); font-size: 15px; font-weight: 600;
  transition: background-color .3s var(--ease), opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
/* Кнопки кабинетов вылетают справа, когда страница тронулась с места -
   в самом верху в шапке только логотип, меню и главная кнопка. */
.btn-fly { opacity: 0; transform: translateX(26px); pointer-events: none; }
body.is-scrolled .btn-fly { opacity: 1; transform: none; pointer-events: auto; }
body.is-scrolled .btn-fly:nth-of-type(1) { transition-delay: .04s; }
body.is-scrolled .btn-fly:nth-of-type(2) { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .btn-fly { opacity: 1; transform: none; pointer-events: auto; } }
.btn-ghost:hover { background: rgba(10, 92, 255, .12); }
/* Главная кнопка появляется, как только страница тронулась с места -
   у mediacube шапка в самом верху показывает только вход. */
.btn-nav.btn-dark {
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
body.is-scrolled .btn-nav.btn-dark { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 900px) { .btn-ghost { display: none; } }

.lang { position: relative; }
.lang-pill {
  height: 46px;
  padding: 0 14px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang-pill:hover, .lang-pill[aria-expanded="true"] { border-color: #c7bdf6; background: #fff; }
.lang-pill .i { width: 18px; height: 18px; color: #3a3c48; }
.lang-pill .chev { width: 12px; height: 12px; color: #8a8c98; transition: transform .2s; }
.lang-pill[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(22, 20, 34, .12);
}
.lang-up .lang-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.lang-menu li { padding: 11px 14px; border-radius: 9px; font-size: 14px; color: #3a3c48; cursor: pointer; }
.lang-menu li:hover, .lang-menu li.is-focus { background: var(--accent-soft); }
.lang-menu li[aria-selected="true"] { color: var(--accent); font-weight: 650; }

.menu-button { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-button span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 25px; }
.menu-button[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 12px var(--gutter) 28px;
  background: #f8f8fa;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-menu { max-height: calc(100vh - var(--header)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu .m-link { display: block; padding: 16px 2px; font-size: 17px; border-bottom: 1px solid #ebebef; }
.m-group { padding: 16px 0 8px; border-bottom: 1px solid #ebebef; }
.m-label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.m-group a { display: block; padding: 10px 2px; font-size: 16px; }
.mobile-menu .btn { width: 100%; margin-top: 22px; }
.mobile-lang { margin-top: 22px; width: fit-content; }
.mobile-lang .lang-menu { left: 0; right: auto; }

/* ============ Hero ============ */
.hero { position: relative; padding: 112px 0 136px; overflow-x: clip; }
.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
/* Строка выше плашки: межстрочное расстояние должно быть не меньше
   высоты самой плашки, иначе она накрывает хвост у «g». */
.hero h1 { font-size: 72px; line-height: 1.14; letter-spacing: -.07em; font-weight: 700; }
html:is([lang="es"], [lang="pt"], [lang="de"]) .hero h1 { font-size: 60px; }
/* Приём befluence: ключевая фраза не красится градиентом, а садится
   в скруглённую плашку - это читается как выделение маркером. */
.hero h1 > span {
  position: relative;   /* блик и мерка позиционируются от самой плашки */
  display: inline-block; padding: .02em .24em .1em; margin: 0 -.06em; line-height: 1;
  border-radius: 16px; color: #fff;
  background: linear-gradient(118deg, var(--accent), #2b7bff 58%, #5f9cff);
  background-size: 165% 100%;
  box-shadow: 0 10px 28px -12px rgba(10, 92, 255, .55);
  animation: heroPill .55s var(--bounce) .3s both, heroPillDrift 9s var(--ease) 1s infinite alternate;
}
@keyframes heroPill {
  from { opacity: 0; transform: scaleX(.82) rotate(-1.4deg); }
  to { opacity: 1; transform: none; }
}
@keyframes heroPillDrift { to { background-position: 42% 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 > span { animation: none; } }
.hero-lead { font-size: 18px; line-height: 1.7; color: #595c6c; max-width: 54ch; margin: 30px 0 46px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 40px; color: #656876; font-size: 14px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .i { width: 15px; height: 15px; color: var(--accent); }

/* ---- карточка «мы будем на SiGMA» в правом верхнем углу героя ----
   Два логотипа и строка с местом и датами, больше ничего. */
.hero-sigma {
  position: absolute; z-index: 3; top: 0; right: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hero-sigma:hover { border-color: #c9d8ff; background: rgba(255, 255, 255, .9); }
.hs-link { display: block; padding: 14px 18px 13px; text-decoration: none; color: inherit; }
.hs-lock { display: flex; align-items: center; gap: 11px; }
.hs-sigma { height: 16px; width: auto; }
.hs-x { font-size: 12px; font-weight: 300; color: #b2b6c6; }
.hs-mark { height: 26px; width: auto; }
.hs-place {
  display: block; margin-top: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .01em; color: var(--muted);
}

@media (max-width: 1180px) { .hero-sigma { display: none; } }

.hero-art { position: absolute; top: 0; right: 0; bottom: 48px; width: 52vw; max-width: 860px; pointer-events: none; }
.hero-halftone { position: absolute; top: -4%; right: -6%; width: 78%; opacity: .5; }
.hero-cluster { position: absolute; top: 50%; right: 3%; width: min(90%, 700px); transform: translateY(-50%); filter: drop-shadow(0 24px 48px rgba(26, 23, 40, .09)); }
.hero-note {
  position: absolute;
  z-index: 2;
  padding: 18px 22px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #2f303b;
  background: rgba(244, 244, 247, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(22, 20, 34, .06);
}
.hero-note i { display: block; width: 28px; height: 1.5px; margin: 14px 0; background: #2f303b; }
.hero-note i:last-child { margin-bottom: 4px; }
.note-a { left: 18%; top: 36%; }
.note-b { right: 5%; top: 6%; }

/* ============ Stats ============ */
/* Снизу нужен запас: следующая секция наезжает на 40px и без него
   срезала бы половину панели. */
.stats-section { padding: 0 0 80px; }
.stats-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(251, 251, 253, .78);
  border: 1px solid rgba(208, 210, 220, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats-grid article { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 34px 26px; }
.stats-grid article:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 24%; height: 52%; width: 1px; background: #dedfe6; }
.stat-icon { width: 48px; height: 48px; margin-top: -8px; object-fit: contain; flex: none; }
.stats-grid strong { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.stats-grid span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: #676a77; }
.stats-caption { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.9; letter-spacing: .26em; text-transform: uppercase; color: #3a3b46; }
.stats-caption b { color: var(--accent-2); margin-right: 12px; font-weight: 600; }

/* ============ Section intro ============ */
.section-intro { margin-bottom: 76px; }
.split-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: end; }
.section-intro h2, .case-title h2, .contact-copy h2 { font-size: 46px; line-height: .94; letter-spacing: -.07em; }
.intro-side p { margin: 0 0 20px; max-width: 540px; font-size: 16px; line-height: 1.65; color: #626574; }

/* ============ Services ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc-block {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(246, 246, 250, .7));
  border: 1px solid #e0e1e8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.svc-block:hover { transform: translateY(-6px); border-color: #d2c9fb; box-shadow: var(--shadow-hover); }
.svc-block-head { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-block-head .num { font-size: 13px; color: #a3a5b1; }
.svc-block:hover .service-icon { transform: translateY(-3px) rotate(-4deg); }
.svc-block h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.svc-block > p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: #666977; }
.svc-points { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.svc-points li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; color: #3d4050; }
.svc-points li::before { content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.2 4.7-5' fill='none' stroke='%237b4dff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.svc-cta { align-self: flex-start; margin-top: auto; }
.svc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: auto; }
.svc-actions .svc-cta { margin-top: 0; }
@media (max-width: 860px) {
  .svc-blocks { grid-template-columns: 1fr; gap: 20px; }
  .svc-block { padding: 28px 24px 26px; }
  .svc-block h3 { font-size: 20px; }
}
.service-card {
  position: relative;
  min-height: 272px;
  padding: 36px 34px 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 246, 250, .66));
  border: 1px solid #e0e1e8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: #d2c9fb; box-shadow: var(--shadow-hover); }
.service-card .num { position: absolute; top: 28px; right: 30px; font-size: 13px; color: #a3a5b1; }
.service-icon { height: 64px; width: 64px; object-fit: contain; margin: -6px 0 24px -6px; transition: transform .35s var(--ease); }
.service-card:hover .service-icon { transform: translateY(-3px) rotate(-4deg); }
.service-card h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 12px; }
.service-card p { margin: 0; max-width: 320px; font-size: 15px; line-height: 1.6; color: #666977; }

/* ============ Creators ============ */
.creator-side-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d9dae3;
  background: #fbfbfd;
  color: var(--accent);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.carousel-controls button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.carousel-controls button:disabled { color: #b7b8c3; cursor: default; opacity: .7; }
.creator-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  padding: 8px 4px 28px;
  margin: -8px -4px -28px;
}
.creator-track::-webkit-scrollbar { display: none; }
.creator-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(252, 252, 253, .86);
  border: 1px solid #dedfe7;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.creator-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #e9e8f0; }
.creator-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--ease); }
.creator-card:hover .creator-photo > img:first-child { transform: scale(1.04); }
.platform { position: absolute; left: 18px; bottom: 16px; width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }
.creator-body { position: relative; flex: 1; padding: 22px 22px 24px; }
.creator-body h3 { font-size: 17px; letter-spacing: -.015em; }
.creator-body p { margin: 4px 0 16px; font-size: 14px; color: #656875; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 52px; }
.tags li { padding: 5px 11px; border-radius: 999px; background: #efeff5; font-size: 12px; color: #6f7280; }
.creator-body .card-arrow { position: absolute; right: 20px; bottom: 22px; }

/* ============ Process ============ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; counter-reset: none; }
.process-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 8px;
  min-height: 236px;
  padding: 30px 30px 32px 26px;
  background: rgba(251, 251, 253, .66);
  border: 1px solid #e0e1e8;
  border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}
.process-card:hover { border-color: #d2c9fb; box-shadow: var(--shadow); }
.process-card .step { grid-row: 1; grid-column: 1; font-size: 24px; font-weight: 500; line-height: 1; color: #c7c8d2; letter-spacing: -.03em; }
.process-icon { grid-row: 1; grid-column: 2; height: 54px; width: 54px; object-fit: contain; justify-self: start; margin: -10px 0 20px -6px; }
.process-card h3 { grid-column: 2; font-size: 17px; letter-spacing: -.02em; margin-bottom: 10px; }
.process-card p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.6; color: #676a76; }
.process-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23a3a4ad' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============ Case ============ */
.case-section { padding: var(--section) 0; overflow-x: clip; }
.case-grid { display: grid; grid-template-columns: minmax(300px, .95fr) 1.8fr .5fr; gap: 48px; align-items: stretch; }
.case-title { align-self: center; }
.case-title h2 { font-style: italic; }
.case-card {
  position: relative;
  min-height: 340px;
  padding: 46px 48px 44px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #24252b, #414147 50%, #27282d);
  box-shadow: 0 24px 60px rgba(10, 10, 12, .14);
}
.case-card::before { content: ""; position: absolute; inset: 0; background: url("assets/web/texture-collage.webp") center / cover; opacity: .08; mix-blend-mode: screen; }
.case-card > *:not(.case-metal) { position: relative; z-index: 1; }
.case-kicker { font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.case-metrics { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 36px 0 32px; }
.case-metrics > div { padding-right: 26px; }
.case-metrics > div + div { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .22); }
.case-metrics strong { display: block; font-size: 29px; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-metrics span { display: block; margin-top: 6px; font-size: 13px; color: #d2d2d8; }
.case-card blockquote { margin: 0; max-width: min(470px, 70%); font-size: 16px; line-height: 1.65; color: #e9e9ec; }
.quote-by { margin-top: 14px; font-size: 14px; color: #c9c9cf; }
.case-metal { position: absolute; right: -34px; bottom: -48px; width: 190px; opacity: .9; }
.case-ornament {
  position: relative;
  margin-right: calc(-1 * var(--side));
  min-height: 340px;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(160deg, #f1f1f4, #e9e9ee);
}
.case-ornament-art { position: absolute; left: 10px; top: -6%; height: 112%; width: auto; max-width: none; opacity: .95; }
.case-ornament-orbit { position: absolute; right: -60px; top: 12%; width: 180px; opacity: .8; }
.case-ornament p { position: absolute; left: 104px; top: 50%; transform: translateY(-50%); margin: 0; font-size: 11px; font-weight: 700; line-height: 1.9; letter-spacing: .26em; text-transform: uppercase; color: #2f303b; }
.case-ornament p i { display: block; width: 28px; height: 1.5px; margin-top: 16px; background: #2f303b; }

/* ============ Contact ============ */
.contact-section { padding: 0; border-top: 1px solid #e5e5eb; overflow-x: clip; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr .55fr; gap: 56px; align-items: stretch; }
.contact-copy, .lead-form { align-self: center; padding: 128px 0; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy p { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.65; color: #666876; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  font-size: 15px;
  color: #23242d;
  background: rgba(252, 252, 253, .8);
  border: 1px solid #d7d8e1;
  border-radius: 12px;
  outline: 0;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { min-height: 132px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #8b8d99; }
.lead-form input:focus, .lead-form textarea:focus { border-color: #9d83ff; box-shadow: 0 0 0 4px rgba(123, 77, 255, .1); }
.lead-form [aria-invalid="true"] { border-color: #e0567a; }
.lead-form .btn { width: 100%; margin-top: 6px; }
.form-status { min-height: 20px; margin: 0; font-size: 14px; color: #6049d6; }
.form-status.is-error { color: #c43d62; }
.contact-art {
  position: relative;
  margin-right: calc(-1 * var(--side));
  overflow: hidden;
  background: linear-gradient(160deg, #f2f2f5, #e8e8ed);
}
.contact-art img { position: absolute; right: -4%; bottom: -3%; width: 150%; max-width: none; }

/* ============ Footer ============ */
.site-footer { padding: 88px 0 72px; border-top: 1px solid #e1e2e8; background: rgba(250, 250, 252, .6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) .8fr; gap: 56px; }
.footer-brand p { margin: 20px 0 0; font-size: 14px; line-height: 1.65; color: #6a6d7a; }
.socials { display: flex; gap: 22px; margin-top: 32px; }
.socials a { display: grid; place-items: center; width: 24px; height: 24px; opacity: .85; transition: opacity .2s, transform .2s var(--ease); }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials img { max-width: 22px; max-height: 20px; }
.footer-grid h3 { margin: 4px 0 20px; font-size: 13px; font-weight: 600; }
.footer-grid nav a { display: block; width: fit-content; margin: 0 0 12px; font-size: 14px; color: #5e616e; transition: color .2s; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-meta { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-meta p { margin: 0; font-size: 13px; line-height: 1.6; color: #6a6d7a; }
.footer-meta .lang-pill { height: 42px; }

/* ============ Inner pages ============ */
.page-hero { position: relative; padding: 104px 0 80px; overflow-x: clip; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 820px; font-size: 56px; line-height: .94; letter-spacing: -.07em; }
.page-hero h1 span { background: linear-gradient(90deg, #0a5cff, #6fa0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-lead { max-width: 640px; margin: 26px 0 0; font-size: 18px; line-height: 1.65; color: #595c6c; }
.page-hero-art { position: absolute; top: -40px; right: -4vw; width: min(44vw, 620px); opacity: .85; pointer-events: none; }
.page-hero-art.is-soft { opacity: .45; }
.page-meta { margin-top: 22px; font-size: 13px; color: #8b8d99; }

.page-section { padding: 64px 0; }
.page-section:last-of-type { padding-bottom: 120px; }
.page-section .section-intro { margin-bottom: 48px; }
.page-section h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.03em; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.info-card {
  position: relative;
  padding: 32px 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 246, 250, .66));
  border: 1px solid #e0e1e8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card .kicker { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.info-card h3 { margin-bottom: 10px; font-size: 19px; letter-spacing: -.02em; }
.info-card p { margin: 0; font-size: 15px; line-height: 1.65; color: #666977; }
.info-card .card-icon { height: 60px; width: 60px; object-fit: contain; margin: -6px 0 18px -6px; }
a.info-card { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
a.info-card:hover { transform: translateY(-5px); border-color: #d2c9fb; box-shadow: var(--shadow-hover); }
.info-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 560; color: var(--accent); }

/* ---------- примеры работ контент-завода ----------
   Два блока: нарезки со стримов бенто-сеткой (одна главная крупно + две сбоку)
   и вертикальные ролики лесенкой; на телефоне ролики листаются пальцем.
   Наведение - беззвучное превью, клик - плеер со звуком во весь экран (.lb). */
.work-block + .work-block { margin-top: 64px; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.work-head h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.work-hint { font-size: 14px; color: #8a8c99; }
.work-hint.mobile-only { display: none; }

/* Все три карточки ровно 16:9, как исходники (1280×720), чтобы object-fit ничего не срезал
   (у стримера лицо в правом нижнем углу). Ширина большой колонки W = (100% − gap/9) / 1.5:
   тогда высота большой (9/16·W) равна двум маленьким 16:9 плюс зазор между ними. */
.bento { --bento-gap: 20px; display: grid; grid-template-columns: calc((100% - var(--bento-gap) / 9) / 1.5) minmax(0, 1fr); align-items: start; gap: var(--bento-gap); }
.bento .ig-card { aspect-ratio: 16 / 9; }
.bento .ig-card.feature { grid-row: span 2; }
.bento .ig-card:hover .ig-video { transform: none; }
.bento .feature .ig-name { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.bento .feature .ig-meta { padding: 26px; }
.bento .feature .ig-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.bento .feature .ig-play::after { border-width: 12px; border-left-width: 20px; }

.reels-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 20px; }
/* лесенка через отступ, а не transform: transform занят анимацией появления .reveal */
.reels-row .ig-card:nth-child(even) { margin-top: 56px; }
.js .ig-card.reveal.in-view:hover { transform: translateY(-4px); }

.ig-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 9 / 16; margin: 0; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid #d9dae3; border-radius: 20px; background: #16171f;
  color: inherit; text-decoration: none;
  transition: transform .3s var(--ease, ease), border-color .3s ease, box-shadow .3s ease;
}
.ig-card:hover { transform: translateY(-4px); border-color: #b9bac8; box-shadow: 0 24px 50px -26px rgba(20, 20, 40, .55); }
.ig-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.ig-card:hover .ig-video { transform: scale(1.035); }

/* затемнение снизу, чтобы подпись читалась на любом кадре */
.ig-card.video::after {
  content: ""; position: absolute; inset: auto 0 0; height: 50%; pointer-events: none;
  background: linear-gradient(transparent, rgba(12, 12, 20, .85));
}
.ig-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3; padding: 5px 10px; border-radius: 999px;
  background: rgba(12, 12, 20, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.ig-meta { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.ig-card.video .ig-name { color: #fff; font-weight: 560; }
.ig-src { align-self: flex-start; font-size: 12.5px; color: rgba(255, 255, 255, .72); text-decoration: none; }
.ig-src:hover { color: #fff; text-decoration: underline; }

.ig-play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 58px; height: 58px; margin: -29px 0 0 -29px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: rgba(12, 12, 20, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
  transition: background .2s ease, opacity .25s ease, transform .25s ease;
}
.ig-play::after {
  content: ""; position: absolute; top: 50%; left: 54%; width: 0; height: 0;
  transform: translate(-50%, -50%);
  border: 9px solid transparent; border-left: 15px solid #fff; border-right-width: 0;
}
.ig-card:hover .ig-play { background: #0a5cff; border-color: #0a5cff; transform: scale(1.08); }
.ig-card.previewing .ig-play { opacity: .9; }

/* плеер со звуком */
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 80px; background: rgba(8, 8, 14, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lbIn .25s ease; }
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; max-width: 100%; }
.lb-video { display: block; max-width: min(1120px, calc(100vw - 180px)); max-height: calc(100vh - 150px); border-radius: 16px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-cap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; color: #fff; font-size: 15px; }
.lb-count { font-size: 13px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.lb-src { font-size: 13.5px; color: #b89cff; text-decoration: none; }
.lb-src:hover { text-decoration: underline; }
.lb-btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .2s ease; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { position: absolute; top: 18px; right: 18px; }
html.lb-open { overflow: hidden; }

@media (max-width: 1100px) {
  .reels-row { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .reels-row .ig-card { scroll-snap-align: start; }
  .work-hint.mobile-only { display: inline; }
}
@media (max-width: 760px) {
  .bento { --bento-gap: 14px; grid-template-columns: 1fr; }
  .bento .ig-card.feature { grid-row: auto; }
  .bento .feature .ig-name { font-size: 18px; }
  .bento .feature .ig-meta { padding: 16px; }
  .bento .feature .ig-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .reels-row { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .reels-row::-webkit-scrollbar { display: none; }
  .reels-row .ig-card { flex: 0 0 62%; }
  .reels-row .ig-card:nth-child(even) { margin-top: 0; }
  .work-block + .work-block { margin-top: 44px; }
  .lb { padding: 56px 12px 16px; gap: 0; }
  .lb-nav { position: absolute; bottom: 18px; }
  .lb-nav.prev { left: calc(50% - 60px); }
  .lb-nav.next { right: calc(50% - 60px); }
  .lb-video { max-width: calc(100vw - 24px); max-height: calc(100vh - 190px); }
  .lb-cap { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-card, .ig-video { transition: none; }
  .ig-card:hover .ig-video { transform: none; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 36px; counter-reset: step; }
.steps li { position: relative; padding: 28px 18px 30px 0; border-top: 1px solid #d9dae3; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 20px; font-size: 24px; font-weight: 500; color: #c7c8d2; }
.steps h3 { margin-bottom: 12px; font-size: 18px; letter-spacing: -.02em; }
.steps p { margin: 0; font-size: 15px; line-height: 1.6; color: #666977; }
.steps.cols-5 { grid-template-columns: repeat(5, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid #e4e5eb; font-size: 16px; line-height: 1.55; color: #3d4050; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.2 4.7-5' fill='none' stroke='%237b4dff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.prose { max-width: 780px; }
.prose h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.02em; }
.prose-block + .prose-block { margin-top: 44px; padding-top: 44px; border-top: 1px solid #e6e7ed; }
.prose .intro { margin-bottom: 48px; font-size: 18px; color: #3d4050; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: #4a4d5c; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.highlight-card {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #24252b, #414147 50%, #27282d);
  box-shadow: 0 24px 60px rgba(10, 10, 12, .14);
}
.highlight-card::before { content: ""; position: absolute; inset: 0; background: url("assets/web/texture-collage.webp") center / cover; opacity: .08; mix-blend-mode: screen; }
.highlight-card > * { position: relative; }
.highlight-card .big { display: block; margin: 8px 0 12px; font-size: clamp(52px, 6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.highlight-card p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.65; color: #e3e3e8; }
.highlight-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9bcff; }
.placeholder-note { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; color: #fff; }

.page-cta { padding: 0 0 120px; }
.page-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  border: 1px solid #e0e1e8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #f3f0ff);
  box-shadow: var(--shadow);
}
.page-cta-card h2 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.03em; }
.page-cta-card p { margin: 10px 0 0; font-size: 16px; color: #666977; }

.post-card .post-tag { display: inline-block; margin-bottom: 18px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); font-size: 12px; font-weight: 560; color: var(--accent); }
.post-card h3 { font-size: 20px; line-height: 1.3; }
.insight-list { display: grid; gap: 20px; }
.insight {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 30px 32px;
  background: rgba(252, 252, 253, .8);
  border: 1px solid #e0e1e8;
  border-radius: var(--radius);
}
.insight .n { font-size: 24px; font-weight: 500; color: #c7c8d2; }
.insight h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.02em; }
.insight p { margin: 0; font-size: 15px; line-height: 1.7; color: #5d6070; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { padding: 26px 24px; background: rgba(252, 252, 253, .85); border: 1px solid #e0e1e8; border-radius: 16px; }
.metric b { display: block; margin-bottom: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--accent); }
.metric span { font-size: 14px; line-height: 1.55; color: #5d6070; }

.dashboard {
  padding: 28px;
  border: 1px solid #dcdde6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(30, 24, 60, .12);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 14px; font-weight: 600; }
.dash-top small { font-weight: 400; color: #8b8d99; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.dash-kpis div { padding: 14px; border-radius: 12px; background: #f6f5fb; }
.dash-kpis span { display: block; font-size: 12px; color: #7a7d8a; }
.dash-kpis b { font-size: 20px; font-weight: 600; }
.dash-kpis .up { font-size: 12px; font-style: normal; color: #1f9d6e; }
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 0 4px; border-bottom: 1px solid #ececf2; }
.dash-bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(#a98cff, #0a5cff); }
.dash-bars i:nth-child(odd) { opacity: .55; }
.dash-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: #9a9caa; }


/* ============ Forms, tables, code (partners + analytics) ============ */
.field {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d7d8e1;
  border-radius: 12px;
  background: rgba(252, 252, 253, .92);
  font: inherit;
  font-size: 14px;
  color: #23242d;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { border-color: #9d83ff; box-shadow: 0 0 0 4px rgba(123, 77, 255, .1); }
select.field { padding-right: 34px; appearance: none; background: rgba(252, 252, 253, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%238a8c98' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.field-row label, .form-grid label { display: grid; gap: 6px; font-size: 12px; font-weight: 560; color: #6a6d7a; }
.field-row .field, .form-grid .field { width: 100%; }

.table-wrap { overflow-x: auto; border-radius: 16px; }
.data-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e0e1e8; border-radius: 16px; box-shadow: var(--shadow); }
.data-table th { padding: 14px 18px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8b8d99; background: #f7f6fb; white-space: nowrap; }
.data-table th:first-child { border-top-left-radius: 16px; }
.data-table th:last-child { border-top-right-radius: 16px; }
.data-table td { padding: 16px 18px; border-top: 1px solid #eeeef3; font-size: 14px; color: #33354a; vertical-align: middle; }
.data-table td small { color: #8b8d99; font-size: 12px; }
.data-table code, .code-inline { padding: 3px 7px; border-radius: 6px; background: #f1efff; color: #5b3de0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.data-table.macro-table { min-width: 0; }
.offer-name { font-weight: 600; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; font-weight: 600; color: var(--accent); vertical-align: 2px; }
.badge.demo { background: #fff4e0; color: #a86400; }
.geo-tag { display: inline-block; margin: 2px 2px 2px 0; padding: 3px 8px; border-radius: 6px; background: #f1f1f6; font-size: 12px; font-weight: 560; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d6e; }
.status-soon::before { background: #e0a100; }
.status-paused::before, .status-off::before { background: #b5b7c3; }
.empty-state { margin: 0; padding: 40px; text-align: center; color: #7a7d8a; background: #fff; border: 1px dashed #d7d8e1; border-radius: 16px; }

.code-box { position: relative; margin-top: 16px; padding: 16px 104px 16px 18px; border-radius: 12px; background: #171922; color: #e7e3ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.6; word-break: break-all; }
.code-box code { background: none; padding: 0; color: inherit; }
.code-box .copy { position: absolute; top: 10px; right: 10px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 560; cursor: pointer; transition: background-color .2s; }
.code-box .copy:hover { background: var(--accent); }
.small-note { margin: 12px 0 0; font-size: 13px; color: #8b8d99; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 12px; background: #efeef5; }
.seg button { height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: none; font-size: 13px; color: #4a4d5c; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 2px 8px rgba(20, 18, 40, .08); }

.faq details { padding: 20px 0; border-bottom: 1px solid #e4e5eb; }
.faq details:first-child { border-top: 1px solid #e4e5eb; }
.faq summary { display: flex; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 560; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: #5d6070; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 8px 14px; border: 1px solid #e0e1e8; border-radius: 999px; background: #fff; font-size: 14px; }
.stats-grid.compact strong { font-size: 20px; }

/* ============ Ad Performance Analytics app ============ */
.apa-hero { padding-bottom: 48px; }
.apa-demo-note { display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 8px 14px; border-radius: 999px; background: #fff4e0; font-size: 13px; color: #8a5300; }
.apa-demo-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a100; box-shadow: 0 0 0 4px rgba(224, 161, 0, .18); }
.apa-live-note { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); font-size: 13px; color: #4a2fb5; }
.apa-live-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d6e; box-shadow: 0 0 0 4px rgba(31, 157, 110, .18); }
.apa-section { padding: 0 0 40px; }
.apa {
  padding: 22px;
  border: 1px solid #dcdde6;
  border-radius: 24px;
  background: rgba(250, 250, 253, .92);
  box-shadow: 0 30px 80px rgba(30, 24, 60, .10);
}
.apa-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 4px 18px; border-bottom: 1px solid #e6e7ee; }
.apa-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.apa-brand img { width: 22px; height: 23px; }
.apa-actions, .apa-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.apa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #1c1e28;
  color: #fff;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.apa-btn:hover { background: var(--accent); }
.apa-btn.ghost { background: #fff; border-color: #d9dae3; color: #2a2c36; }
.apa-btn.ghost:hover { border-color: #b9b0f0; color: var(--accent); background: #fff; }
.apa-btn.danger { background: #fff; border-color: #f0c9d3; color: #c43d62; }
.apa-btn.danger:hover { background: #c43d62; color: #fff; }
.file-btn { cursor: pointer; }
.apa-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 4px; }
.apa-bar .seg { margin-top: 0; }
.apa-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.apa-filters .field { height: 40px; font-size: 13px; }
.apa-tabs { display: flex; gap: 4px; margin: 0 -2px 18px; padding-bottom: 0; border-bottom: 1px solid #e6e7ee; overflow-x: auto; }
.apa-tabs button { position: relative; flex: none; padding: 12px 16px; border: 0; background: none; font-size: 14px; color: #6a6d7a; cursor: pointer; }
.apa-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.apa-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.apa-tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #eeeaff; font-size: 11px; color: var(--accent); }
.apa-body { display: grid; gap: 18px; }
.apa-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.apa-kpi { padding: 16px 18px; border: 1px solid #e3e4ec; border-radius: 16px; background: #fff; }
.apa-kpi span { display: block; font-size: 12px; color: #7a7d8a; }
.apa-kpi b { display: block; margin: 6px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.delta { font-size: 12px; font-weight: 560; }
.delta.up { color: #1f9d6e; }
.delta.down { color: #c43d62; }
.apa-vs { margin: -6px 0 0; font-size: 12px; color: #9a9caa; }
.apa-small { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid #e3e4ec; border-radius: 14px; background: #e3e4ec; }
.apa-small div { padding: 12px 14px; background: #fff; }
.apa-small span { display: block; font-size: 11px; color: #8b8d99; }
.apa-small b { font-size: 15px; font-weight: 600; }
.apa-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
.apa-grid.tr-grid { grid-template-columns: minmax(300px, .9fr) 1.6fr; }
.apa-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.apa-card { min-width: 0; padding: 20px; border: 1px solid #e3e4ec; border-radius: 18px; background: #fff; }
.apa-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.apa-card-head h3 { font-size: 16px; }
.apa-card .data-table { box-shadow: none; }
.apa-table td, .apa-table th { padding: 12px 14px; }
.apa-table .sort { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.apa-table .sort[aria-sort="ascending"], .apa-table .sort[aria-sort="descending"] { color: var(--accent); }
.pos { color: #1f9d6e; font-weight: 600; }
.neg { color: #c43d62; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12px; color: #6a6d7a; }
.lg-rev::before, .lg-spend::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: #0a5cff; }
.lg-spend::before { background: #22242e; }
.chart-wrap { position: relative; }
.apa-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.apa-chart-svg text { font-size: 11px; fill: #9a9caa; font-family: inherit; }
.apa-chart-svg .grid { stroke: #eeeef3; }
.apa-chart-svg .l-rev { fill: none; stroke: #0a5cff; stroke-width: 2.4; stroke-linejoin: round; }
.apa-chart-svg .l-spend { fill: none; stroke: #22242e; stroke-width: 1.8; stroke-dasharray: 5 4; stroke-linejoin: round; }
.apa-chart-svg .hover-line { stroke: #b9b0f0; stroke-width: 1; }
.chart-tip { position: absolute; top: 8px; transform: translateX(-50%); display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: #171922; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.chart-tip .lg-spend::before { background: #fff; }
.geo-bars { display: grid; gap: 12px; }
.geo-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.geo-row .bar { height: 8px; border-radius: 999px; background: #f0eff6; overflow: hidden; }
.geo-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a98cff, #0a5cff); }

/* ---------- демо: период, график, воронка, лента, разбивка ---------- */
.apa-range { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6a6d7a; }
.apa-range .field { width: 145px; }
.field.sm, .apa-btn.sm { height: 32px; font-size: 12.5px; }
.seg.sm { margin-top: 0; padding: 3px; }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 12px; }

.chart-ctl { display: flex; align-items: center; gap: 12px; }
.chart-ctl .field { width: auto; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6a6d7a; cursor: pointer; }
.chk input { accent-color: #0a5cff; }
.apa-chart-svg .l-prev { fill: none; stroke: #bcaaf7; stroke-width: 2; stroke-dasharray: 3 5; stroke-linejoin: round; }
.lg-prev::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: #bcaaf7; }
.chart-tip .lg-prev::before { background: #bcaaf7; }

/* воронка */
.funnel { display: grid; gap: 12px; }
.fn-row { display: grid; grid-template-columns: 112px 1fr auto 52px; align-items: center; gap: 10px; font-size: 13px; }
.fn-label { color: #6a6d7a; }
.fn-bar { height: 22px; border-radius: 7px; background: #f0eff6; overflow: hidden; }
.fn-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.fn-conv { text-align: right; font-size: 12px; color: #8a8c9a; }

/* живая лента */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1baf7a; box-shadow: 0 0 0 0 rgba(27, 175, 122, .5); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(27, 175, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(27, 175, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-feed { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.live-feed li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f0eff5; font-size: 13px; }
.live-feed li:first-child { border-top: 0; }
.live-feed .ev { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #efeef5; color: #5a5d6b; }
.live-feed .ev-ftd { background: #e6f6ef; color: #1baf7a; }
.live-feed .lf-tr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4a4d5c; }
.live-feed .lf-ago { min-width: 66px; text-align: right; font-size: 12px; color: #9294a2; }
.live-feed .lf-empty { color: #9294a2; }

/* разбивка */
.share { height: 5px; margin-top: 6px; border-radius: 999px; background: #f0eff6; overflow: hidden; }
.share i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a98cff, #0a5cff); }

/* тепловая карта */
.heat { display: grid; gap: 6px; }
.heat-hours { display: grid; grid-template-columns: 34px repeat(24, 1fr); font-size: 10.5px; color: #9294a2; }
.heat-grid { display: grid; grid-template-columns: 34px repeat(24, 1fr); grid-template-rows: repeat(7, 18px); gap: 3px; align-items: center; }
.heat-day { grid-column: 1; font-size: 11px; color: #9294a2; }
.heat-grid i { display: block; height: 100%; border-radius: 4px; }

@media (max-width: 700px) {
  .apa-range { width: 100%; }
  .apa-range .field { flex: 1; width: auto; }
  .fn-row { grid-template-columns: 88px 1fr auto; }
  .fn-conv { display: none; }
  .heat-grid { grid-template-columns: 28px repeat(24, 1fr); grid-template-rows: repeat(7, 14px); gap: 2px; }
  .heat-hours { display: none; }
}

.form-grid { display: grid; gap: 12px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .btn { min-height: 46px; }
.form-err { margin: 0; font-size: 13px; color: #c43d62; }
.apa-sep { height: 1px; margin: 20px 0; background: #eeeef3; }
.trk-list { display: grid; gap: 12px; }
.trk { display: grid; gap: 12px; padding: 16px; border: 1px solid #e6e7ee; border-radius: 14px; background: #fcfcfe; }
.trk-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trk small { display: block; margin-top: 4px; font-size: 12px; color: #7a7d8a; }
.trk-link { display: grid; gap: 4px; margin-top: 10px; }
.trk-link span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9a9caa; }
.trk-link code { display: block; overflow: hidden; padding: 8px 10px; border-radius: 8px; background: #f1efff; color: #5b3de0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.trk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-toggle { height: 24px; padding: 0 10px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 600; cursor: pointer; }
.status-toggle.active { background: #e3f6ee; color: #177a55; }
.status-toggle.paused { background: #f0f0f4; color: #7a7d8a; }
.ev { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 560; background: #f1f1f6; }
.ev-ftd { background: #eeeaff; color: #5b3de0; }
.ev-dep { background: #e3f6ee; color: #177a55; }
.ev-rd { background: #eafaf4; color: #177a55; }
.ev-hold { background: #fff4e0; color: #8a5300; }
.ev-no { background: #fdeaef; color: #c43d62; }
.px-list { display: grid; gap: 12px; }
.px-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #e6e7ee; border-radius: 12px; }
.px-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.px-row { display: flex; gap: 8px; }
.px-row .field { flex: 1; min-width: 0; height: 38px; }
.px-card small { font-size: 11px; color: #9a9caa; }
.apa-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: #171922; color: #fff; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.apa-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .apa-kpis { grid-template-columns: repeat(2, 1fr); }
  .apa-small { grid-template-columns: repeat(3, 1fr); }
  .apa-grid, .apa-grid.tr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .apa { padding: 14px; border-radius: 18px; }
  .apa-kpi b { font-size: 18px; }
  .apa-small { grid-template-columns: repeat(2, 1fr); }
  .apa-bar { align-items: stretch; }
  .apa-filters .field { flex: 1 1 100%; }
  .form-grid .two { grid-template-columns: 1fr; }
  .apa-card { padding: 16px; }
}

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .filters .field { flex: 1 1 100%; }
  .code-box { padding-right: 18px; padding-top: 52px; }
}

/* ============ 3D icons & capabilities band ============ */
.section-icon { display: block; width: 64px; height: 64px; margin: 0 0 14px -6px; object-fit: contain; }
.steps li { position: relative; }
.steps .step-icon { position: absolute; top: 18px; right: 0; width: 52px; height: 52px; object-fit: contain; }
.metric { position: relative; }
.metric-icon { display: block; width: 52px; height: 52px; margin: -6px 0 10px -4px; object-fit: contain; }
/* Широкий анонс в новостях: картинка слева, текст справа, на узком
   экране - друг под другом. */
.post-feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.08fr .92fr;
  padding: 0; overflow: hidden;
}
.post-feature .post-shot { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.post-feature .post-body { align-self: center; padding: 34px 34px 32px; }
.post-feature h3 { padding-right: 0; font-size: 23px; }
.post-feature p { font-size: 15.5px; }
@media (max-width: 860px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-shot { aspect-ratio: 16 / 9; min-height: 0; }
  .post-feature .post-body { padding: 24px 22px 26px; }
}

/* Дата выхода новости: мелкой строкой рядом с рубрикой. */
.post-date { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #8a8fa3; white-space: nowrap; }
.post-card .post-tag + .post-date { display: block; margin: -12px 0 16px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
/* Метка рубрики вне карточки новости выглядит так же, как внутри. */
.news-meta .post-tag {
  display: inline-block; margin: 0; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); font-size: 12px; font-weight: 560; color: var(--accent);
}
.news-meta .post-date { margin: 0; }

/* Новости на главной: крупная запись и три строки рядом. */
.news-home { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.news-lead {
  display: grid; overflow: hidden; border: 1px solid #e0e1e8; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(246, 246, 250, .66));
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.news-lead:hover { transform: translateY(-5px); border-color: #c9d8ff; box-shadow: var(--shadow-hover); }
.news-lead img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-lead-body { padding: 26px 30px 30px; }
.news-lead h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.26; letter-spacing: -.02em; }
.news-lead p { margin: 0; font-size: 15px; line-height: 1.6; color: #666977; }
.news-side { display: grid; gap: 16px; }
.news-row {
  display: block; padding: 22px 24px; border: 1px solid #e0e1e8; border-radius: 16px;
  background: rgba(255, 255, 255, .72); text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.news-row:hover { transform: translateY(-4px); border-color: #c9d8ff; box-shadow: var(--shadow); }
.news-row h4 { margin: 0; font-size: 17px; line-height: 1.34; letter-spacing: -.015em; }
@media (max-width: 980px) { .news-home { grid-template-columns: 1fr; } }

/* Инсайты на той же странице, отделены линией, а не новой полосой. */
.news-insights { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .news-insights { margin-top: 48px; padding-top: 44px; } }

.post-card { position: relative; }
.post-icon { position: absolute; top: 22px; right: 22px; width: 58px; height: 58px; object-fit: contain; }
.post-card h3 { padding-right: 64px; }
.stats-grid .stat-icon { filter: drop-shadow(0 6px 10px rgba(40, 20, 90, .12)); }

.cap-section { padding: 80px 0 0; overflow-x: clip; }
.cap-band {
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 34px 0;
  background: #fff;
  background-image: radial-gradient(60% 140% at 50% 0%, rgba(123, 77, 255, .07), transparent 70%);
  border-block: 1px solid var(--line);
  position: relative;
}
.cap-band::before, .cap-band::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 9%; pointer-events: none; }
.cap-band::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.cap-band::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.cap-track { display: flex; flex: none; gap: 16px; padding-right: 16px; animation: cap-scroll 55s linear infinite; }
.cap { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 172px; padding: 18px 12px 16px; border: 1px solid transparent; border-radius: 18px; transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.cap:hover { border-color: rgba(123, 77, 255, .22); background: rgba(123, 77, 255, .05); transform: translateY(-3px); }
.cap img { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(40, 20, 90, .14)); }
.cap span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--muted); }
@keyframes cap-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .cap-band { overflow-x: auto; }
  .cap-track { animation: none; }
  .cap-track[aria-hidden="true"] { display: none; }
}
@media (max-width: 720px) {
  .cap-section { padding-top: 48px; }
  .cap { width: 132px; }
  .cap img { width: 84px; height: 84px; }
  .cap-band { padding: 24px 0; }
  .service-icon { width: 56px; height: 56px; }
  .steps .step-icon { width: 44px; height: 44px; }
}

/* ============ Reveal ============ */
/* Снято из сборки mediacube: дети контейнера появляются пресетом
   { opacity: 0, scale: .6 } -> { opacity: 1, scale: 1 } за 0.3s,
   лесенка 0.1s, старт 0.3s. Одиночные блоки просто проявляются -
   масштабировать секцию целиком было бы странно. */
.js .reveal { opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.js .reveal[style*="--step"] { transform: scale(.6); transform-origin: 50% 70%; }
.js .reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: .07s; }
.delay-2 { transition-delay: .14s; }
.delay-3 { transition-delay: .21s; }
/* лесенка внутри группы: задержку расставляет скрипт по порядку элементов,
   у mediacube карточки собираются одна за другой, а не всем блоком сразу */
.js .reveal[style*="--step"] { transition-delay: calc(300ms + var(--step) * 100ms); }

/* ============ Responsive ============ */
@media (max-width: 1240px) {
  :root { --section: 120px; }
  .hero-copy { max-width: 560px; }
  .hero h1 { font-size: clamp(42px, 5vw, 60px); }
  .hero-art { width: 50vw; }
  .note-a { left: 12%; }
  .services-grid, .creator-track { gap: 24px; }
  .process-grid { gap: 40px; }
  .case-grid { grid-template-columns: minmax(270px, .9fr) 1.9fr .42fr; gap: 36px; }
  .case-card { padding-inline: 40px; }
  .case-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-metrics > div { padding-right: 20px; }
  .case-metrics > div + div { padding-left: 22px; }
  .case-metrics strong { font-size: 30px; }
  .contact-grid { grid-template-columns: 1.2fr 1fr .5fr; gap: 44px; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 1080px) {
  :root { --gutter: 32px; --section: 112px; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .nav-center { gap: 0; }
  .hero { padding: 88px 0 72px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(42px, 6.6vw, 64px); }
  .hero-art { position: relative; inset: auto; width: auto; max-width: 760px; height: 560px; margin: 32px auto 0; }
  .hero-halftone { right: 0; }
  .hero-cluster { right: 50%; transform: translate(50%, -50%); width: min(92%, 620px); }
  .note-a { left: 4%; top: auto; bottom: 10%; }
  .note-b { right: 2%; }
  .stats-wrap { grid-template-columns: 1fr; }
  .stats-caption { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid article:nth-child(2)::after { display: none; }
  .stats-grid article:nth-child(-n+2) { border-bottom: 1px solid #e3e4ea; }
  .split-intro { gap: 56px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-track { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 42%); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process-card::after { display: none; }
  .case-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-ornament { display: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .contact-copy, .lead-form { padding: 112px 0; }
  .contact-art { display: none; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); row-gap: 48px; }
  .footer-grid nav:nth-of-type(3) { grid-column: 2; }
  .footer-meta { grid-column: 3; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 96px; --header: 64px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 25px; height: 26px; }
  .nav-center, .btn-nav { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  html:is([lang="es"], [lang="pt"], [lang="de"]) .hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero-lead { font-size: 17px; margin: 24px 0 36px; }
  .trust-row { gap: 12px 22px; margin-top: 32px; font-size: 13px; }
  .hero-art { height: 400px; margin-top: 24px; }
  .hero-cluster { width: 100%; }
  .hero-halftone { width: 90%; }
  .hero-note { display: none; }
  .stats-grid article { padding: 24px 18px; gap: 12px; }
  .stats-grid strong { font-size: 22px; }
  .stat-icon { width: 30px; height: 30px; }
  .br-desk { display: none; }
  .section-intro { margin-bottom: 44px; }
  .split-intro { grid-template-columns: 1fr; gap: 20px; }
  .intro-side p { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-card { min-height: 0; padding: 30px 26px 30px; }
  .service-icon { margin-bottom: 22px; }
  .creator-side-row { flex-wrap: wrap; }
  .creator-track { grid-auto-columns: 80%; gap: 16px; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .process-card { min-height: 0; }
  .case-card { padding: 36px 28px 40px; min-height: 0; }
  .case-metrics { grid-template-columns: repeat(3, 1fr); margin: 28px 0 26px; }
  .case-metrics > div { padding-right: 14px; }
  .case-metrics > div + div { padding-left: 16px; }
  .case-metrics strong { font-size: 26px; }
  .case-card blockquote { max-width: none; padding-bottom: 72px; }
  .case-metal { width: 140px; right: -26px; bottom: -40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-copy { padding: 88px 0 36px; }
  .lead-form { padding: 0 0 88px; }
  .site-footer { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid nav:nth-of-type(3) { grid-column: auto; }
  .footer-meta { grid-column: auto; }
}

@media (max-width: 1080px) {
  .card-grid, .card-grid.cols-4,  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps.cols-5 { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .page-hero-art { opacity: .35; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .page-hero { padding: 64px 0 48px; }
  .page-lead { font-size: 16px; }
  .page-hero-art { width: 80vw; top: -20px; right: -30vw; opacity: .25; }
  .page-section { padding: 44px 0; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4,  .metric-grid, .steps, .steps.cols-5 { grid-template-columns: 1fr; gap: 16px; }
  .steps { row-gap: 28px; }
  .highlight-card { padding: 34px 26px; }
  .page-cta-card { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .insight { grid-template-columns: 1fr; gap: 8px; padding: 26px 24px; }
}

@media (max-width: 440px) {
  .hero .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-art { height: 330px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article::after { display: none; }
  .stats-grid article:not(:last-child) { border-bottom: 1px solid #e3e4ea; }
  .case-metrics { grid-template-columns: 1fr; gap: 16px; }
  .case-metrics > div, .case-metrics > div + div { padding: 0; border-left: 0; }
  .case-metrics > div + div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }   /* в режиме пониженной анимации Lenis не запускается */
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ---------- шкала по ступеням, как на mediacube: 64 -> 48 -> 32 ---------- */
@media (max-width: 1200px) {
  .hero h1 { font-size: 60px; }
  html:is([lang="es"], [lang="pt"], [lang="de"]) .hero h1 { font-size: 48px; }
  .page-hero h1 { font-size: 40px; }
  .section-intro h2, .case-title h2, .contact-copy h2 { font-size: 32px; }
}
@media (max-width: 1000px) {
  :root { --section: 96px; }
  .hero h1, html:is([lang="es"], [lang="pt"], [lang="de"]) .hero h1 { font-size: 46px; }
  .page-hero h1 { font-size: 34px; }
  .section-intro h2, .case-title h2, .contact-copy h2 { font-size: 28px; }
}
@media (max-width: 800px) {
  :root { --section: 72px; }
  .hero h1, html:is([lang="es"], [lang="pt"], [lang="de"]) .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 28px; }
  .section-intro h2, .case-title h2, .contact-copy h2 { font-size: 24px; }
}


/* ---------- блок с видео ----------
   Схема befluence: тёмная секция, слева текст, справа стена из лент.
   Горизонтальные нарезки идут в тех же колонках - у них своя пропорция,
   поэтому лента выглядит набранной вручную, а не сеткой. */
.reel-section { background: var(--bg); color: var(--ink); overflow: hidden; }
.reel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.reel-copy { max-width: 30ch; }
.reel-copy h2 { color: var(--ink); margin: 18px 0 0; }
.reel-copy .lede { margin: 20px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.reel-copy .btn-light { background: var(--ink); color: #fff; border-color: transparent; }
.reel-copy .btn-light:hover { background: rgba(255, 255, 255, .88); }

.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px;
  border-radius: 100px; background: rgba(25, 28, 31, .06);
  font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--muted);
}

.reel-wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  height: 640px; overflow: hidden;
  /* растушёвка пошире: короткая не успевала спрятать край карточки */
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}
.reel-col { overflow: hidden; }
/* Средняя колонка раньше сдвигалась вниз отступом, и её верх приходился
   на уже непрозрачную часть маски - карточка обрезалась ровным краем.
   Теперь все колонки начинаются от верха, а смещение даёт сдвиг фазы. */
.reel-col:nth-child(2) .reel-track { animation-delay: -7s; }
.reel-col:nth-child(3) .reel-track { animation-delay: -17s; }
.reel-track { display: grid; gap: 14px; animation: reelDrift 46s linear infinite; }
.reel-track[data-reverse] { animation-direction: reverse; }
.reel-col:nth-child(2) .reel-track { animation-duration: 38s; }
.reel-col:nth-child(3) .reel-track { animation-duration: 54s; }
.reel-wall:hover .reel-track { animation-play-state: paused; }
@keyframes reelDrift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.reel { position: relative; margin: 0; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 14px; background: #0e1014; }
.reel.wide { aspect-ratio: 16 / 9; }
.reel-v { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel figcaption {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: flex; align-items: center; gap: 7px; padding: 22px 10px 10px;
  background: linear-gradient(transparent, rgba(10, 12, 16, .9));
}
.reel-ava {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 10px; font-weight: 600;
}
.reel-who { display: grid; min-width: 0; }
.reel-who b { font-size: 11.5px; font-weight: 600; color: #fff; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-who i { font-style: normal; font-size: 9.5px; color: rgba(255, 255, 255, .62); }

@media (max-width: 1000px) {
  .reel-grid { grid-template-columns: 1fr; gap: 36px; }
  .reel-copy { max-width: none; }
  .reel-wall { height: 520px; }
}
@media (max-width: 800px) {
  .reel-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 420px; }
  .reel-wall .reel-col:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel-wall { height: auto; max-height: 640px; overflow-y: auto; }
}


/* ---------- переходы между секциями ----------
   Приём mediacube: следующая секция наезжает на предыдущую скруглённым
   верхом. Поэтому у блоков непрозрачный фон и растущий z-index -
   иначе наезд не читается. */
.lap { position: relative; border-radius: 40px 40px 0 0; margin-top: -40px; box-shadow: 0 -18px 40px -24px rgba(25, 28, 31, .16); }
.lap-light { background: #fff; }
.lap-tint { background: var(--bg); }
.lap-dark { background: var(--bg); }
/* Каждому блоку свой слой, иначе наезд не читается */
.lap:nth-of-type(1) { z-index: 1; }
.lap:nth-of-type(2) { z-index: 2; }
.lap:nth-of-type(3) { z-index: 3; }
.lap:nth-of-type(4) { z-index: 4; }
.lap:nth-of-type(5) { z-index: 5; }
.lap:nth-of-type(6) { z-index: 6; }
.lap:nth-of-type(7) { z-index: 7; }
.lap:nth-of-type(8) { z-index: 8; }
.lap:nth-of-type(9) { z-index: 9; }
/* подвал закрывает последний стык */
.site-footer { position: relative; z-index: 8; background: var(--bg); }
@media (max-width: 800px) {
  .lap { border-radius: 28px 28px 0 0; margin-top: -28px; }
}


/* ---------- движение по прокрутке ----------
   У mediacube элементы коллажа едут по вертикали с разной скоростью,
   привязанной к прогрессу секции. Смещение ставит скрипт, здесь только
   подготовка слоя, чтобы браузер не пересчитывал раскладку на каждом кадре. */
[data-drift] { will-change: transform; }
@media (max-width: 800px) { [data-drift] { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { [data-drift] { transform: none !important; } }


/* ---------- ещё два пресета из сборки mediacube ----------
   X2 = { initial: { opacity: 0, x: 200 }, visible: { opacity: 1, x: 0 } }
   плюс затухание по прогрессу прокрутки - им у них уходит колонка с текстом. */
.js .slide-r { opacity: 0; transform: translateX(200px); transition: opacity .3s var(--ease), transform .45s var(--ease); }
.js .slide-r.in-view { opacity: 1; transform: none; }
[data-fade] { will-change: opacity; }
@media (prefers-reduced-motion: reduce) {
  .js .slide-r { opacity: 1; transform: none; transition: none; }
  [data-fade] { opacity: 1 !important; }
}


/* ---------- липкий заголовок кейса ----------
   Приём mediacube: подпись остаётся на месте, пока мимо едет карточка. */
@media (min-width: 981px) {
  .case-title { position: sticky; top: 120px; align-self: start; }
}

/* ---------- аккордеон ----------
   Высоту ведёт скрипт, здесь только подрезка на время раскрытия. */
.faq details[data-busy] { overflow: hidden; }


/* ---------- отражение коллажа слева ----------
   Текстовые таблички с коллажа убраны, вместо них с левого края в кадр
   заходит тот же коллаж зеркально - герой перестал быть односторонним.
   Копия уходит за текст, поэтому она тише и сдвинута вниз. */
/* Коллаж переехал в левую часть героя, картинка с диском - в правую.
   Слева он уходит за текст, поэтому приглушён и сдвинут вниз. */
/* Слева коллаж уходит за текст, поэтому он тише и прижат к нижнему углу -
   иначе перекрывает лид и кнопки. */
.hero-art-left {
  left: -17vw; right: auto; top: auto; bottom: 0; height: 48%;
  width: 42vw; max-width: 520px; opacity: .2; z-index: 0;
}
.hero-art-left .hero-cluster { top: auto; bottom: -16%; right: 0; width: min(78%, 360px); transform: none; }
.hero-art-left .hero-halftone { top: auto; bottom: 46%; right: auto; left: -8%; width: 62%; opacity: .3; }
.hero-art-disc { right: -7vw; top: auto; bottom: 0; height: 84%; width: 42vw; max-width: 620px; display: grid; place-items: end center; }
.hero-art-disc img { width: min(100%, 580px); filter: drop-shadow(0 26px 52px rgba(26, 23, 40, .12)); }
@media (max-width: 1180px) { .hero-art-left { display: none; } }
@media (max-width: 900px) { .hero-art-disc { display: none; } }


/* ---------- логотип клиента в кейсе ---------- */
.case-logo { display: block; width: 132px; height: auto; color: var(--ink); }
@media (max-width: 980px) {
  .case-metrics { grid-template-columns: repeat(2, auto); gap: 22px 0; }
  .case-metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .case-metrics { grid-template-columns: 1fr; }
  .case-metrics > div + div { padding-left: 0; border-left: 0; }
}


/* ---------- блок услуг под поиск ---------- */
.seo-h2 { max-width: 20ch; font-size: clamp(30px, 3.4vw, 46px); }
.seo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.seo-card { padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.seo-card h3 { font-size: 19px; letter-spacing: -.03em; }
.seo-card p { margin: 12px 0 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 1080px) { .seo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .seo-grid { grid-template-columns: 1fr; } }


/* ---------- слово в заголовке крутится постоянно ----------
   Плашка меняет ширину вместе со словом, иначе на каждой смене дёргалась бы
   вся строка. Ширину считает скрипт по невидимой мерке. */
.roll-mask { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1;
  transition: width .42s var(--ease); }
.roll-word { display: inline-block; white-space: nowrap; line-height: 1; vertical-align: top;
  transition: transform .34s var(--ease), opacity .34s var(--ease); }
.roll-word.is-out { transform: translateY(-104%); opacity: 0; }
.roll-word.is-in { transform: translateY(104%); opacity: 0; transition: none; }
.roll-sizer { position: absolute; left: -9999px; top: 0; white-space: nowrap; visibility: hidden; }
/* блик, который всё время бежит по плашке */
.hero h1 > span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%);
  background-size: 260% 100%; animation: sheen 4.2s var(--ease) 1.4s infinite;
}
@keyframes sheen { from { background-position: 180% 0; } 55%, to { background-position: -80% 0; } }

/* ---------- заголовки собираются по словам ---------- */
.js .w-split .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); }
.js .w-split.in-view .w { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .5s var(--bounce); transition-delay: calc(var(--wi) * 42ms); }

/* ---------- карточки ловят курсор ---------- */
.lift { position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lift::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 92, 255, .1), transparent 60%);
  transition: opacity .3s var(--ease);
}
.lift:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(25, 28, 31, .34); }
.lift:hover::before { opacity: 1; }

/* ---------- полоса прочитанного ---------- */
.read-bar { position: fixed; top: 0; left: 0; z-index: 130; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), #5f9cff); }

/* ---------- бегущая строка услуг ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: #fff; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- мелочи ---------- */
.service-icon, .process-icon, .stat-icon { transition: transform .4s var(--bounce); }
.lift:hover .service-icon, .lift:hover .process-icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.tilt { transition: transform .4s var(--ease); transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 > span::after, .marquee-track { animation: none; }
  .js .w-split .w { opacity: 1; transform: none; }
  .lift:hover, .tilt { transform: none; }
}


/* ================= кабинет партнёра =================
   Токены сняты с партнёрки R2D (PrimeVue): светлая подложка, белые
   карточки с радиусом 12 и мягкой тенью, поля и кнопки радиусом 6,
   текст на сланцевой шкале. */
.apa {
  --s0: #fff; --s50: #f8fafc; --s100: #f1f5f9; --s200: #e2e8f0; --s300: #cbd5e1;
  --s400: #94a3b8; --s500: #64748b; --s600: #475569; --s700: #334155;
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --field-shadow: 0 1px 2px 0 rgba(18, 18, 23, .05);
  padding: 20px; border: 0; border-radius: var(--r-xl); background: var(--s50);
  color: var(--s700); font-size: 14px; line-height: 1.35;
}
.apa-top { padding: 4px 4px 16px; border-bottom: 1px solid var(--s200); }
.apa-brand b { font-weight: 600; }
.apa-brand .badge { padding: 4px 8px; border-radius: var(--r-md); background: var(--s100); font-size: 12px; font-weight: 700; color: var(--s600); }

/* кнопки */
.apa-btn {
  min-height: 36px; padding: 8px 12px; border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0;
  box-shadow: none; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.apa-btn:hover { background: var(--accent-deep); }
.apa-btn.ghost { background: transparent; border-color: var(--s200); color: var(--s600); }
.apa-btn.ghost:hover { background: var(--s100); border-color: var(--s200); color: var(--s700); }
.apa-btn.danger { background: transparent; border-color: #fecaca; color: #ef4444; }
.apa-btn.danger:hover { background: #fef2f2; color: #dc2626; }
/* текстовая кнопка - как у них быстрые периоды */
.apa-btn.text { min-height: 34px; padding: 6px 12px; background: transparent; border-color: transparent; color: var(--s500); font-weight: 500; }
.apa-btn.text:hover { background: var(--s100); color: var(--s700); }
.apa-btn.text[aria-pressed="true"] { border-color: var(--s300); color: var(--s700); background: transparent; }

/* карточки */
.apa-card { padding: 20px; border: 0; border-radius: var(--r-xl); background: var(--s0); box-shadow: var(--card-shadow); }
.apa-card-head h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--s700); }

/* показатели */
.apa-kpis { gap: 12px; }
.apa-kpi { padding: 14px 16px; border: 0; border-radius: var(--r-xl); background: var(--s0); box-shadow: var(--card-shadow); }
.apa-kpi span { font-size: 12px; color: var(--s500); }
.apa-kpi b { font-size: 21px; color: var(--s700); font-variant-numeric: tabular-nums; }
.apa-small { border: 0; border-radius: var(--r-xl); background: var(--s200); box-shadow: var(--card-shadow); }
.apa-small span { color: var(--s500); }
.apa-small b { color: var(--s700); }
.apa-vs { color: var(--s400); }

/* вкладки */
.apa-tabs { border-bottom: 1px solid var(--s200); }
.apa-tabs button { color: var(--s500); font-weight: 500; }
.apa-tabs button[aria-selected="true"] { color: var(--accent); }
.apa-tabs button[aria-selected="true"]::after { background: var(--accent); height: 2px; }
.apa-tabs .count { background: var(--s100); color: var(--s600); font-weight: 700; }

/* поля */
.apa .field, .apa input[type="text"], .apa input[type="date"], .apa input[type="number"], .apa select, .apa textarea {
  border: 1px solid var(--s300); border-radius: var(--r-md); background: var(--s0);
  box-shadow: var(--field-shadow); color: var(--s700); font-size: 14px;
}
.apa .field:focus, .apa input:focus, .apa select:focus, .apa textarea:focus { border-color: var(--accent); outline: 0; }

/* таблицы */
.apa .data-table { border: 0; border-radius: var(--r-xl); background: var(--s0); box-shadow: var(--card-shadow); }
.apa-table th { padding: 12px 16px; border-bottom: 1px solid var(--s200); background: var(--s0); color: var(--s700); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.apa-table td { padding: 12px 16px; border-bottom: 1px solid var(--s200); color: var(--s700); }
.apa-table tbody tr:hover { background: var(--s100); }
.apa-table tbody tr:last-child td { border-bottom: 0; }

/* чипы - ими у них набирают группировки и сегменты */
.apa-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.apa-chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 64px; justify-content: center;
  padding: 5px 12px; border: 1px solid var(--s200); border-radius: var(--r-md);
  background: transparent; font-size: 14px; color: var(--s500); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.apa-chip:hover { background: var(--s100); }
.apa-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent-deep); font-weight: 500; }
.apa-chip-label { min-width: 0; margin-right: 4px; color: var(--s500); }

/* карточка настройки отчёта */
.apa-report { display: grid; gap: 18px; }
.apa-report-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.apa-dates { display: flex; align-items: flex-end; gap: 0; }
.apa-float { position: relative; }
.apa-float input { height: 52px; padding: 22px 12px 8px; }
.apa-float label { position: absolute; left: 12px; top: 8px; font-size: 12px; color: var(--s500); pointer-events: none; }
.apa-dates .apa-float:first-child input { border-start-end-radius: 0; border-end-end-radius: 0; }
.apa-dates .apa-float:last-child input { border-start-start-radius: 0; border-end-start-radius: 0; border-left: 0; }

/* графики */
.apa-chart-svg .grid { stroke: var(--s200); }
.apa-chart-svg text { fill: var(--s400); }
.apa-chart-svg .l-rev { stroke: var(--accent); }
.apa-chart-svg .l-spend { stroke: var(--s400); }
.apa-chart-svg .hover-line { stroke: var(--s300); }
/* линия прочерчивается, площадь и столбцы вырастают */
.apa-chart-svg .l-rev, .apa-chart-svg .l-spend { stroke-dasharray: var(--len, 6000); stroke-dashoffset: var(--len, 6000); animation: drawLine 1.1s var(--ease) forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.apa-chart-svg polygon { opacity: 0; animation: fadeArea .7s var(--ease) .5s forwards; }
@keyframes fadeArea { to { opacity: 1; } }
.apa-bars { display: grid; gap: 10px; }
.apa-bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.apa-bar-row .track { height: 10px; border-radius: 999px; background: var(--s100); overflow: hidden; }
.apa-bar-row .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; animation: growBar .8s var(--ease) forwards; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.apa-bar-row b { color: var(--s700); font-variant-numeric: tabular-nums; }
.apa-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.apa-donut svg { flex: none; width: 168px; height: 168px; }
.apa-donut circle { transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-width .2s; }
.apa-donut .seg { animation: donut 1s var(--ease) forwards; }
@keyframes donut { from { stroke-dashoffset: var(--circ); } }
.apa-donut-legend { display: grid; gap: 8px; font-size: 13px; min-width: 0; }
.apa-donut-legend div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; }
.apa-donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.apa-donut-legend b { color: var(--s700); font-variant-numeric: tabular-nums; }
.apa-spark { display: block; width: 100%; height: 26px; margin-top: 8px; overflow: visible; }
.apa-spark path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.apa-spark .fill { fill: rgba(10, 92, 255, .1); stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .apa-chart-svg .l-rev, .apa-chart-svg .l-spend { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .apa-chart-svg polygon { opacity: 1; animation: none; }
  .apa-bar-row .track i, .apa-donut .seg { animation: none; }
}
@media (max-width: 760px) {
  .apa { padding: 12px; }
  .apa-dates { flex-wrap: wrap; }
}

/* шесть мелких показателей в одну строку: при пяти колонках шестой уезжал
   вниз и оставлял пустую серую полосу */
.apa-small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }


/* ---------- витрина офферов ----------
   Карточки в той же сетке, что и остальные блоки страницы: белый лист,
   радиус 12, тонкая линия. Логотип - иконка сайта бренда 128px. */
.offer-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 22px; }
.offer-chip {
  min-height: 36px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.offer-chip:hover { background: var(--accent-soft); }
.offer-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer-card {
  display: grid; align-content: start; gap: 14px; padding: 20px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.offer-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; }
.offer-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #f4f5f9; }
.offer-head b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.offer-id { font-size: 12px; color: #9a9caa; font-variant-numeric: tabular-nums; }
.offer-tier { align-self: start; padding: 3px 8px; border-radius: 6px; background: #f1f5f9; font-size: 11px; font-weight: 700; color: #64748b; }
.offer-geo { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-geo span { padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); font-size: 12px; font-weight: 600; color: var(--accent-deep); }
.offer-rows { display: grid; gap: 8px; margin: 0; }
.offer-rows > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: baseline; }
.offer-rows dt { font-size: 12px; color: #8b8d99; }
.offer-rows dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.offer-pay { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.offer-more { display: grid; justify-items: center; gap: 12px; margin-top: 36px; text-align: center; }
.offer-more .small-note { max-width: 56ch; }
@media (max-width: 1040px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offer-grid { grid-template-columns: 1fr; } }

/* пустые ячейки в полоске мелких показателей больше не серые:
   разделители рисуем рамками, а не просветом подложки */
.apa-small { gap: 0; background: #fff; }
.apa-small div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }


/* ================= рабочая область аналитики =================
   Структура снята с Adobe Analytics Workspace: слева набор компонентов,
   справа панели с заголовком и отбивкой. Оформление - сайта: белые
   карточки, радиус 12, синий бренда, Inter. */
.aa { margin-top: 44px; }
.aa-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
.aa-rail { display: grid; gap: 18px; padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.aa-rail-group h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b8d99; }
.aa-pill {
  display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; border-radius: 6px;
  background: var(--accent-soft); font-size: 12px; font-weight: 500; color: var(--accent-deep); cursor: grab;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.aa-pill:hover { background: #d6e4ff; transform: translateY(-1px); }
.aa-rail-group:nth-child(2) .aa-pill { background: #f1f5f9; color: #475569; }
.aa-rail-group:nth-child(3) .aa-pill { background: #eef9f3; color: #1b7a52; }

.aa-panels { display: grid; gap: 16px; min-width: 0; }
.aa-panel { border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow: hidden; }
.aa-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.aa-panel-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.aa-range { font-size: 12px; color: #8b8d99; }
.aa-panel-body { padding: 18px; }
.aa-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; min-width: 0; }

.aa-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.aa-tile { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.aa-tile-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8b8d99; }
.aa-tile b { display: block; margin: 6px 0 2px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.aa-delta { font-size: 12px; font-weight: 600; }
.aa-delta.up { color: #1b7a52; }
.aa-delta.down { color: #c2384f; }
.aa-spark { display: block; width: 100%; height: 30px; margin-top: 8px; overflow: visible; }
.aa-spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.aa-spark .aa-spark-fill { fill: rgba(10, 92, 255, .1); stroke: none; }

.aa-small { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.aa-small div { padding: 11px 14px; border-right: 1px solid var(--line); }
.aa-small div:last-child { border-right: 0; }
.aa-small span { display: block; font-size: 11px; color: #8b8d99; }
.aa-small b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.aa-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 12px; color: #6a6d7a; }
.aa-legend span { display: inline-flex; align-items: center; gap: 7px; }
.aa-legend span::before { content: ""; width: 14px; height: 2.5px; border-radius: 2px; background: var(--accent); }
.aa-legend .l2::before { background: #94a3b8; }
.aa-chart { display: block; width: 100%; height: auto; overflow: visible; }
.aa-chart text { font-size: 11px; fill: #9a9caa; font-family: inherit; }
.aa-grid { stroke: #eef0f5; }
.aa-chart polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.aa-chart .aa-l1 { stroke: var(--accent); }
.aa-chart .aa-l2 { stroke: #94a3b8; stroke-width: 1.8; stroke-dasharray: 5 4; }

/* свободная таблица: заливка вклада прямо в ячейке - приём Adobe */
.aa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aa-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b8d99; }
.aa-table th.num, .aa-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.aa-table td { padding: 9px 12px; border-bottom: 1px solid #f1f2f6; }
.aa-table tbody tr:last-child td { border-bottom: 0; }
.aa-table tbody tr:hover { background: #f7f9ff; }
.aa-dim { color: var(--ink); font-weight: 500; }
.aa-table td.bar { position: relative; }
.aa-table td.bar::before {
  content: ""; position: absolute; right: 0; top: 3px; bottom: 3px;
  width: calc(var(--share, 0) * 100%); border-radius: 4px; background: rgba(10, 92, 255, .13);
  transform-origin: 100% 50%; animation: growBar .7s var(--ease) forwards;
}
.aa-table td.bar > span { position: relative; }

.aa-fallout { display: grid; gap: 10px; }
.aa-step { display: grid; grid-template-columns: 124px 1fr auto 60px; align-items: center; gap: 10px; font-size: 13px; }
.aa-step-label { color: #6a6d7a; }
.aa-step-bar { height: 22px; border-radius: 6px; background: #f1f2f6; overflow: hidden; }
.aa-step-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; animation: growBar .8s var(--ease) forwards; }
.aa-step b { font-variant-numeric: tabular-nums; }
.aa-step-conv { text-align: right; font-size: 12px; color: #8b8d99; }

.aa-bars { display: grid; gap: 10px; }
.aa-bar-row { display: grid; grid-template-columns: minmax(96px, 136px) 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.aa-track { height: 10px; border-radius: 999px; background: #f1f2f6; overflow: hidden; }
.aa-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; animation: growBar .8s var(--ease) forwards; }
.aa-bar-row b { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .aa-shell { grid-template-columns: 1fr; }
  .aa-rail { display: none; }
  .aa-tiles { grid-template-columns: repeat(3, 1fr); }
  .aa-two { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .aa-tiles { grid-template-columns: repeat(2, 1fr); }
  .aa-step { grid-template-columns: 96px 1fr auto; }
  .aa-step-conv { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aa-table td.bar::before, .aa-step-bar i, .aa-track i { animation: none; }
}

/* ======== рабочая область: ближе к настоящему Adobe Workspace ======== */
.aa { --dim: var(--accent); --met: #1b7a52; --seg: #7c5cff; --date: #d1760b; }

.aa-search { position: relative; margin-bottom: 4px; }
.aa-search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #9a9caa; }
.aa-search input {
  width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--ink);
}
.aa-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 92, 255, .14); }

.aa-rail-group h4 { display: flex; align-items: center; justify-content: space-between; }
.aa-add {
  width: 20px; height: 20px; border: 0; border-radius: 6px; background: var(--bg);
  font: inherit; font-size: 14px; line-height: 1; color: var(--muted); cursor: pointer;
}
.aa-add:hover { background: var(--accent-soft); color: var(--accent); }
/* строка компонента: тип виден по цветной метке слева */
.aa-item {
  display: grid; grid-template-columns: 3px 1fr auto; align-items: center; gap: 10px;
  margin-bottom: 5px; padding: 7px 10px 7px 0; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; font-size: 13px; color: var(--ink); cursor: grab;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.aa-item i { align-self: stretch; border-radius: 7px 0 0 7px; background: var(--c, var(--accent)); }
.aa-item em { font-style: normal; font-size: 15px; color: #b9bbc6; }
.aa-item:hover { border-color: #cfd3e0; box-shadow: 0 2px 8px rgba(25, 28, 31, .07); transform: translateX(2px); }
.aa-dim .aa-item { --c: var(--dim); }
.aa-met .aa-item { --c: var(--met); }
.aa-seg .aa-item { --c: var(--seg); }
.aa-date .aa-item { --c: var(--date); }
.aa-showall {
  display: block; width: 100%; margin-top: 2px; padding: 5px 0; border: 0; background: none;
  font: inherit; font-size: 12px; color: var(--muted); text-align: right; cursor: pointer;
}
.aa-showall:hover { color: var(--accent); }

/* точка и кнопки в шапке панели */
.aa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.aa-dot.aa-dim { background: var(--dim); } .aa-dot.aa-met { background: var(--met); }
.aa-dot.aa-seg { background: var(--seg); } .aa-dot.aa-date { background: var(--date); }
.aa-panel-head h3 { flex: 1; }
.aa-panel-tools { display: inline-flex; gap: 10px; color: #b9bbc6; }
.aa-panel-tools svg { width: 16px; height: 16px; }
.aa-panel-tools svg:hover { color: var(--ink); }

/* коридор ожиданий и аномалия на графике */
.aa-band { fill: rgba(10, 92, 255, .09); }
.aa-rule { stroke: #b9bbc6; stroke-width: 1; }
.aa-peak { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.aa-tip rect { fill: #191c1f; }
.aa-tip text { font-family: inherit; fill: #fff; }
.aa-tip .aa-tip-k { font-size: 11px; fill: rgba(255, 255, 255, .62); }
.aa-tip .aa-tip-v { font-size: 22px; font-weight: 700; }
.aa-tip .aa-tip-a { font-size: 10px; font-weight: 700; letter-spacing: .08em; fill: #ff9f6b; text-transform: uppercase; }
.aa-tip .aa-tip-s { font-size: 11px; fill: rgba(255, 255, 255, .62); }

/* свободная таблица со сгруппированными колонками */
.aa-freeform th { vertical-align: bottom; }
.aa-dimhead { width: 38%; text-transform: none; letter-spacing: 0; }
.aa-dimhead b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.aa-paging { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: #9a9caa; text-transform: none; letter-spacing: 0; }
.aa-mhead { position: relative; padding-top: 14px !important; text-align: right; color: var(--ink) !important; }
.aa-mhead i { position: absolute; left: 10px; right: 6px; top: 4px; height: 3px; border-radius: 2px; background: var(--met); }
.aa-mtot { text-align: right; text-transform: none !important; letter-spacing: 0 !important; }
.aa-mtot b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.aa-mtot span { display: block; font-size: 10px; font-weight: 400; color: #9a9caa; }
.aa-spark-head { width: 72px !important; height: 18px !important; margin: 0 0 2px auto !important; }
.aa-rank { margin-right: 7px; color: #b9bbc6; font-variant-numeric: tabular-nums; }
.aa-freeform td.bar em { display: inline-block; min-width: 46px; margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); }
.aa-freeform td.bar::before { background: rgba(10, 92, 255, .16); left: 0; right: auto; }

@media (max-width: 760px) { .aa-freeform .aa-mhead, .aa-freeform .aa-mtot { font-size: 11px; } }


/* язык больше не выбирается - остатки переключателя прячем */
.lang, .lang-pill, .lang-menu, .mobile-lang { display: none !important; }
@media (max-width: 1180px) { .nav-actions .btn-ghost { display: none; } }
