/* =========================================================
   Poccom — motion layer
   Подключается поверх main.min.css, ничего в нём не меняя.
   ========================================================= */

:root {
  --m-ease: cubic-bezier(.16, 1, .3, 1);        /* expo-out: основное движение */
  --m-ease-io: cubic-bezier(.76, 0, .24, 1);    /* in-out: шторки, roll */
  --m-spring: cubic-bezier(.34, 1.56, .64, 1);  /* лёгкий overshoot: теги, иконки */
  --m-lavender: #C4BBFB;
  --m-yellow: #FFCB00;
  --m-green: #A0D928;
  --m-blue: #8AC7FF;
}

/* ---------- Lenis (рекомендованные стили) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Прелоадер ---------- */
.m-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: auto; /* пока идёт интро, клики не уходят в невидимую шапку */
}
.m-preloader__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
/* уходят снизу вверх: чёрный → лавандовый акцент → графит → фон hero */
.m-preloader__layer:nth-child(1) { background: #000; }
.m-preloader__layer:nth-child(2) { background: #131315; }
.m-preloader__layer:nth-child(3) { background: #1b1b1f; }
.m-preloader__layer:nth-child(4) { background: var(--m-lavender); }
.m-preloader__layer_main {
  background: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-preloader__logo {
  width: min(46vw, 420px);
  overflow: hidden;
}
.m-preloader__logo svg { display: block; width: 100%; height: auto; transform: translateY(110%); }
.m-preloader__logo svg .svg-path { fill: #fff; }
.m-preloader__count {
  position: absolute;
  right: 4vw;
  bottom: 3.5vw;
  color: #fff;
  font: 600 clamp(28px, 5vw, 72px)/1 GrtskPeta, Helvetica, Arial, sans-serif;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.m-preloader__bar {
  position: absolute;
  left: 4vw;
  right: 4vw;
  bottom: 2vw;
  height: 2px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
}
.m-preloader__bar i {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Прогресс скролла ---------- */
.m-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9000;
  transform-origin: left;
  transform: scaleX(0);
  background: #000;
  transition: background-color .5s var(--m-ease);
  pointer-events: none;
}

/* ---------- Кастомный курсор ---------- */
html.m-cursor-on,
html.m-cursor-on * { cursor: none !important; }
html.m-cursor-on input,
html.m-cursor-on textarea { cursor: text !important; }

.m-cursor,
.m-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s;
}
.m-cursor {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #fff;
}
.m-cursor-ring {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-cursor-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #fff;
  transition: transform .45s var(--m-ease), background-color .3s, border-color .3s;
}
.m-cursor-ring__label {
  position: relative;
  color: #000;
  font: 600 13px/1 GrtskPeta, Helvetica, Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: lowercase;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s, transform .45s var(--m-ease);
  white-space: nowrap;
}
.m-cursor-visible .m-cursor,
.m-cursor-visible .m-cursor-ring { opacity: 1; }
.m-cursor-hover .m-cursor-ring::before { transform: scale(1.6); background: rgba(255, 255, 255, .12); }
.m-cursor-hover .m-cursor { opacity: 0 !important; }
.m-cursor-label .m-cursor-ring { mix-blend-mode: normal; }
.m-cursor-label .m-cursor-ring::before { transform: scale(2.3); background: var(--m-yellow); border-color: var(--m-yellow); }
.m-cursor-label .m-cursor-ring__label { opacity: 1; transform: scale(1); }
.m-cursor-label .m-cursor { opacity: 0 !important; }
.m-cursor-text .m-cursor,
.m-cursor-text .m-cursor-ring { opacity: 0 !important; }
.m-cursor-down .m-cursor-ring::before { transform: scale(.8); }

/* ---------- Разбивка текста на слова ---------- */
/* span.m-w + !important: у сайта есть правила вида `.main-projects__topic span {display:none}` */
span.m-w {
  display: inline-block !important;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
span.m-wi { display: inline-block !important; }
html.m-js [data-m="words"] .m-wi {
  transform: translateY(115%) rotate(6deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--m-ease);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
html.m-js [data-m="words"].m-in .m-wi { transform: none; }

/* ---------- Общие ревилы ---------- */
html.m-js [data-m="up"] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity .9s var(--m-ease), transform 1.1s var(--m-ease);
  transition-delay: var(--d, 0ms);
}
html.m-js [data-m="up"].m-in { opacity: 1; transform: none; }

html.m-js [data-m="fade"] {
  opacity: 0;
  transition: opacity 1.2s var(--m-ease);
  transition-delay: var(--d, 0ms);
}
html.m-js [data-m="fade"].m-in { opacity: 1; }

html.m-js [data-m="pop"] {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(.4) rotate(var(--r, -8deg));
  transition: opacity .5s var(--m-ease), transform .9s var(--m-spring), background-color .3s, color .3s;
  transition-delay: var(--d, 0ms);
}
html.m-js [data-m="pop"].m-in { opacity: 1; transform: none; }

html.m-js [data-m="clip"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--m-ease-io);
  transition-delay: var(--d, 0ms);
}
html.m-js [data-m="clip"].m-in { clip-path: inset(0 0 0 0); }

/* после ревила задержки сбрасываются, чтобы hover реагировал мгновенно */
html.m-js .m-done,
html.m-js .m-done .m-wi { transition-delay: 0ms !important; }

/* ---------- Header ---------- */
html.m-js .header__body {
  opacity: 0;
  transform: translate3d(0, -24px, 0);
  transition: opacity .8s var(--m-ease), transform 1s var(--m-ease);
}
html.m-ready .header__body { opacity: 1; transform: none; }

/* ---------- Roll-эффект для ссылок и кнопок ---------- */
.m-roll {
  display: inline-block !important;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.2;
}
.m-roll__in {
  display: inline-block !important;
  position: relative;
  transition: transform .55s var(--m-ease-io);
}
.m-roll__in::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
}
a:hover > .m-roll .m-roll__in,
button:hover > .m-roll .m-roll__in,
.m-roll-host:hover .m-roll__in { transform: translateY(-100%); }

/* ---------- Кнопки: заливка от точки входа курсора ---------- */
.m-btn {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  will-change: transform;
}
.m-btn__fill {
  display: block !important;
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: var(--m-fill, var(--m-lavender));
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--m-ease);
  pointer-events: none;
}
.m-btn.m-btn_hover .m-btn__fill { transform: translate(-50%, -50%) scale(var(--m-fill-size, 600)); }
/* !important: на мобильных у сайта есть `.main-intro__button span {display:none}` */
.m-btn__label { position: relative; z-index: 1; display: inline-block !important; transition: color .35s; }
.main-intro__button.m-btn_hover,
.main-form__submit.m-btn_hover { color: #000 !important; opacity: 1 !important; }
.header__submit.m-btn { --m-fill: #000; }
.header__submit.m-btn_hover { color: #fff !important; background: transparent !important; opacity: 1 !important; }
.header-action__button.m-btn { --m-fill: var(--m-yellow); }

/* ---------- Hero ---------- */
.main-intro__title .m-step {
  position: relative;
  display: inline-block !important;
  padding: .28em .45em .22em;
  margin: -.28em -.2em -.22em;
  border-radius: 999px;
  z-index: 0;
}
.main-intro__title .m-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--c, var(--m-lavender));
  transform: scale(.6);
  opacity: 0;
  transition: transform .6s var(--m-spring), opacity .35s;
}
.main-intro__title .m-step.is-active::before { transform: none; opacity: 1; }
.main-intro__title .m-arrow { display: inline-block !important; margin: 0 .2em; }
html.m-js .main-intro__title .m-step,
html.m-js .main-intro__title .m-arrow {
  opacity: 0;
  transform: translate3d(0, 60%, 0);
  transition: opacity .6s var(--m-ease), transform .9s var(--m-ease);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
html.m-js .main-intro__title .m-arrow { transform: translate3d(-40%, 0, 0); }
html.m-js .main-intro__title.m-in .m-step,
html.m-js .main-intro__title.m-in .m-arrow { opacity: 1; transform: none; }

/* Плитки: ревил + 3D-наклон за курсором */
.main-tile {
  --ty: 0px;
  --s: 1;
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(900px) translate3d(0, var(--ty), 0) scale(var(--s)) rotateX(var(--rx)) rotateY(var(--ry)) !important;
  transition: transform .7s var(--m-ease), opacity .8s var(--m-ease), box-shadow .5s var(--m-ease), background-color .4s !important;
  transition-delay: var(--d, 0ms);
}
html.m-js .main-tile[data-m="tile"] { --ty: 60px; --s: .92; opacity: 0; }
html.m-js .main-tile[data-m="tile"].m-in { --ty: 0px; --s: 1; opacity: 1; }
.main-tile.m-done { transition-delay: 0ms !important; }
html.m-js .main-tile[data-m="tile"].m-in.m-tilt,
.main-tile.m-tilt { --s: 1.025; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .25); background-color: #fff; }

.main-intro-projects__img { animation: m-float 5s ease-in-out infinite; transition: transform .6s var(--m-spring); }
.main-tile:hover .main-intro-projects__img { animation-play-state: paused; }
@keyframes m-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

/* ---------- Слайды услуг ---------- */
.main-develop-tags__item { cursor: default; }
.main-develop-tags__item.m-done { transition: transform .5s var(--m-spring), background-color .3s, color .3s !important; }
html.m-js .main-develop-tags__item.m-done:hover { transform: translateY(-5px) rotate(-3deg); background: #000; color: #fff; }
html.m-js .main-develop-tags__item.m-done:hover p { color: #fff; }

.main-develop__more svg { transition: transform .6s var(--m-spring); }
.main-develop__more:hover svg { transform: translateX(6px) rotate(-45deg); }
.main-develop__more:hover { opacity: 1 !important; }

/* ---------- Проекты ---------- */
.main-projects__img img { will-change: transform; }
.main-projects__arrow svg { transition: transform .6s var(--m-ease); }
.main-projects__next:not(.swiper-button-disabled):hover svg { transform: translateX(4px); }
.main-projects__prev:not(.swiper-button-disabled):hover svg { transform: translateX(-4px); }
.m-proj-line {
  display: block;
  overflow: hidden;
}
.m-proj-line > * { display: block; }

/* ---------- Компетенции ---------- */
.main-competence__icon img {
  transform-origin: 30% 60%;
  transition: transform .9s var(--m-spring), opacity .6s var(--m-ease);
}
html.m-js .main-competence__icon:not(.m-in) img { transform: scale(.3) rotate(-40deg); opacity: 0; }
.main-competence__item:hover .main-competence__icon.m-in img { transform: scale(1.12) rotate(-10deg); }

/* ---------- Форма ---------- */
.input::after,
.textarea::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: #000;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--m-ease);
  pointer-events: none;
}
.textarea { position: relative; }
.input:focus-within::after,
.textarea:focus-within::after { transform: scaleX(1); transform-origin: left; }
.input_state_error::after,
.textarea_state_error::after { background: #e5484d; transform: scaleX(1); }

.main-form-lottie__item { transition: transform .6s var(--m-spring); }
.main-form-lottie__item:hover { transform: scale(1.06) rotate(-4deg); }
.main-form__phone a,
.main-form__email a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--m-ease);
}
.main-form__phone a:hover,
.main-form__email a:hover { background-size: 100% 2px; }

/* ---------- Модалка ---------- */
.modal.m-modal-anim .modal__body { animation: m-modal-in .9s var(--m-ease) both; }
.modal.m-modal-anim .modal__close { animation: m-modal-close .9s var(--m-spring) .15s both; }
@keyframes m-modal-in {
  from { opacity: 0; transform: translate3d(0, 80px, 0) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes m-modal-close {
  from { opacity: 0; transform: rotate(-120deg) scale(.4); }
  to { opacity: 1; transform: none; }
}
.modal__close svg { transition: transform .6s var(--m-spring); }
.modal__close:hover svg { transform: rotate(90deg); }

/* ---------- Бегущая строка в футере ---------- */
.m-marquee {
  overflow: hidden;
  padding: 3.2vw 0 2.6vw;
  margin-bottom: 1.6vw;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  user-select: none;
}
.m-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.m-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.m-marquee__word {
  font: 700 clamp(48px, 8.4vw, 150px)/1 GrtskPeta, Helvetica, Arial, sans-serif;
  letter-spacing: -.045em;
  color: #fff;
  white-space: nowrap;
  padding: 0 .18em;
  transition: color .4s;
}
.m-marquee__word:nth-child(4n) {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}
.m-marquee__star {
  width: clamp(28px, 4vw, 64px);
  height: clamp(28px, 4vw, 64px);
  margin: 0 .6vw;
  flex-shrink: 0;
  animation: m-spin 8s linear infinite;
}
.m-marquee__star:nth-child(8n+1) { color: var(--m-lavender); }
.m-marquee__star:nth-child(8n+3) { color: var(--m-yellow); }
.m-marquee__star:nth-child(8n+5) { color: var(--m-green); }
.m-marquee__star:nth-child(8n+7) { color: var(--m-blue); }
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ---------- Ссылки в футере ---------- */
.footer-menu__item a,
.footer__copyright a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--m-ease);
}
.footer-menu__item a:hover,
.footer__copyright a:hover { background-size: 100% 1px; }

/* ---------- Мобильные ---------- */
@media (max-width: 767px) {
  .main-intro__title .m-step { padding: .22em .28em .18em; margin: -.22em -.12em -.18em; }
  .main-intro__title .m-arrow { margin: 0; }
  .m-marquee { padding: 7vw 0 6vw; }
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  .m-preloader,
  .m-cursor,
  .m-cursor-ring { display: none !important; }
  .main-intro-projects__img,
  .m-marquee__star { animation: none !important; }
}

/* =========================================================
   Главный экран: «кино» в четыре главы
   Живой WebGL-градиент в цвете текущего этапа, огромная типографика,
   крупная линейная иллюстрация этапа и строка глав с прогрессом.
   ========================================================= */

:root {
  --m-ink: #ebe9e6;          /* основной светлый текст на чёрном */
  --m-mute: #707070;         /* второстепенный текст */
  --m-gap: 8px;
  --m-max: 1440px;
}

/* ---------- шапка: логотип, меню-капсула по центру, телефон и кнопка ---------- */
.header { background: transparent; border-bottom-color: transparent; }
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity .5s var(--m-ease);
}
.m-scrolled .header::before { opacity: 1; }
.header__logo svg { --fill: var(--m-ink); }
.header__phone,
.header__tg a { filter: invert(1); }
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after { background-color: var(--m-ink); }

@media (min-width: 768px) {
  /* шапка на всю ширину, поля — как у главного экрана */
  .header .content__wrap { max-width: none; margin: 0; padding: 0 clamp(20px, 2.8vw, 48px); box-sizing: border-box; }
  .header__body { position: relative; flex-wrap: nowrap; padding: 14px 0; }
  .header__logo { margin-top: 0; }
  .header__logo svg { width: clamp(112px, 8.8vw, 148px); }
  .header-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }
  .header-menu__body {
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .header .header-menu__item > a {
    gap: 6px;
    padding: 9px 16px;
    margin: 0;
    border-radius: 999px;
    font-size: clamp(13px, .86vw, 15px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--m-ink);
    transition: background-color .3s, opacity .3s;
  }
  .header .header-menu__item > a:hover { background: rgba(255, 255, 255, .1); opacity: 1; }
  .header .header-menu__item > a svg { width: 9px; }
  .header .header-menu__item > a svg path { stroke: var(--m-ink); }
  .header-submenu { bottom: 0; transform: translateY(100%); width: 340px; padding-top: 10px; background: transparent !important; }
  .header-submenu__body { padding: 18px 20px; border-radius: 16px; background: #141414; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
  .header-submenu__item:not(:first-child) { margin-top: 12px; }
  .header-submenu__item a { font-size: 15px; line-height: 1.3; color: var(--m-ink); }
  .header-submenu__item a span { color: var(--m-mute); }
  .header__number { margin-left: auto; color: var(--m-ink); font-size: clamp(13px, .86vw, 15px); }
  .header__tg { margin: 0 12px; }
  .header__tg a { width: 34px; height: 34px; }
  .header .header__submit {
    width: auto;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--m-ink);
    color: #000;
    font-size: clamp(13px, .86vw, 15px);
    font-weight: 500;
  }
  .header .header__submit.m-btn { --m-fill: var(--m-lavender); }
  .header .header__submit.m-btn_hover { color: #000 !important; background: var(--m-ink) !important; }
}
@media (max-width: 767px) {
  .header::before { opacity: 1; }
}

/* ---------- первый слайд ---------- */
.m-hero-slide { background: #000; color: var(--m-ink); overflow: clip; justify-content: flex-start; }
.m-cine {
  --stage-c: #8AC7FF;
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  font-family: GrtskPeta, Helvetica, Arial, sans-serif;
  isolation: isolate;
}
.m-cine__gl {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}
html.m-js .m-cine__gl { opacity: 0; transition: opacity 2.2s var(--m-ease); }
html.m-ready .m-cine__gl { opacity: 1; }
/* без WebGL: тот же свет мягким CSS-градиентом */
.m-cine_nogl {
  background:
    radial-gradient(48% 58% at 74% 58%, color-mix(in srgb, var(--stage-c) 55%, transparent), transparent 70%),
    radial-gradient(30% 40% at 88% 86%, color-mix(in srgb, var(--stage-c) 30%, transparent), transparent 70%),
    #000;
  transition: background 1.2s;
}
.m-cine_nogl .m-cine__gl { display: none; }
/* затемнение под текстом: сверху и слева */
.m-cine__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .7) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 52%);
}

.m-cine__wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4vh;
  width: 100%;
  max-width: var(--m-max);
  margin: 0 auto;
  padding: clamp(112px, 9.8vw, 176px) clamp(16px, 2.08vw, 40px) clamp(22px, 2.2vw, 40px);
  box-sizing: border-box;
}

.m-cine__title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(44px, 6.5vw, 128px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.048em;
  color: var(--m-ink);
  text-shadow: 0 0 40px rgba(0, 0, 0, .45); /* читаемость там, где линии иллюстрации заходят под текст */
}
.m-cine__line { display: block; will-change: transform; }
.m-cine__line_indent { padding-left: 1.55em; }

/* ---------- сцена справа ---------- */
.m-cine__visual {
  position: absolute;
  right: clamp(16px, 2.08vw, 40px);
  top: 30%;
  width: 44%;
  height: 46%;
  pointer-events: none;
}
.m-cine__art {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;   /* чёрная подложка иллюстраций исчезает, остаются светлые линии */
}
.m-cine__scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.94) translate3d(0, 16px, 0);
  filter: blur(10px);
  transition: opacity .9s var(--m-ease), transform 1.6s var(--m-ease), filter 1s var(--m-ease);
}
.m-cine__scene.is-active { opacity: 1; transform: none; filter: none; }
.m-cine__scene lottie-player {
  width: 100%;
  height: 100%;
  /* линии Lottie чёрные на цветной подложке: в ч/б, инверсия, жёсткий контраст → белые линии на чёрном */
  filter: grayscale(1) invert(1) contrast(2.4);
}

