:root {
  --maketa-pink: #e91e63;
  --maketa-orange: #ff5722;
  --maketa-yellow: #ffc107;
  --maketa-green: #4caf50;
  --maketa-cyan: #00bcd4;
  --gradient-primary: linear-gradient(
    135deg,
    #e91e63 0%,
    #ff5722 25%,
    #ffc107 50%,
    #4caf50 75%,
    #00bcd4 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 1rem;
}
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(233, 30, 99, 0.4) 0%,
    rgba(255, 87, 34, 0.4) 25%,
    rgba(255, 193, 7, 0.4) 50%,
    rgba(76, 175, 80, 0.4) 75%,
    rgba(0, 188, 212, 0.4) 100%
  );
  animation: gradientShift 10s ease-in-out infinite;
  filter: blur(0.5px);
}
.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(233, 30, 99, 0.6) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 87, 34, 0.6) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(76, 175, 80, 0.6) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(0, 188, 212, 0.5) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 193, 7, 0.5) 0%,
      transparent 50%
    );
  animation: morphing 8s ease-in-out infinite;
}
.geometric-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  opacity: 0.8;
  animation: floatParticles 12s infinite ease-in-out;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.particle:nth-child(1) {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--maketa-pink), var(--maketa-orange));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  left: 8%;
  top: 18%;
  animation-delay: 0s;
  box-shadow: 0 0 25px rgba(233, 30, 99, 0.3);
}
.particle:nth-child(2) {
  width: 45px;
  height: 45px;
  background: linear-gradient(
    135deg,
    var(--maketa-orange),
    var(--maketa-yellow)
  );
  border-radius: 50%;
  left: 82%;
  top: 8%;
  animation-delay: 2s;
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.3);
}
.particle:nth-child(3) {
  width: 28px;
  height: 28px;
  background: linear-gradient(
    135deg,
    var(--maketa-yellow),
    var(--maketa-green)
  );
  transform: rotate(45deg);
  left: 13%;
  top: 72%;
  animation-delay: 4s;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}
.particle:nth-child(4) {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--maketa-green), var(--maketa-cyan));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  left: 87%;
  top: 62%;
  animation-delay: 6s;
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.3);
}
.particle:nth-child(5) {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--maketa-cyan), var(--maketa-pink));
  border-radius: 50%;
  left: 52%;
  top: 12%;
  animation-delay: 8s;
  box-shadow: 0 0 18px rgba(0, 188, 212, 0.3);
}
.preloader-container {
  text-align: center;
  color: white;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(15px) saturate(180%);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: containerFloat 6s ease-in-out infinite;
  width: clamp(320px, 85vw, 480px);
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
}
.logo-container {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.logo {
  width: clamp(200px, 50vw, 280px);
  height: auto;
  max-width: 100%;
  animation: logoBreath 5s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 25px rgba(233, 30, 99, 0.15));
  border-radius: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover {
  transform: scale(1.06) translateY(-6px);
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 35px rgba(233, 30, 99, 0.25));
}
.text-container {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  opacity: 0;
  animation: slideInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}
.main-text {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 200;
  letter-spacing: clamp(0.1em, 0.2vw, 0.15em);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8f9fa 25%,
    #ffffff 50%,
    #e9ecef 75%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 4s ease-in-out infinite alternate;
  position: relative;
  text-transform: uppercase;
}
.main-text::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(60px, 15vw, 80px);
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.8;
  animation: lineGlow 3s ease-in-out infinite alternate;
}
.sub-text {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  opacity: 0.92;
  letter-spacing: 0.06em;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}
.loading-section {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.progress-container {
  width: clamp(150px, 60vw, 200px);
  height: clamp(6px, 1.5vw, 8px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(233, 30, 99, 0.15);
}
.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 12px;
  animation: progressLoad 4s ease-out infinite;
  position: relative;
  box-shadow: 0 0 25px rgba(233, 30, 99, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}
.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: shimmer 2.5s infinite;
}
.loading-dots {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 12px);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.dot {
  width: clamp(10px, 2.5vw, 14px);
  height: clamp(10px, 2.5vw, 14px);
  border-radius: 50%;
  animation: dotPulse 2s infinite ease-in-out;
  box-shadow: 0 0 15px currentColor, inset 0 1px 2px rgba(255, 255, 255, 0.2);
  position: relative;
}
.dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: innerShine 2s infinite ease-in-out;
}
.dot:nth-child(1) {
  background: var(--maketa-pink);
  animation-delay: 0s;
}
.dot:nth-child(2) {
  background: var(--maketa-orange);
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  background: var(--maketa-yellow);
  animation-delay: 0.4s;
}
.dot:nth-child(4) {
  background: var(--maketa-green);
  animation-delay: 0.6s;
}
.dot:nth-child(5) {
  background: var(--maketa-cyan);
  animation-delay: 0.8s;
}
@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05) rotate(180deg);
  }
}
@keyframes morphing {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: scale(1.25) rotate(120deg);
    opacity: 0.85;
  }
  66% {
    transform: scale(0.75) rotate(240deg);
    opacity: 0.4;
  }
}
@keyframes floatParticles {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-35px) rotate(90deg) scale(1.05);
    opacity: 1;
  }
  50% {
    transform: translateY(-25px) rotate(180deg) scale(0.95);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-45px) rotate(270deg) scale(1.02);
    opacity: 0.9;
  }
}
@keyframes logoBreath {
  0%,
  100% {
    transform: scale(1) rotateY(0deg);
  }
  50% {
    transform: scale(1.04) rotateY(6deg);
  }
}
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes textGlow {
  0% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(255, 255, 255, 0.1);
  }
  100% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
      0 0 50px rgba(255, 255, 255, 0.25), 0 0 70px rgba(233, 30, 99, 0.15);
  }
}
@keyframes lineGlow {
  0% {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.6);
  }
}
@keyframes containerFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes progressLoad {
  0% {
    width: 0%;
  }
  70% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-150%);
  }
  100% {
    transform: translateX(150%);
  }
}
@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}
@keyframes innerShine {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.4;
  }
}
@media (max-width: 768px) {
  body {
    padding: 0.75rem;
  }
  .preloader-container {
    width: clamp(280px, 90vw, 400px);
    border-radius: 28px;
  }
  .logo {
    width: clamp(180px, 45vw, 240px);
  }
}
@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  .preloader-container {
    width: clamp(260px, 95vw, 350px);
    border-radius: 25px;
  }

  .logo {
    width: clamp(160px, 40vw, 200px);
  }

  .main-text {
    letter-spacing: 0.08em;
  }
}
@media (max-width: 360px) {
  .preloader-container {
    width: clamp(240px, 98vw, 320px);
    padding: clamp(1.5rem, 4vw, 2rem);
  }

  .logo {
    width: clamp(140px, 35vw, 180px);
  }
}
@media (min-width: 1200px) {
  .preloader-container {
    width: 460px;
    padding: 3rem 2.5rem;
  }

  .logo {
    width: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
html,
body {
  touch-action: none;
  overflow: hidden;
  height: 100%;
}
