html
{ 
    height: 100%; 
}

html,
body {
    margin: 0;
    padding: 0;
    color: black; /*white;*/
    min-width: 980px;
    background-image: url(images/137576754.jpg); /*0fd65836c8211980ee1023694a7c577a.jpg);*/
    background-repeat: repeat;
}

body{
    display: flex; 
    flex-direction: column; 
    align-items: stretch;
    height: 100%;
}

header{
    flex: 0 0 auto;
}

header::after{
  content: "";
  opacity: 0.5;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;      
}

p {
  text-indent: 1.5em;
}

main{
    flex: 1 0 auto;
}

footer{
    flex: 0 0 auto;
}

/* Header */
@font-face{
    font-family: Red October;
    src: url("fonts/Red October-Regular.ttf")  format('truetype');
}

@font-face{
    font-family: Afisha;
    src: url(fonts/Afisha.ttf)  format('truetype');
}

@font-face{
    font-family: Grad;
    src: url(fonts/Grad.ttf)  format('truetype');
}

@font-face{
    font-family: B52;
    src: url(fonts/B52.ttf)  format('truetype');
}

header{
    margin: 10px 45px 0 45px;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: space-between;
}

header .michael{
    width:70%;/*1080px;*/
    margin:10px auto;
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
}

header .michael .header-img{
    display: flex; 
    flex-direction: row;
    align-self: flex-start;
    vertical-align: middle;
    margin-right: 0.5em;
    justify-content: center;
}

header .michael .img1:after{
    position:absolute;
    margin-top:20px;
    margin-left:-60px;
    content: url(images/obraztcy_tcitat_s_primerami_css_koda_14b.png);
}

header .michael .img2:after{
    position:absolute;
    margin-top:30px;
    margin-left:-300px;
    content: url(images/obraztcy_tcitat_s_primerami_css_koda_14b.png);
}

header .michael .img3:after{
    position:absolute;
    margin-top:60px;
    margin-left:-330px;
    content: url(images/obraztcy_tcitat_s_primerami_css_koda_14b.png);
}

header .michael .img_1{
    width: 300px;
    min-height: 100px;
    border-radius: 5px;
    vertical-align: middle;
    box-shadow: -4px 4px 13px black;
    flex-grow: 1;
    align-self: flex-start;
    transform: rotate(-5deg);
    margin-top: 40px;
    margin-bottom: 20px;
}

header .michael .img_2{
    width: 300px;
    min-height: 100px;
    border-radius: 5px;
    vertical-align: middle;
    box-shadow: 4px 4px 13px black;
    flex-grow: 1;
    align-self: flex-start;
    transform: rotate(7deg);
    margin-top: 40px;
    margin-bottom: 20px;
}

header .michael .img_3{
    width: 300px;
    min-height: 100px;
    border-radius: 5px;
    vertical-align: middle;
    box-shadow: -4px 4px 13px black;
    flex-grow: 1;
    align-self: flex-start;
    transform: rotate(-7deg);
    margin-top: 40px;
    margin-bottom: 20px;
}

header .site-name{
    padding-left: 30px;
    flex-grow: 3;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content:space-around;
    align-items: flex-start;
    flex-wrap: nowrap;
    min-height: 300px;
}

header .site-name div{
    margin: 0px;
    z-index: 100;
    align-self:flex-start;
    flex-wrap: nowrap;
}

header .site-name h1{
    z-index: 100;
    margin: 5px;
    font-family: B52;
    font-size: 20pt;
    text-shadow: 4px 4px 3px gray;
}

header .site-name .header-name{
    font-size: 50pt;    
}

.view_articles h4{
    font-size: 12pt;    
    margin-right: 10px;
}

.view_articles{
    display: flex;
    flex-direction: row;
    justify-content:flex-start;
    align-items:center;
    margin: 0px 45px;
    list-style: none;
}

.view_articles ul{
    display: flex;
    flex-direction: row;
    justify-content:flex-start;
    align-items:flex-start;
    padding: 0;
    margin: 10px 0px;
    list-style: none;
}

header .main-menu,
header .main-menu1{
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial;
    font-size: 15pt;
}

header .main-menu ul,
header .main-menu1 ul{
    display: flex;
    flex-direction: row;
    justify-content:flex-start;
    align-items:flex-start;
    padding: 0;
    margin: 10px 0;
    list-style: none;
    border-radius: 10px;
/*    border: 1px solid #A5A5A5;*/
/*    background-color: rgba(255, 255, 255, .7);*/
/*    box-shadow: 0 0 15px white;*/
}

header .main-menu li,
header .main-menu1 li{
    flex-grow: 1;
    margin: 0 auto;
    border: 1px solid #A5A5A5;
}

