@charset "utf-8";

/*=====================================================
    
* RuBizCSS3Modal v1.1 - Стильное CSS3 модальное окно

    Автор: http://sergeychunkevich.com
	Copyright: (c) 2015 Sergey Chunkevich

=====================================================*/


/* КНОПКА
-----------------------------------------------------*/

a.RuBizCSS3Modal_button {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}


/* ОСНОВА ОКНА
-----------------------------------------------------*/

.RuBizCSS3Modal {
    background: rgba(0,0,0,0.5);
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    opacity: 0;
    overflow: scroll;
    pointer-events: none;
    -webkit-justify-content: center;
            justify-content: center;
    -webkit-align-items: center;
            align-items: center;
    -webkit-box-align: center;
     -webkit-box-pack: center;
       -ms-flex-align: center;
        -ms-flex-pack: center;
    -webkit-transition: opacity 0.3s ease-in;
       -moz-transition: opacity 0.3s ease-in;
            transition: opacity 0.3s ease-in;
    z-index: 999999;
}
    .RuBizCSS3Modal:target {
        opacity: 1;
        pointer-events: auto;
    }


/* КОНТЕНТ
-----------------------------------------------------*/

.RuBizCSS3Modal_content { 
    background:#fff;
    max-width: 500px;
	min-width: 320px;
    margin: 10% auto;
    padding: 90px ;
    position: relative;
	border-radius:500px; text-align:center;
	-webkit-box-shadow: 0 0 25px rgba(0,0,0,0.3);
       -moz-box-shadow: 0 0 25px rgba(0,0,0,0.3);
            box-shadow: 0 0 25px rgba(0,0,0,0.3);
    z-index: 999998;
}
    /* заголовок */
    .RuBizCSS3Modal_content .rb_zagolovok {
    	background: rgba(0,0,0,0.1);
    	color: #333;
        margin: 0 -20px 10px -20px;
    	padding: 0.5em 2em 0.5em 1em;
    	text-align: center;
    	font-size: 1.5em;
    	font-weight: 400;
    	border-radius: 3px 3px 0 0;
    }
    /* простой текст в окне */
    .RuBizCSS3Modal_content .rb_text {
    	font-size: 19px;
    	color: #fff;
    	margin: 0;
    	padding: 5px 0;
    	line-height: 27px;
    }
    /* картинка */
    .RuBizCSS3Modal_content img {
        width: 100%;
        height: auto !important;
    }


/* ЗАКРЫТЬ ОКНО
-----------------------------------------------------*/

/* закрываем окно кликая вне окна */
.o_close_RuBizCSS3Modal {
    visibility: visible;
    position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 999997;
}
/* закрываем окно кликая на крестик */
.b_close_RuBizCSS3Modal { width:50px; height:50px; border-radius:50px;
    background: #FFFFFF;
    color: #CE0000;
    padding: 0.5em 0.4em; padding-bottom:10px;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    text-decoration: none;
	-webkit-transition: all 0.3s;
	   -moz-transition: all 0.3s;
	        transition: all 0.3s;
}
    .b_close_RuBizCSS3Modal:hover {
        background: #FF4F4F; color:#FFFFFF;
    }


/* НАСТРОЙКИ ДЛЯ ВИДЕОПЛЕЕРА
-----------------------------------------------------*/

.RuBizCSS3Modal_VideoArea {
	position: relative;
	padding-bottom: 54.4%; /* 16:9 */
	padding-top: 25px;
	height: 0;
    margin: 10px 0 15px 0;
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.8);
       -moz-box-shadow: 0 0 4px rgba(0,0,0,0.8);
            box-shadow: 0 0 4px rgba(0,0,0,0.8);
}
    .RuBizCSS3Modal_VideoArea iframe {
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    	height: 100%;
        border: none;
    }


/* НАСТРОЙКИ ДЛЯ ФОРМЫ ПОДПИСКИ
-----------------------------------------------------*/

