@charset "utf-8";





/* Общее */

*,
*::after,
*::before {
	box-sizing: border-box;
	content: '';
	}

*::after,
*::before {
	content: '';
	}





/* Основные компоненты */

.cd-panel {
	z-index: 99999;
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: visibility 0s 0.6s;
	}

.cd-panel::after {
	/* overlay layer */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	cursor: pointer;
	transition: background 0.3s 0.3s;
	}

.cd-panel.is-visible {
	visibility: visible;
	transition: visibility 0s 0s;
	}

.cd-panel.is-visible::after {
	background: rgba(0,153,255, 0.8);	/* Фон под панелью */
	transition: background 0.3s 0s;
	}

.cd-panel.is-visible .cd-panel-close::before {
	animation: cd-close-1 0.6s 0.3s;
	}

.cd-panel.is-visible .cd-panel-close::after {
	animation: cd-close-2 0.6s 0.3s;
	}

@-webkit-keyframes cd-close-1 {
	0%, 50% {
		-webkit-transform: rotate(0);
		}
	100% {
		-webkit-transform: rotate(45deg);
		}
	}

@keyframes cd-close-1 {
	0%, 50% {
		transform: rotate(0);
		}
	100% {
		transform: rotate(45deg);
		}
	}

@-webkit-keyframes cd-close-2 {
	0%, 50% {
		-webkit-transform: rotate(0);
		}
	100% {
		-webkit-transform: rotate(-45deg);
		}
	}

@keyframes cd-close-2 {
	0%, 50% {
		transform: rotate(0);
		}
	100% {
		transform: rotate(-45deg);
		}
	}

.cd-panel-header,
.cd-panel-container {
	width: 50%;
	}

.cd-panel-header {
	z-index: 1002;
	position: fixed;
	height: 60px;
	line-height: 60px;
	font-family: 'Prata', serif;
	font-weight: 400;
	font-style: normal;
	font-size: 125%;
	color: #FFF;
	text-align: center;
	background: linear-gradient(to right, rgba(0,16,102, 0.9) 20%, rgba(0,102,204, 0.9) 50%, rgba(0,16,102, 0.9) 80%);
	transition: top 0.3s 0s;
	}
.from-right .cd-panel-header,
.from-left .cd-panel-header {
	top: -60px;
	}
.from-right .cd-panel-header {
	right: 0;
	}
.from-left .cd-panel-header {
	left: 0;
	}
.is-visible .cd-panel-header {
	top: 0;
	transition: top 0.3s 0.3s;
	}

.cd-panel-header p {
	text-align: center;
	margin: 0;
	}

.cd-panel-close {
	z-index: 1003;
	position: absolute;
	display: inline-block;
	overflow: hidden;
	top: 0;
	right: 0;
	text-indent: 100%;
	width: 60px;
	height: 100%;
	white-space: nowrap;
	}





/* Иконка крестик закрыть - создаём на CSS */

.cd-panel-close::before,
.cd-panel-close::after {
	position: absolute;
	top: 28px;
	left: 10px;
	width: 30px;
	height: 4px;
	background: #FFF;
	-webkit-backface-visibility: hidden;	/* This fixes a bug where pseudo elements are slighty off position */
	backface-visibility: hidden;
	}

.cd-panel-close::before {
	transform: rotate(45deg);
	}

.cd-panel-close::after {
	transform: rotate(-45deg);
	}

.cd-panel-close:hover::before,
.cd-panel-close:hover::after {
	background: #09F;
	}
.cd-panel-close:active::before,
.cd-panel-close:active::after {
	background: #F00;
	}

.no-touch .cd-panel-close:hover {
	background: #09F;
	}
.no-touch .cd-panel-close:hover::before,
.no-touch .cd-panel-close:hover::after {
	background: #09F;
	transition-property: transform;
	transition-duration: 0.3s;
	}
.no-touch .cd-panel-close:hover::before {
	transform: rotate(220deg);
	}
.no-touch .cd-panel-close:hover::after {
	transform: rotate(135deg);
	}





/* Сама панель */

.cd-panel-container {
	z-index: 1000;
	position: fixed;
	top: 0;
	height: 100%;
	line-height: 1.4;
	background: #FFF;
	transition-property: transform;
	transition-duration: 0.3s;
	transition-delay: 0.3s;
	box-shadow: 0 0 30px rgba(0,0,0, 0.75);
	}

.from-right .cd-panel-container {
	right: 0;
	transform: translate3d(100%, 0, 0);
	}

.from-left .cd-panel-container {
	left: 0;
	transform: translate3d(-100%, 0, 0);
	}

.is-visible .cd-panel-container {
	transform: translate3d(0, 0, 0);
	transition-delay: 0s;
	}

.cd-panel-content {
	position: absolute;
	top: 0;
	left: 0;
	overflow: auto;
	box-sizing: border-box;
	width: 100%;
	height: calc(100% - 60px);
	text-align: center;
	padding: 40px 40px 0 40px;
	margin-top: 60px;
	-webkit-overflow-scrolling: touch;	/* Smooth scrolling on touch devices */
	}

.cd-panel-content h5,
.cd-panel-content h6 {
	text-align: center;
	}





/*  ============================================= */
/* =А=Д=А=П=Т=И=В=*=М=Е=Д=И=А=*=З=А=П=Р=О=С=Ы= */
/* ============================================= */





/* Медиазапросы - точка перехода 1600 */

@media only screen and (max-width: 1600px) {

.cd-panel-header,
.cd-panel-container {
	width: 70%;
	}

.cd-panel-content {
	padding: 30px 60px;
	}

	}





/* Медиазапросы - точка перехода 1024 */

@media only screen and (max-width: 1024px) {

.cd-panel-header,
.cd-panel-container {
	width: 80%;
	}

.cd-panel-content {
	height: calc(100% - 50px);
	padding: 30px;
	margin-top: 50px;
	}

	}





/* Медиазапросы - точка перехода 480 */

@media only screen and (max-width: 480px) {

.cd-panel-header,
.cd-panel-container {
	width: 100%;
	}

.cd-panel-content {
	padding: 30px 10px;
	}

	}