header .main-menu a,
header .main-menu1 a{
    display: flex;
    color: black;
    font-family: Arial;
    font-size: 15pt;
    text-decoration: none;
    text-align: center;
    padding: 4px 14px;
    border-left: 1px solid #A5A5A5;
/*    margin-left: -1px;*/
    border-color: #A5A5A5;
/*    background-color: rgba(255, 255, 255, .7);*/
    text-shadow: 2px 2px 1px rgb(190, 190, 190);
}

header .main-menu li:first-child,
header .main-menu li:first-child a{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

header .main-menu li:last-child,
header .main-menu li:last-child a{
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

header .main-menu a:hover,
header .main-menu1 a:hover{
    background-color: rgba(200, 200, 200, .4);
}

header .main-menu .active a,
header .main-menu1 .active a{
    background-color: rgba(240, 0, 0, .6);
}

@media only screen and ( max-width: 980px ){
    header .michael{
        margin: 0 auto;
        width: 80%;/*1080px;*/
        flex-direction: column;
        justify-content: flex-start;
        align-content:stretch;
    }

    header .michael .header-img{
        width: 100%;    
    }
    
    header .site-name{
        margin-top: 30px;
        justify-content: space-between;
        min-height: 100px;
    }    
    
    header .main-menu ul{
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-menu li{
        margin: auto;
        width: 100%;
    }

    header .main-menu li:first-child,
    header .main-menu li:first-child a{
        border-top-right-radius: 10px;
        border-bottom-left-radius: 0;
    }

    header .main-menu li:last-child,
    header .main-menu li:last-child a{
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
    }
}

.site-name .main-menu,
.site-name .main-menu1{
    display: block;
    margin: 0;
    z-index: 200;
}

.site-name .main-menu1{
    bottom: 10px;
}

.site-name .main-menu ul,
.site-name .main-menu1 ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-name .main-menu li,
.site-name .main-menu1 li{
    display: inline-block;
    margin-right: -4px;
    border: 1px solid #A5A5A5;
}

.site-name .main-menu a,
.site-name .main-menu1 a{
    display: block;
    color: black;
    font-family: Afisha;
    font-size: 30pt;
    text-decoration: none;
    padding: 4px 14px;
    border-left: 1px solid #A5A5A5;
    margin-left: -1px;
    border-color: #A5A5A5;
    background-color: rgba(255, 255, 255, .7);
}

.site-name .main-menu a:hover,
.site-name .main-menu1 a:hover{
    background-color: rgba(200, 200, 200, .7);
}

.site-name .main-menu .active a,
.site-name .main-menu1 .active a{
    background-color: rgba(240, 0, 0, .7);
}

.navigation-menu{
    margin: 10px 0px;
    display: block;
    z-index: 200;
}

.navigation-menu ul{
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-menu li{
    display: inline-block;
    margin-right: -4px;
    border: 1px solid #A5A5A5;
}

.navigation-menu a{
    display: block;
    color: black;
    font-family: Arial;
    font-size: 10pt;
    text-decoration: none;
    padding: 4px 14px;
    border-left: 1px solid #A5A5A5;
    margin-left: -1px;
    border-color: #A5A5A5;
    background-color: rgba(255, 255, 255, .7);
}

.navigation-menu a:hover{
    background-color: rgba(200, 200, 200, .7);
}

.navigation-menu .active a{
    background-color: rgba(240, 0, 0, .7);
}

.layout-positioner{
    width:1080px;
    margin:10px auto;
}

.layout-positioner:after{
    content:'';
    clear:both;
    display:table;
}

/* Main */
main {
    display: block; /* для страховки, очень новый элемент */
    min-height: 200px;
    background-image: url(images/137576754.jpg); /*0fd65836c8211980ee1023694a7c577a.jpg);*/
}

main::after {
    content: "";

    display: table;
    clear: both;
}

.about-me {
    min-height: 100px;
    margin: 45px;
    padding: 5px;
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 15px;
    border-color: white;
    border-width: 5px;
    box-shadow: 0 0 15px white;
    display: flex; 
    flex-direction:row;
    justify-content:space-between;
    align-items:flex-start;
}

.about-header{
    min-height: 100px;
    margin: 0 5px;
    padding: 5px;
    /*background-color: rgba(241, 196, 15, 0.1);*/
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 3px #cccccc;
    display: flex; 
    flex-direction:row;
    justify-content: flex-start;
    align-items:flex-start;
}

.about-header img{
    display: block; /* для страховки, очень новый элемент */
    width: 360px;
    min-height: 100px;
    /*background-color: rgba(243, 156, 18, 0.1);*/
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    flex: none;
}

.about-header .autobyography,
.about-header .contact-me{
    display: block; /* для страховки, очень новый элемент */
    font-size: 14pt;    
    margin-left: 20px;
    padding: 20px;
    /*background-color: rgba(243, 156, 18, 0.1);*/
    background-color: rgba(20, 20, 20, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.about-header .contact-me{
    min-width: 250px;
}

.about-header .autobyography p:first-child:first-letter {
    font-size: 2.5em;
    padding: 2px 10px;
    margin-right: 5px; 
    /*background-color: rgba(243, 156, 18, 0.1);*/
    background-color: rgba(20, 20, 20, 0.1);
    border: 6px double;
    border-radius: 10px;
    color: #EE9966;
    float: inherit;
    font-weight: bold;
    text-shadow:  2px 2px 3px gray;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.about-header .autobyography img{
    float:right; /* Выравнивание по левому краю */
    margin: 7px 7px 7px 0; /* Отступы вокруг картинки */
    width: 400px;
    min-height: 100px;
}

.contact-me h2{
    z-index: 100;
    margin: 10px;
    font-family: B52;
    font-size: 20pt;
    text-shadow: 4px 4px 3px gray;
}

.contact-me dl {
    width: 200px;
    background-image: url(images/obraztcy_tcitat_s_primerami_css_koda_14a.png);
    border: 1px solid #ccc;
    box-shadow: 1px 1px 1px #ccc;
    font-style: italic;
    margin: 0;
    padding: 25px 20px 20px 20px;
    position: relative;
}

.contact-me dl:before{
    position:absolute;
    margin-top:-30px;
    margin-left:-30px;
    content: url(images/obraztcy_tcitat_s_primerami_css_koda_14b.png);
}
/*
.contact-me dl cite:before {
content: "\2014 \2009";
}
*/

/*
.contact-me dl{
    padding: 15px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);

    line-height: 1.5;
    background-size: auto 3em;
    background-origin: content-box;
    background-image: linear-gradient(rgba(0,0,0,.2) 50%, transparent 0);
}

.contact-me dt,
.contact-me dd{
    display: inline;
    margin: 0;
}

.contact-me dd {
	font-weight: 600;
}

.contact-me dt + dd::before,
.contact-me dd + dt::before {
	content: "\A";
	white-space: pre;
}
.contact-me dd + dd::before {
	content: ', ';
	font-weight: normal;
	margin-left: -.25em;
}
*/
.profile {
    min-height: 100px;
    padding: 0 2%;
    flex: 1 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}

.profile h2{
    color: dimgrey;
    font-family: Arial;
    text-transform: uppercase;
    font-size: 30pt;
    text-shadow: 4px 4px 3px white;
}

.last-actions {
    min-height: 580px;
    min-width: 400px;
    flex: none;
}

.book-one {
    min-height: 100px;
    margin: 0 5px;
    padding: 5px;
    background-color: rgba(241, 196, 15, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 3px #cccccc;
    display: flex; 
    flex-direction:column;
    justify-content: flex-start;
    align-items:flex-start;
}

.book-header {
    min-height: 100px;
    margin: 0 5px;
    padding: 5px;
    background-color: rgba(241, 196, 15, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 3px #cccccc;
    display: flex; 
    flex-direction:row;
    justify-content: flex-start;
    align-items:flex-start;
}

.book-header img{
    display: block; /* для страховки, очень новый элемент */
    width: 360px;
    min-height: 100px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    flex: none;
}

.book-header .about-book{
    display: block; /* для страховки, очень новый элемент */
    min-width: 300px;
    width: 300px;
    margin-left: 5px;
    margin-right: 5px;
}

.book-header .about-book h3{
    z-index: 100;
    margin-left: 20px;
    font-family: Arial;
    text-transform: uppercase;    
    font-size: 15pt;
    margin-top: -5px;
}

.book-header .about-book h3 a{
    display: block;
    text-decoration: none;
}

.book-header .about-book h4{
    font-size: 12pt;    
    margin-left: 20px;
    margin-top: -15px;
}

.book-header .about-book .shop, 
.book-header .about-book .book-cut,
.book-header .about-book .ya-share2{
    display: block;
    margin: 20px;
    z-index: 200;
}

.book-header .about-book .shop a,
.book-header .about-book .book-cut a,
.book-header .about-book .ya-share2{
    display: block;
    color: dimgrey;
    font-family: Arial;
    text-transform: uppercase;
    font-size: 15pt;
    text-decoration: none;
    text-align: center;
    padding: 4px 14px;
    border: 1px solid #A5A5A5;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border-color: #A5A5A5;
    background-color: rgba(255, 255, 255, .7);
}

.book-header .about-book .shop a:hover, 
.book-header .about-book .book-cut a:hover{
    background-color: rgba(200, 200, 200, .7);
}

.book img{
    display: block; /* для страховки, очень новый элемент */
    width: 200px;
    min-height: 100px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    flex: none;
}

.book {
    min-height: 100px;
    margin: 0 5px;
    padding: 5px;
    background-color: rgba(241, 196, 15, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 3px #cccccc;
    display: flex; 
    flex-direction:row;
    justify-content: flex-start;
    align-items:flex-start;
}

.book .about-book{
    display: block; /* для страховки, очень новый элемент */
    min-width: 300px;
    width: 300px;
    margin-left: 5px;
    margin-right: 5px;
}

.book .about-book h3{
    z-index: 100;
    margin-left: 20px;
    font-family: Arial;
    text-transform: uppercase;
    font-size: 15pt;
    margin-top: -5px;
}

.book .about-book h3 a{
    display: block;
    text-decoration: none;
}

.book .about-book h4{
    font-size: 12pt;    
    margin-left: 20px;
    margin-top: -15px;
}

.article img{
    max-width: 200px;
    min-height: 100px;
    /*background-color: rgba(243, 156, 18, 0.1);*/
    /*background-color: rgba(20, 20, 20, 0.1);*/
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    padding: 20px;
    margin: 20px;
}

.big_image img{
    max-width: 400px;
    min-height: 200px;
}

.article {
    min-height: 100px;
    margin-bottom: 40px;
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px white;
    display: flex; 
    flex-direction: row;
    justify-content: flex-start;
    align-items:flex-start;
    flex-wrap: wrap;
}

.article_gallery {
    min-height: 100px;
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px white;
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items:flex-start;
    flex-wrap: wrap;
}

.article_gallery img{
    max-width: 200px;
    min-height: 100px;
    /*background-color: rgba(243, 156, 18, 0.1);*/
    /*background-color: rgba(20, 20, 20, 0.1);*/
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    margin: 20px;
}

.view_article_gallery{
    min-height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:stretch;    
    flex-wrap: wrap;
}

.view_article_list{
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items:stretch;    
}

.big_image{
    padding: 0 2%;
    margin: 45px;
}

@media only screen and ( max-width: 1100px ){
    .article {
        padding: 20px 20px;
        flex-wrap: wrap;
        align-items:stretch;
        justify-content:center;
    }
}

.article_gallery .about-article{
    min-width: 300px;
    max-width: 300px;
    max-height: 200px;
    margin: 5px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
 }

.article .about-article{
    min-width: 300px;
    max-width: 300px;
    padding: 20px 5px 20px 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.article_gallery .about-article h3,
.article .about-article h3{
    z-index: 100;
    font-family: Arial;
    text-transform: uppercase;
    font-size: 15pt;
    margin-bottom: 15px;
    margin-top: 0px;
}

.article .content{
    font-size: 14pt;    
}

.article_gallery .content{
    display: none;    
}

.article_gallery  .about-article h3 a,
.article .about-article h3 a{
    text-decoration: none;
}

.article_gallery  .about-article h4,
.article .about-article h4{
    font-size: 12pt;    
    margin: 5px 0;
}

.article .about-article .ya-share2{
    margin-top: 20px;
}

.book-header .annotation, .content{
    display: block; /* для страховки, очень новый элемент */
    font-size: 14pt;    
    margin-left: 20px;
    padding: 20px;
    /*background-color: rgba(243, 156, 18, 0.1);*/
    /*background-color: rgba(5, 5, 5, 0.1);*/
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex-basis: 500px;
    flex-grow: 4;
}

.annotation{
    display: block; /* для страховки, очень новый элемент */
    font-size: 14pt;    
    margin-left: 20px;
    margin-top: -5px;
}

.annotation blockquote:before{
    position:absolute;
    margin-top:-33px;
    margin-left:-20px;
    content:url('webof.png');
}

.annotation blockquote:after{
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 15px;
    right: 10px;
    left: auto;
    width: 50%;
    top: 80%;
    -webkit-box-shadow: 0 19px 7px #a7a7a7;
    -moz-box-shadow: 0 19px 7px #a7a7a7;
    box-shadow: 0 19px 7px #a7a7a7;
    -webkit-transform: rotate(3deg);
    -moz-transform: rotate(3deg);
    -o-transform: rotate(3deg);
    -ms-transform: rotate(3deg);
    transform: rotate(3deg);
}

.annotation p:first-child:first-letter, 
.content  p:first-child:first-letter{
    font-size: 2.5em;
    padding: 2px 10px;
    margin-right: 5px; 
    background: rgba(243, 156, 18, 0.1);
    border: 4px double;
    border-radius: 10px;
    color: #EE9966;
    float:inherit;
    font-weight: bold;
    text-shadow:  2px 2px 3px black;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.book .content a{
    padding: .3em .8em;
    border: 1px solid rgba(0,0,0,.1);
    background: #58a linear-gradient(hsla(0,0%,100%,.2), transparent);
    border-radius: .2em;
    box-shadow: 0 .05em .25em rgba(0,0,0,.5);
    color: white;
    text-shadow: 0 -.05em .05em rgba(0,0,0,.5);
    font-size: 125%;
    line-height: 1.5;
    text-decoration: none;
background-color: #EE9966;
}

.book .content a:hover {
    text-shadow: 0 0 0em rgba(0,0,0,.5);
    box-shadow: 0 0 0em rgba(0,0,0,.5);
}

.annotation blockquote {
    background: none repeat scroll 0 0 #f4e892;
    color: #252540;
    font-family: arial;
    font-size: 17px;
    font-style: italic;
    line-height: 1.45;
    text-align:center;
    padding: 15px 38px;
    position: relative;
    min-width: 450px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 0 10px rgba(0,0,0,0.1) inset;
}


#slider {
   background: #000;
   border: 5px solid #eaeaea;
   box-shadow: 1px 1px 5px rgba(0,0,0,0.7);
   height: 540px;
   width: 360px;
   margin: 20px;
   overflow: visible;
   position: relative;
}

#mask {
   overflow: hidden;
   height: 540px;
}

#slider ul {
   margin: 0;
   padding: 0;
   position: relative;
}

#slider li {
   width: 360px;  /* Ширина изображения */
   height: 540px; /* Высота изображения */
   position: absolute;
   top: -545px;	/* Исходное положение  (за пределами слайдера) */
   list-style: none;
}

#slider li.firstanimation {
   animation: cycle 25s linear infinite;
}

#slider li.secondanimation {
   animation: cycletwo 25s linear infinite;
}

#slider li.thirdanimation {
   animation: cyclethree 25s linear infinite;
}

#slider li.fourthanimation {
   animation: cyclefour 25s linear infinite;
}

#slider li.fifthanimation {
   animation: cyclefive 25s linear infinite;
}

@keyframes cycle {
   0%  { top: 0px; } /* При запуске слайдера, первое изображение уже видимо */
   4%  { top: 0px; } /* При запуске слайдера, первое изображение уже видимо */
   16% { top: 0px; opacity:1; z-index:0; } /* (3 секунды) изображение видимо */
   20% { top: 545px; opacity: 0; z-index: 0; } /* (1 секунды)выход изображения*/
   21% { top: -545px; opacity: 0; z-index: -1; } /* Возвращение на исходную позицию за пределами маски */
   92% { top: -545px; opacity: 0; z-index: 0; }
   96% { top: -545px; opacity: 0; } /* (1 секунда) – вход */
   100%{ top: 0px; opacity: 1; }
}

@keyframes cycletwo {
   0%  { top: -545px; opacity: 0; } /* Исходная позиция за пределами маски */
   16% { top: -545px; opacity: 0; }/* Начало движения с 28% */
   20% { top: 0px; opacity: 1; }
   24% { top: 0px; opacity: 1; }  /* С 20% до 24% (в течении 1 секунды) — вход*/
   36% { top: 0px; opacity: 1; z-index: 0; }   /* С 24% до 36 % (3 секунды) изображение видимо */
   40% { top: 545px; opacity: 0; z-index: 0; } /* С 36% до 40% (1 секунда)— выход */
   41% { top: -545px; opacity: 0; z-index: -1; }   /* Возврат на исходную позицию */
   100%{ top: -545px; opacity: 0; z-index: -1; }
}

@keyframes cyclethree {
   0%  { top: -545px; opacity: 0; }
   36% { top: -545px; opacity: 0; }
   40% { top: 0px; opacity: 1; }
   44% { top: 0px; opacity: 1; }
   56% { top: 0px; opacity: 1; }
   60% { top: 545px; opacity: 0; z-index: 0; }
   61% { top: -545px; opacity: 0; z-index: -1; }
   100%{ top: -545px; opacity: 0; z-index: -1; }
}

@keyframes cyclefour {
   0%  { top: -545px; opacity: 0; }
   56% { top: -545px; opacity: 0; }
   60% { top: 0px; opacity: 1; }
   64% { top: 0px; opacity: 1; }
   76% { top: 0px; opacity: 1; }
   80% { top: 545px; opacity: 0; z-index: 0; }
   81% { top: -545px; opacity: 0; z-index: -1; }
   100%{ top: -545px; opacity: 0; z-index: -1; }
}

@keyframes cyclefive {
   0%  { top: -545px; opacity: 0; }
   76% { top: -545px; opacity: 0; }
   80% { top: 0px; opacity: 1; }
   84% { top: 0px; opacity: 1; }
   96% { top: 0px; opacity: 1; z-index: 0; }
  100% { top: 545px; opacity: 0; z-index: 0; }
}

.progress-bar {
   position: relative;
   top: -5px;
   width: 360px;
   height: 5px;
   background: #000;
   animation: fullexpand 25s ease-out infinite;
}

@keyframes fullexpand {
   /* В этих ключевых кадрах анимация стационарна */
   0%, 20%, 40%, 60%, 80%, 100% { width: 0%; opacity: 0; }

   /* В этих — оживает */
   4%, 24%, 44%, 64%, 84% { width: 0%; opacity: 0.3; }

   /* В этих — плавно заполняется */
   16%, 36%, 56%, 76%, 96% { width: 100%; opacity: 0.7; }

   /* В этих ключевых кадрах индикатор выполнения завершил свой путь */
   17%, 37%, 57%, 77%, 97% { width: 100%; opacity: 0.3; }

   /* В этих ключевых кадрах индикатор выполнения исчезнет, а затем возобновит цикл */
   18%, 38%, 58%, 78%, 98% { width: 100%; opacity: 0; }
}

#slider .tooltip {
   background: rgba(0,0,0,0.7);
   width: 300px;
   height: 50px;
   position: relative;
   bottom: 85px;
   left: -320px;
   transition: all 0.3s ease-in-out;
}

#slider .tooltip h1 {
   color: #fff;
   font-size: 18px;
   font-weight: 300;
   line-height: 50px;
   padding: 0 0 0 10px;
}

#slider li#first:hover .tooltip,
#slider li#second:hover .tooltip,
#slider li#third:hover .tooltip,
#slider li#fourth:hover .tooltip,
#slider li#fifth:hover .tooltip{
   left: 0px;
}

