/* --------- PRELOADER --------- */

.global-preloader--modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fafaf9 100%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.global-preloader--modern.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: slideInPreloader 0.6s ease-out;
}

@keyframes slideInPreloader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Лого */
.preloader-logo-wrapper {
  width: 8vw;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Текст */
.preloader-text {
    font-family: var(--font-main);
    font-size: var(--text-md);
    color: var(--color-black);
    text-transform: var(--text-uppercase);
    margin: 0;
    font-weight: var(--text-light);
}

/* Прогресс-бар */
.progress-bar {
  width: 15vw;
  height: 5px;
  background: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1E110D, #8B6F47);
  border-radius: 2px;
  animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@media (max-width: 768px) { 
    .preloader-logo-wrapper {
        width: 50vw;
        height: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}