/* «Продукт»: две карточки приложения TIR вылетают веером */
.m-cine__product { position: absolute; inset: 0; perspective: 1400px; }
.m-cine__shot {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 92%;
  width: auto;
  aspect-ratio: 750 / 1564;
  object-fit: cover;
  border-radius: clamp(14px, 1.2vw, 22px);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0;
  transition: opacity .8s var(--m-ease), transform 1.6s var(--m-ease);
}
.m-cine__shot_back { transform: translate(-30%, -46%) rotate(8deg) scale(.86); }
.m-cine__shot_front { transform: translate(-60%, -40%) rotate(-10deg) scale(.86); }
.m-cine__product.is-active .m-cine__shot { opacity: 1; }
.m-cine__product.is-active .m-cine__shot_back { transform: translate(16%, -54%) rotate(7deg); transition-delay: .12s; }
.m-cine__product.is-active .m-cine__shot_front { transform: translate(-34%, -43%) rotate(-5deg); }

/* ---------- низ: кнопка и главы ---------- */
.m-cine__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  gap: 4vw;
  align-items: end;
}
.m-cine__btn {
  display: inline-flex;
  align-items: center;
  padding: clamp(15px, 1vw, 19px) clamp(26px, 1.8vw, 34px);
  border-radius: 999px;
  background: var(--m-ink);
  color: #000;
  font-size: clamp(15px, .94vw, 18px);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.m-cine__btn .m-btn__label::after { content: " →"; }
.m-cine__note { margin: 16px 0 0; font-size: clamp(11px, .7vw, 13px); line-height: 1.6; color: rgba(235, 233, 230, .5); }

.m-cine__descs { position: relative; height: 2.9em; margin-bottom: 18px; font-size: clamp(15px, 1.05vw, 20px); }
.m-cine__desc {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--m-ink);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .5s, transform .9s var(--m-ease);
  pointer-events: none;
}
.m-cine__desc.is-active { opacity: 1; transform: none; transition-delay: .2s; pointer-events: auto; }
.m-cine__desc a {
  margin-left: .4em;
  color: var(--stage-c);
  text-decoration: none;
  white-space: nowrap;
  transition: color 1s var(--m-ease), opacity .3s;
}
.m-cine__desc a:hover { opacity: .7; }

