@import url('code.css');

/*--------------------------------------------------------------
CSS Reset
--------------------------------------------------------------*/
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust:     100%;
}

body {
  margin: 0;
}

img {
  display: block;
  border: 0;
  width: 100%;
  height: auto;
}

/*--------------------------------------------------------------
Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
  // color: #404040;
  color: #000;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 16px;
  //line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: 'Roboto Flex', sans-serif;
  text-align: center;
  margin: 0;
  padding: 1em 0;
  color:#B22222;
}

p {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 200;
  margin: 0;
  padding: 1em 0;
}

.item-content h2.item-title a, .item-content h2.item-title{
  font-family: 'Roboto Flex', sans-serif;
 // font-size: 1.3em;
  line-height:1em;
  color:#B22222; 
}

.item-content h2.item-title a{
  text-decoration: none;    
}

.com-content-category-blog__item h2 a {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1em;
  line-height:0,6em;
  color:#B22222;
  text-decoration: none; 
}


/* -------------Promo section----------------- */

.logo{
  text-align: center;
}

.logoMenu{ 
  margin-top:15px;
}

.logo h2 {
  font-size: 1.3em;
  text-align: center;
  margin-top: -40px;
  font-weight: 100;
}

.logo span, .logoMenu span{
  font-family: 'Roboto Flex', sans-serif;
  font-weight: bold;
  color:#B22222;
}

.logo span{
  text-align: center;
}

.logo span{
  font-size: 7.5em;
}
.logoMenu span{
  font-size: 1.5em;
}

.headList .navigation.fixed{
  display:flex;
  justify-content:center; 
}

.logo a, .logoMenu a{
  text-decoration: none;   
}

h2.site-title span{
  font-size: 1.5em;
  font-weight: 100;
}

.rotate{
  position: relative;
  display:inline-block;
  transform: rotate(-180deg);
}

.logo .rotate{
  top:-3px;
}

.logoMenu a span.rotate{
  top:-1px;
}

.navigation.fixed nav.globalMenu{
  display:flex;  
}
.blog-item h2{
  display:block;
  height:60px;
}

/*--------------------------------------------------------------
Menu
--------------------------------------------------------------*/

.navigation{
  display:none;
  margin: 15px 5px;
  background: rgba(255, 255, 255, 0.7);
  width: 100%;
  margin:auto;
  height: 55px;   
  font-size: 16px;
  line-height: 14px;
  position: relative;
  top:1px;
}

.topMenu ul{
  display:flex;
  justify-content:center;
  min-height:15px;
  list-style: none; 
  padding-left: 0; 
}

.topMenu a{
  text-decoration: none; 
  font-size: 1.5em;
  font-weight: bold;
  color:#696969; 
  padding:0px 15px; 
  line-height:20px; 
  display: block; 
  border-right: 1px solid #ddd; 
  -moz-transition: all 0.3s 0.01s ease; 
  -o-transition: all 0.3s 0.01s ease;
  -webkit-transition: all 0.3s 0.01s ease;
}

.topMenu ul li:last-child a, .globalMenu ul li:last-child a {
  border-right:none
}

.topMenu a:hover { 
  color: #D43737;
}

.globalMenu ul{
  display:flex;
  justify-content:center;
  min-height:15px;
  list-style: none; 
  padding-left: 0; 
}

.navigation.fixed{
  display:block;
  position: fixed;
  width: 100%;
  background: rgba(255, 255,255, 0.99);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  z-index: 940;
}

.navigation.fixed.yes{
  display:flex;  
}

.globalMenu ul li, .ToplMenu ul li{  
  list-style-type: none;
}

.globalMenu a{
  text-decoration: none; 
  color:#000; 
  padding:0px 15px; 
  line-height:20px; 
  display: block; 
  border-right: 1px solid #ddd; 
  -moz-transition: all 0.3s 0.01s ease; 
  -o-transition: all 0.3s 0.01s ease;
  -webkit-transition: all 0.3s 0.01s ease;
}

.globalMenu a:hover { 
  color:#D43737;
}

