/*!
 * Импульс · заставка при входе на сайт (22.11, 234)
 * Официальный логотип: сначала «проявляется» знак (семья + импульс) внутри
 * пульсирующего кольца, затем слева направо «проявляется» надпись «Импульс»,
 * по логотипу проходит световой блик, ниже — строка «ЗАБОТА В КАЖДОМ УДАРЕ».
 * Фон тёмно-синий с мягким свечением и мелкими снежинками, закрытие —
 * занавес к центру. Показывается один раз за сессию.
 */

.iu-splash{
  position:fixed; inset:0; z-index:99999; display:grid; place-items:center;
  overflow:hidden; cursor:pointer;
  color:#fff;
  background-color:#06122a;
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(36,126,217,.55), transparent 62%),
    radial-gradient(90% 80% at 12% 100%, rgba(84,190,69,.16), transparent 60%),
    radial-gradient(90% 80% at 88% 100%, rgba(255,190,0,.14), transparent 60%),
    linear-gradient(180deg, #0A1B39, #050D1E);
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color:transparent;
  /* занавес без швов: полотно сходится к середине и открывает сайт */
  clip-path:inset(0 0 0 0);
  transition:clip-path .95s cubic-bezier(.76,0,.24,1), opacity .45s ease .5s;
}
.iu-splash.is-hide{
  clip-path:inset(50% 0 50% 0);
  opacity:0;
}
html.iu-splash-lock, html.iu-splash-lock body{ overflow:hidden !important; }

/* ---------- 236: глубина сцены ---------- */

/* две медленные «авроры» — фон живёт, но не отвлекает */
.iu-splash__mesh{
  position:absolute; inset:-22%; pointer-events:none; opacity:.6;
  background:
    radial-gradient(38% 30% at 32% 32%, rgba(47,123,255,.45), transparent 70%),
    radial-gradient(34% 28% at 70% 62%, rgba(56,200,255,.3), transparent 70%),
    radial-gradient(30% 26% at 54% 90%, rgba(84,190,69,.16), transparent 70%);
  filter:blur(18px);
  animation:iu-splash-mesh 17s ease-in-out infinite alternate;
  transition:opacity .5s ease;
}
@keyframes iu-splash-mesh{
  0%{ transform:translate3d(-2%,-1%,0) scale(1); }
  50%{ transform:translate3d(2%,2%,0) scale(1.07); }
  100%{ transform:translate3d(-1%,3%,0) scale(1.02); }
}

/* тонкая сетка, уходящая в темноту по краям */
.iu-splash__grid{
  position:absolute; inset:0; pointer-events:none; opacity:.14;
  background-image:
    linear-gradient(rgba(130,196,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,196,255,.55) 1px, transparent 1px);
  background-size:72px 72px, 72px 72px;
  -webkit-mask-image:radial-gradient(62% 56% at 50% 45%, #000 0%, rgba(0,0,0,.45) 58%, transparent 80%);
  mask-image:radial-gradient(62% 56% at 50% 45%, #000 0%, rgba(0,0,0,.45) 58%, transparent 80%);
  animation:iu-splash-grid 26s linear infinite;
  transition:opacity .5s ease;
}
@keyframes iu-splash-grid{
  to{ background-position:0 72px, 72px 0; }
}

/* виньетка: края темнее, центр собран */
.iu-splash::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(125% 95% at 50% 45%, transparent 42%, rgba(2,8,20,.62) 100%);
}

/* вспышка в момент, когда последняя деталь села на место */
.iu-splash__burst{
  position:absolute; left:50%; top:44%; width:220px; height:220px; margin:-110px 0 0 -110px;
  border-radius:50%; pointer-events:none; opacity:0; z-index:1;
  background:radial-gradient(circle, rgba(255,255,255,.5), rgba(120,200,255,.16) 46%, transparent 70%);
  /* 24.11 (162): заставка закрывается на 1,8 с — эффекты сдвинуты, чтобы успеть */
  animation:iu-splash-burst 1.05s cubic-bezier(.2,.7,.2,1) .70s forwards;
}
@keyframes iu-splash-burst{
  0%{ opacity:0; transform:scale(.35); }
  22%{ opacity:1; }
  100%{ opacity:0; transform:scale(2.15); }
}

.iu-splash.is-hide .iu-splash__mesh,
.iu-splash.is-hide .iu-splash__grid{ opacity:0; }

/* мягкое свечение за логотипом */
.iu-splash__glow{
  position:absolute; left:50%; top:44%; width:min(920px, 130vw); aspect-ratio:1;
  transform:translate(-50%,-50%); border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(47,123,255,.34), rgba(56,200,255,.09) 45%, transparent 70%);
  filter:blur(6px);
  animation:iu-splash-glow 5.5s ease-in-out infinite;
  transition:opacity .4s ease;
}
@keyframes iu-splash-glow{
  0%,100%{ opacity:.85; transform:translate(-50%,-50%) scale(1); }
  50%{ opacity:1; transform:translate(-50%,-50%) scale(1.06); }
}

