::root{

}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
    outline: none !important;
    box-sizing: border-box;
}

::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); background-color: #F5F5F5; }
::-webkit-scrollbar{ width: 6px; height: 6px; background-color: #F5F5F5; }
::-webkit-scrollbar-thumb{ background-color: #333; border: 2px solid #333; max-width: 100px; }
::-webkit-scrollbar-track-piece:end{ margin-right: 30px; }
::-webkit-scrollbar-track-piece:start{ margin-left: 30px; }

html, body {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    display: flex;
    background: #333;
    color: #e9e9e9;
    user-select: none;
}

#loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333 url(../img/logo.png) no-repeat center / 200px;
    z-index: 99999;
    will-change: opacity;
}

#dummy{display: none;}

#wrapper,
#content{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
    overflow-y: auto;
}

#video-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    z-index: -1;
    object-fit: cover;
}

nav{
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 999;
    filter: drop-shadow(-2px 2px 1px #000);
    width: 200px;
    height: 140px;
    top: 15px;
    left: 15px;
    background: url(../img/logo.png);
    background-size: 115px;
    background-repeat: no-repeat;
    background-position: center 15px;
    background-color: rgba(10,10,10, .3);
}

.page nav,
nav.slim{ 
    background-image: none;
    background-color: rgba(0,0,0,.6);
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

.page nav a,
.page nav a:visited,
nav.slim a,
nav.slim a:visited{ color: #fff; display: inline-block; margin-right: 5px; transition: all .3s ease-in; }
.page nav a:hover,
nav.slim a:hover{ color: #f86430; }

.page nav a{ margin-right: 15px; }

#menu{ 
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 9999999;
    margin: 0;
    padding: 0;
    width: 82%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateX(-50%);
}

#menu li{ position: relative;cursor: pointer; width: 40px; height: 40px; list-style: none; }
#menu li svg{ position: absolute; width: 30px; height: 30px; object-fit: contain; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#menu li svg>path{ fill: #e9e9e9; transition: .3s all ease-in-out }
#menu li:hover svg>path{ fill: #f86430; transition: .3s all ease-in-out }
nav.slim #menu{ display: none; }

#menu-slim{
    display: none;
    margin: 0;
    padding: 0 15px;
    height: 60px;
    list-style: none;
    justify-content: space-between;
    align-items: center;
}

#logo img{ height: 50px; }

#close-content{
    width: 40px;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}

#close-content svg{ fill: #e9e9e9; transition: fill .3s ease-in; }
#close-content:hover svg{ fill: #f86430; }

nav.slim #menu-slim,
.page nav,
.page nav #menu-slim{ display: flex; }

#content>section,
#content>section.page{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    overflow: hidden;
}
#content>section#scene,
#content>section.page,
.page nav{ opacity: 1; }
#scene canvas{ width: 100%; height: 100%; }
.scene-notice{ position: absolute; bottom: 60px; left: 50%; color: #e9e9e9; background: rgba(10,10,10, .2); padding: 15px 30px; margin: 0 auto; font-size: 30px; transform: translateX(-50%); text-align: center; white-space: nowrap; }
#scene-notice-mobile{ display: none; margin-left: -50px; }
#scene-arrows{ position: absolute; bottom: 60px; left: 80%;  transform: translateX(-50%); width: 50%; text-align: center; display: none; }
#scene-arrows button{ width: 50px; height: 50px; margin: 0px auto; background: transparent; border: none; display: block; cursor: pointer; }
#scene-arrows button svg{ user-select: none; }
#scene-arrows button path{ fill: #e9e9e9; transition: all .3s ease-in; }
#scene-arrows button:hover path{ fill: #f86430;  }

#contacts-block,
#projects-block{ display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

#contacts-block h2,
#projects-block h2,
.page h2{
    margin: 0;
    color: #f86430;
    font-size: 25vw;
    line-height: 20vw;
    position: absolute;
    bottom: 1vw;
    left: 50%;
    z-index: -1;
    opacity: 0.1;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.page h2{ font-size: 15vw; line-height: 12vw; white-space: pre; }

.project{
    position: absolute;
    top: 75px;
    left: 5%;
    width: 90%;
    height: calc(100% - 90px);
    background: rgba(233, 233, 233, .1);
    color: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(0, 120%);
    will-change: transform;
}

.project.active{ transform: translate(0, 0); }

.project-content{
    width: 40%;
    background: rgba(0,0,0,.5);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.project-content>h3{ font-size: 40px; margin: 0 auto 30px; letter-spacing: 3px; transform: translateY(-100px); transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.project.active .project-content>h3{transform: translateY(0px); }
.project-content>ul{ margin: 0 auto 30px; padding: 0; width: 100%; list-style: none; /*opacity: 0; transition: all 1.6s ease-in;*/ }
.project-content>ul>li{ display: inline-block; margin: 5px; padding: 8px 16px; font-size: 16px; color: #e9e9e9; background: #f86430; border-radius: 5px; }
.project-content>div{ font-size: 21px; max-width: 420px; transform: translateY(100px); transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);  }
.project.active .project-content>div{ transform: translateY(0px); }

.project-gallery{
    flex: 1;
    min-height: 100%;
    width: 60%;
    position: relative;
    overflow: hidden;
}

.project-gallery>div{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    transform: translateX(100%);
    transition: .6s transform cubic-bezier(0.85, 0, 0.15, 1);
}

.project-gallery>div>img{ width: 100%; height: 100%; object-fit: cover; }
.project-gallery>div>video{ width: 100%; height: 100%; object-fit: contain; }
.project-gallery-switch{ position: absolute; right: 0; top: 50%; width: 50px; height: 50px; background-color: rgba(0, 0, 0, .5); border: none; cursor: pointer;  }
.project-gallery-switch svg{ fill: #e9e9e9; transition: fill .3s ease-in; }
.project-gallery-switch:hover svg{ fill: #f86430; }

.project-gallery>div.active{ transform: translateX(0); }

#projects-nav{ margin: 0; padding: 0; list-style: none; height: 60px; display: none; }
#projects-nav li{ display: inline-block; margin: 0 15px; width: 40px; cursor: pointer; padding-top: 10px; }
#projects-nav li svg{ fill: #e9e9e9; transition: fill .3s ease-in; }
#projects-nav li:hover svg{ fill: #f86430; }

#contacts-block>div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100%;
    text-align: center;
}

#contacts-block>div>h3{
    font-size: 40px;
    margin: 0 auto 15px;
}

#contacts-block>div>h4{
    font-size: 18px;
    margin: 0 auto 30px;
    font-weight: 400;
    letter-spacing: 2px;
    max-width: 490px;
}

#contacts-block>div>section{ width: 100%; text-align: center; }
#contacts-block>div>section>div{ margin-bottom: 15px; width: 100%; text-align: left; }
#contacts-block>div>section>div:last-of-type{ text-align: center; margin-bottom: 0; }
#contacts-block>div>section>div>label{ font-size: 16px; margin-bottom: 2px; display: block; color: #f86430; }
#contacts-block>div>section>div>input,
#contacts-block>div>section>div>textarea{ background: transparent; border: none; border-bottom: 2px solid #e9e9e9; color: #e9e9e9; font-size: 14px; resize: vertical; width: 100%; background: rgba(0,0,0, .3); padding: 6px 15px; font-family: 'Oswald', sans-serif; transition: all .3s ease-in; }
#contacts-block>div>section>div>input:focus,
#contacts-block>div>section>div>textarea:focus{ border-color: #f86430; }
#contacts-block>div>section>div>button{ background: #f86430; border: 2px solid #f86430; cursor: pointer; color: #e9e9e9; font-family: 'Oswald', sans-serif; font-size: 16px; border-radius: 5px; text-transform: uppercase; transition: all .3s ease-in; padding: 15px 60px; }
#contacts-block>div>section>div>button:hover{ border-color: #e9e9e9; }

#contact-notice{font-size: 16px; color: #e9e9e9; margin: 0 auto 15px; min-height: 25px; }

.tada{ animation: tada 1.5s linear; background: rgb(248, 100, 48, .3)!important }
@keyframes tada {
  0% {transform: scale3d(1, 1, 1);}
  10%, 20% { transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);}
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
  100% { transform: scale3d(1, 1, 1); }
}


.page-container{position: absolute; top: 60px; left: 0; width: 100%; height: calc(100% - 60px); overflow: hidden; text-align: center; display: flex; flex-direction: column; justify-content: start;}
.page-title{ font-size: 30px; margin: 15px auto 30px; }
.page-container>div{ display: flex; flex-direction: column; justify-content: start; padding: 0 15px; flex: 1; }
.page-content{ width: 100%; max-width: 440px; margin: 0 auto 50px; }
.page-gallery{
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 100%;
    max-height: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.page-gallery>div{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 30px -10px black;
}

.page-gallery>div>div{
    width: calc(100% + 60px);
      height: calc(100% + 60px);
      margin-top: -30px;
      margin-left: -30px;
      background-size: cover;
      background-position: 50% 50%;
}

@media (orientation: portrait), (max-width: 991px){
    .project{ flex-direction: column; }
    .project-content{ width: 100%; min-height: 50%; padding: 15px; }
    .project-content>h3{ font-size: 26px; margin: 0 auto 15px; letter-spacing: 1px; line-height: 1em; }
    .project-content>ul{ margin-bottom: 15px; }
    .project-content>ul>li{ font-size: 12px; padding: 5px; }
    .project-content>div{ font-size: 16px; }
    .project-gallery{ width: 100%; min-height: 50%; }

    #projects-nav li{ margin: 0 5px; width: 30px; padding-top: 15px; }
    #close-content{ width: 30px; }

    #contacts-block>div>h3{font-size: 26px; margin-bottom: 15px;}
    #contacts-block>div>h4{ font-size: 14px; margin-bottom: 15px; }
    #contacts-block>div>section>div>input,
    #contacts-block>div>section>div>textarea{ padding: 5px 15px; }

    #scene-notice-mobile{ display: block; }

    nav.slim a{ font-size: 12px; }

    .page-title{ font-size: 26px; margin: 10 auto 20px; }
    .page-content{ margin-bottom: 25px; font-size: 15px; }
}