/*--------------------------------------------------------------
GlobalStyle
--------------------------------------------------------------*/
.lost{
  display:block;
  min-width:320px;
  max-width: 100%;
}
.topMenu{
  display:block;
  min-height:5px;
}


.blockBanner{
  max-width: 100%;
}

.ad {
  background:url(../img/fon.jpg) no-repeat;
 // padding:1em;
}

.ad p {
  width: 60%;
  margin:auto;
  column-width: 40%;
  column-count: 2;
  column-gap: 4%;
}


.ad h2 a{
  background: #ccc;
  text-decoration: none; 
  padding:0.2em 1em;
  color:#fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ad h2 a:hover{
  color:#B22222;
}
.ad a, .info1 a,  .info2 a{
  text-decoration: none; 
  color:#B22222;
  padding:0px 1em; 
}

.ad a:hover, .info1 a:hover,  .info2 a:hover{
  color:#000;
}

.ad img{
  width:65%;;
}

.info1{
  min-height: 10px;  
  background-color:#fff;
  padding:1em;
}

.info2{
  min-height: 10px;  
  background-color:#fff;
  padding:1em;
}

.infoBlock{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contakt{
  margin:10px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width:80%;
 
}

.globalMenu{
  display: block;
//  min-height: 10px;
//  background-color:#ccc;
}

.contList{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width:100%;
  margin:auto;
}

.blog-items {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-item{
  display: flex; 
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  width: 360px; /*---размер блоков------*/
  justify-content: space-between; 
  margin:0.5em;
  padding:1em;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12); 
}

div.blog-items div.blog-item div.item-content{
  display: flex;
  flex-wrap: wrap;
  margin:0 0.1em;
}

.item-content {
  display:flex;
  width: 100%;
}

.icons{
  display:flex;
  width: 100%;
}

.item-content p.readmore{
  display:flex;
}

.readmore a{
  display: flex;
  align-items: flex-end;
  text-decoration: none; 
  color:#B22222;
  padding:0px 1em; 
}

.readmore a:hover{
  color:#000;
}

.infoBlock{
  width:80%;
  margin:auto;
}

.BlockFoot{
  display:block; 
  margin:auto;
  min-height: 20px;
  background-color:#808080;
}

div.blog-items div.blog-item div.item-content div.icons {
  display: none; 
}

span.column {
  column-width: 200px;
  column-count: 23;
  column-gap: 30px;
  column-rule: 1px solid #ccc;
}

/*--------------------------------------------------------------
StyleContent
--------------------------------------------------------------*/

.navbar-toggler.navbar-toggler-right, .float-end{
  display: none; 
}

.clearfix { clear: both; }

.com-content-article.item-page{
 // width:60%;
}

 .com-content-article__body p span.column {
  column-width: 200px;
  column-count: 23;
  column-gap: 30px;
  column-rule: 1px solid #ccc;
}

.BlockFoot p span{
  color:#fff;
}

/*---------------------------------------*/


li.page-item{
  display: flex;
}

.page-item ul{
//  display: flex;
//  list-style: none; 
}

.page-item a{ 
  text-decoration: none; 
  color:#B22222;
  padding:0px 1em; 
}

.pagination, .pager{
   display: flex;
   justify-content:center;
}


/*--------------------------------------------------------------
StyleContentMedia
--------------------------------------------------------------*/
@media  (max-width: 1013px){
  .blog-item{
    width: 98%;
  }
    .com-content-article.item-page {
    width: 96%;
  }
}

@media  (max-width: 600px){
  .contList{
    width: 98%; 
  }
  .ad p{
    width: 80%; 
    column-count: 1;
  }
  .ad img{
    width: 40%; 
  }
  .infoBlock{
    display: block;
    width: 100%;  
  }
  .topMenu a{
    font-size: 1em;
  }

}

@media  (max-width: 400px){
  
  .item-content h2.item-title a, .item-content h2.item-title{
   font-size: 1em; 
  }
  .globalMenu a{
    padding: 0px 5px;
  }
    .contList{
    width: 320px; 
  }  
}

@media  (max-width: 400px){
  .logoMenu span{
   font-size: 1em; 
  }
  .logoMenu a span.rotate {
  top: 0;
}
}

