/* Переменные */

:root {
  --index: calc(1vw + 1vh);
  --primary-color: #F2F8FF;
  --accent-color: #314aaf;
  --main-color: #061034;
  --second-color: #091950;
}

body {
  min-height: 100%;
  background-color: var(--main-color);
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: "SFCompactText", sans-serif;
  color: var(--primary-color);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.splash {
	position: relative;
	overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100vw;
    min-height: 100svh;
	height: 100vh;
    justify-content: center;
    align-items: center;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/backgroundSite.png") center/cover no-repeat;
  filter: brightness(0.8) saturate(1.05);
  opacity: 0.60;
  pointer-events: none;
  z-index: 0;
}

.splash > * {
  position: relative;
  z-index: 1;
}

@media (min-aspect-ratio: 16/10){
    .splash::before{ background-image: url("../images/backgroundDesktop.png"); }
    background-position: center bottom;
  }

.container-car {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    bottom: 3%;
    z-index: 10;
    animation: slideRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.splash__car {
    display: flex;
    align-items: flex-end;
    width: 50%;
    height: 100vh;
    justify-content: center;
    position: absolute;
    z-index: 2;
}

.splash__car::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(8px, 2vh, 28px);
  width: min(46vw, 680px);
  height: clamp(12px, 5vw, 40px);
  background: radial-gradient(50% 50% at 50% 50%,
              rgba(0,0,0,0.35) 0%,
              rgba(0,0,0,0.25) 35%,
              rgba(0,0,0,0.10) 60%,
              rgba(0,0,0,0) 70%);
  filter: blur(6px);
  opacity: .65;
  pointer-events: none;
  z-index: 1;
}

.splash__car img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom
}

@keyframes slideRight {
    0% {
      left: -100%; transform: translateY(3%);
    }
    100% {
      left: 0%; transform: translateY(0);
    }
  }

.car-clicked {
    animation: slideAway 1s ease forwards;
}

@keyframes slideAway {
    0% {
      left: 0%; transform: translateY(0);
    }
    100% {
      left: 100%; transform: translateY(-5%);
    }
}


.container-wellcome {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    visibility: hidden;
    transform: scale(0);
    transition: visability 0.5s, transform 1s ease-in;
    z-index: 5;
}

.container-wellcome.show {
    visibility: visible;
    transform: scale(1);
}

.splash__wellcome {
    display: flex;
    align-items: center;
    height: auto;
    justify-content: center;
    position: absolute;
    z-index: 6;
}

.splash__wellcome img {
    display: block;
    width: 55%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

.container-nav {
    width: 100%;
    height: 11.5vh;
    display: flex;
    justify-content: center;
    bottom: 0;
    z-index: 7;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0s, transform 1s ease-in 1s;
}

.splash__nav {
  display: flex;
  width: 60%;
  height: 100%;
  justify-content: space-between;
  @media screen and (max-width: 932px) and (orientation: landscape)  {
    width: 80%;
  }
}

@media screen and (max-width: 912px) and (orientation: portrait) {

	.splash__car {
    width: 70%;
    height: 100vh;
		transform: translateY(-10%);
	}
	
  .splash__wellcome {
    width: 70%;
  }

@keyframes slideAway {
    0% {
      left: 0%; transform: translateY(0);
    }
    100% {
      left: 100%; transform: translateY(-4%);
    }
}

  .splash__nav {
    flex-direction: column;
    align-items: center;
  }
}

.container-nav.show {
  opacity: 1;
  transform: translateY(0);
    @media screen and (max-width: 912px) {
       transform: translateY(-70%);
    }
}


@media screen and (max-height: 412px) and (orientation: landscape) {
  .splash__wellcome {
    width: 100%;
  }

  .container-nav.show {
    transform: translateY(-40%);
   }
}

.splash__link {
  position: relative;
  font-family: "Neuropol X", sans-serif;
  font-size: 16px;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  @media screen and (max-width: 400px) and (orientation: portrait) {
    font-size: 14px;
  }
  @media screen and (max-width: 932px) and (orientation: landscape) {
    font-size: 14px;
}
}

.splash__link:hover {
  text-decoration: underline;
}

.lang-switch{
  position: absolute;
  top: 20px;
  right: 32px;
  z-index: 200;
  font-family: "Neuropol X", sans-serif;
  font-size: calc(1vw + 1vh * 0.25);
  color: #F2F8FF;
  user-select: none;
}
.lang-switch .sep{opacity:.4; margin:0 .4em;}
.lang-switch a{
  color:#F2F8FF;
  opacity:.7;
  text-decoration:none;
  transition:.2s;
}
.lang-switch a:hover{opacity:1;}
.lang-switch .active{opacity:1; color:#FB0664;}
@media (max-width: 480px){
  .lang-switch{top:14px; right:20px; font-size:14px;}
}