#slider:hover li,
#slider:hover .progress-bar {
   animation-play-state: paused;
}


/* Footer */
footer{
    height: 280px;
    color:#ccc;
    font-size:12px;

    position:relative;
    z-index:-2;

    background-color:#31353a;

    background-image:-webkit-linear-gradient(top, #31353a, #2f3337);
    background-image:-moz-linear-gradient(top, #31353a, #2f3337);
    background-image:linear-gradient(top, #31353a, #2f3337);
}

footer > ul{
    width:720px;
    position:fixed;
    bottom:10px;
    left: 50%;
    margin-left:-360px;
    padding-bottom: 20px;
    z-index:-1;
}

footer > ul > li{
    width:33%;
    float:left;
}

footer ul{
    list-style: none;
}

/* Ссылки */

footer > ul > li ul li{
    text-transform: uppercase;
    font-weight:bold;
    line-height:1.8;
}

footer > ul > li ul li a{
    text-decoration: none !important;
    color:#7d8691 !important;
}

footer > ul > li ul li a:hover{
    color:#ddd !important;
}

footer a.logo{
    color: #e4e4e4 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    text-transform: uppercase;
    margin-left: 16px;
    display: inline-block;
    margin-top: 7px;
}

footer a.logo i{
    font-style: normal;
    position: absolute;
    width: 60px;
    display: block;
    left: 60px;
    top: 18px;
    font-size: 12px;
    color: #999;
}

footer a.logo:before{
    content: '';
    display: inline-block;
    background: url(images/small_image.png) no-repeat;
    width: 50px;
    height: 64px;
    vertical-align: text-top;
    margin-right: 0.5em;
    border: 2px solid white;
    box-shadow: 0 0 4px #c0392b;
    transform: rotate(-5deg);
}

footer p{
    width: 90%;
    margin-right: 10%;
    padding: 9px 0;
    line-height: 18px;
    background-color: #058cc7;
    font-weight: bold;
    font-size: 14px;
    color:#fff;
    text-transform: uppercase;
    text-shadow: 0 1px rgba(0,0,0,0.1);
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    opacity:0.9;
    cursor:default;

    -webkit-transition: opacity 0.4s;
    -moz-transition: opacity 0.4s;
    transition: opacity 0.4s;
}

footer > ul > li:hover p{
    opacity:1;
}

footer p:before{
    content: '';
    display: inline-block;
    background: url(images/sprite.png) no-repeat;
    width: 16px;
    height: 18px;
    margin: 0 12px 0 15px;
    vertical-align: text-bottom;
}

footer p.home{
    background-color: #0096d6;

    background-image:-webkit-linear-gradient(top, #0096d6, #008ac6);
    background-image:-moz-linear-gradient(top, #0096d6, #008ac6);
    background-image:linear-gradient(top, #0096d6, #008ac6);
}

footer p.home:before{
    background-position: 0 -110px;
}

footer p.services{
    background-color: #00b274;

    background-image:-webkit-linear-gradient(top, #00b274, #00a46b);
    background-image:-moz-linear-gradient(top, #00b274, #00a46b);
    background-image:linear-gradient(top, #00b274, #00a46b);
}

footer p.services:before{
    background-position: 0 -129px;
}

footer p.reachus{
    background-color: #d75ba2;

    background-image:-webkit-linear-gradient(top, #d75ba2, #c75496);
    background-image:-moz-linear-gradient(top, #d75ba2, #c75496);
    background-image:linear-gradient(top, #d75ba2, #c75496);
}

footer p.reachus:before{
    background-position: 0 -89px;
}

footer p.clients{
    background-color: #e9ac40;

    background-image:-webkit-linear-gradient(top, #e9ac40, #d89f3b);
    background-image:-moz-linear-gradient(top, #e9ac40, #d89f3b);
    background-image:linear-gradient(top, #e9ac40, #d89f3b);
}

footer p.clients:before{
    background-position: 0 -69px;
}

br.both{
  clear:both;
}

a {
  cursor: pointer;
  text-decoration:none;
}

#backgroundPopup{
  display:none;
  position:fixed;
  height:100%;
  width:100%;
  top:0;
  left:0;
  background:#000000;
  border:1px solid #cecece;
  z-index:300;
}

.popupContactClose {
    font-size:14px;
    line-height:14px;
    right:6px;
    top:4px;
    position: absolute;
    color:black;
    text-decoration:none;
   
    font-weight:bold;
    display:block;
}

#button{
  text-align:center;
}

::-webkit-input-placeholder { 
	color: #bbb; 
}

#login { 
    display:none;
    position:fixed;
    /*position:absolute; /* hack for internet explorer 6 */
    height:320px;
    z-index:320;
    border-radius: 5px; 
	/*margin: 120px auto;*/ 
	width: 300px; 
	-webkit-perspective: 1000; 
  line-height:1;
  font-size: 12px;
  font-family:arial, sans-serif;
  margin:auto;
}

#login h1 { 
 	position: relative; 
	margin: 0; 
	padding: 15px; 
	border: 1px solid rgba(0,0,0,.3); 
	border-radius: 5px 5px 0 0; 
	font-size: 16px; 
    text-align: center; 
	color: #fff; 
	text-shadow: 0 1px 1px rgba(0,0,0,.2); 
	background-color: #3f7eb6; 
	box-shadow: inset 0 1px rgba(255,255,255,.3); 
	background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.15));
    font-family: Tahoma;
}

#login h1:after {	
	content: ""; 
	position: absolute; 
	width: 100%; 
	bottom: 2px; 
	left: 0; 
	border-bottom: 1px dashed rgba(0,0,0,.5); 
}

#login a { 
	color: #888; 
	text-decoration: none; 
}

#login a:hover { 
	color: #369; 
}

#login p { 
    text-indent:inherit;
    color: black;
}

#login .social { 
	display: inline-block; 
	height: 20px; 
	margin-left: 7px; 
	padding: 2px 2px; 
	cursor: pointer; 
	border-radius: 3px; 
    box-shadow: 1px 1px 1px #bbb; 
}

#login .social:before { 
	content: ""; 
	display: inline-block; 
	width: 15px; 
	height: 15px; 
	vertical-align: bottom; 
	margin: 3px 5px 0 0; 
}

#login .social.fb:before { 
	background: url(images/fc-webicon-facebook.svg) no-repeat; 
}

#login .social.gp:before { 
	background: url(images/fc-webicon-googleplus.svg) no-repeat; 
}

#login .social:hover { 
	color: #333; 
    background: #eee; 
    box-shadow: 1px 1px 1px #bbb; 
}

