html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Barlow', Arial, sans-serif;
  background: #42403b;
}
#backgrounds {
  position: fixed;
  z-index: 1;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #42403b;
}
.bg-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.bg-image.active {
  opacity: 1;
  z-index: 2;
}
main {
  position: fixed;
  z-index: 10;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98vw;
  max-width: 1800px;
  min-width: 320px;
  height: 65vh;
  min-height: 320px;
  max-height: 95vh;
}
.logo-svg {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  min-height: 220px;
  min-width: 320px;
  aspect-ratio: 2.7/1;
  display: block;
  margin: 0 auto;
}
footer {
  position: fixed;
  z-index: 20;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  padding: 0 0 2vw 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.instagram {
  margin-bottom: 0.4em;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: none;
  transition: background 0.2s;
}
.instagram:hover {
  background: rgba(0,0,0,0.15);
}
.instagram-icon {
  width: 1.7em;
  height: 1.7em;
  display: block;
  color: #fff;
}
.email {
  color: #fff;
  text-decoration: none;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: clamp(0.5rem, 1vw, 1.05rem);
  letter-spacing: 0.04em;
  background: none;
  border-radius: 1.5em;
  padding: 0.18em 0.7em;
  pointer-events: auto;
  transition: background 0.2s;
}
.email:hover {
  background: rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .logo-wrapper {
    width: 98vw;
    min-width: 0;
    height: 38vw;
    min-height: 120px;
  }
  .logo-svg {
    min-height: 80px;
    min-width: 120px;
  }
}
@media (max-width: 600px) {
  .logo-wrapper {
    width: 98vw;
    min-width: 0;
    height: 44vw;
    min-height: 96px;
  }
  .logo-svg {
    min-height: 72px;
    min-width: 120px;
  }
  footer {
    padding-bottom: 1vw;
  }
  .instagram {
    width: 2.5em;
    height: 2.5em;
  }
  .instagram-icon {
    width: 2em;
    height: 2em;
  }
}

/* Väga tagasihoidlik laadimisindikaator */
.loader {
  position: fixed;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 2px solid #fff3;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
