html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

body[loading] {
  background: #9F0E24;
}

html {
  --offset-bottom: 70px;
}

.preloader {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  padding: 36px 0;
  background:
          linear-gradient(180deg, rgba(224, 9, 62, 0) 0%, #980C20 100%),
          url('./assets/bg.webp') no-repeat center;
  background-size: cover;
}

.container {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  background-image: url('./assets/main-logo.png');
  background-repeat: no-repeat;
  background-size: 466px 404px;
  background-position: center center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 70px 0;
  box-sizing: border-box;
}

.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  margin-bottom: 28px;
  width: 53px;
  height: 14px;
}

@media (max-width: 600px) or (max-height: 600px) {
  .container {
    background-size: 268px 249px;
  }
  .logo {
    margin-bottom: 20px;
    width: 41px;
    height: 11px;
  }
}

@media (max-height: 400px) {
  html {
    --offset-bottom: 35px;
  }
  .logo {
    display: none;
  }
}

@media (max-height: 375px) {
  html {
    --offset-bottom: 0px;
  }
  .progress {
    display: none;
  }
}

.progress {
  width: 280px;
  max-width: calc(100% - 30px);
  height: 7px;
  border-radius: 9px;
  margin: 0px -30px 0;
  position: relative;
}
.progress__value,
.progress__line {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}
.progress__value {
  top: 2px;
  left: 3px;
  width: calc(100% - 5px);
  height: calc(100% - 2px);
  background: #A4072D;
  height: 3px !important;
  text-align: center;
  color: white;
  font-family: Inter;
  font-weight: 600;
  font-size: 20px;
  text-indent: 10px;
  line-height: 50px;
}
.progress,
.progress__line {
  background: #FFFFFF;
}
.progress__line {
  width: 0%;
  transition: 8s;
  transition-timing-function: linear;
}
.progress[progress='0'] .progress__line {
  width: 33%;
  transition: 5s;
}
.progress[progress='1'] .progress__line {
  width: 66%;
  transition: 3s;
}
.progress[progress='2'] .progress__line {
  width: 99%;
  transition: 1s;
}
.progress[progress='3'] .progress__line {
  width: 100%;
  transition: 0.3s;
}