#login .social:active { 
	color: #333; 
    background: #eee; 
	box-shadow: inset 0 1px 4px #bbb; 
}

#login fieldset {	
	display: block; 
	margin: 0; 
	padding: 20px; 
	background: #fff; 
	border: 1px solid rgba(0,0,0,.3); 
	border-top: 0; 
	border-radius: 0 0 5px 5px; 
	box-shadow: 0 1px 2px #aaa; 
}

#login input{ 
	width: 238px; 
	margin: 0; 
	padding: 12px 10px; 
	border: 1px solid #ccc; 
	outline: none; 
	font-size: 14px; 
}

#login .file_upload{
	width: 244px; 
    margin: 0;
	border: 1px solid #ccc; 
}

#login input:focus, #login .file_upload.focus{ 
	background: #fafafa; 
	box-shadow: inset 0 1px 7px #ddd;
}

#login .file_upload > div{
    padding-left: 4px;
    font-size: 14px; 
    color: #bbb; 
}

#login .file_upload > button{
    margin-top: -7px;
    margin-right: -9px;
}

#login input[type="email"] { 
	border-radius: 3px 3px 0 0; 
}

#login .file_upload{
    outline: none; 
    padding: 7px;    
}

#login .file_upload{
    position: relative;
    overflow: hidden;
    font-size: 1em;        /* example */
    height: 2em;           /* example */
    line-height: 2em;      /* the same as height */
}

