/* реклама*/

/* Text*/
#istorii_niz a{
font-size: 15px; 
 color: #0000FF;
}
.oner p {
    font-size: 17pt;
    line-height: 35px;
    text-align: justify;}

@media screen and (max-width: 800px) {
.oner p {
        font-size: 17px;
        line-height: 27px;} }
.oner_vse p {
    font-size: 17pt;
    line-height: 19px;
    text-align: justify;}

@media screen and (max-width: 800px) {
.oner_vse p {
        font-size: 17px;
        line-height: 23px;} }

a {
color: #000000;
font-size: 19px;}

@media screen and (max-width: 800px) {
    .tekst p {
        font-size: 18px; }}

    p { font-size: 17pt;
    line-height: 35px;
    text-align: justify;}

H1 {
    text-align: center;}
H2 {
    text-align: center;}
H3 {
    text-align: center;}

/*END Text*/

@media screen and (max-width:1120px) {
 .knopki {
 display: none;}
}



.posled {
  text-align: left;
  margin-top: 170px;
}

.retp {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-template-rows: repeat(5, 270px);
} 

.oner {
    background: #FFF; /* Фоновый цвет блока */
    width:100%; /* Ширина блока */
    max-width: 930px;
    height: 100%; /* Высота блока */
    min-height: 800px;
    float: left;
    display: block;
    border: 0px solid #000; /* Ширина вид и цвет рамки */
    margin:1px; /* Значение отступов от блока*/
    box-sizing: border-box;
    padding: 70px;} 

@media screen and (max-width: 800px) {
    .oner  {
       box-sizing: border-box;
       padding: 3px;
    }
}

.oner_vse {
    background: #FFF; /* Фоновый цвет блока */
    width:100%; /* Ширина блока */
    max-width: 930px;
    height: 100%; /* Высота блока */
    min-height: 800px;
    float: left;
    display: block;
    border: 0px solid #000; /* Ширина вид и цвет рамки */
    margin:1px; /* Значение отступов от блока*/
    box-sizing: border-box;
    padding: 70px;} 

@media screen and (max-width: 800px) {
    .oner_vse  {
       box-sizing: border-box;
       padding: 3px;
    }
}

a.green{
  display: inline-block;
  width: 130px;
  padding: 1px;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  text-align: center;
  outline: none;
  text-decoration: none;
  transition: color 0.3s ease-out,
              background-color 0.3s ease-out,
              border-color 0.3s ease-out;
}
a.green:hover,
a.green:active {
  background-color: #9363c4;
  border-color: #9363c4;
  color: #fff;
  transition: color 0.3s ease-in,
              background-color 0.3s ease-in,
              border-color 0.3s ease-in;
}
        
a.green:hover {
background-color: rgb( 75, 183, 141 );
}

figure {
    margin: 0px;
}


.ghost-button {
  display: inline-block;
  width: 162px;
  padding: 8px;
  color: #000000;
  border: 1px solid #00BFFF;
  border-radius: 5px;
  text-align: center;
  outline: none;
  text-decoration: none;
  margin-top: 5px; /*верхний внешний отступ*/
  margin-left: 5px; /*левый внешний отступ*/
  margin-right: 5px; /*правый внешний отступ*/
  margin-bottom: 5px; /*нижний внешний отступ*/
}
.ghost-button:hover,
.ghost-button:active {
  background-color: #FFFFFF;
  color: #000000;
}

.ret {
    background: #D3D3D3; /* Фоновый цвет блока */
    width: 93%; /* Ширина блока */
    height: auto; /* Высота блока */
    border: 3px solid #000; /* Ширина вид и цвет рамки */
    border-radius:10px; /* Радиус скругления углов*/ 
  float: left;
  margin:3px; /* Значение отступов от блока*/
  padding: 10px;} 
    
.container { 
  text-align:center;
  display: inline-block;
  width: 100%;
  max-width: 1250px;
  height: 100%; /* Высота блока */
  min-height: 700px;
  overflow: hidden;
  margin: 0 auto;
  border: 0px solid #000;
}

.retbok{
    background: #FFF; /* Фоновый цвет блока */
    width:290px; /* Ширина блока */
    max-width: 700px;
    height: 100%; /* Высота блока */
    min-height: 700px;
    float: right;
    border: 0px solid #000; /* Ширина вид и цвет рамки */
    border-radius:3px; /* Радиус скругления углов*/ 
    margin:1px; /* Значение отступов от блока*/
    padding: 10px;} 

@media screen and (max-width:1250px) {
 .retbok {
 display: none;}
}

@media screen and (max-width:1120px) {
 .sled {
 display: none;}
}
@media screen and (max-width:1120px) {
 .book-navigation {
 display: none;}
}
@media screen and (max-width:1120px) {
 .page-links {
 display: none;}
}

