/*UPDATE <--------------------*/

/*header*/
#header *,
.popup *{
    -webkit-tap-highlight-color: transparent;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
}
#header .nav a{
    font-size: 22px;
}
#header .nav{
    position: relative;
    padding-right: 50px;
    max-width: 920px;
}
.search-open{
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    right: 0;
    /*margin-right: 37px;*/
    margin-right: 4px;
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    background-size: auto;
    background-position: 100% 0;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-transform: all .3s;
    -moz-transform: all .3s;
    -ms-transform: all .3s;
    -o-transform: all .3s;
    transform: all .3s;
}
.search-open:hover{
    -webkit-transform: translateY(-50%) scale(0.95);
    -moz-transform: translateY(-50%) scale(0.95);
    -ms-transform: translateY(-50%) scale(0.95);
    -o-transform: translateY(-50%) scale(0.95);
    transform: translateY(-50%) scale(0.95);
}
@-webkit-keyframes swing-in-top-fwd {
    0% {
        -webkit-transform: rotateX(-100deg);
        transform: rotateX(-100deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 1;
    }
}
@keyframes swing-in-top-fwd {
    0% {
        -webkit-transform: rotateX(-100deg);
        transform: rotateX(-100deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 0;
    }
    100% {
        -webkit-transform: rotateX(0deg);
        transform: rotateX(0deg);
        -webkit-transform-origin: top;
        transform-origin: top;
        opacity: 1;
    }
}
@-webkit-keyframes slit-out-vertical {
    0% {
        -webkit-transform: translateZ(0) rotateY(0);
        transform: translateZ(0) rotateY(0);
        opacity: 1;
    }
    54% {
        -webkit-transform: translateZ(-160px) rotateY(87deg);
        transform: translateZ(-160px) rotateY(87deg);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateZ(-800px) rotateY(90deg);
        transform: translateZ(-800px) rotateY(90deg);
        opacity: 0;
    }
}
@keyframes slit-out-vertical {
    0% {
        -webkit-transform: translateZ(0) rotateY(0);
        transform: translateZ(0) rotateY(0);
        opacity: 1;
    }
    54% {
        -webkit-transform: translateZ(-160px) rotateY(87deg);
        transform: translateZ(-160px) rotateY(87deg);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateZ(-800px) rotateY(90deg);
        transform: translateZ(-800px) rotateY(90deg);
        opacity: 0;
    }
}

.site-search{
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    padding: 0 5px 0 20px;
    height: 46px;
    background-color: #fff;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    border-radius: 999px;
    display: none;
    z-index: 20;
    perspective: 1000px;
    -webkit-animation: slit-out-vertical 0.5s ease-in both;
    animation: slit-out-vertical 0.5s ease-in both;
}
.search-opened .site-search{
    display: block;
    -webkit-animation: swing-in-top-fwd 0.8s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
    animation: swing-in-top-fwd 0.8s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}
/*.search-opened*/
.site-search__form{
    display: flex;
    height: 100%;
    align-items: center;
}
.site-search__holder{
    width: 100%;
    padding-right: 55px;
}
.site-search__control {
    font-family: Comfortaa;
    width: 100%;
    font-size: 1rem;
    line-height: 1;
    height: 100%;
    font-weight: 300;
    border: none;
    background: transparent;
    color: #333E44;
    padding: 0;
}
.site-search__btn{
    position: absolute;
    width: 40px;
    height: 40px;
    right: 4px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    border: none;
	cursor: pointer;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
    background-color: transparent;
    background: url(/images2/fest/icons-sprite-new.png)  no-repeat 91.6% 100%;;
}

.site-search__control::-webkit-input-placeholder {
    font-family: inherit;
    color: #3c3b39;
}

.site-search__control::-moz-placeholder {
    font-family: inherit;
    color: #3c3b39;
}

.site-search__control:-ms-input-placeholder {
    font-family: inherit;
    color: #3c3b39;
}

.site-search__control:-moz-placeholder {
    font-family: inherit;
    color: #3c3b39;
}


@media only screen and (max-width: 995px) {
    .search-opened .site-search{
        top: 50%;
        margin-top: -24px;
    }
    #header .nav{
        max-width: 720px;
    }
    #header{
        position: relative;
    }
    #header:before{
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(51, 11, 11, 0.8);
        z-index: 9;
        pointer-events: none;
        display: none;
        opacity: 0;
        -webkit-transition: all .3s;
        -moz-transition: all .3s;
        -ms-transition: all .3s;
        -o-transition: all .3s;
        transition: all .3s;

    }
    .search-opened  #header:before{
        display: block;
        opacity: 1;
    }
}
@media only screen and (max-width: 320px){
    #header ul.main_nav {
        margin: 0 0 0 0;
    }
}




