/* Заставка: сборка значка МПТ */

#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

#splash::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 22%, transparent), transparent 65%);
  animation: spGlow 2.4s ease-out both;
}

#splash.done {
  opacity: 0;
  visibility: hidden;
}

.sp-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-logo {
  width: 132px;
  height: 132px;
  overflow: visible;
  filter: drop-shadow(0 14px 30px color-mix(in srgb, var(--acc) 45%, transparent));
}

.sp-box {
  transform-origin: 32px 32px;
  animation: spPop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.sp-stars circle {
  opacity: 0;
  animation: spTw 0.5s ease-out both;
}

.sp-stars circle:nth-child(1) {
  animation-delay: 0.45s;
}

.sp-stars circle:nth-child(2) {
  animation-delay: 0.55s;
}

.sp-stars circle:nth-child(3) {
  animation-delay: 0.65s;
}

.sp-stars circle:nth-child(4) {
  animation-delay: 0.6s;
}

.sp-stars circle:nth-child(5) {
  animation-delay: 0.7s;
}

.sp-d {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: spDraw 0.6s ease-out forwards;
}

.sp-p1 {
  animation-delay: 0.5s;
}

.sp-p2 {
  animation-delay: 0.65s;
}

.sp-sun {
  transform: translateY(16px);
  opacity: 0;
  animation: spRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.sp-mtn {
  transform: translateY(22px);
  animation: spUp 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.95s both;
}

.sp-m {
  animation-delay: 1.15s;
  animation-duration: 0.7s;
}

.sp-snow {
  opacity: 0;
  animation: spFade 0.35s ease-out 1.55s forwards;
}

.sp-sea {
  transform: translateY(18px);
  animation: spUp 0.45s ease-out 1.2s both;
}

.sp-h {
  animation-delay: 1.45s;
  animation-duration: 0.45s;
}

.sp-t {
  animation-delay: 1.7s;
  animation-duration: 0.4s;
}

.sp-shim {
  opacity: 0;
  animation: spShim 1.4s ease-in-out 1.9s infinite;
}

.sp-word {
  display: flex;
  gap: 0.55em;
  margin-top: 22px;
  font:
    800 26px Inter,
    system-ui,
    sans-serif;
  color: var(--acc);
  letter-spacing: 0.02em;
}

.sp-word span {
  opacity: 0;
  transform: translateY(10px);
  animation: spLetter 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.sp-word span:nth-child(1) {
  animation-delay: 1.15s;
}

.sp-word span:nth-child(2) {
  animation-delay: 0.6s;
}

.sp-word span:nth-child(3) {
  animation-delay: 1.7s;
}

.sp-sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mut);
  opacity: 0;
  animation: spFade 0.5s ease-out 1.9s forwards;
}

.sp-bar {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--acc) 15%, transparent);
  margin-top: 18px;
  overflow: hidden;
}

.sp-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--acc);
  transform-origin: left;
  transform: scaleX(0);
  animation: spLoad 2.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes spPop {
  from {
    transform: scale(0.3) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes spTw {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.8);
  }
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
}

@keyframes spDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spRise {
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes spUp {
  from {
    transform: translateY(22px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes spFade {
  to {
    opacity: 1;
  }
}

@keyframes spShim {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spLetter {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spLoad {
  to {
    transform: scaleX(1);
  }
}

@keyframes spGlow {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
