/*!
 * Бизнес-форум МГУ — анимированный первый экран (hero)
 * Стили. Все классы с префиксом .bf-, глобальные стили сайта не затрагиваются.
 * Пути к шрифтам — относительно этого файла (папка fonts/ рядом).
 */

/* шрифты: Manrope, Unbounded (SIL OFL) и EB Garamond (SIL OFL, урезан до букв надписи в логотипе ЭФ) */
@font-face{font-family:'BF Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/manrope-cyrillic-500.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'BF Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/manrope-latin-500.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'BF Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/manrope-cyrillic-600.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'BF Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/manrope-latin-600.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'BF Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/manrope-cyrillic-800.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'BF Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/manrope-latin-800.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'BF Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/unbounded-cyrillic-500.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'BF Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/unbounded-latin-500.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'BF Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/unbounded-cyrillic-600.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'BF Unbounded';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/unbounded-latin-600.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'BF Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/eb-garamond-cyrillic-600-logo-subset.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'BF Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/eb-garamond-latin-600-logo-subset.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

.bf-hero{
  /* сколько прокрутки «живёт» анимация, пока экран закреплён */
  --bf-scroll: 140vh;
  /* высота фиксированной шапки сайта, если она перекрывает экран (например 72px) */
  --bf-top: 0px;
  --k: 1;
  position: relative;
  height: calc(100vh - var(--bf-top) + var(--bf-scroll));
  height: calc(100svh - var(--bf-top) + var(--bf-scroll));
  background: #010103;
  color: #fff;
  font-family: 'BF Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bf-hero *, .bf-hero *::before, .bf-hero *::after{ box-sizing: border-box; }
.bf-hero__stage{
  position: sticky; top: var(--bf-top);
  height: calc(100vh - var(--bf-top)); height: calc(100svh - var(--bf-top));
  overflow: hidden; isolation: isolate;
}
.bf-hero__bg{
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(42% 38% at 50% 46%, rgba(32, 52, 210, .20), transparent 72%),
    radial-gradient(26% 30% at 6% 64%, rgba(30, 48, 200, .16), transparent 70%),
    radial-gradient(24% 28% at 95% 36%, rgba(30, 48, 200, .14), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(18, 30, 140, .14), transparent 70%),
    radial-gradient(130% 100% at 50% 45%, #05060f 0%, #010103 72%);
}
.bf-hero.bf-js .bf-hero__bg{ opacity: 0; }
/* вспышка света за заголовком в момент, когда загорается текст */
.bf-hero__flash{
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0;
  width: 110vmax; height: 56vmax; margin: -28vmax 0 0 -55vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 110, 255, .55), rgba(40, 72, 255, .16) 52%, transparent);
  will-change: transform, opacity;
}
.bf-hero__gl{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.bf-spark{ opacity: 0; }
.bf-hero__svg{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.bf-hero__ui{ position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bf-el{ position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.bf-hero.bf-js .bf-el{ opacity: 0; }

.bf-sr{
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* статистика */
.bf-stat{ white-space: nowrap; }
.bf-stat__num{
  width: max-content;
  font: 600 max(19px, calc(var(--k) * 29px))/1 'BF Unbounded', sans-serif;
  letter-spacing: -.01em;
}
.bf-stat__label{
  font: 500 max(11px, calc(var(--k) * 13px))/1.15 'BF Unbounded', sans-serif;
  margin-top: max(5px, calc(var(--k) * 9px));
}
.bf-stat__sub{
  font: 500 max(9.5px, calc(var(--k) * 10px))/1.38 'BF Manrope', sans-serif;
  color: #c2c8d6;
  margin-top: max(4px, calc(var(--k) * 6px));
}

/* дата и место */
.bf-meta{ text-align: center; white-space: nowrap; }
.bf-date{
  display: flex; align-items: center; justify-content: center;
  gap: max(9px, calc(var(--k) * 11px));
  font: 500 max(14px, calc(var(--k) * 18.5px))/1 'BF Manrope', sans-serif;
}
.bf-date__rule{
  width: max(48px, calc(var(--k) * 86px)); height: 1px; position: relative;
  background: linear-gradient(90deg, transparent, rgba(170, 186, 255, .55));
}
.bf-date__rule--r{ background: linear-gradient(270deg, transparent, rgba(170, 186, 255, .55)); }
.bf-date__rule::after{
  content: ""; position: absolute; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 2px rgba(90, 120, 255, .9);
  transform: translateY(-50%); right: -2px;
}
.bf-date__rule--r::after{ right: auto; left: -2px; }
.bf-ico{ width: 1.25em; height: 1.25em; flex: none; display: block; }
.bf-place{
  display: flex; align-items: center; justify-content: center;
  gap: max(7px, calc(var(--k) * 9px));
  margin-top: max(10px, calc(var(--k) * 13px));
  font: 500 max(11.5px, calc(var(--k) * 14px))/1 'BF Manrope', sans-serif;
  color: #dfe3ee;
}

/* логотипы и кнопка */
.bf-logos{ display: flex; align-items: center; gap: max(22px, calc(var(--k) * 38px)); }
.bf-logos img{ display: block; height: auto; }
.bf-logo-club{ width: max(52px, calc(var(--k) * 83px)); }
/* логотип ЭФ МГУ: векторный знак «85» + надпись живым шрифтом (чёткие на любом экране) */
.bf-logo-ef{ display: flex; align-items: center; gap: .6em; font-size: max(9.5px, calc(var(--k) * 12.2px)); }
.bf-logo-ef__mark{ width: 7.4em; }
.bf-logo-ef__txt{
  font: 600 1.06em/.82 'BF Garamond', 'EB Garamond', Georgia, serif; color: #fff;
  white-space: nowrap; letter-spacing: .005em; margin-top: .08em;
}

.bf-cta{
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: max(220px, calc(var(--k) * 250px)); height: max(48px, calc(var(--k) * 50px));
  border-radius: 999px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, #142078 0%, #0a1040 55%, #070a24 100%);
  border: 1.5px solid rgba(96, 126, 255, .85);
  box-shadow: 0 0 22px rgba(55, 85, 255, .45), inset 0 0 14px rgba(70, 100, 255, .35);
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.bf-cta:hover{
  border-color: #a9b9ff;
  box-shadow: 0 0 34px rgba(70, 105, 255, .75), inset 0 0 18px rgba(90, 120, 255, .55);
}
.bf-cta__arrow{ display: inline-block; margin-left: 10px; }
.bf-cta:focus-visible{ outline: 2px solid #fff; outline-offset: 4px; }
.bf-cta__t{ font: 600 max(13px, calc(var(--k) * 13.5px))/1.1 'BF Manrope', sans-serif; }
.bf-cta__s{ font: 500 max(10px, calc(var(--k) * 10px))/1.1 'BF Manrope', sans-serif; color: #c7cde2; margin-top: 4px; }

/* мобильная / вертикальная раскладка */
.bf-hero.is-tall .bf-stat__num{ font-size: clamp(20px, 6.4vw, 30px); }
.bf-hero.is-tall .bf-stat__label{ font-size: clamp(11px, 3.3vw, 14px); margin-top: 6px; }
.bf-hero.is-tall .bf-stat__sub{ font-size: clamp(10px, 2.8vw, 12.5px); white-space: normal; max-width: 44vw; }
.bf-hero.is-tall .bf-date{ font-size: clamp(15px, 4.6vw, 20px); }
.bf-hero.is-tall .bf-date__rule{ width: clamp(28px, 11vw, 70px); }
.bf-hero.is-tall .bf-place{ font-size: clamp(12px, 3.6vw, 15px); margin-top: 11px; }
.bf-hero.is-tall .bf-logo-club{ width: clamp(42px, 12vw, 70px); }
.bf-hero.is-tall .bf-logo-ef{ font-size: clamp(8px, 2.45vw, 11.5px); }
.bf-hero.is-tall .bf-logos{ gap: clamp(16px, 6vw, 30px); }
.bf-hero.is-tall .bf-cta{ width: min(78vw, 300px); height: 52px; }

/* версия без цифр по бокам: дата крупнее */
.bf-hero.no-stats .bf-date{ font-size: max(16px, calc(var(--k) * 26px)); gap: max(10px, calc(var(--k) * 14px)); }
.bf-hero.no-stats .bf-date__rule{ width: max(56px, calc(var(--k) * 110px)); }
.bf-hero.is-tall.no-stats .bf-date{ font-size: clamp(17px, 5.4vw, 24px); }
.bf-hero.is-tall.no-stats .bf-date__rule{ width: clamp(32px, 13vw, 80px); }

/* запасной вид без WebGL */
.bf-fallback{ display: none; }
.bf-hero.no-gl .bf-fallback{
  display: block; position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%) rotate(-3deg);
  padding: .35em .9em; border-radius: 10px; white-space: nowrap;
  font: 800 clamp(26px, 6vw, 74px)/1.2 'BF Manrope', sans-serif;
  background: linear-gradient(180deg, #2a44ff, #0c1680 60%, #0a1170);
  box-shadow: 0 0 40px rgba(50, 80, 255, .6);
}

@media (prefers-reduced-motion: reduce){
  .bf-hero__flash, .bf-spark{ display: none; }
  .bf-hero{ height: calc(100vh - var(--bf-top)); height: calc(100svh - var(--bf-top)); }
  .bf-hero.bf-js .bf-el{ opacity: 1; }
}

.bf-hero{
  --bf-content-height: 0px;
  --bf-viewport-height: 100vh;
  --bf-stage-height: max(720px, calc(var(--bf-viewport-height) - var(--bf-top)), var(--bf-content-height));
  height: calc(var(--bf-stage-height) + var(--bf-scroll));
}
@layer forum-hero-mobile {
.bf-hero, .bf-hero *{ font-family: 'BF Manrope', system-ui, sans-serif !important; }
.bf-hero .bf-stat__num, .bf-hero .bf-stat__label{ font-family: 'BF Unbounded', sans-serif !important; }
.bf-hero .bf-logo-ef__txt{ font-family: 'BF Garamond', Georgia, serif !important; }
}
.bf-hero__stage{ height: var(--bf-stage-height); }
.bf-hero:not(.is-ready){ height: auto; }
.bf-hero:not(.is-ready) .bf-hero__stage{ position: absolute; left: 0; right: 0; top: 0; visibility: hidden; }
.bf-hero.is-short.is-ready{ height: var(--bf-stage-height); }
.bf-hero.is-short.is-ready .bf-hero__stage{ position: relative; top: 0; }
.bf-hero.is-ready .bf-hero__poster-fallback{ display: none; }
.bf-hero__poster-fallback{ position: relative; width: min(1320px, 100%); margin: 0 auto; text-align: center; padding-bottom: 24px; background: #010103; }
.bf-hero__poster-fallback picture, .bf-hero__poster-fallback img{ display: block; width: 100%; height: auto; }
.bf-hero__poster-cta{ display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(520px, calc(100% - 44px)); min-height: 70px; margin: 16px auto 0; border-radius: 999px; border: 1.5px solid #607eff; background: #0a1040; color: #fff; text-decoration: none; font: 600 20px/1.2 'BF Manrope', sans-serif; box-shadow: 0 0 22px #3755ff73; }
.bf-hero__poster-cta > span:last-child{ margin-top: 5px; font-size: 14px; color: #c7cde2; }
.bf-hero__poster-schedule{ color: #dfe3ee; margin: 16px 20px 0; font: 500 15px/1.4 'BF Manrope',sans-serif; }
.bf-hero .bf-cta{ width: min(520px, calc(100% - 44px)); height: 70px; }
.bf-hero .bf-cta__t{ font-size: 20px; }
.bf-hero .bf-cta__s{ font-size: 14px; margin-top: 6px; }
.bf-hero.bf-js .bf-cta{ visibility: hidden; pointer-events: none; }
.bf-schedule{ margin-top: 10px; color: #c7cde2; font: 500 max(12px, calc(var(--k) * 13px))/1.35 'BF Manrope',sans-serif; }
.bf-motion-toggle{ position: absolute; z-index: 4; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid #7c93d775; border-radius: 50%; background: #080e28d9; cursor: pointer; }
.bf-motion-toggle[hidden]{ display: none; }
.bf-motion-replay{ right: 14px; }
.bf-motion-toggle:focus-visible, .bf-hero__poster-cta:focus-visible{ outline: 2px solid #fff; outline-offset: 4px; }
.bf-motion-toggle svg{ display: block; width: 18px; height: 18px; fill: currentColor; }
.bf-motion-toggle .bf-motion-play{ display: none; }
.bf-motion-toggle[aria-pressed="true"] .bf-motion-play{ display: block; }
.bf-motion-toggle[aria-pressed="true"] .bf-motion-pause{ display: none; }
@media (max-width: 719px){
  .bf-hero{ --bf-stage-height: max(820px, calc(var(--bf-viewport-height) - var(--bf-top)), var(--bf-content-height)); }
  .bf-hero.is-tall .bf-cta{ width: calc(100% - 44px); height: 70px; }
  .bf-schedule{ font-size: 13px; }
}
/* Узкий сенсорный экран (iPhone): сцена = малое окно Safari (100svh), не ниже 540 px — кнопка заявки видна без
   прокрутки. Лента здесь не закрепляется (is-short, bf-hero.js layout), раскладка сжимается по высоте сцены.
   В низких окнах (iPhone SE ≈ 553) прячем подписи под цифрами и логотипы — оба логотипа есть ниже, в «Кто делает форум» */
@media (max-width: 719px) and (pointer: coarse){
  .bf-hero{ --bf-stage-height: max(540px, calc(var(--bf-viewport-height) - var(--bf-top)), var(--bf-content-height)); }
  .bf-hero.is-tall .bf-cta{ height: 58px; }
  .bf-hero .bf-cta__t{ font-size: 18px; }
  .bf-hero .bf-cta__s{ font-size: 13px; margin-top: 3px; }
}
@media (max-width: 719px) and (pointer: coarse) and (max-height: 620px){
  .bf-hero.is-tall .bf-stat__sub, .bf-hero.is-tall .bf-logos{ display: none; }
  .bf-hero.is-tall .bf-cta{ height: 54px; }
}
@media (prefers-reduced-motion: reduce){
  .bf-hero{ height: var(--bf-stage-height); }
  .bf-hero__stage{ position: relative; top: 0; }
  .bf-motion-toggle{ display: none; }
}

@supports (height: 100svh){
  .bf-hero{ --bf-viewport-height: 100svh; }
}