.RuBizCSS3Modal_optin {
    color: #fff;
    text-align: center;
    padding: 5px 0;
}
    .RuBizCSS3Modal-input * { margin: 0; padding: 0; }
    .RuBizCSS3Modal_optin input::-webkit-input-placeholder { color:#333; }
	.RuBizCSS3Modal_optin input:focus::-webkit-input-placeholder { color:#333; }
	.RuBizCSS3Modal_optin input::-moz-placeholder { color:#333; }
	.RuBizCSS3Modal_optin input:focus::-moz-placeholder { color:#333; }
	.RuBizCSS3Modal_optin input:-ms-input-placeholder { color:#333; }
	.RuBizCSS3Modal_optin input:focus:-ms-input-placeholder { color:#333; }
    .RuBizCSS3Modal_optin input[type="text"] {
        width: 70%;
        color: #fff;
        font-size: 1.5em;
        padding: 7px 10px 7px 10px;
        margin: 10px;
        border: 1px solid #999;
        outline: none;
        text-align: center;
        -webkit-appearance: none;
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
        -webkit-border-radius: 0;
           -moz-border-radius: 0;
                border-radius: 0;
        -webkit-transition: all ease .5s;
           -moz-transition: all ease .5s;
            -ms-transition: all ease .5s;
             -o-transition: all ease .5s;
                transition: all ease .5s;
    }
        .optin input[type="text"]:hover {
            -webkit-box-shadow: 0 0 15px rgba(0,0,0,0.5);
               -moz-box-shadow: 0 0 15px rgba(0,0,0,0.5);
                    box-shadow: 0 0 15px rgba(0,0,0,0.5);
        }
    /* кнопка */
    .RuBizCSS3Modal_optin input[type="submit"] {
        background: -webkit-gradient(linear,left top,left bottom,color-stop(0.05,#ffd000),color-stop(1,#edba00));
        background: -moz-linear-gradient(center top,#ffd000 5%,#edba00 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd000',endColorstr='#edba00');
        background-color: #ffd000;
        border: 1px solid rgba(0,0,0,0.1);
        display: inline-block;
        color: #333;
        font-family: arial;
        font-size: 22px;
        font-weight: bold;
        padding: 13px 25px;
        margin: 10px;
        text-decoration: none;
        cursor: pointer;
        text-align: center;
        overflow: hidden;
        vertical-align: middle;
        outline: none;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0px 1px 0px 0px rgba(250,250,250,0.6) inset,0px -1px 0px 1px rgba(0,0,0,0.1) inset;
                box-shadow: 0px 1px 0px 0px rgba(250,250,250,0.6) inset,0px -1px 0px 1px rgba(0,0,0,0.1) inset;
    }
        .RuBizCSS3Modal_optin input[type="submit"]:hover {
            background:-webkit-gradient(linear,left top,left bottom,color-stop(0.05,#edba00),color-stop(1,#ffd000));
            background:-moz-linear-gradient(center top,#edba00 5%,#ffd000 100%);
            filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#edba00',endColorstr='#ffd000');
            background-color:#edba00
        }
        .RuBizCSS3Modal_optin input[type="submit"]:active {
            position:relative;
            top:1px
        }
        @media only screen and (max-width: 767px) {
            
            .RuBizCSS3Modal_optin input[type="text"] {
                font-size: 1em;
            }
            .RuBizCSS3Modal_optin input[type="submit"] {
                font-size: 1.2em;
                padding: 10px 15px;
            }
           
        }
    /* текст под кнопкой */
    .rbmodal_nospam {
        color: #ccc;
        font-size: 0.9em;
        margin-bottom: 10px;
    }



/* ЭФФЕКТЫ ДЛЯ ПОЯВЛЕНИЯ ОКНА
-----------------------------------------------------*/

/*============================================
    ЭФФЕКТ 1
    - плавное появление из центра
============================================*/

.RuBizCSS3Modal:target .effect1 {
	opacity: 1;
	-webkit-transform: scale(1);
	   -moz-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
}
.effect1 {
	opacity: 0;
	-webkit-transform: scale(0.6);
	   -moz-transform: scale(0.6);
	    -ms-transform: scale(0.6);
	        transform: scale(0.6);
	-webkit-transition: all 0.3s;
	   -moz-transition: all 0.3s;
	        transition: all 0.3s;
}


/*============================================
    ЭФФЕКТ 2
    - плавное вертикальное перевертывание
============================================*/

.RuBizCSS3Modal  {
	-webkit-perspective: 1300px;
	   -moz-perspective: 1300px;
	        perspective: 1300px;
}
.RuBizCSS3Modal:target .effect2 {
	opacity: 1;
	-webkit-transform: rotateX(0deg);
	   -moz-transform: rotateX(0deg);
	    -ms-transform: rotateX(0deg);
	        transform: rotateX(0deg);
}
.effect2 {
	opacity: 0;
	-webkit-transform-style: preserve-3d;
	   -moz-transform-style: preserve-3d;
	        transform-style: preserve-3d;
	-webkit-transform: rotateX(-70deg);
	   -moz-transform: rotateX(-70deg);
	    -ms-transform: rotateX(-70deg);
	        transform: rotateX(-70deg);
	-webkit-transition: all 0.3s;
	   -moz-transition: all 0.3s;
	        transition: all 0.3s;
}


/*============================================
    ЭФФЕКТ 3
    - супер-масштабирование
============================================*/

.RuBizCSS3Modal:target .effect3 {
	opacity: 1;
    -webkit-transform: scale(1);
	   -moz-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
}
.effect3 {
	opacity: 0;
    -webkit-transform: scale(2);
	   -moz-transform: scale(2);
	    -ms-transform: scale(2);
	        transform: scale(2);
	-webkit-transition: all 0.3s;
	   -moz-transition: all 0.3s;
	        transition: all 0.3s;
}

