/* Бизнес-форум МГУ, раунд 16 (19–20.10.2026): движение на странице, стрелка «листайте», плавная шапка
   и полировка вёрстки. Пара к ui-round16-20261019.js. Слой forum-round16-20261019 стоит первым в списке
   строки 4 index.html, поэтому его !important сильнее всех остальных слоёв.
   Главное движение страницы — лента на первом экране (bf-hero-source-20261018). Дальше у каждого раздела
   своё движение по смыслу его содержания, и все они разные: одинакового «подъёма» у всех блоков нет.
   Состояния «до появления» работают только под html.bf-motion: класс ставит inline-скрипт в <head>
   (кроме prefers-reduced-motion) и снимает, если JS не загрузился. */

/* Прозрачность во время движения. Часть блоков старые стили держат opacity:1!important, а !important
   перебивает анимацию — поэтому на время движения стоит opacity: var(--bf-o) !important и анимируется число */
@property --bf-o {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
/* Радиус луча прожектора над фото спикера */
@property --bf-spot {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 160%;
}
/* Положение блика на табличке партнёра: −110% — левее таблички, 110% — правее */
@property --bf-glint {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -110%;
}
/* Угол искры, которая обегает кнопку финальной заявки */
@property --bf-spark {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@layer forum-round16-20261019 {

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

  /* После перехода по якорю секция встаёт ровно под шапку — без полосы предыдущей секции */
  html body main > section[id] {
    scroll-margin-top: var(--bf-nav-h, 80px) !important;
  }

  /* Тема шапки (светлая/тёмная) меняется плавно; opacity/transform/visibility — как было */
  body.v134-past-hero .nav {
    transition: opacity .35s, transform .35s, visibility 0s, background-color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
  }

  /* Полоса под вырезом iPhone — цветом шапки. Safari 26 не читает theme-color и красит её фоном фиксированной
     шапки, но шапку с backdrop-filter пропускает — и полоса брала тёмный фон body (чёрная над светлой шапкой).
     Поэтому у шапки нет размытия, а фон сплошной (был на 94–96% непрозрачный — сквозь него проступал текст) */
  html body .nav {
    background: rgb(1, 2, 8) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html body.forum-nav-light .nav {
    background: rgb(248, 250, 252) !important;
  }

  /* Кнопка заявки в шапке прячется, пока на экране видна такая же кнопка раздела «Участие» или финальной заявки
     (класс ставит JS) — две одинаковые кнопки рядом не нужны */
  html body .nav .nav-btn.primary {
    transition: opacity .25s ease, visibility 0s, color .2s, box-shadow .2s !important;
  }
  html body.bf-apply-in-view .nav .nav-btn.primary {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .25s ease, visibility 0s linear .25s !important;
  }

  /* ---------- Меню (кнопка ≡ в шапке) ----------
     Одна кнопка открывает и закрывает меню: ≡ превращается в ×, отдельного крестика и заголовка «Навигация» нет.
     Телефон — лист под шапкой до низа экрана цветом шапки, страница под ним не листается (JS), текущий раздел отмечен.
     Компьютер — список под кнопкой только с разделами, которых нет в строке шапки (.bf-in-bar ставит JS) */
  html body {
    --bf-menu-bg: #010208;
    --bf-menu-ink: #f4f7ff;
    --bf-menu-muted: #a8b7d0;
    --bf-menu-line: rgba(120, 170, 255, .16);
    --bf-menu-hover: rgba(120, 170, 255, .1);
    --bf-menu-accent: #7fb0ff;
  }
  html body.forum-nav-light {
    --bf-menu-bg: #f8fafc;
    --bf-menu-ink: #0a1a33;
    --bf-menu-muted: #5d6a80;
    --bf-menu-line: rgba(10, 26, 51, .1);
    --bf-menu-hover: rgba(34, 81, 224, .07);
    --bf-menu-accent: #2251e0;
  }
  html body .nav .burger span {
    transition: top .3s cubic-bezier(.16, 1, .3, 1), rotate .3s cubic-bezier(.16, 1, .3, 1) !important;
  }
  html body .nav .burger[aria-expanded="true"] span {
    top: calc(50% - 1px) !important;
  }
  html body .nav .burger[aria-expanded="true"] span:first-child {
    rotate: 45deg;
  }
  html body .nav .burger[aria-expanded="true"] span:last-child {
    rotate: -45deg;
  }
  html body #menu .menu-top {
    display: none !important;
  }
  html body #menu.open {
    display: block !important;
    position: fixed !important;
    z-index: 99 !important;
    margin: 0 !important;
    color: var(--bf-menu-ink) !important;
    background: var(--bf-menu-bg) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    opacity: var(--bf-o) !important;
    transform: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    animation: none !important;
  }
  html body #menu .menu-grid > * {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--bf-menu-ink) !important;
    font: inherit;
    text-align: left !important;
    text-decoration: none !important;
    opacity: 1;
    cursor: pointer;
  }
  html body #menu .menu-grid b {
    display: block !important;
    color: inherit !important;
    font-weight: 600 !important;
  }
  html body #menu .menu-grid span {
    display: block !important;
    color: var(--bf-menu-muted) !important;
    font-weight: 400 !important;
  }
  html body #menu .menu-grid > .is-current b {
    color: var(--bf-menu-accent) !important;
  }
  html body #menu .menu-grid > .is-current b::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 10px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: .2em;
  }
  @media (max-width: 860px) {
    html body #menu.open {
      inset: var(--bf-nav-h, 68px) 0 0 0 !important;
      width: auto !important;
      height: auto !important;
      max-height: none !important;
      padding: 0 20px calc(28px + env(safe-area-inset-bottom)) !important;
      border: 0 !important;
      border-top: 1px solid var(--bf-menu-line) !important;
      border-radius: 0 !important;
      box-shadow: none !important;
    }
    html body #menu .menu-grid {
      display: flex !important;
      flex-direction: column !important;
      gap: 0 !important;
    }
    html body #menu .menu-grid > * {
      padding: 12px 0 !important;
      border-bottom: 1px solid var(--bf-menu-line) !important;
      border-radius: 0 !important;
    }
    html body #menu .menu-grid b {
      font-size: 20px !important;
      line-height: 1.2 !important;
    }
    html body #menu .menu-grid span {
      margin-top: 3px !important;
      font-size: 13px !important;
      line-height: 1.35 !important;
    }
  }
  @media (min-width: 861px) {
    html body #menu.open {
      inset: calc(var(--bf-nav-h, 80px) + 8px) var(--bf-menu-right, 20px) auto auto !important;
      width: 300px !important;
      height: auto !important;
      max-height: calc(100vh - var(--bf-nav-h, 80px) - 24px) !important;
      padding: 8px !important;
      border: 1px solid var(--bf-menu-line) !important;
      border-radius: 20px !important;
      box-shadow: 0 24px 60px -24px rgba(4, 12, 32, .45) !important;
    }
    html body.forum-nav-light #menu.open {
      background: #fff !important;
    }
    html body #menu .menu-grid {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 2px !important;
    }
    html body #menu .menu-grid > .bf-in-bar {
      display: none !important;
    }
    html body #menu .menu-grid > * {
      padding: 10px 14px !important;
      border-radius: 12px !important;
      transition: background-color .2s ease !important;
    }
    html body #menu .menu-grid > :is(:hover, :focus-visible) {
      background: var(--bf-menu-hover) !important;
    }
    html body #menu .menu-grid b {
      font-size: 15px !important;
      line-height: 1.25 !important;
    }
    html body #menu .menu-grid span {
      margin-top: 2px !important;
      font-size: 12.5px !important;
      line-height: 1.35 !important;
    }
  }

  /* Подсветка активного пункта перетекает к новому пункту каплей, как выбор вкладки в iOS (заказчик, 21.10): положение
     и ширину ведёт пружина в JS (translate, width, scale), здесь — только вид и появление */
  .nav .nav-links.bf-pill-ready {
    position: relative !important;
    isolation: isolate;
  }
  .nav .nav-links.bf-pill-ready a.v56-active {
    box-shadow: none !important;
  }
  .bf-nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 100%;
    border-radius: 999px;
    box-shadow: inset 0 6px 6px rgba(39, 154, 255, .15), inset 0 -2px 6px rgba(59, 140, 255, .5), inset 0 -2px 8px #216bff;
    opacity: 0;
    pointer-events: none;
    will-change: translate, width, scale;
    transition: opacity .25s ease;
  }
  .bf-nav-pill.is-on {
    opacity: 1;
  }
  /* Раздел, к которому перешли по ссылке с клавиатуры, получает фокус (JS), но без рамки вокруг всего раздела */
  html body .bf-jump-target:focus {
    outline: none !important;
  }

  /* ---------- Первый экран (лента bf-hero) ---------- */

  /* «О форуме» поднимается поверх закреплённой сцены, пока лента улетает (с 60% её анимации прокрутки), а не
     после неё: иначе после улёта оставался пустой тёмный экран, который приходилось долистывать (заказчик, 21.10).
     На телефоне (is-short) и при reduced motion сцена не закреплена — там ничего не меняется */
  @media (prefers-reduced-motion: no-preference) {
    html body .bf-hero.is-ready:not(.is-short) {
      margin-bottom: calc(var(--bf-scroll) * -.4) !important;
    }
  }
  /* Незакреплённая лента (телефон с окном ниже 820 px — is-short, и reduced motion) кончается на высоте сцены,
     а сцена считается по малому окну (100svh, панель Safari развёрнута). Панель Safari в iOS 26 полупрозрачная
     и висит поверх страницы ниже этого окна — сквозь неё внизу первого экрана был виден светлый верх «О форуме»
     (белая полоса, заказчик, 23.10; iPhone 17 Pro Max, симулятор iOS 26.4: полоса 74 px = большое окно минус малое,
     40, + зона полоски «домой», 34 — env(safe-area-inset-bottom) в обычном Safari 0, поэтому числом). Блок ленты
     длиннее сцены на эту величину, тёмный фон продолжается вниз; раскладку сцены (кнопку заявки) не двигаем.
     Высота, а не отступ: у сайта box-sizing: border-box. Только сенсорные экраны */
  @media (pointer: coarse) {
    html body .bf-hero.is-short.is-ready {
      height: calc(var(--bf-stage-height) + 100lvh - 100svh + max(34px, env(safe-area-inset-bottom, 0px))) !important;
    }
  }
  @media (pointer: coarse) and (prefers-reduced-motion: reduce) {
    html body .bf-hero.is-ready {
      height: calc(var(--bf-stage-height) + 100lvh - 100svh + max(34px, env(safe-area-inset-bottom, 0px))) !important;
    }
  }

  /* Стрелка «листайте» в правом нижнем углу закреплённого первого экрана, по центру высоты кнопки заявки,
     чуть меньше её (0,82 высоты) и в её стиле. Положение (--bf-cta-top), высоту (--bf-cta-h) и прозрачность JS копирует
     с кнопки: стрелка появляется после интро ленты и гаснет вместе с кнопкой, как только начали листать.
     Стрелка раз за разом уходит вниз за край круга и возвращается сверху (bf-drop).
     Только десктоп с мышью: на телефоне листать и так естественно */
  .bf-scroll-cue {
    display: none;
  }
  @media (min-width: 1001px) and (pointer: fine) {
    .bf-scroll-cue {
      --bf-cue: calc(var(--bf-cta-h, 70px) * .82);
      position: absolute;
      top: calc(var(--bf-cta-top, 100% - 86px) + (var(--bf-cta-h, 70px) - var(--bf-cue)) / 2);
      right: 14px;
      z-index: 4;
      display: grid;
      place-items: center;
      width: var(--bf-cue);
      height: var(--bf-cue);
      overflow: hidden;
      border: 1.5px solid rgba(96, 126, 255, .85);
      border-radius: 50%;
      background: radial-gradient(120% 140% at 50% 0%, #142078 0%, #0a1040 55%, #070a24 100%);
      box-shadow: 0 0 22px rgba(55, 85, 255, .45), inset 0 0 14px rgba(70, 100, 255, .35), inset 0 1px 0 rgba(200, 212, 255, .16);
      color: #fff !important;
      transition: border-color .3s ease, box-shadow .3s ease;
    }
    .bf-scroll-cue svg {
      width: 23px;
      height: 23px;
    }
    .bf-scroll-cue:hover {
      border-color: #a9b9ff;
      box-shadow: 0 0 34px rgba(70, 105, 255, .75), inset 0 0 18px rgba(90, 120, 255, .55), inset 0 1px 0 rgba(200, 212, 255, .22);
    }
    .bf-scroll-cue:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 4px;
    }
  }

  /* ---------- Движение по разделам ----------
     data-bf-reveal (вид движения) ставит JS, .bf-in — когда блок на 15% вошёл в экран, .bf-done — когда
     движение закончилось (анимация снимается). Состояния «до» — только под html.bf-motion */

  /* Текст: в разделе двигается что-то одно — заголовок движется, только если содержимое раздела стоит на месте;
     подзаголовки и основной текст не движутся. Заголовок JS на время движения делит на слова
     (.bf-word, --bf-w — задержка слова), потом возвращает исходный текст */
  .bf-motion .bf-word {
    display: inline-block;
  }

  /* words — финальный призыв «Станьте участником…»: слова по одному поднимаются из-под линии с лёгким наклоном,
     следом проявляется строка под заголовком, потом по кнопке пробегает искра (spark) */
  .bf-motion [data-bf-reveal="words"]:not(.bf-in) .bf-word {
    clip-path: inset(0 0 100% 0);
  }
  .bf-motion [data-bf-reveal="words"].bf-in:not(.bf-done) .bf-word {
    transform-origin: 0 100%;
    animation: bf-word .8s cubic-bezier(.2, .7, .2, 1) calc(var(--bf-delay, 0ms) + var(--bf-w, 0ms)) backwards;
  }
  .bf-motion [data-bf-reveal="words"]:not(.bf-in) + [data-bf-lead] {
    --bf-o: 0;
    opacity: var(--bf-o) !important;
  }
  .bf-motion [data-bf-reveal="words"].bf-in:not(.bf-done) + [data-bf-lead] {
    opacity: var(--bf-o) !important;
    animation: bf-lead .7s ease-out var(--bf-lead-delay, 0ms) backwards;
  }

  /* ignite — «Как стать участником» (тёмный раздел без своего движения): слова по одному зажигаются
     из полутьмы с голубой вспышкой, как свет ленты. В «Кто делает форум» заголовок стоит на месте —
     там движутся логотипы организаторов (meet) */
  .bf-motion [data-bf-reveal="ignite"]:not(.bf-in) .bf-word {
    opacity: .14;
  }
  .bf-motion [data-bf-reveal="ignite"].bf-in:not(.bf-done) .bf-word {
    animation: bf-ignite 1.1s ease-out calc(var(--bf-delay, 0ms) + var(--bf-w, 0ms)) backwards;
  }

  /* flip — «Знания», «Знакомства и связи»… переворачиваются по очереди, как таблички на табло */
  .bf-motion .mrg-facts {
    perspective: 900px;
  }
  .bf-motion [data-bf-reveal="flip"]:not(.bf-in) {
    --bf-o: 0;
    opacity: var(--bf-o) !important;
  }
  .bf-motion [data-bf-reveal="flip"].bf-in:not(.bf-done) {
    opacity: var(--bf-o) !important;
    transform-origin: 50% 0;
    animation: bf-flip 1s cubic-bezier(.2, .75, .25, 1.12) var(--bf-delay, 0ms) backwards;
  }

  /* windup — треки мастер-классов: значок раскручивается и встаёт на место, как заведённый */
  .bf-motion [data-bf-reveal="windup"]:not(.bf-in) .forum-decor {
    opacity: 0;
  }
  .bf-motion [data-bf-reveal="windup"].bf-in:not(.bf-done) .forum-decor {
    animation: bf-windup 1.1s cubic-bezier(.3, .7, .3, 1) calc(var(--bf-delay, 0ms) + .15s) backwards;
  }

  /* spotlight — спикер главной сцены: луч прожектора раскрывает фото от лица, следом проявляется подпись */
  .bf-motion [data-bf-reveal="spotlight"]:not(.bf-done) .v137-feat-photo {
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 var(--bf-spot), transparent calc(var(--bf-spot) + 28%));
    mask-image: radial-gradient(circle at 50% 38%, #000 var(--bf-spot), transparent calc(var(--bf-spot) + 28%));
  }
  .bf-motion [data-bf-reveal="spotlight"]:not(.bf-in) .v137-feat-photo {
    --bf-spot: -30%;
  }
  .bf-motion [data-bf-reveal="spotlight"]:not(.bf-in) .v137-feat-copy {
    --bf-o: 0;
    opacity: var(--bf-o) !important;
  }
  .bf-motion [data-bf-reveal="spotlight"].bf-in:not(.bf-done) .v137-feat-photo {
    animation: bf-spotlight 1.3s cubic-bezier(.45, 0, .2, 1) var(--bf-delay, 0ms) backwards;
  }
  .bf-motion [data-bf-reveal="spotlight"].bf-in:not(.bf-done) .v137-feat-copy {
    opacity: var(--bf-o) !important;
    animation: bf-fade .8s ease-out calc(var(--bf-delay, 0ms) + .65s) backwards;
  }

  /* glint — партнёры: по табличкам с логотипами пробегает блик, по очереди внутри уровня. Это единственное
     движение раздела «Партнёры» вместе с его хвостом «Стать партнёром форума»: стрелка у Telegram стоит на месте (21.10).
     ::after табличек старые слои держат !important: ui-refinement прячет его (display/content: none),
     ui-sergey рисует в нём стрелку ↗. Поэтому здесь полный набор с !important, а сдвиг блика — через
     зарегистрированное число --bf-glint (анимация !important не перебивает, а число — может).
     В покое блик стоит левее таблички и обрезан её overflow: hidden */
  html body #partners .v137-plink {
    overflow: hidden !important;
  }
  html body #partners .v137-plink::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: linear-gradient(105deg, transparent 30%, rgba(80, 130, 255, .1) 44%, rgba(80, 130, 255, .24) 50%, rgba(80, 130, 255, .1) 56%, transparent 70%) !important;
    box-shadow: none !important;
    opacity: var(--bf-glint-a, 1) !important;
    z-index: 2 !important;
    transform: none !important;
    translate: var(--bf-glint, -110%) 0 !important;
    pointer-events: none !important;
  }
  /* Блик по рангу партнёра (заказчик, 22.10): у генерального — в полную силу, дальше по уровню тише,
     у информационных — едва заметен */
  html body #partners .v138-tier--official {
    --bf-glint-a: .6;
  }
  html body #partners .v138-tier--cross {
    --bf-glint-a: .38;
  }
  html body #partners .v138-tier--info {
    --bf-glint-a: .14;
  }
  .bf-motion #partners [data-bf-reveal="glint"].bf-in:not(.bf-done)::after {
    animation: bf-glint 1.1s cubic-bezier(.4, 0, .2, 1) calc(var(--bf-delay, 0ms) + .1s);
  }

  /* count — цифры прошлых форумов досчитывают до итога (только текст, это делает JS) */

  /* meet — организаторы (раздел «Кто делает форум»): Бизнес-клуб и Экономфак сходятся навстречу друг другу */
  .bf-motion [data-bf-reveal="meet"]:not(.bf-in) > * {
    --bf-o: 0;
    opacity: var(--bf-o) !important;
  }
  .bf-motion [data-bf-reveal="meet"].bf-in:not(.bf-done) > * {
    opacity: var(--bf-o) !important;
    animation: bf-meet-left 1.1s cubic-bezier(.2, .8, .2, 1) var(--bf-delay, 0ms) backwards;
  }
  .bf-motion [data-bf-reveal="meet"].bf-in:not(.bf-done) > :last-child {
    animation-name: bf-meet-right;
  }

  /* spark — по кнопке финальной заявки пробегает искра, как по ленте на первом экране.
     Один раз при появлении и снова при наведении */
  .v141-registration-button {
    position: relative;
  }
  .v141-registration-button::after {
    content: "";
    position: absolute;
    inset: -4px;
    padding: 3px;
    border-radius: inherit;
    background: conic-gradient(from var(--bf-spark), transparent 0deg 250deg, rgba(127, 166, 255, .3) 300deg, #8fb2ff 340deg, #fff 354deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 8px rgba(150, 185, 255, .95));
    opacity: 0;
    pointer-events: none;
  }
  .bf-motion [data-bf-reveal="spark"].bf-in:not(.bf-done) .v141-registration-button::after {
    animation: bf-spark 1.7s cubic-bezier(.45, 0, .25, 1) calc(var(--bf-delay, 0ms) + .25s);
  }

  /* ---------- Наведение (только мышь) ---------- */

  /* Подъём — только у карточек, на которые можно нажать: открывают окно или фото, раскрываются, ведут по ссылке */
  @media (hover: hover) and (pointer: fine) {
    :is(.v136-f, .route-card, .v137-plink, .ui-history-photo, .v140-organizer-link) {
      transition: box-shadow .3s ease, translate .5s cubic-bezier(.16, 1, .3, 1) !important;
    }
    :is(.v136-f, .route-card, .v137-plink, .ui-history-photo, .v140-organizer-link):hover {
      translate: 0 -4px;
    }
    :is(.ui-selection-cta, .v141-registration-button, .v137-coop-tg) > span[aria-hidden="true"] {
      display: inline-block !important;
      transition: translate .35s cubic-bezier(.16, 1, .3, 1);
    }
    :is(.ui-selection-cta, .v141-registration-button):hover > span[aria-hidden="true"] {
      translate: 4px 0;
    }
    .v137-coop-tg:hover > span[aria-hidden="true"] {
      translate: 2px -2px;
    }
  }

  /* ---------- Полировка вёрстки ---------- */

  /* Последняя карточка команды, если она одна в ряду, — по центру, а не прижата влево */
  @media (max-width: 1199px) {
    #people .team-leads > .team-card:last-child:nth-child(3n + 1) {
      grid-column: 2 !important;
    }
  }
  @media (min-width: 1200px) {
    #people .team-leads > .team-card:last-child:nth-child(6n + 1) {
      grid-column: 3 / span 2 !important;
      justify-self: center;
      width: calc(50% - 6px) !important;
    }
  }

  /* Планшет: три фото «Как это было» в один ряд (было 2 + 1 одинокое во втором ряду),
     треки — столбиком (в три колонки текст зажимало иконкой), подвал — в две строки */
  @media (min-width: 681px) and (max-width: 1000px) {
    #past-forum .ui-history-photos {
      grid-template-rows: auto !important;
    }
    #past-forum .ui-history-photos > :first-child {
      grid-column: auto !important;
      grid-row: auto !important;
    }
    #routes .route-stack {
      grid-template-columns: 1fr !important;
    }
    #routes .route-card {
      height: auto !important;
      min-height: 116px !important;
    }
    .footer .footer-line {
      flex-wrap: wrap !important;
      row-gap: 10px !important;
    }
    .footer .footer-line > span:first-child {
      white-space: nowrap;
    }
    .footer .footer-line > span:nth-child(2) {
      order: 3;
      flex-basis: 100% !important;
    }
  }

  /* Ровные переносы: заголовки без «висящего» слова в последней строке */
  :is(main, dialog) :is(h2, h3) {
    text-wrap: balance;
  }
  :is(main, dialog, .footer) p {
    text-wrap: pretty;
  }

  /* ---------- Бесконечные анимации — только без prefers-reduced-motion ---------- */

  @media (prefers-reduced-motion: no-preference) {
    .bf-scroll-cue svg {
      animation: bf-drop 2.6s cubic-bezier(.45, 0, .25, 1) infinite;
    }
    @media (hover: hover) and (pointer: fine) {
      .v141-registration-button:hover::after {
        animation: bf-spark 1.3s cubic-bezier(.45, 0, .25, 1);
      }
    }
    /* Меню: лист (список) проявляется, чуть съезжая сверху, пункты выезжают по очереди — --bf-i ставит JS */
    html body #menu.open {
      animation: bf-menu-in .32s cubic-bezier(.16, 1, .3, 1) !important;
    }
    #menu.open .menu-grid > * {
      animation: bf-rise .6s cubic-bezier(.16, 1, .3, 1) calc(.05s + var(--bf-i, 0) * .035s) backwards;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .bf-nav-pill,
    body.v134-past-hero .nav {
      transition-duration: 0s !important;
    }
  }

  @keyframes bf-rise {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes bf-menu-in {
    from { --bf-o: 0; translate: 0 -8px; }
    to { --bf-o: 1; translate: 0 0; }
  }
  @keyframes bf-drop {
    0% { translate: 0 -18px; opacity: 0; }
    28%, 64% { translate: 0 0; opacity: 1; }
    100% { translate: 0 18px; opacity: 0; }
  }
  /* Сдвиг и обрезка — на одну и ту же высоту слова: нижний край видимой части стоит на месте, как линия */
  @keyframes bf-word {
    from { clip-path: inset(0 0 100% 0); translate: 0 100%; rotate: 4deg; }
    to { clip-path: inset(-.2em -.2em -.35em -.2em); translate: 0 0; rotate: 0deg; }
  }
  @keyframes bf-lead {
    from { --bf-o: 0; translate: 0 .5em; }
    to { --bf-o: 1; translate: 0 0; }
  }
  @keyframes bf-ignite {
    from { opacity: .14; text-shadow: 0 0 0 rgba(130, 165, 255, 0), 0 0 0 rgba(70, 105, 255, 0); }
    28% { opacity: 1; text-shadow: 0 0 .35em rgba(130, 165, 255, .95), 0 0 1.1em rgba(70, 105, 255, .55); }
    to { opacity: 1; text-shadow: 0 0 0 rgba(130, 165, 255, 0), 0 0 0 rgba(70, 105, 255, 0); }
  }
  @keyframes bf-flip {
    from { rotate: x -88deg; --bf-o: 0; }
    30% { --bf-o: 1; }
    to { rotate: x 0deg; --bf-o: 1; }
  }
  @keyframes bf-windup {
    from { rotate: -240deg; scale: .2; opacity: 0; }
    65% { rotate: 14deg; scale: 1.12; opacity: 1; }
    to { rotate: 0deg; scale: 1; opacity: 1; }
  }
  @keyframes bf-spotlight {
    from { --bf-spot: -30%; }
    to { --bf-spot: 160%; }
  }
  @keyframes bf-fade {
    from { --bf-o: 0; }
    to { --bf-o: 1; }
  }
  @keyframes bf-glint {
    from { --bf-glint: -110%; }
    to { --bf-glint: 110%; }
  }
  @keyframes bf-meet-left {
    from { translate: -16% 0; --bf-o: 0; }
    to { translate: 0 0; --bf-o: 1; }
  }
  @keyframes bf-meet-right {
    from { translate: 16% 0; --bf-o: 0; }
    to { translate: 0 0; --bf-o: 1; }
  }
  @keyframes bf-spark {
    0% { --bf-spark: 0deg; opacity: 0; }
    12% { opacity: 1; }
    80% { opacity: 1; }
    100% { --bf-spark: 360deg; opacity: 0; }
  }
}
