body {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

#bg-down {
  display: none;
}

/* Основной контейнер лоадера */
#loader {
  width: 100vw;
  height: 100vh;
  background-image: var(--brand-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

@supports (height: 100dvh) {
  #loader {
    height: 100dvh;
  }
}

/* Основной контент (мяч) */
#main-content {
  width: 550px;
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
}

#main-content::before {
  content: '';
  background-image: url('./assets/dots.png');
  background-repeat: no-repeat;
  position: absolute;
  top: -90px;
  left: -320px;
  width: 200%;
  height: 200%;
}

/* Контент лоадера (логотип, прогресс) */
#loader-content {
  margin-bottom: 28px;
  text-align: center;
  z-index: 2;
}

#bg-down {
  position: absolute;
  z-index: 2;
  width: 100%;
  left: 4%;
  bottom: 0;
}

#logo {
  text-align: center;
  margin-bottom: var(--logo-margin-bottom, 20px);
}

#logo img {
  height: var(--logo-height, auto);
  width: var(--logo-width, auto);
}

#progress {
  width: var(--progress-width, 330px);
  height: var(--progress-height, 8px);
  border-radius: 10px;
  box-sizing: border-box;
  padding: 2px;
  position: relative;
  background-color: #ffffff;
}

#bar {
  position: absolute;
  border-radius: 10px;
  width: 98%;
  right: 2px;
  height: var(--progress-bar-height, 4px);
  background-color: var(--progress-color);
}

#percent {
  margin-top: 13px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.09px;
  color: var(--fg-content-primary, #fff);
}

/* Медиа-запросы для адаптивности */
@media screen and (max-height: 700px) {
  #main-content {
    left: auto;
    top: 0;
    transform: scale(80%);
  }
}

@media screen and (max-width: 744px) {
  #main-content {
    transform: scale(55%);
    top: 20%;
    left: auto;
    bottom: calc(117px + 20%);
  }

  #bg-down {
    width: var(--bg-down-width-mobile, 250%);
    left: var(--bg-down-left-mobile, -90%);
  }

  #logo {
    margin-bottom: var(--logo-margin-bottom-mobile, 20px);
  }

  #logo img {
    height: var(--logo-height-mobile, auto);
    width: var(--logo-width-mobile, auto);
  }

  #progress {
    width: 246px;
    height: var(--progress-height-mobile, var(--progress-height, 8px));
  }

  #bar {
    height: var(--progress-bar-height-mobile, var(--progress-bar-height, 4px));
  }

  #percent {
    margin-top: 9px;
    line-height: 20px;
    font-size: 14px;
  }
}

@media screen and (max-height: 550px) {
  #main-content {
    top: 0;
    transform: translate(-1%, -10%) scale(0.6);
  }
}

@media screen and (max-height: 440px) {
  #main-content {
    top: 0;
    transform: translate(-1%, -20%) scale(0.45);
  }
}

@media screen and (max-height: 380px) {
  #main-content {
    top: 0;
    transform: translate(-1%, -30%) scale(0.35);
  }
}

@media screen and (max-width: 350px) {
  #bg-down {
    right: 0;
    width: 330%;
  }
}