.m-cine__chapters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.m-chap {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 16px 0 4px;
  border: 0;
  background: none;
  color: rgba(235, 233, 230, .4);
  font: 500 clamp(13px, .86vw, 16px)/1.2 GrtskPeta, Helvetica, Arial, sans-serif;
  letter-spacing: -.01em;
  text-align: left;
  cursor: pointer;
  transition: color .5s var(--m-ease);
}
.m-chap:hover,
.m-chap.is-active { color: var(--m-ink); }
.m-chap__num { font-size: .78em; letter-spacing: .08em; opacity: .7; font-variant-numeric: tabular-nums; }
.m-chap__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-chap__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
}
.m-chap__bar i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--c); }
.m-chap.is-done .m-chap__bar i { transform: scaleX(1); background: rgba(255, 255, 255, .5); }
.m-chap.is-active .m-chap__bar i { animation: m-chap-bar var(--cycle, 5.5s) linear forwards; }
.m-cine.is-paused .m-chap.is-active .m-chap__bar i { animation-play-state: paused; }
@keyframes m-chap-bar { to { transform: scaleX(1); } }

/* появление низа */
html.m-js .m-cine__bottom { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 1.2s var(--m-ease) .9s, transform 1.4s var(--m-ease) .9s; }
html.m-ready .m-cine__bottom { opacity: 1; transform: none; }