#login .file_upload input[type=file]{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(20);
    letter-spacing: 10em;     /* IE 9 fix */
    -ms-transform: scale(20); /* IE 9 fix */
    border-radius: 5px;
    opacity: 0;
    -ms-opacity: 0;
    cursor: pointer
}

#login .file_upload button {
	padding: 10px 10px; 
    border: 1px solid rgba(0,0,0,.1);
    background: #58a linear-gradient(hsla(0,0%,100%,.2), transparent);
    border-radius: 3px;
	box-shadow: inset 0 1px 1px rgba(0,0,0,.5); 
    color: #bbb;
	text-shadow: 1px 1px 1px rgba(255,255,255,.5); 
    font-size: 1.3em;
    line-height: 1.5;
    text-decoration: none;
    background-color: white;
    float: right;
}

#login input[type="password"] {	
	border-width: 0 1px; border-radius: 0; 
}

#login .form-login input[type="password"] {	
	border-width: 0 1px 1px 1px;	border-radius: 0 0 3px 3px; 
}

#login input[type="text"] {	
	border-radius: 0 0 3px 3px; 
}

#login input[type="submit"] { 
	width: 260px; 
	padding: 12px 20px; 
	margin: 15px 0; 
	border: 1px solid #C1711B; 
	border-radius: 3px; 
	color: #111; 
	font-size: 1.3em; 
	font-weight: bold; 
	text-shadow: 1px 1px 1px rgba(255,255,255,.5); 
	cursor: pointer;
  	background-color: #FFB83A; 
	box-shadow: inset 0 1px 1px rgba(255,255,0,.6); 
	background-image: linear-gradient(rgba(255,207,92,.7), rgba(223,156,38,.8));
}

