/* Прелоадер */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: all;
}

/* Облако */
.cloud {
    width: 180px;      /* чуть меньше */
    height: 90px;      /* уменьшили высоту */
    background: #fff;
    border-radius: 45px;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cloud:before,
  .cloud:after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
  }
  
  .cloud:before {
    width: 80px;       /* подогнали размер */
    height: 80px;
    top: -30px;
    left: 15px;
  }
  
  .cloud:after {
    width: 90px;
    height: 90px;
    top: -35px;
    right: 15px;
  }

/* Пульсация облака */
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Круглый прогресс-бар */
.loader {
    width: 40px;      /* подогнали под облако */
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
  }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Плавное исчезновение */
.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
