:root {
  --index: calc(1vh + 1vw);
  --title-color: #f4efec;
  --text-color: #cdc6c3;
  --gap: calc(var(--index) * 10);
}

@font-face {
  font-family: "KB Danube";
  src: url(../../fonts/kbdanube.ttf);
}
@font-face {
  font-family: "raleway-p";
  src: url(../../fonts/raleway-regular.woff2);
}
@font-face {
  font-family: "outfit-p";
  src: url(../../fonts/outfit-regular.woff2);
}
.preloader {
  width: 100%;
  height: 100vh;
  background-color: rgb(27, 27, 27);
  position: fixed;
  overflow: hidden;
  z-index: 100;
}
.preloader__text {
  text-align: center;
  color: white;
  font-family: "KB Danube";
  text-transform: uppercase;
  letter-spacing: 10px;
  line-height: 100vh;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font-size: 25px;
}
.preloader__progress {
  width: 300px;
  height: 10px;
  background: #3b3b3b;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, 200%);
      -ms-transform: translate(-50%, 200%);
          transform: translate(-50%, 200%);
  border-radius: 3px;
  overflow: hidden;
}
.preloader__progress span {
  display: block;
  height: 100%;
  background-color: #ffffff;
  -webkit-animation: progress 3s cubic-bezier(0, 1.2, 1, -0.2);
          animation: progress 3s cubic-bezier(0, 1.2, 1, -0.2);
}
.preloader.disable {
  -webkit-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
  opacity: 0;
}

@-webkit-keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: outfit-p;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-image: url(../../img/bg.webp);
  background-size: 50px;
  color: #fafafa;
  font-family: raleway-p;
  overflow: hidden;
  height: 100vh;
}

.preview {
  height: 100vh;
  position: relative;
  -webkit-transform-origin: left bottom;
      -ms-transform-origin: left bottom;
          transform-origin: left bottom;
}
.preview__image {
  position: absolute;
  width: calc(var(--index) * 36);
  right: 7vw;
  top: 8vh;
  z-index: -1;
}
.preview__container {
  padding: 0 7vw;
}
.preview__main-title {
  font-size: calc(var(--index) * 8);
  position: absolute;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
  bottom: 12vh;
  line-height: 0.9;
}

.container {
  padding: 0 7vw;
}

.gallery {
  padding: calc(var(--index) * 8) 0 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.gallery__item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.gallery__item > * {
  max-width: calc(var(--index) * 21);
  margin-bottom: var(--gap);
  max-height: 180vh;
  border-radius: 8px;
}
.gallery__item:first-child {
  margin-top: calc(var(--gap) * 1.3);
}
.gallery__item:last-child > * {
  margin: 0;
  margin-top: var(--gap);
}

.content-text {
  color: var(--text-color);
}
.content-text__title {
  font-size: 2rem;
  line-height: 2.4rem;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}
.content-text__subtitle {
  line-height: 1.7rem;
}

.content, .preview__image, .preview__main-title, .gallery__item {
  will-change: transform;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #DF010A #1E1E1E;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #1E1E1E;
}

*::-webkit-scrollbar-thumb {
  background-color: #DF010A;
  border-radius: 20px;
  border: 3px solid #1E1E1E;
}