#login input[type="submit"]:hover {	
	background-color: #F5FF00; 
}

#login input[type="submit"]:active { 
	padding: 13px 20px 11px; 
	text-shadow: -1px -1px 1px rgba(255,255,255,.6); 
	box-shadow: inset 0 1px 4px rgba(0,0,0,.2); 
}

/* flip animation */
.flip { 
	position: relative; 
	-webkit-transition: 0.6s; 
	-webkit-transform-style: preserve-3d; 
}

.form-login, 
.form-signup { 
	position: absolute; 
	top: 0; 
	left: 0; 
	-webkit-backface-visibility: hidden; 
}

.form-signup { 
	z-index: 320; 
}

.form-login { 
	-webkit-transform: rotateY(180deg); 
}

.flip.flipped { 
	-webkit-transform: rotateY(-180deg); 
}

#login input.login-err,
#login input.login-err:focus { 
	color: #C4550B; 
	background-color: #FFEDD7; 
	border-color: #EB975F; 
}

#login input.login-err::-webkit-input-placeholder { 
	color: #C4550B; 
}

#login input.login-ok,
#login input.login-ok:focus { 
	color: #4E831F; 
	background-color: #EBFDDC; 
	border-color: #9FCC41; 
}

#login input.login-ok::-webkit-input-placeholder { 
	color: #4E831F; 
}