.m-on-dark .m-progress { background: var(--m-ink) !important; }

@media (min-width: 768px) and (max-width: 1100px) {
  .m-cine__visual { top: 30%; width: 52%; height: 40%; }
  .m-cine__bottom { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .m-cine__wrap { padding-top: 30vw; gap: 0; }
  .m-cine__title { font-size: 11.2vw; }
  .m-cine__line_indent { padding-left: .9em; }
  .m-cine__visual { position: relative; inset: auto; width: 100%; height: 76vw; margin: 4vw 0; }
  .m-cine__shot { height: 96%; }
  .m-cine__bottom { grid-template-columns: 1fr; gap: 9vw; }
  .m-cine__cta { order: 2; }
  .m-cine__btn { display: flex; justify-content: center; }
  .m-cine__descs { height: 4.3em; font-size: 4.2vw; }
  .m-cine__chapters { gap: 2vw; }
  .m-chap { flex-direction: column; gap: 1.4vw; font-size: 3.2vw; }
  .m-chap__name { max-width: 100%; }
  .m-cine__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .85) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  /* без анимаций главы не листаются: показываем первую */
  .m-cine__desc:first-child,
  .m-cine__scene:first-child { opacity: 1; transform: none; filter: none; }
  .m-chap:first-child { color: var(--m-ink); }
  .m-chap.is-active .m-chap__bar i { animation: none; transform: scaleX(1); }
  .m-cine__scene,
  .m-cine__shot { transition: none; }
}