/* мелкие снежинки: два слоя с разной скоростью, без «обоев» */
.iu-splash__snow{
  position:absolute; inset:-10% 0; pointer-events:none; opacity:.7;
  background-image:
    radial-gradient(circle at 12px 18px, rgba(255,255,255,.95) 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 68px 52px, rgba(255,255,255,.7) 0 .9px, transparent 1.4px),
    radial-gradient(circle at 104px 8px, rgba(190,230,255,.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 148px 74px, rgba(255,255,255,.6) 0 .8px, transparent 1.3px),
    radial-gradient(circle at 186px 34px, rgba(255,255,255,.85) 0 1px, transparent 1.5px);
  background-size:210px 120px, 210px 120px, 210px 120px, 210px 120px, 210px 120px;
  animation:iu-splash-snow 26s linear infinite;
  transition:opacity .4s ease;
}
.iu-splash__snow::after{
  content:""; position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 30px 90px, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 120px 140px, rgba(200,235,255,.7) 0 .9px, transparent 1.4px),
    radial-gradient(circle at 200px 40px, rgba(255,255,255,.65) 0 .8px, transparent 1.3px);
  background-size:240px 200px, 240px 200px, 240px 200px;
  animation:iu-splash-snow 38s linear infinite reverse;
}
@keyframes iu-splash-snow{
  from{ background-position:0 0, 0 0, 0 0, 0 0, 0 0; }
  to{ background-position:0 120px, 0 120px, 0 120px, 0 120px, 0 120px; }
}
.iu-splash.is-hide .iu-splash__snow,
.iu-splash.is-hide .iu-splash__glow{ opacity:0; }