/*callback*/
.callback{
    position: fixed;
    right: 60px;
    bottom: 70px;
    z-index: 5;
}
.callback:hover{
    text-decoration: none;
}
.callback__img{
    display: block;
    width: 96px;
    height: 96px;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    border-radius: 999px;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    box-shadow: 0 0 2px #3c3b39;
}
.callback__img img{
    max-width: 100%;
    height: auto;
}
.callback__info{
    position: absolute;
    width: 220px;
    right: 48px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /*padding: 25px 45px;*/
    flex-flow: column nowrap;
    background-color: #f1eff0;
    -webkit-border-radius: 999px 0 0 999px;
    -moz-border-radius: 999px 0 0 999px;
    border-radius: 999px 0 0 999px;
    z-index: -1;
    overflow: hidden;
    width: 0;
    font-size: 0;
    line-height: 0;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
.callback__info mark{
    display: block;
    width: 100%;
    background-color: transparent;
    color: #ed1f24;
    margin-bottom: 5px;
    /*white-space: nowrap;*/
}
.callback:hover .callback__info{
    width: 220px;
    font-family: Comfortaa;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    text-align: left;
    color: #3c3b39;
    padding: 25px 45px;
    box-shadow: 0 0 3px #dad8d9;
}
.callback:hover .callback__img{
    box-shadow: 0 0 20px rgba(237, 31, 36, 0.69);
    /*box-shadow: 0 0 20px #000;*/
}


@media only screen and (max-width: 995px) {
    .callback{
        right: 30px;
        bottom: 30px;
    }
    .callback__img{
        width: 60px;
        height: 60px;
    }
    .callback__info{
        right: 30px;
    }
}
@media only screen and (max-width: 640px) {
    .callback{
        right: 20px;
    }
    .callback__img{
        width: 50px;
        height: 50px;
    }
    .callback__info{
        right: 25px;
    }
    .callback:hover .callback__info{
        font-size: 14px;
        padding: 10px 30px;
        width: 160px;
    }
}



/*popup*/
#wrap{
    position: relative;
    min-height: 100vh;
}

.popup {
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    width: 100vw;
    z-index: 30;
    flex-direction: column;
    justify-content: center;
    display: none;
    font-family: Comfortaa;
    background-color: rgba(237, 31, 36, 0.69);
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;

}

@-webkit-keyframes tracking-in-contract-bck {
    0% {
        letter-spacing: 1em;
        -webkit-transform: translateZ(400px);
        transform: translateZ(400px);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        opacity: 1;
    }
}
@keyframes tracking-in-contract-bck {
    0% {
        letter-spacing: 1em;
        -webkit-transform: translateZ(400px);
        transform: translateZ(400px);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        opacity: 1;
    }
}


.popup-opened{
    overflow: hidden;
}
.popup-opened .popup{
    display: flex;
    flex-wrap: wrap;
    -webkit-animation: tracking-in-contract-bck 1.3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-contract-bck 1.3s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;

}
.popup__wrapper{
    background-color: #fff;
    padding: 36px 68px 73px 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.callback-form{
    font-family: Comfortaa;
}
.callback-form__title{
    /*width: 100%;*/
    flex-basis: 100%;
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 30px;
    padding: 0;
}
.callback-form__title mark{
    background-color: transparent;
    color: #ed1f24;
}
.callback-form__success{
	display: none;
}
.callback-form__group{
    border: none;
    display: flex;
    flex-flow: row wrap;
}
.callback-form__holder{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /*width: 100%;*/
    /*max-width: 311px;*/
    flex-basis: 311px;
}
.callback-form__holder + .callback-form__holder{
    margin-left: 40px;
}
.callback-form__holder:nth-last-child(1){
    margin-left: 60px;
    flex-basis: initial;
}
.callback-form__holder label{
    display: inline-block;
    vertical-align: top;
    margin-bottom: 6px;
    padding: 0 13px;
    color: #b4b4b4;
}
.callback-form__control{
    width: 100%;
    height: 45px;
    font-family: inherit;
    padding: 0 13px;
    color: #b4b4b4;
    border: 1px solid #b4b4b4;
}
.callback-form__control.error{
	border: 1px solid #f00;
}
.callback-form__btn{
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    width: 93px;
    height: 93px;
    border: none;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
    background-color: transparent;
    background: url(/images2/fest/telegram.png)  no-repeat;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}
.callback-form__btn:hover{
    box-shadow: 0 0 30px rgba(237, 31, 36, 0.69);
}
.callback-form__btn:active{
    -webkit-transform: scale(.95);
    -moz-transform: scale(.95);
    -ms-transform: scale(.95);
    -o-transform: scale(.95);
    transform: scale(.95);
}
.callback-form__control::-webkit-input-placeholder {
    font-family: inherit;
    color: #e2e2e2;
}

.callback-form__control::-moz-placeholder {
    font-family: inherit;
    color: #e2e2e2;
}

.callback-form__control:-ms-input-placeholder {
    font-family: inherit;
    color: #e2e2e2;
}

.callback-form__control:-moz-placeholder {
    font-family: inherit;
    color: #e2e2e2;
}
.callback-form__control:focus{
    border-color: #ed1f24;
    outline-color: #ed1f24;
}

.grecaptcha-badge{
	display: none;
}

@media only screen and (max-width: 995px) {
    .callback-form__group{
        display: block;
    }
    .callback-form__holder,
    .callback-form__holder + .callback-form__holder,
    .callback-form__holder:nth-last-child(1){
        margin: 0 0 20px;
    }
    .callback-form__title{
        font-size: 30px;
    }
    .callback-form__holder:nth-last-child(1){
        display: block;
        text-align: center;
    }
}

@media only screen and (max-width: 640px) {
    .callback-form__title{
        text-align: center;
        font-size: 20px;
    }
    .callback-form__title mark{
        display: block;
        margin-top: 3px;
    }
    .callback-form__holder{
        width: 100%;
    }
    .popup__wrapper{
        padding: 20px 10px;
    }
}