.ret:hover{border:3px solid #32CD32;}
.ret {cursor:pointer}
 
.shapka {
    background-image: url(http://stalers.ru/FOTO/shapka.JPG);
    text-align: center;
    width: 100%;
    max-width: 1250px;
    height: 100%;
    max-height: 150px; 
    margin-left: auto;
    margin-right: auto;
border: 1px solid #000;} 

img {
  height: auto;
  max-width: 100%;
}

.knopki {
    width: 100%;
    max-width: 720px;
    text-align: center;
    border: 5px;
    margin-left: auto;
    margin-right: auto;}  
  
.tekst{
    width: 100%;
    max-width: 720px;
    border: 0px solid #000; /* Ширина вид и цвет рамки */
    margin-left: auto;
    margin-right: auto;
    height: auto; }  /* Высота блока */  

.footer {
    text-align: center;
    border: 1px solid #000; /* Ширина вид и цвет рамки */
    width: 100%;
   max-width: 1250px;  /* Ширина блока */ 
    height: 30px;
  margin-left: auto;
    margin-right: auto;
  background-color:#2F4F4F;
  font-size: 23px;}  

.data:before {
  content: "2018-2025";}  

body{
 background-image: url(http://stalers.ru/Uzhasy/Vedma/FON/86.jpg);
  text-align: center;
}

.arrow {
	display: inline-block;
    margin: 0 7px 0 0;
	width: 16px;
	height: 16px;
	background-image: url(http://stalers.ru/Uzhasy/foto/arrow.png);
	vertical-align: middle;
	opacity: 0.5;
}

.icon-prev {
	background-position: 0;
 } 
.icon-up {
	background-position: -32px 0;}

.icon-next {
	background-position: -16px 0;
	
}


.page-links {
	background: #CFD6D3;
	padding: 10px;
	margin: 20px 0 30px;
	text-align: center;
}
.book-navigation {
	border-top: 1px solid #888;
	padding: 1em 0 0 0;
    width: 100%;
    max-width: 1250px;
    display: inline-block;
}

@media screen and (max-width:1120px) {
 img {
 display: none;}
}

.poisk {
    width: 940px; /* Ширина блока */ 
    height: 50px; 
    margin-left: auto;
    margin-right: auto; }

@media screen and (max-width:700px) {
 .sled {
 display: none;}
}
@media screen and (max-width:700px) {
 .book-navigation {
 display: none;}
}
@media screen and (max-width:700px) {
 .page-links {
 display: none;}
}

/* menu */

@media screen and (min-width:800px) {
 .menu {
 display: none;}
}

.menu {
  margin: 0 auto;
  padding: 0;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 1160px;
  z-index:999;
 }

.dws-menu *{
 margin: 0;
 padding: 0;
}
.dws-menu ul,
.dws-menu ol{
 list-style: none;
}
.dws-menu > ul{
 display: flex;
 justify-content: center;
}
.dws-menu > ul li{
 position: relative;
 border-right: 1px solid #c7c8ca;
}
.dws-menu > ul li:first-child{
 border-left: 1px solid #b2b3b5;
}
.dws-menu > ul li:last-child{
 border-right: 1px solid #babbbd;
}
.dws-menu > ul li > a i.fa{
 position: absolute;
 top: 15px;
 left: 12px;
 font-size: 18px;
}
.dws-menu > ul li a{
 display: block;
 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#c9c9c9+0,f6f6f6+2,c4c5c7+98,757577+100;Custom+3 */
 background: rgb(201,201,201); /* Old browsers */
 background: -moz-linear-gradient(top,  rgba(201,201,201,1) 0%, rgba(246,246,246,1) 2%, rgba(196,197,199,1) 98%, rgba(117,117,119,1) 100%); /* FF3.6-15 */
 background: -webkit-linear-gradient(top,  rgba(201,201,201,1) 0%,rgba(246,246,246,1) 2%,rgba(196,197,199,1) 98%,rgba(117,117,119,1) 100%); /* Chrome10-25,Safari5.1-6 */
 background: linear-gradient(to bottom,  rgba(201,201,201,1) 0%,rgba(246,246,246,1) 2%,rgba(196,197,199,1) 98%,rgba(117,117,119,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c9c9', endColorstr='#757577',GradientType=0 ); /* IE6-9 */

 padding: 4px 30px 4px 40px;
 text-align: left;   
 font-size: 14px;
 color: #454547;
 text-decoration: none;
 text-transform:uppercase;
 transition: all 0.3s ease;
}
.dws-menu li a:hover{
 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e0e1e5+0,454547+2,454547+98,e0e1e5+100 */
 background: rgb(224,225,229); /* Old browsers */
 background: -moz-linear-gradient(top,  rgba(224,225,229,1) 0%, rgba(69,69,71,1) 2%, rgba(69,69,71,1) 98%, rgba(224,225,229,1) 100%); /* FF3.6-15 */
 background: -webkit-linear-gradient(top,  rgba(224,225,229,1) 0%,rgba(69,69,71,1) 2%,rgba(69,69,71,1) 98%,rgba(224,225,229,1) 100%); /* Chrome10-25,Safari5.1-6 */
 background: linear-gradient(to bottom,  rgba(224,225,229,1) 0%,rgba(69,69,71,1) 2%,rgba(69,69,71,1) 98%,rgba(224,225,229,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e1e5', endColorstr='#e0e1e5',GradientType=0 ); /* IE6-9 */

 color: #ffffff;
 box-shadow: 1px 5px 10px -5px black;
 transition: all 0.3s ease;
}

/*sub menu*/
.dws-menu li ul{
 position: absolute;
 min-width: 150px;
 display: none;
}
.dws-menu li > ul li{
 border: 1px solid #c7c8ca;
}
.dws-menu li > ul li a{
 padding: 10px;
 text-transform: none;
 background: #e4e4e5;
}
.dws-menu li > ul li ul{
 position: absolute;
 right: -150px;
 top: 0;
}
.dws-menu li:hover > ul{
 display: block;
}

/*==== MEDIA ====*/
.dws-menu [type="checkbox"],
.dws-menu label.toggleSubmenu{
 display: none;
}
.dws-menu label.toggleMenu{
 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#c9c9c9+0,f6f6f6+2,c4c5c7+98,757577+100;Custom+3 */
 background: rgb(201,201,201); /* Old browsers */
 background: -moz-linear-gradient(top,  rgba(201,201,201,1) 0%, rgba(246,246,246,1) 2%, rgba(196,197,199,1) 98%, rgba(117,117,119,1) 100%); /* FF3.6-15 */
 background: -webkit-linear-gradient(top,  rgba(201,201,201,1) 0%,rgba(246,246,246,1) 2%,rgba(196,197,199,1) 98%,rgba(117,117,119,1) 100%); /* Chrome10-25,Safari5.1-6 */
 background: linear-gradient(to bottom,  rgba(201,201,201,1) 0%,rgba(246,246,246,1) 2%,rgba(196,197,199,1) 98%,rgba(117,117,119,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c9c9', endColorstr='#757577',GradientType=0 ); /* IE6-9 */

 display: none;
 padding: 15px 40px;
 text-transform: uppercase;
 font-size: 14px;
 cursor: pointer;
 position: relative;
}

.dws-menu label.toggleMenu .fa{
 position: absolute;
 top: 15px;
 left: 12px;
 font-size: 18px;
}
@media all and (max-width: 800px){
 .dws-menu{
  overflow: hidden;
 } 
 .dws-menu ul{
  display: block;
  max-height: 0;
  transition: max-height 0.3s;
 }
 .dws-menu li>ul li ul{
  position: absolute;
  right: auto;
  top: auto;
 }
 .dws-menu label.toggleMenu{
  display: block;
 }
 input.toggleMenu:checked + label.toggleMenu{
  background: #000;
  color: #fff;
 }
 input.toggleMenu:checked ~ ul,
 input.toggleSubmenu:checked ~ ul{
  display: block;
  position: relative;
  max-height: 5000px;
  transition: max-height 2s ease-in;
 }
 .dws-menu label.toggleSubmenu{
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
 }
 input.toggleSubmenu:checked ~ a{
  background: #454547;
  color: #fff;
 }
 .dws-menu label.toggleSubmenu .fa:before{
  content: "\f0d7";
  color: #454547;
 }
 .dws-menu label.toggleSubmenu .fa{
  position: absolute;
  top: 15px;
  right: 30px;
 }
 .dws-menu input.toggleSubmenu:checked ~ label.toggleSubmenu .fa::before{
  content: "\f0d8";
  color: #ffffff;
 }
}

/* смена картинок*/
@keyframes fade {
  0%   { opacity: 0; }
  11.11%   { opacity: 1; }
  33.33%  { opacity: 1; }
  44.44%  { opacity: 0; }
  100% { opacity: 0; }
}

.fadein { position:relative; width:100%;}
.fadein img { position:absolute; width:100%; left:0; right:0; opacity:0; animation-name: fade; animation-duration: 40s; animation-iteration-count: infinite; }
.fadein img:nth-child(1) { animation-delay: 0s;  }
.fadein img:nth-child(2) { animation-delay: 5s;  }
.fadein img:nth-child(3) { animation-delay: 10s;  }
.fadein img:nth-child(4) { animation-delay: 15s;  }
.fadein img:nth-child(5) { animation-delay: 20s;  }
.fadein img:nth-child(6) { animation-delay: 25s;  }
.fadein img:nth-child(7) { animation-delay: 30s;  }
/* смена картинок*/

