/* Стили модального окна */
.modal-header1 h2 {
    color: #1c3378;  
    font-size: 28px;
    font-weight: normal;
	text-align: center;
    line-height: 1;    
    margin: 0;
}
/* кнопка закрытия окна */
.modal1 .btn-close {
    color: #aaa;
    cursor: pointer;
    font-size: 30px;
    text-decoration: none;
    position: absolute;
    right: 5px;
    top: 0;
}
.modal1 .btn-close:hover {
    color: red;
}
/* слой затемнения */
.modal-wrap:before {
    content: "";
    display: none;
    background: rgba(0, 0, 0, .3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
}
.modal-overlay {
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 102;
}
/* активация слоя затемнения и модального блока */
.modal-open1:checked ~ .modal-wrap:before,
.modal-open1:checked ~ .modal-wrap .modal-overlay {
    display: block;
}
.modal-open1:checked ~ .modal-wrap .modal-dialog1 {
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    -o-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    top: 20%;
}
/* элементы модального окна */
.modal-dialog1 {
    background: #fefefe;
    border: none;
    border-radius: 5px;
    position: fixed;
    width: 80%;
    max-width: 500px;
    left: 50%;
    top: -100%;
    -webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -webkit-transform: translate(-50%, -500%);
    -ms-transform: translate(-50%, -500%);
    -o-transform: translate(-50%, -500%);
    transform: translate(-50%, -500%);
    -webkit-transition: -webkit-transform 0.4s ease-out;
    -moz-transition: -moz-transform 0.4s ease-out;
    -o-transition: -o-transform 0.4s ease-out;
    transition: transform 0.4s ease-out;
    z-index: 103;
}
.modal-body1 {
  padding: 20px;
}
.modal-body1 p {
    margin: 0;
}
.modal-header1,
.modal-footer1 {
    padding: 20px 20px;
}
.modal-header1 {
    border-bottom: #eaeaea solid 1px;
}
.modal-header1 h2 {
    font-size: 20px;
    margin: 0;
}
.modal-footer1 {
    border-top: #eaeaea solid 1px;
    text-align: right;
}
/* адаптивные картинки в модальном блоке */
.modal-body1 img { 
    max-width: 100%;
    height: auto;
}
/* кнопки */
.btn1 {
    background: #fff;
    border: #555 solid 1px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    padding: 8px 15px;
    text-decoration: none;
    text-align: center;
    min-width: 60px;
    position: relative;
}
.btn1:hover, .btn:focus {
    background: #f2f2f2;
}
.btn-primary1 {
    background: #428bca;
    border-color: #357ebd;
    color: #fff;
}
.btn-primary1:hover{
    background: #66A1D3;
}