/* =========================================================
   Вариант A «Доказательства»: запуск TIR и факты вокруг него
   ========================================================= */
.m-proof {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding-top: clamp(104px, 8.6vw, 160px);
  font-family: GrtskPeta, Helvetica, Arial, sans-serif;
  isolation: isolate;
  overflow: clip;
}
.m-proof__wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: center;
  width: 100%;
  max-width: var(--m-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.08vw, 40px) clamp(20px, 2vw, 36px);
  box-sizing: border-box;
}
.m-proof__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 1.6vw, 28px);
  font-size: clamp(12px, .76vw, 14px);
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(235, 233, 230, .6);
}
.m-proof__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #A0D928; }
.m-proof__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #A0D928; animation: m-ping 2.6s var(--m-ease) infinite; }
@keyframes m-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.m-proof__title {
  margin: 0;
  font-size: clamp(36px, 3.9vw, 76px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -.04em;
  color: var(--m-ink);
}
.m-proof__lead {
  max-width: 34em;
  margin: clamp(18px, 1.6vw, 28px) 0 0;
  font-size: clamp(15px, 1vw, 19px);
  line-height: 1.5;
  color: rgba(235, 233, 230, .64);
}
.m-proof__actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(24px, 2.2vw, 40px); }
.m-proof__cta,
.m-ent__cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(15px, 1vw, 19px) clamp(26px, 1.8vw, 34px);
  border-radius: 999px;
  background: var(--m-ink);
  color: #000;
  font-size: clamp(15px, .94vw, 18px);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.m-proof__cta .m-btn__label::after,
.m-ent__cta .m-btn__label::after { content: " →"; }
.m-proof__link {
  position: relative;
  padding: 4px 0;
  color: var(--m-ink);
  font-size: clamp(14px, .9vw, 17px);
  font-weight: 500;
  text-decoration: none;
}
.m-proof__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(235, 233, 230, .4);
  transform-origin: right;
  transition: transform .6s var(--m-ease);
}
.m-proof__link:hover::after { transform: scaleX(0); }
.m-proof__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 26px);
  margin-top: clamp(30px, 3.2vw, 60px);
  padding-top: clamp(16px, 1.4vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.m-proof__stat { margin: 0; color: var(--m-ink); }
.m-proof__stat b { font-weight: 400; font-size: clamp(26px, 2.2vw, 42px); letter-spacing: -.035em; }
.m-proof__stat b + b { font-size: clamp(14px, 1vw, 19px); letter-spacing: -.01em; }
.m-proof__stat span { display: block; margin-top: 6px; font-size: clamp(12px, .74vw, 14px); line-height: 1.35; color: var(--m-mute); }
.m-proof__num { font-variant-numeric: tabular-nums; }

/* сцена с кейсом */
.m-proof__stage { position: relative; height: min(64vh, 46vw); }
.m-proof__glow {
  position: absolute;
  inset: -12% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 203, 0, .28), rgba(255, 203, 0, 0) 72%);
  filter: blur(20px);
  animation: m-proof-breathe 7s ease-in-out infinite alternate;
}
@keyframes m-proof-breathe { from { transform: scale(.94); opacity: .75; } to { transform: scale(1.06); opacity: 1; } }
.m-proof__card {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(min(64vh, 46vw) * .62);
  margin-left: calc(min(64vh, 46vw) * -.31);
  display: block;
  border-radius: clamp(18px, 1.5vw, 28px);
  overflow: hidden;
  background: #151515;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .1);
  text-decoration: none;
  will-change: transform;
}
.m-proof__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transition: transform 1.6s var(--m-ease); }
.m-proof__card:hover img { transform: scale(1.05); }
.m-proof__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(14, 14, 14, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: clamp(12px, .74vw, 14px);
  color: var(--m-mute);
}
.m-proof__caption b { font-size: clamp(15px, 1vw, 19px); font-weight: 500; color: var(--m-ink); }

