body {
  margin: 0;
  padding: 0;
}

.load-page {
  display: flex;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(174, 179, 184, 0.651);

  /* fade‑in on page load */
  animation: fadeIn 0.15s ease-out;
}

.load-page .text {
  padding: 30px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  color: rgba(5, 57, 112, 0.925);
}

/* ── spinner (SVG) ── */
.spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-svg {
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

.spinner-svg .track {
  fill: none;
  stroke: rgba(37, 38, 39, 0.12);
  stroke-width: 1px;
}

.spinner-svg .circle {
  fill: none;
  stroke: rgba(37, 38, 39, 0.651);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 75;
  transform-origin: 50% 50%;
  animation: dash 1.5s ease-in-out infinite;
}

/* ── keyframes ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 283;
  }

  50% {
    stroke-dashoffset: 70;
  }

  100% {
    stroke-dashoffset: 283;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ── fade‑out (для перехода, если нужно) ── */
.load-page.fade-out {
  animation: fadeOut 0.15s ease-in forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* ── адаптив ── */
@media (max-width: 480px) {
  .spinner-svg {
    width: 60px;
    height: 60px;
  }

  .load-page .text {
    font-size: 18px;
    padding: 20px;
  }
}
