*, *::before, *::after {
  box-sizing: border-box;
}

html, body, div, span, a, img, canvas, footer, header, main, p, h4 {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15pt;
  line-height: 1.25;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  background: #5a5eca url('../img/pict2.jpg') center center / cover no-repeat fixed;
  overflow: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #232323;
  opacity: .8;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}

a:hover {
  color: #ff1d4d;
  text-decoration: none;
}

@keyframes wrapperFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

#wrapper {
  animation: wrapperFade 3s forwards;
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  border: 30px solid rgba(255,255,255,.2);
  z-index: 2;
  overflow: hidden;
}

#wrapper::before {
  content: '';
  position: absolute;
  left: -9%;
  bottom: 0;
  width: 34%;
  height: 56%;
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.075) 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  transform: skewX(39deg);
  transform-origin: bottom left;
  pointer-events: none;
  z-index: 1;
}

#main {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  text-align: center;
  overflow: hidden;
  z-index: 2;
}

#main::before {
  content: '';
  display: inline-block;
  height: 100%;
  margin-right: 0;
  vertical-align: middle;
  width: 1px;
}

#background {
  background: transparent;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
}

.lines-overlay {
  opacity: .5;
  position: fixed;
  top: 30px;
  left: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  background: url('../img/overlay.svg');
  background-size: cover;
  background-position: center center;
  pointer-events: none;
  z-index: 2;
}

.loading-part {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 40;
  background: #232323;
}

.loading-part .loader-home {
  margin: -12em 0 0 -12em;
  width: 50px;
  height: 50px;
  font-size: 2px;
  position: absolute;
  text-indent: -9999em;
  top: 50vh;
  left: 50vw;
  border-top: .8em solid rgba(255,255,255,.2);
  border-right: .8em solid rgba(255,255,255,.2);
  border-bottom: .8em solid rgba(255,255,255,.2);
  border-left: .8em solid #ffffff;
  transform: translateZ(0);
  animation: loadingHome .7s infinite linear;
}

.loading-part .loader-home,
.loading-part .loader-home::after {
  border-radius: 50%;
  width: 24em;
  height: 24em;
}

@keyframes loadingHome {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes headerIn {
  0% { opacity: 0; transform: translate3d(0,1em,0); }
  100% { opacity: 1; transform: translate3d(0,0,0); }
}

#header {
  animation: headerIn 1s .2s forwards;
  backface-visibility: hidden;
  cursor: default;
  display: inline-block;
  opacity: 0;
  position: relative;
  text-align: center;
  top: 0;
  vertical-align: middle;
  width: 90%;
  z-index: 3;
}

#header img {
  max-width: min(360px, 72vw);
  height: auto;
}

#header h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

#text-alert {
  color: #f8f8f8;
  font-size: 19px;
  line-height: 1.5789;
  font-weight: 700;
  min-height: 30px;
}

#footer {
  left: 30px;
  right: 30px;
  line-height: 30px;
  position: fixed;
  text-align: right;
  font-size: 15px;
  width: auto;
  z-index: 50;
  bottom: 0;
  height: 30px;
  overflow: hidden;
}

#footer .copyright {
  color: #f2f3f7;
  font-size: 12px;
  opacity: .8;
  font-weight: 700;
}

@media only screen and (max-width: 768px) {
  #header h4 { font-size: 17px; }
  #text-alert { font-size: 15px; }
}

@media only screen and (max-width: 420px) {
  #wrapper { border: none; }
  #wrapper::before {
    left: -16%;
    width: 52%;
    height: 44%;
    transform: skewX(34deg);
  }
  .lines-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  #footer {
    left: 10px;
    right: 10px;
    height: auto;
    line-height: 1.35;
    bottom: 6px;
  }
  #footer .copyright { font-size: 11px; }
}

@media screen and (max-device-width: 736px) and (orientation: landscape) {
  #wrapper { border: none; }
  #wrapper::before {
    left: -16%;
    width: 52%;
    height: 44%;
    transform: skewX(34deg);
  }
  .lines-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  #footer {
    left: 4px;
    right: 4px;
    bottom: 2px;
  }
  #header img { max-width: 180px; }
  #header h4 { font-size: 16px; }
  #text-alert { font-size: 15px; }
}