/* содержимое */
.iu-splash__inner{
  position:relative; z-index:2; display:flex; flex-direction:column; align-items:center;
  padding:0 20px; text-align:center;
  transition:opacity .4s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
/* тонкая линия между логотипом и фразой растёт в момент сборки */
.iu-splash__inner::before{
  content:""; display:block; order:2; width:0; height:2px; margin:18px auto 0;
  border-radius:2px;
  background:linear-gradient(90deg, transparent, #38C8FF, #2F7BFF 55%, #6EBBFF, transparent);
  animation:iu-splash-line .95s cubic-bezier(.2,.85,.25,1) .72s forwards;
}
@keyframes iu-splash-line{ to{ width:min(320px, 64vw); } }
.iu-splash.is-hide .iu-splash__inner{ opacity:0; }

/* сцена: логотип целиком (1588×911) */
.iu-splash__stage{
  position:relative; order:1; width:min(560px, 82vw); aspect-ratio:1588 / 911;
  animation:iu-splash-breathe 4.4s ease-in-out 1.15s infinite;
  transition:transform .8s cubic-bezier(.2,.8,.2,1), opacity .55s ease;
}
@keyframes iu-splash-breathe{
  0%,100%{ transform:translate3d(0,0,0); }
  50%{ transform:translate3d(0,-6px,0); }
}
/* ореол вокруг собранного логотипа */
.iu-splash__stage::before{
  content:""; position:absolute; inset:-16% -20%; border-radius:50%;
  background:radial-gradient(circle, rgba(120,200,255,.26), rgba(47,123,255,.1) 45%, transparent 68%);
  opacity:0; pointer-events:none;
  animation:iu-splash-halo 1.05s ease-out .68s forwards;
}
@keyframes iu-splash-halo{ to{ opacity:1; } }
.iu-splash.is-hide .iu-splash__stage{
  transform:scale(1.1) translateY(-4px);
  opacity:0;
  filter:blur(5px);
}
.iu-splash.is-hide .iu-splash__stage::before{ opacity:0; transition:opacity .3s ease; }

/* кольцо-лоадер, как в референсе: расходится из центра знака */
.iu-splash__ring{
  position:absolute; left:50%; top:33%; width:104px; height:104px; margin:-52px 0 0 -52px;
  border-radius:50%; border:2px solid rgba(255,255,255,.5);
  box-shadow:0 0 46px rgba(56,200,255,.45), inset 0 0 26px rgba(56,200,255,.25);
  opacity:0; pointer-events:none;
  animation:iu-splash-ring 1.25s cubic-bezier(.2,.7,.3,1) .04s 1 forwards;
}
@keyframes iu-splash-ring{
  0%{ opacity:0; transform:scale(.55); }
  22%{ opacity:.95; }
  100%{ opacity:0; transform:scale(1.75); }
}

/* логотип: один inline-SVG, где каждая деталь (головы, тела, плюс, волна,
   надпись, подпись) лежит в своей группе .iu-lp. Детали летят извне к своим
   местам и собираются — переменные --dx/--dy/--r/--s/--d заданы в разметке. */
.iu-splash__logo{
  position:absolute; inset:0; width:100%; height:100%;
  display:block; pointer-events:none; overflow:visible;
  filter:drop-shadow(0 20px 46px rgba(3,16,44,.6));
}
.iu-splash__logo .iu-lp{
  transform-box:fill-box;
  transform-origin:50% 50%;
  opacity:0;
  transform:translate(var(--dx,0px), var(--dy,0px)) rotate(var(--r,0deg)) scale(var(--s,.92));
  filter:blur(7px);
  animation:iu-splash-part 1.1s cubic-bezier(.18,.9,.22,1) var(--d,0s) both;
  will-change:transform, opacity;
}
@keyframes iu-splash-part{
  0%{
    opacity:0;
    filter:blur(8px);
    transform:translate(var(--dx,0px), var(--dy,0px)) rotate(var(--r,0deg)) scale(var(--s,.92));
  }
  58%{ opacity:1; filter:blur(1.2px); }
  82%{
    opacity:1;
    filter:blur(0);
    transform:translate(calc(var(--dx,0px) * -.05), calc(var(--dy,0px) * -.05)) rotate(calc(var(--r,0deg) * -.14)) scale(1.015);
  }
  100%{
    opacity:1;
    filter:blur(0);
    transform:translate(0,0) rotate(0deg) scale(1);
  }
}

/* световой блик по логотипу */
.iu-splash__sweep{
  position:absolute; inset:-4% -14%; pointer-events:none;
  background:linear-gradient(104deg,
    transparent 46%, rgba(255,255,255,0) 47.5%,
    rgba(255,255,255,.16) 50%,
    rgba(255,255,255,0) 52.5%, transparent 54%);
  mix-blend-mode:screen; opacity:0;
  animation:iu-splash-sweep 1s cubic-bezier(.4,0,.2,1) .72s forwards;
}
@keyframes iu-splash-sweep{
  0%{ opacity:0; transform:translate3d(-52%,0,0); }
  18%{ opacity:1; }
  100%{ opacity:0; transform:translate3d(52%,0,0); }
}

/* строка под логотипом */
.iu-splash__phrase{
  order:3; margin:clamp(10px, 2.2vw, 18px) 0 0; max-width:min(560px, 86vw);
  font-size:clamp(10px, 1.5vw, 13px); font-weight:650;
  letter-spacing:.26em; text-transform:uppercase;
  color:rgba(226,240,255,.9);
  text-shadow:0 6px 24px rgba(4,20,50,.6);
  opacity:0; transform:translateY(10px);
  animation:iu-splash-phrase .62s cubic-bezier(.2,.85,.25,1) .92s forwards;
}
@keyframes iu-splash-phrase{ to{ opacity:1; transform:none; } }

@media (max-width: 560px){
  .iu-splash__stage{ width:88vw; }
  .iu-splash__ring{ width:80px; height:80px; margin:-40px 0 0 -40px; }
  .iu-splash__phrase{ letter-spacing:.2em; }
}

@media (prefers-reduced-motion: reduce){
  .iu-splash__ring, .iu-splash__snow, .iu-splash__glow,
  .iu-splash__mesh, .iu-splash__grid, .iu-splash__burst,
  .iu-splash__inner::before, .iu-splash__stage::before,
  .iu-splash__logo .iu-lp,
  .iu-splash__sweep, .iu-splash__phrase{ animation:none !important; }
  .iu-splash__stage{ animation:none !important; }
  .iu-splash__logo .iu-lp{ opacity:1; transform:none; filter:none; }
  .iu-splash__inner::before{ width:min(320px, 64vw); }
  .iu-splash__stage::before{ opacity:1; }
  .iu-splash__burst{ opacity:0; }
  .iu-splash__sweep{ opacity:0; }
  .iu-splash__phrase{ opacity:1; transform:none; }
  .iu-splash{ transition:opacity .3s ease; }
}