.m-proof__chips { position: absolute; inset: 0; pointer-events: none; }
.m-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 15px 12px;
  border-radius: 14px;
  background: rgba(22, 22, 22, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 40px -20px rgba(0, 0, 0, .8);
  font-size: clamp(12px, .8vw, 15px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--m-ink);
  white-space: nowrap;
  will-change: transform;
}
.m-chip i { font-style: normal; font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #FFCB00; }
.m-chip_1 { left: -2%; top: 8%; }
.m-chip_2 { right: -1%; top: 18%; }
.m-chip_3 { left: 0; top: 44%; }
.m-chip_4 { right: -4%; top: 58%; }
.m-chip_5 { left: -4%; bottom: 24%; }
/* появление: по очереди, с пружиной; дальше лёгкое парение */
html.m-js .m-chip { opacity: 0; translate: 0 26px; scale: .86; }
.m-proof__chips.m-in .m-chip {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition: opacity .7s var(--m-ease), translate 1.1s var(--m-spring), scale 1.1s var(--m-spring);
}
.m-proof__chips.m-in .m-chip_1 { transition-delay: .5s; }
.m-proof__chips.m-in .m-chip_2 { transition-delay: .65s; }
.m-proof__chips.m-in .m-chip_3 { transition-delay: .8s; }
.m-proof__chips.m-in .m-chip_4 { transition-delay: .95s; }
.m-proof__chips.m-in .m-chip_5 { transition-delay: 1.1s; }
html.m-js .m-proof__card { clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1.5s var(--m-ease-io); }
html.m-js .m-proof__card.m-in { clip-path: inset(0 0 0 0 round 0); }

/* ---------- бегущая строка стека (A и C) ---------- */
.m-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.m-ticker__track { display: flex; width: max-content; animation: m-ticker 48s linear infinite; }
.m-ticker:hover .m-ticker__track { animation-play-state: paused; }
.m-ticker__track span {
  padding: 0 clamp(18px, 1.6vw, 30px);
  font-size: clamp(13px, .86vw, 16px);
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.m-ticker__track span + span::before { content: "·"; margin: 0 clamp(18px, 1.6vw, 30px) 0 calc(-1 * clamp(18px, 1.6vw, 30px)); opacity: .4; }
@keyframes m-ticker { to { transform: translateX(-50%); } }
.m-proof__ticker {
  padding: clamp(14px, 1.2vw, 20px) 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(235, 233, 230, .5);
}

@media (max-width: 767px) {
  .m-proof { padding-top: 30vw; }
  .m-proof__wrap { grid-template-columns: 1fr; gap: 10vw; }
  .m-proof__title { font-size: 9.4vw; }
  .m-proof__actions { flex-direction: column; align-items: stretch; gap: 4vw; }
  .m-proof__cta { justify-content: center; }
  .m-proof__link { align-self: center; }
  .m-proof__stats { grid-template-columns: 1fr 1fr 1fr; gap: 3vw; }
  .m-proof__stat b { font-size: 7vw; }
  .m-proof__stage { height: 118vw; }
  .m-proof__card { width: 62vw; margin-left: -31vw; top: 6vw; bottom: 6vw; }
  .m-chip { font-size: 3.1vw; padding: 2.4vw 3vw; }
  .m-chip_1 { left: 0; top: 0; }
  .m-chip_2 { right: 0; top: 20%; }
  .m-chip_3 { left: 0; top: 46%; }
  .m-chip_4 { right: 0; top: 66%; white-space: normal; max-width: 44vw; }
  .m-chip_5 { left: 0; bottom: 0; }
}

/* =========================================================
   Вариант C «Enterprise»: светлый, строгий, компетенции и факты
   ========================================================= */
.m-hero-slide_light { background: #F3F2EE; color: #0e0e0e; }
.m-ent {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding-top: clamp(104px, 8.6vw, 160px);
  font-family: GrtskPeta, Helvetica, Arial, sans-serif;
}
.m-ent__wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(26px, 3vh, 48px);
  width: 100%;
  max-width: var(--m-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 2.08vw, 40px) clamp(18px, 1.8vw, 30px);
  box-sizing: border-box;
}
.m-ent__top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 380px); gap: 5vw; align-items: end; }
.m-ent__kicker { margin: 0 0 clamp(16px, 1.4vw, 24px); font-size: clamp(12px, .76vw, 14px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8a8a85; }
.m-ent__title { margin: 0; font-size: clamp(36px, 4.2vw, 80px); line-height: 1.02; font-weight: 400; letter-spacing: -.042em; }
.m-ent__lead { margin: 0 0 22px; font-size: clamp(14px, .94vw, 17px); line-height: 1.5; color: #55554f; }
.m-ent__cta { background: #0e0e0e; color: #fff; }
.m-ent__cta.m-btn { --m-fill: var(--m-lavender); }
.m-ent__cta.m-btn_hover { color: #000 !important; }

.m-ent__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--m-gap); }
.m-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(190px, 26vh, 280px);
  padding: clamp(18px, 1.5vw, 28px);
  border-radius: clamp(14px, 1.1vw, 20px);
  background: #fff;
  color: #0e0e0e;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), inset 0 0 0 1px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: transform .7s var(--m-ease), box-shadow .7s var(--m-ease);
}
.m-cap::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--c);
  transform-origin: left;
  transition: height .7s var(--m-ease);
}
.m-cap::after {
  content: "→";
  position: absolute;
  right: clamp(18px, 1.5vw, 28px);
  top: clamp(16px, 1.4vw, 26px);
  font-size: 18px;
  opacity: .3;
  transition: transform .6s var(--m-ease), opacity .4s;
}
.m-cap:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.m-cap:hover::before { height: 100%; }
.m-cap:hover::after { opacity: 1; transform: translateX(4px); }
.m-cap > * { position: relative; }
.m-cap__num { font-size: clamp(11px, .7vw, 13px); font-weight: 600; letter-spacing: .08em; color: #8a8a85; transition: color .5s; }
.m-cap:hover .m-cap__num { color: #0e0e0e; }
.m-cap__name { margin-top: 10px; font-size: clamp(18px, 1.35vw, 26px); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; }
.m-cap__list { margin-top: auto; padding-top: 18px; font-size: clamp(12px, .8vw, 15px); line-height: 1.6; color: #55554f; transition: color .5s; }
.m-cap:hover .m-cap__list { color: #0e0e0e; }

.m-ent__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: var(--m-gap);
  padding-top: clamp(14px, 1.2vw, 22px);
  border-top: 1px solid rgba(0, 0, 0, .12);
}
.m-ent__fact { margin: 0; }
.m-ent__fact b { font-weight: 400; font-size: clamp(26px, 2.3vw, 44px); letter-spacing: -.04em; }
.m-ent__fact b + b { font-size: clamp(14px, 1vw, 19px); letter-spacing: -.01em; }
.m-ent__fact span { display: block; margin-top: 4px; font-size: clamp(12px, .74vw, 14px); line-height: 1.35; color: #77776f; }
.m-ent__num { font-variant-numeric: tabular-nums; }
.m-ent__industries { margin: 0; align-self: end; font-size: clamp(14px, .94vw, 17px); font-weight: 500; letter-spacing: -.01em; }
.m-ent__industries span { display: block; margin-bottom: 6px; font-size: clamp(11px, .7vw, 13px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8a85; }
.m-ent__ticker { padding: clamp(14px, 1.2vw, 20px) 0; border-top: 1px solid rgba(0, 0, 0, .08); color: #77776f; }

/* появление карточек и линий */
html.m-js .m-ent__grid:not(.m-in) .m-cap { opacity: 0; }
.m-ent__grid.m-in .m-cap { animation: m-cap-in 1.1s var(--m-ease) both; }
.m-ent__grid.m-in .m-cap:nth-child(2) { animation-delay: .09s; }
.m-ent__grid.m-in .m-cap:nth-child(3) { animation-delay: .18s; }
.m-ent__grid.m-in .m-cap:nth-child(4) { animation-delay: .27s; }
@keyframes m-cap-in { from { opacity: 0; transform: translate3d(0, 48px, 0); } to { opacity: 1; transform: none; } }
html.m-js .m-ent__facts { border-top-color: transparent; transition: border-color 1.2s var(--m-ease) .9s; }
html.m-ready .m-ent__facts { border-top-color: rgba(0, 0, 0, .12); }

/* шапка над светлым экраном: тёмный текст, пока не начали листать */
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header__logo svg { --fill: #0e0e0e; }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header .header-menu__item > a,
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header__number { color: #0e0e0e; }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header .header-menu__item > a svg path { stroke: #0e0e0e; }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header-menu__body { background: rgba(0, 0, 0, .05); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header .header-menu__item > a:hover { background: rgba(0, 0, 0, .06); }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header__tg a,
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header__phone { filter: none; }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header .header__submit { background: #0e0e0e; color: #fff; }
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .hamburger-inner,
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .hamburger-inner::before,
html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .hamburger-inner::after { background-color: #0e0e0e; }
@media (max-width: 767px) {
  html:not(.html_state_menu) .m-on-light:not(.m-scrolled) .header::before { opacity: 0; }
}
.m-on-light .m-progress { background: #0e0e0e !important; }

@media (min-width: 768px) and (max-width: 1100px) {
  .m-ent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-ent__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .m-ent__industries { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .m-ent { padding-top: 30vw; }
  .m-ent__top { grid-template-columns: 1fr; gap: 6vw; }
  .m-ent__title { font-size: 9vw; }
  .m-ent__cta { display: flex; justify-content: center; }
  .m-ent__grid { grid-template-columns: 1fr 1fr; }
  .m-cap { min-height: 52vw; padding: 4vw; }
  .m-cap__name { font-size: 4.4vw; }
  .m-cap__list { font-size: 3vw; }
  .m-ent__facts { grid-template-columns: 1fr 1fr; row-gap: 5vw; }
  .m-ent__industries { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .m-ticker__track,
  .m-proof__glow,
  .m-proof__dot::after { animation: none !important; }
  .m-chip { opacity: 1 !important; translate: none !important; scale: none !important; }
  .m-ent__grid .m-cap { animation: none !important; opacity: 1 !important; }
}

/* =========================================================
   Вариант D «Чистый»: одна фраза, одно изображение
   Светлый фон, двухтоновый заголовок, большое окно с проектами,
   которое при прокрутке раскрывается до краёв экрана.
   ========================================================= */
.m-hero-slide_clean {
  background: #FAFAF7;
  color: #0b0b0b;
  transform: none !important; /* высокий слайд: без сдвига ScrollMagic на 15% */
}
.m-clean {
  position: relative;
  padding: clamp(132px, 12vw, 220px) 0 clamp(40px, 4vw, 80px);
  font-family: GrtskPeta, Helvetica, Arial, sans-serif;
}
.m-clean__wrap {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.8vw, 48px);
  box-sizing: border-box;
  will-change: transform, opacity;
}
.m-clean__title {
  margin: 0;
  font-size: clamp(46px, 7.2vw, 136px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.052em;
  color: #0b0b0b;
}
.m-clean__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.m-clean__line > span { display: inline-block; }
.m-clean__line_mute { color: #a3a3a0; }
html.m-js .m-clean__line > span { transform: translate3d(0, 108%, 0); transition: transform 1.4s var(--m-ease); }
html.m-js .m-clean__line_mute > span { transition-delay: .12s; }
html.m-js .m-clean__title.m-in .m-clean__line > span { transform: none; }

.m-clean__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6vw;
  margin-top: clamp(30px, 3.4vw, 60px);
}
.m-clean__lead {
  max-width: 30em;
  margin: 0;
  font-size: clamp(16px, 1.14vw, 21px);
  line-height: 1.5;
  letter-spacing: -.012em;
  color: #6b6b67;
}
.m-clean__actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.m-clean__cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(15px, 1vw, 19px) clamp(26px, 1.8vw, 34px);
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  font-size: clamp(15px, .94vw, 18px);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.m-clean__cta.m-btn { --m-fill: #3a3a3a; }
.m-clean__cta.m-btn_hover { color: #fff !important; }
.m-clean__link {
  position: relative;
  padding: 4px 0;
  color: #0b0b0b;
  font-size: clamp(15px, .94vw, 18px);
  font-weight: 500;
  text-decoration: none;
}
.m-clean__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--m-ease);
}
.m-clean__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- окно с проектами ---------- */
.m-clean__media { margin-top: clamp(44px, 5vw, 90px); }
.m-clean__frame {
  --zoom: 1.1;
  position: relative;
  height: clamp(420px, 86vh, 980px);
  overflow: hidden;
  background: #111;
  touch-action: pan-y;          /* вертикальный скролл страницы — браузеру, горизонтальный свайп — нам */
  user-select: none;
  -webkit-user-select: none;
}
.m-clean__frame img { -webkit-user-drag: none; pointer-events: none; }
.m-clean__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1s var(--m-ease), transform 1.3s var(--m-ease);
  will-change: transform, opacity;
}
.m-clean__slide.is-active { opacity: 1; z-index: 1; }
.m-clean__slide picture,
.m-clean__slide img { display: block; width: 100%; height: 100%; }
.m-clean__slide img {
  object-fit: cover;
  object-position: 66% 50%;
  transform: scale(calc(var(--zoom) * 1.04));
  transition: transform 6s cubic-bezier(.25, .1, .25, 1);
}
.m-clean__slide.is-active img { transform: scale(var(--zoom)); }

.m-clean__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 0;
  padding: 0 clamp(20px, 2.8vw, 48px);
  box-sizing: border-box;
}
.m-clean__caption {
  margin: 0;
  overflow: hidden;
  font-size: clamp(13px, .86vw, 16px);
  letter-spacing: -.01em;
  color: #6b6b67;
}
.m-clean__caption span { display: inline-block; }
.m-clean__controls { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 26px); flex-shrink: 0; }
.m-clean__count { font-size: clamp(12px, .8vw, 15px); color: var(--m-faint, #8a8a85); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.m-clean__count b { font-weight: 500; color: #0b0b0b; }
.m-clean__arrows { display: flex; gap: 8px; }
.m-clean__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 2.9vw, 52px);
  height: clamp(40px, 2.9vw, 52px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.m-clean__arrow svg { width: 42%; height: 42%; transition: transform .5s var(--m-ease); }
.m-clean__arrow:hover { background: #0b0b0b; color: #fff; box-shadow: inset 0 0 0 1px #0b0b0b; }
.m-clean__arrow[data-dir="-1"]:hover svg { transform: translateX(-3px); }
.m-clean__arrow[data-dir="1"]:hover svg { transform: translateX(3px); }
.m-clean__dots { display: flex; gap: 6px; }
.m-clean__dot {
  position: relative;
  width: clamp(28px, 2.4vw, 44px);
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.m-clean__dot::before,
.m-clean__dot i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  border-radius: 2px;
}
.m-clean__dot::before { background: rgba(0, 0, 0, .12); }
.m-clean__dot i { background: #0b0b0b; transform: scaleX(0); transform-origin: left; }
.m-clean__dot.is-done i { transform: scaleX(1); background: rgba(0, 0, 0, .35); }
.m-clean__dot.is-active i { animation: m-clean-dot var(--cycle, 5.2s) linear forwards; }
.m-clean.is-paused .m-clean__dot.is-active i { animation-play-state: paused; }
@keyframes m-clean-dot { to { transform: scaleX(1); } }

/* появление окна и подписи */
html.m-js .m-clean__row,
html.m-js .m-clean__meta { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 1.2s var(--m-ease), transform 1.4s var(--m-ease); }
html.m-js .m-clean__row { transition-delay: .45s; }
html.m-js .m-clean__meta { transition-delay: .9s; }
html.m-ready .m-clean__row,
html.m-ready .m-clean__meta { opacity: 1; transform: none; }
html.m-js .m-clean__media { opacity: 0; transform: translate3d(0, 60px, 0); transition: opacity 1.4s var(--m-ease) .55s, transform 1.8s var(--m-ease) .55s; }
html.m-ready .m-clean__media { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .m-clean { padding-top: 34vw; }
  .m-clean__title { font-size: 12.4vw; }
  .m-clean__row { flex-direction: column; align-items: stretch; gap: 8vw; }
  .m-clean__actions { justify-content: space-between; }
  .m-clean__cta { flex: 1; justify-content: center; }
  .m-clean__frame { height: 118vw; }
  .m-clean__slide img { object-position: 50% 40%; }
  .m-clean__meta { flex-direction: column; align-items: stretch; gap: 14px; }
  .m-clean__controls { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .m-clean__slide:first-child { opacity: 1; }
  .m-clean__slide img { transition: none; transform: none; }
  .m-clean__dot.is-active i { animation: none; transform: scaleX(1); }
}