#login p.login-msg { 
	display: none; 
	margin: 0 0 5px; 
	font-size: 13px; 
	font-weight: bold; 
	color: #C4550B; 
}

@-webkit-keyframes slideOut{
	0%{top:-30px; opacity: 0;}
	100%{top:0px; opacity: 1;}
}

.advertising{
    min-height: 100px;
    margin-bottom: 40px;
    background-color: rgba(150, 150, 150, 0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px white;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.donate_text h1{
    font-family: B52;
    font-size: 20pt;
}

.donate_text{
    font-size: 14pt;    
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
}

.donate_text p:first-child:first-letter{
    font-size: 2.5em;
    padding: 2px 10px;
    margin-right: 5px; 
    background: rgba(243, 156, 18, 0.1);
    border: 4px double;
    border-radius: 10px;
    color: #EE9966;
    float:inherit;
    font-weight: bold;
    text-shadow:  2px 2px 3px black;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/*
footer .layout-positioner{
    width:960px;
    position:fixed;
    left:50%;
    bottom:0;
    margin-left:-480px;
    padding-bottom: 60px;
    z-index:-1;
}

footer .page-footer {
    position: relative;
    z-index: 5;
    min-height: 150px;
    padding: 0 20px;
    color: black;
    box-shadow: 0 0 5px 0 #333333;
}

.page-footer::after {
    content: "";
    display: table;
    clear: both;
}

.page-footer .info {
    float: left;
}

.page-footer .info img {
    display: inline-block;
    margin-right: 0.5em;
    vertical-align: middle;
    border: 2px solid white;
    box-shadow: 0 0 4px #c0392b;
    transform: rotate(-5deg);
}

.page-footer .copyright {
    float: right;
    padding-top: 20px;
    font-size: 12px;
}

.page-footer .social {
    float: left;
}



.admin-table{
    width: 100%;
}
label {
    width: 100%;
}

.form-item {
    width: 100%;
}

textarea.form-item {
    height: 200px;
}*/