#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Спиннер */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ccc;
  border-top: 4px solid #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Анимация вращения */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Адаптив ===== */

/* От 1920 и выше */
@media (min-width: 1920px) {
  .spinner {
    width: 60px;
    height: 60px;
  }
}

/* От 1200 до 1919 */
@media (min-width: 1200px) and (max-width: 1919px) {
  .spinner {
    width: 50px;
    height: 50px;
  }
}

/* От 640 до 1199 */
@media (min-width: 640px) and (max-width: 1199px) {
  .spinner {
    width: 40px;
    height: 40px;
  }
}

/* От 320 до 639 */
@media (max-width: 639px) {
  .spinner {
    width: 30px;
    height: 30px;
  }
}

.bar {
  width: 80%;
  height: 4px;
  background: #eee;
  overflow: hidden;
}
.bar-fill {
  width: 0%;
  height: 100%;
  background: green;
  animation: fillBar 2s forwards;
}
@keyframes fillBar {
  to { width: 100%; }
}

