/* Слой движения шаблона направления использует токены проекта. */
/* all: unset — шрифт, размер, цвет и трекинг наследуются у родителя, остальное сбрасывается;
   так правила вида «.service-hero__title > span { display:block }» не доходят до служебных span. */
span.motion-word.motion-word {
  all: unset;
  display: inline-block;
  white-space: nowrap;
}

span.motion-char.motion-char {
  all: unset;
  display: inline-block;
}

/* Подсказка прокрутки, пока картинка крупно в центре: стиль подписей разделов проекта. */
.motion-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
  color: var(--section-label-color);
  font-family: var(--font-family-heading);
  font-size: var(--section-label-size);
  font-weight: var(--section-label-weight);
  letter-spacing: var(--section-label-tracking);
  text-transform: uppercase;
  pointer-events: none;
}

/* Крупная картинка в начале сцены должна лежать поверх текстовой колонки. */
.service-hero__visual {
  z-index: 3;
}

/* Линия-разделитель строки направления прочерчивается поверх штатной border-bottom. */
.education-service-direction.has-motion-line {
  position: relative;
  border-bottom-color: transparent;
}

.motion-row-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: rgba(21, 39, 72, .16);
  transform-origin: left center;
  pointer-events: none;
}

/* Точка пункта загорается вместе с ним: --motion-tick от 0 до 1, в покое — 1 (как в оригинале). */
.has-motion-ticks .service-detail-panel__list li::before {
  transform: scale(var(--motion-tick, 1));
}

/* Lenis сам управляет прокруткой. */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}
