/* [FBM] CARDS — первый экран: краевые ленты и блик, перенесены с ленда [FBM] AGENCY
   (тот же механизм, палитра бренда карточек: лайм #83DA4E, зелёный #41B856, бирюза #54ACB8,
   тёплый жёлтый блик). Видео-фон первого экрана заменён этими лентами. */
.hero{overflow:visible}
.hero-bg{display:none}
.edge-wrap{
  position:absolute;top:0;left:0;right:0;height:calc(var(--hero-h,100vh) + 140px);z-index:1;pointer-events:none;overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(var(--hero-h,100vh) - 80px),transparent 100%);
          mask-image:linear-gradient(to bottom,#000 calc(var(--hero-h,100vh) - 80px),transparent 100%);
}
.edge-glow{
  position:absolute;top:0;bottom:0;width:360px;z-index:1;pointer-events:none;overflow:hidden;
  /* форма: широкие мягкие эллипсы у верха и низа + узкая полоска в середине,
     маски складываются (add) — без чётких столбов, края расплывчатые */
}
.edge-glow--l{left:0;-webkit-mask-image:radial-gradient(ellipse 100% 58% at 0% 100%,#000 0,rgba(0,0,0,.7) 45%,rgba(0,0,0,.2) 78%,transparent 100%),radial-gradient(ellipse 80% 40% at 0% 0%,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 45%,rgba(0,0,0,.15) 78%,transparent 100%),linear-gradient(to right,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 10%,rgba(0,0,0,.15) 22%,transparent 34%);mask-image:radial-gradient(ellipse 100% 58% at 0% 100%,#000 0,rgba(0,0,0,.7) 45%,rgba(0,0,0,.2) 78%,transparent 100%),radial-gradient(ellipse 80% 40% at 0% 0%,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 45%,rgba(0,0,0,.15) 78%,transparent 100%),linear-gradient(to right,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 10%,rgba(0,0,0,.15) 22%,transparent 34%)}
.edge-glow--r{right:0;-webkit-mask-image:radial-gradient(ellipse 100% 58% at 100% 100%,#000 0,rgba(0,0,0,.7) 45%,rgba(0,0,0,.2) 78%,transparent 100%),radial-gradient(ellipse 80% 40% at 100% 0%,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 45%,rgba(0,0,0,.15) 78%,transparent 100%),linear-gradient(to left,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 10%,rgba(0,0,0,.15) 22%,transparent 34%);mask-image:radial-gradient(ellipse 100% 58% at 100% 100%,#000 0,rgba(0,0,0,.7) 45%,rgba(0,0,0,.2) 78%,transparent 100%),radial-gradient(ellipse 80% 40% at 100% 0%,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 45%,rgba(0,0,0,.15) 78%,transparent 100%),linear-gradient(to left,rgba(0,0,0,.9) 0,rgba(0,0,0,.55) 10%,rgba(0,0,0,.15) 22%,transparent 34%)}
/* ленты: узкие вертикальные потоки разных цветов, длинные плавные переходы, свой темп и своё
   покачивание у каждой — ленты перекрещиваются и смешиваются, без пятен */
.edge-glow i{
  position:absolute;top:-80px;bottom:-80px;
  filter:blur(22px);will-change:background-position,transform;
  background-repeat:repeat-y;
}
.edge-glow i:nth-of-type(1){
  left:-10px;width:80px;opacity:.85;
  background-image:linear-gradient(to top,rgba(65,184,86,0.74) 0%,rgba(255,255,255,.7) 30%,rgba(131,218,78,0.68) 55%,rgba(255,255,255,.7) 80%,rgba(65,184,86,0.74) 100%);
  background-size:100% 170vh;
  animation:rb-flow-1 11s linear infinite,rb-sway-1 7s ease-in-out infinite alternate;
}
.edge-glow i:nth-of-type(2){
  left:34px;width:56px;opacity:.75;mix-blend-mode:multiply;
  background-image:linear-gradient(to top,rgba(84,172,184,0.68) 0%,rgba(255,255,255,.6) 35%,rgba(255,210,70,0.61) 60%,rgba(255,255,255,.6) 82%,rgba(84,172,184,0.68) 100%);
  background-size:100% 135vh;
  animation:rb-flow-2 8.5s linear infinite,rb-sway-2 9s ease-in-out infinite alternate-reverse;
}
.edge-glow i:nth-of-type(3){
  left:66px;width:64px;opacity:.7;
  background-image:linear-gradient(to top,rgba(60,190,200,0.68) 0%,rgba(255,255,255,.7) 28%,rgba(33,160,56,0.61) 52%,rgba(255,250,215,0.94) 76%,rgba(60,190,200,0.68) 100%);
  background-size:100% 115vh;
  animation:rb-flow-3 13s linear infinite,rb-sway-3 6s ease-in-out infinite alternate;
}
.edge-glow i:nth-of-type(4){
  left:14px;width:44px;opacity:.6;mix-blend-mode:screen;filter:blur(16px);
  background-image:linear-gradient(to top,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,0) 100%);
  background-size:100% 90vh;
  animation:rb-flow-4 6s linear infinite,rb-sway-4 8s ease-in-out infinite alternate-reverse;
}
.edge-glow i:nth-of-type(5){
  left:96px;width:54px;opacity:.65;mix-blend-mode:multiply;
  background-image:linear-gradient(to top,rgba(110,205,70,0.68) 0%,rgba(255,255,255,.6) 33%,rgba(84,172,184,0.61) 62%,rgba(255,255,255,.6) 86%,rgba(110,205,70,0.68) 100%);
  background-size:100% 150vh;
  animation:rb-flow-5 9.5s linear infinite,rb-sway-5 10s ease-in-out infinite alternate;
}
/* правая полоса: те же ленты, отсчёт от правого края (без зеркалирования — маска и ленты в одной системе) */
.edge-glow i:nth-of-type(6){
  left:150px;width:76px;opacity:.7;
  background-image:linear-gradient(to top,rgba(131,218,78,0.68) 0%,rgba(255,255,255,.7) 32%,rgba(84,172,184,0.61) 58%,rgba(255,255,255,.7) 84%,rgba(131,218,78,0.68) 100%);
  background-size:100% 145vh;
  animation:rb-flow-2 10s linear infinite,rb-sway-2 8s ease-in-out infinite alternate;
}
.edge-glow i:nth-of-type(7){
  left:212px;width:64px;opacity:.65;mix-blend-mode:multiply;
  background-image:linear-gradient(to top,rgba(60,190,200,0.68) 0%,rgba(255,255,255,.65) 30%,rgba(255,210,70,0.54) 55%,rgba(255,255,255,.65) 80%,rgba(60,190,200,0.68) 100%);
  background-size:100% 125vh;
  animation:rb-flow-3 12s linear infinite,rb-sway-5 9s ease-in-out infinite alternate-reverse;
}
.edge-glow i:nth-of-type(8){
  left:272px;width:70px;opacity:.6;
  background-image:linear-gradient(to top,rgba(65,184,86,0.68) 0%,rgba(255,255,255,.7) 35%,rgba(110,205,70,0.61) 62%,rgba(255,255,255,.7) 86%,rgba(65,184,86,0.68) 100%);
  background-size:100% 160vh;
  animation:rb-flow-1 13s linear infinite,rb-sway-1 11s ease-in-out infinite alternate-reverse;
}
.edge-glow--r i:nth-of-type(6){left:auto;right:150px;animation-delay:-3s,-4s}
.edge-glow--r i:nth-of-type(7){left:auto;right:212px;animation-delay:-6s,-2s}
.edge-glow--r i:nth-of-type(8){left:auto;right:272px;animation-delay:-5s,-6s}
.edge-glow--r i:nth-of-type(1){left:auto;right:-10px}
.edge-glow--r i:nth-of-type(2){left:auto;right:34px}
.edge-glow--r i:nth-of-type(3){left:auto;right:66px}
.edge-glow--r i:nth-of-type(4){left:auto;right:14px}
.edge-glow--r i:nth-of-type(5){left:auto;right:96px}
.edge-glow--r i:nth-of-type(1){animation-delay:-5s,-3s}
.edge-glow--r i:nth-of-type(2){animation-delay:-2s,-6s}
.edge-glow--r i:nth-of-type(3){animation-delay:-7s,-2s}
.edge-glow--r i:nth-of-type(4){animation-delay:-3s,-4s}
.edge-glow--r i:nth-of-type(5){animation-delay:-4s,-7s}
@keyframes rb-flow-1{from{background-position:0 0}to{background-position:0 -170vh}}
@keyframes rb-flow-2{from{background-position:0 0}to{background-position:0 -135vh}}
@keyframes rb-flow-3{from{background-position:0 0}to{background-position:0 -115vh}}
@keyframes rb-flow-4{from{background-position:0 0}to{background-position:0 -90vh}}
@keyframes rb-flow-5{from{background-position:0 0}to{background-position:0 -150vh}}
@keyframes rb-sway-1{from{transform:translateX(-16px)}to{transform:translateX(22px)}}
@keyframes rb-sway-2{from{transform:translateX(24px)}to{transform:translateX(-30px)}}
@keyframes rb-sway-3{from{transform:translateX(-28px) skewY(-1.5deg)}to{transform:translateX(18px) skewY(1.5deg)}}
@keyframes rb-sway-4{from{transform:translateX(-12px)}to{transform:translateX(34px)}}
@keyframes rb-sway-5{from{transform:translateX(20px)}to{transform:translateX(-26px)}}
/* ---------- нижние «плечи» (зеркальные Г): горизонтальные ленты от центра к углам ----------
   форма — пересечение трёх мягких масок: у угла жирнее, к середине тоньше и сходит на нет */
.edge-glow--bl,.edge-glow--br{
  top:auto;bottom:30px;height:190px;width:44vw;
  -webkit-mask-composite:source-in;mask-composite:intersect;
}
.edge-glow--bl{left:0;-webkit-mask-image:linear-gradient(to right,#000 0,rgba(0,0,0,.85) 28%,rgba(0,0,0,.35) 60%,transparent 100%),linear-gradient(to top,transparent 0,rgba(0,0,0,.9) 24%,rgba(0,0,0,.75) 55%,rgba(0,0,0,.2) 82%,transparent 100%),radial-gradient(ellipse 130% 170% at 0% 100%,#000 0,rgba(0,0,0,.8) 35%,rgba(0,0,0,.3) 65%,transparent 100%);mask-image:linear-gradient(to right,#000 0,rgba(0,0,0,.85) 28%,rgba(0,0,0,.35) 60%,transparent 100%),linear-gradient(to top,transparent 0,rgba(0,0,0,.9) 24%,rgba(0,0,0,.75) 55%,rgba(0,0,0,.2) 82%,transparent 100%),radial-gradient(ellipse 130% 170% at 0% 100%,#000 0,rgba(0,0,0,.8) 35%,rgba(0,0,0,.3) 65%,transparent 100%)}
.edge-glow--br{right:0;-webkit-mask-image:linear-gradient(to left,#000 0,rgba(0,0,0,.85) 28%,rgba(0,0,0,.35) 60%,transparent 100%),linear-gradient(to top,transparent 0,rgba(0,0,0,.9) 24%,rgba(0,0,0,.75) 55%,rgba(0,0,0,.2) 82%,transparent 100%),radial-gradient(ellipse 130% 170% at 100% 100%,#000 0,rgba(0,0,0,.8) 35%,rgba(0,0,0,.3) 65%,transparent 100%);mask-image:linear-gradient(to left,#000 0,rgba(0,0,0,.85) 28%,rgba(0,0,0,.35) 60%,transparent 100%),linear-gradient(to top,transparent 0,rgba(0,0,0,.9) 24%,rgba(0,0,0,.75) 55%,rgba(0,0,0,.2) 82%,transparent 100%),radial-gradient(ellipse 130% 170% at 100% 100%,#000 0,rgba(0,0,0,.8) 35%,rgba(0,0,0,.3) 65%,transparent 100%)}
.edge-glow--bl i,.edge-glow--br i{
  top:auto;bottom:auto;left:-80px;right:-80px;width:auto;
  background-repeat:repeat-x;
}
.edge-glow--bl i:nth-of-type(1),.edge-glow--br i:nth-of-type(1){top:auto;left:-80px;right:-80px;width:auto;filter:blur(22px);bottom:38px;height:60px;opacity:.85;background-size:120vw 100%;animation:hb-flow-1 12s linear infinite,hb-sway-1 7s ease-in-out infinite alternate}
.edge-glow--bl i:nth-of-type(2),.edge-glow--br i:nth-of-type(2){top:auto;left:-80px;right:-80px;width:auto;filter:blur(22px);bottom:66px;height:42px;opacity:.75;mix-blend-mode:multiply;background-size:95vw 100%;animation:hb-flow-2 9s linear infinite,hb-sway-2 9s ease-in-out infinite alternate-reverse}
.edge-glow--bl i:nth-of-type(3),.edge-glow--br i:nth-of-type(3){top:auto;left:-80px;right:-80px;width:auto;filter:blur(22px);bottom:84px;height:46px;opacity:.7;background-size:80vw 100%;animation:hb-flow-3 14s linear infinite,hb-sway-3 6s ease-in-out infinite alternate}
.edge-glow--bl i:nth-of-type(4),.edge-glow--br i:nth-of-type(4){top:auto;left:-80px;right:-80px;width:auto;bottom:56px;height:34px;opacity:.6;mix-blend-mode:screen;filter:blur(14px);background-size:60vw 100%;animation:hb-flow-4 6.5s linear infinite,hb-sway-4 8s ease-in-out infinite alternate-reverse}
.edge-glow--bl i:nth-of-type(5),.edge-glow--br i:nth-of-type(5){top:auto;left:-80px;right:-80px;width:auto;filter:blur(22px);bottom:100px;height:40px;opacity:.65;mix-blend-mode:multiply;background-size:105vw 100%;animation:hb-flow-5 10s linear infinite,hb-sway-5 10s ease-in-out infinite alternate}
/* цвета те же, что у вертикальных лент; слева поток к левому углу, справа — к правому */
.edge-glow--bl i:nth-of-type(1){background-image:linear-gradient(to left,rgba(65,184,86,0.74) 0%,rgba(255,255,255,.7) 30%,rgba(131,218,78,0.68) 55%,rgba(255,255,255,.7) 80%,rgba(65,184,86,0.74) 100%)}
.edge-glow--br i:nth-of-type(1){background-image:linear-gradient(to right,rgba(65,184,86,0.74) 0%,rgba(255,255,255,.7) 30%,rgba(131,218,78,0.68) 55%,rgba(255,255,255,.7) 80%,rgba(65,184,86,0.74) 100%)}
.edge-glow--bl i:nth-of-type(2){background-image:linear-gradient(to left,rgba(84,172,184,0.68) 0%,rgba(255,255,255,.6) 35%,rgba(255,210,70,0.61) 60%,rgba(255,255,255,.6) 82%,rgba(84,172,184,0.68) 100%)}
.edge-glow--br i:nth-of-type(2){background-image:linear-gradient(to right,rgba(84,172,184,0.68) 0%,rgba(255,255,255,.6) 35%,rgba(255,210,70,0.61) 60%,rgba(255,255,255,.6) 82%,rgba(84,172,184,0.68) 100%)}
.edge-glow--bl i:nth-of-type(3){background-image:linear-gradient(to left,rgba(60,190,200,0.68) 0%,rgba(255,255,255,.7) 28%,rgba(33,160,56,0.61) 52%,rgba(255,250,215,0.94) 76%,rgba(60,190,200,0.68) 100%)}
.edge-glow--br i:nth-of-type(3){background-image:linear-gradient(to right,rgba(60,190,200,0.68) 0%,rgba(255,255,255,.7) 28%,rgba(33,160,56,0.61) 52%,rgba(255,250,215,0.94) 76%,rgba(60,190,200,0.68) 100%)}
.edge-glow--bl i:nth-of-type(4),.edge-glow--br i:nth-of-type(4){background-image:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,0) 100%)}
.edge-glow--bl i:nth-of-type(5){background-image:linear-gradient(to left,rgba(110,205,70,0.68) 0%,rgba(255,255,255,.6) 33%,rgba(84,172,184,0.61) 62%,rgba(255,255,255,.6) 86%,rgba(110,205,70,0.68) 100%)}
.edge-glow--br i:nth-of-type(5){background-image:linear-gradient(to right,rgba(110,205,70,0.68) 0%,rgba(255,255,255,.6) 33%,rgba(84,172,184,0.61) 62%,rgba(255,255,255,.6) 86%,rgba(110,205,70,0.68) 100%)}
.edge-glow--br i{animation-direction:reverse,alternate}
.edge-glow--br i:nth-of-type(2),.edge-glow--br i:nth-of-type(4){animation-direction:reverse,alternate-reverse}
.edge-glow--br i:nth-of-type(1){animation-delay:-4s,-2s}
.edge-glow--br i:nth-of-type(3){animation-delay:-6s,-3s}
.edge-glow--br i:nth-of-type(5){animation-delay:-3s,-5s}
@keyframes hb-flow-1{from{background-position:0 0}to{background-position:-120vw 0}}
@keyframes hb-flow-2{from{background-position:0 0}to{background-position:-95vw 0}}
@keyframes hb-flow-3{from{background-position:0 0}to{background-position:-80vw 0}}
@keyframes hb-flow-4{from{background-position:0 0}to{background-position:-60vw 0}}
@keyframes hb-flow-5{from{background-position:0 0}to{background-position:-105vw 0}}
@keyframes hb-sway-1{from{transform:translateY(-8px)}to{transform:translateY(10px)}}
@keyframes hb-sway-2{from{transform:translateY(12px)}to{transform:translateY(-12px)}}
@keyframes hb-sway-3{from{transform:translateY(-12px) skewX(-1.5deg)}to{transform:translateY(8px) skewX(1.5deg)}}
@keyframes hb-sway-4{from{transform:translateY(-6px)}to{transform:translateY(14px)}}
@keyframes hb-sway-5{from{transform:translateY(10px)}to{transform:translateY(-12px)}}
@media(max-width:767px){.edge-glow--bl i:nth-of-type(n),.edge-glow--br i:nth-of-type(n){filter:blur(14px)}}
@media(max-width:767px){
  /* мобильные: боковые полосы тоньше и начинаются ниже заголовка, растворяясь сверху */
  .edge-glow--l,.edge-glow--r{width:72px;top:40vh}
  .edge-glow--l{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 70%,transparent 100%),linear-gradient(to right,#000 0,rgba(0,0,0,.6) 45%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 70%,transparent 100%),linear-gradient(to right,#000 0,rgba(0,0,0,.6) 45%,transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect}
  .edge-glow--r{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 70%,transparent 100%),linear-gradient(to left,#000 0,rgba(0,0,0,.6) 45%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 22%,#000 70%,transparent 100%),linear-gradient(to left,#000 0,rgba(0,0,0,.6) 45%,transparent 100%);-webkit-mask-composite:source-in;mask-composite:intersect}
  .edge-glow i{filter:blur(12px)}
  .edge-glow--l i:nth-of-type(1){left:-8px;width:40px}
  .edge-glow--l i:nth-of-type(2){left:14px;width:28px}
  .edge-glow--l i:nth-of-type(3){left:30px;width:30px}
  .edge-glow--l i:nth-of-type(4){left:4px;width:22px;filter:blur(10px)}
  .edge-glow--r i:nth-of-type(1){right:-8px;width:40px}
  .edge-glow--r i:nth-of-type(2){right:14px;width:28px}
  .edge-glow--r i:nth-of-type(3){right:30px;width:30px}
  .edge-glow--r i:nth-of-type(4){right:4px;width:22px;filter:blur(10px)}
  .edge-glow--l i:nth-of-type(n+5),.edge-glow--r i:nth-of-type(n+5){display:none}
  /* нижние плечи короче и ниже */
  .edge-glow--bl,.edge-glow--br{width:46vw;transform:scaleY(.6);transform-origin:bottom}
}
@media(prefers-reduced-motion:reduce){.edge-glow i{animation:none}}

/* блик по краевым лентам: градиент статичный, движение задаёт v2.js (Web Animations) */
.edge-shine{
  position:absolute;inset:-60px;z-index:5;pointer-events:none;
  opacity:.85;filter:blur(16px);will-change:transform;
  transform:translateY(90%); /* в покое за нижним краем */
  background:linear-gradient(to top,
    rgba(214,255,171,0) 18%,rgba(183,243,151,.8) 30%,rgba(225,250,200,.9) 40%,rgba(255,240,170,.95) 47%,
    rgba(255,255,255,.95) 50%,rgba(127,217,232,.9) 58%,rgba(65,184,86,.75) 70%,rgba(214,255,171,0) 82%);
}
