* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: transparent;
}

:root {
    --index: calc(1vw + 1vh);
    --gutter: 30px;
    --side-small: 26;
    --side-big: 36;
    --depth: 4300px;
    --transition: .75s cubic-bezier(.075, .5, 0, 1);
}

@font-face {
    font-family: releway_c;
    src: url(../fonts/raleway-v22-cyrillic-300.woff2);
    font-weight: 300;
}
@font-face {
    font-family: releway_c;
    src: url(../fonts/raleway-v22-cyrillic-100.woff2);
    font-weight: 100;
}

h1, h2 {
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1;
}

h3,h4 {
    font-weight: 100;
    text-transform: uppercase;
    /* width: min-content; */
    max-width: 400px;
    line-height: 1;
}

body {
	scrollbar-width: none;  /* Firefox */
}
body::-webkit-scrollbar { 
	display: none;  /* Safari and Chrome */
}

body{
    background-color: #000;
    color: #fff;
    font-size: calc(var(--index) * .8);
    font-family: releway_c, sans-serif;
    line-height: 1.75;
    height: var(--depth);
}
.container{
    width: 100%;
    height: 100%;
    position: fixed;
    perspective: 1500px;
}
.gallery{
    transform-style: preserve-3d;
    height: 100%;
}

.frame{
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition), opacity .75s ease;
    will-change: transform;
    transform-style: preserve-3d;
}
.frame h1{
    text-align: center;
    font-size: calc(var(--index) * 3.3);
    margin-bottom: 100px;
    font-weight: 300;
}

.frame-media{
    position: relative;
    width: calc(var(--index) * var(--side-small));
    height: calc(var(--index) * var(--side-big));
    background-position: center;
    background-size: cover;
}
.frame-media_left{
    right: calc(var(--side-small) / 2 * var(--index) + var(--gutter));
}

.frame-media_right{
    left: calc(var(--side-small) / 2 * var(--index) + var(--gutter));
}

.frame-phone{
    opacity: 1;
}

.frame_bg{
    background-color: rgba(0 0 0 / .87);
}

.frame__content{
    z-index: 0;
}

video.frame-media{
    width: calc(var(--index) * var(--side-big));
    height: calc(var(--index) * var(--side-small));
}
video.frame-media_right{
    left: calc(var(--side-big) / 2 * var(--index) + var(--gutter));
}

video.frame-media_left{
    right: calc(var(--side-big) / 2 * var(--index) + var(--gutter));
}

.text-left > *{
    position: relative;
    right: 18vw;
}

.text-right > *{
    position: relative;
    left: 18vw;
}

.frame h3{
    font-size: calc(var(--index) * 2.8);
}

.frame p{
    max-width: 30vw;
    margin-top: 3vh;
}


.form__wrapper{
    position: fixed;
    right: -100%;
    bottom: 25%;
    max-width: 300px;
    width: 100%;
    padding: 30px;
    background-color: rgb(0 0 0 / 45%);
    transition: all .3s ease-in-out;
}
.form__wrapper.show{
    right: 0;
}
.form__inner{
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form__inner input{
    padding: 10px 20px;
    max-width: 200px;
    width: 100%;
    border-radius: 10px;
    border: none;
}

.form__inner button{
    background-color: #fff;
    color: #5C5C5E;
    font-family: releway_c;
    max-width: 200px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.form__inner button:hover{
    background-color: #ebe1e1f1;
}

.header{
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #fff;
    box-shadow: 0px 4px 15px;
    z-index: 11111;
}
.header__container{
    padding:0 20px;
    max-width: 1240px;
    margin: 0 auto;
    
}
.header__inner{
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}
.header__contacts-item--link{
    color: #000;
}
.header__social{
    display: flex;
    gap: 10px;
}
.header__contacts{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.header__contacts-item--link{
    position: relative;
}
.header__contacts-item--link::after{
    content: "";
    position: absolute;
    width: 30px;
    height: 1px;
    background-color: #ccc;
    bottom: -5px;
    left: 0;
    transition: all .3s ease;
}
.header__contacts-item--link:hover.header__contacts-item--link::after{
    width: 100%;
}

.header__logo-link{
    display: flex;
}
.header__contacts-box{
    display: flex;
    gap: 30px;
}
.header__logo-img{
    max-width: 120px;
    width: 100%;
}
.header__social-img{
    width: 30px;
}
.header__social-img:hover{
    border-radius: 50%;
    box-shadow: 0 3px 8px #000;
}

.footer__phone{
    color: #fff;
    font-size: 40px;
}

.form__btn-trigger {
	position: fixed;
	bottom: 5vw;
	right: 5vw;
	cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    
	background-color: #fff;
	transition: .25s ease;
}

.form__btn-trigger span{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.form__btn-trigger span img{
    width: 30px;
}
.form__btn-trigger span::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0px 5px 1px #fff;
    animation: circle 1.2s ease-in-out 1s infinite;
}

.form__btn-trigger:hover.form__btn-trigger span::before{
    animation: none;
    box-shadow: none;
}

@keyframes circle {
    from {
      width: 48px;
      height: 48px;
      opacity: 1;
      /* left: 50%;
        top: 50%;
        transform: translate(-50% -50%); */
      transform-origin: center;
    }
    to {
      width: 70px;
      height: 70px;
      opacity: 0.2;
      transform-origin: center;
    }
  }

@media (max-width: 1050px){
    .form__inner{
        padding: 30px 10px;
    }
}

@media (max-width: 870px) {
   .form__inner{
    padding: 5px;
}
}

@media (max-width: 600px){
    .form__inner input{
        padding: 10px 5px;
    }
    h3 {
        width: min-content;
    }
    .form__btn-trigger{
        bottom: 10vw;
    }
}

@media (max-width: 520px){
    .form__inner input{
        font-size: 12px;
    }
}

@media (max-width: 480px){
    .header__contacts-box{
        flex-direction: column;
        gap: 5px;
    }
    .form__inner button{
        padding: 9px 5px;
    }
}   

@media (max-width: 430px) {
    .form__inner{
        left: calc(var(--side-small) / 14 * var(--index) + var(--gutter));
    }
    .form__inner button{
        padding: 9px 3px;
    }
}

@media (max-width: 360px) {
    .header__social-img{
        max-width: 25px;
    }
    .header__social{
        gap: 5px;
    }
}