#loader {
  position: fixed;
  top: 0;
  left: 0; /* Добавлено */
  width: 100vw; /* Добавлено */
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}


.loader-animation {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center; /* Добавлено */
  width: 100%; /* Добавлено */
}

.loader-circle {
width: 20px;
height: 20px;
border-radius: 50%;
background-color: var(--primary-color);
animation: float 1.5s infinite ease-in-out;
box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.loader-circle:nth-child(2) {
animation-delay: 0.2s;
background-color: #00c4ff;
}

.loader-circle:nth-child(3) {
animation-delay: 0.4s;
background-color: #0066ff;
}

@keyframes float {
0%, 100% {
  transform: translateY(0);
}
50% {
  transform: translateY(-15px);
}
}

.logo-text {
font-size: 2.5rem;
font-weight: 800;
color: var(--primary-color);
margin-bottom: 2rem;
letter-spacing: 1px;
position: relative;
}

.loader-dots {
display: flex;
gap: 0.5rem;
margin-top: 1.5rem;
}

.loader-dot {
width: 10px;
height: 10px;
background-color: var(--primary-color);
border-radius: 50%;
animation: pulse 1.5s infinite;
opacity: 0.6;
}

.loader-dot:nth-child(2) {
animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
animation-delay: 0.4s;
}

@keyframes pulse {
0%, 100% {
  transform: scale(1);
  opacity: 0.6;
}
50% {
  transform: scale(1.3);
  opacity: 1;
}
}

