/*блок с новостями*/

.news-border .btn{
  white-space: normal;
}

.news-border .date-of-news{
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  color: #32334f;
  font-weight: bold;
  background: #fff;
  width: 40%;
  float: right;
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(139, 142, 219, .6);
  border-left: none;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
  border-top: none;
}

.date-of-news:hover{
  background: rgba(139, 142, 219, 1);
  color: white;
  cursor: pointer;
}

.news-border{
  border: 1px solid rgba(139, 142, 219, .6);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .3);
  width: 400px;
  position: relative;
}

.news-border ul{
  padding: 0;
}

.news-border a{
      font-size: 13px;
}

#block-views-block-news-block-1{
  display: none;
}

#block-views-block-news-news{
  padding: 40px 0;
}

#block-views-block-news-news .view-content, #block-views-block-news-block-1 .view-content{
  padding: 30px 0;
}


#block-views-block-news-news ul, #block-views-block-news-block-1 ul{
  display: flex;
  list-style: none;
  justify-content: space-around;
  /*flex-wrap: wrap;*/
}

#block-views-block-news-news img, #block-views-block-news-block-1 img{
  width: auto;
  height: 250px;
}

/*.otstup1{
  padding: 10px;
  background-color: white;
  color: #32334f;
  border: none;
  font-weight: bold;
  width: 100%;
  font-size: 15px;
}*/

.head-of-news{
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ch-item {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: default;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}


.ch-info {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  background: rgba(50, 51, 79, 0.7);
  width: inherit;
  height: inherit;
  text-shadow: 1px 1px #000;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -o-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-backface-visibility: hidden;
  top: 0;
  left: 0;
}

.ch-info p {
    color: #fff;
    margin: 0 10px;
    font-size: 15px;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.ch-info p  {
  display: block;
  color: #fff;
  color: rgba(255,255,255, 1);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  padding-top: 4px;
  font-family: 'Open Sans', Arial, sans-serif;
}

.ch-info p :hover {
  color: #fff222;
  color: rgba(255,242,34, 0.8);
}

.ch-item:hover {
  box-shadow:
  inset 0 0 0 1px rgba(255,255,255,0.1),
  0 1px 2px rgba(0,0,0,0.1);
}
.ch-item:hover .ch-info {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

.ch-item:hover .ch-info p {
  opacity: 1;
}

.ch-grid {
  padding: 0;
  list-style: none;
  display: block;
  text-align: center;
  width: 100%;
}

.ch-grid:after,
.ch-item:before {
  content: '';
  display: table;
}

.ch-grid:after {
  clear: both;
}

.ch-grid li {
  width: 250px;
  height: 250px;
  display: inline-block;
  margin: 20px;
}

.flex_news{
    display: flex;
    justify-content: space-around;
}

.flex_news ul{
  padding: 0;
}

.flex_news img{
    width: 450px;
    height: 350px;
}

.btn-news{
  color: #32334f !important;
  border: none !important;
  font-weight: bold !important;
  width: 100%;
  border-radius: 0 !important;

}

.btn-news:hover{
  background: rgba(139, 142, 219, 1);
  color: white;
}

/*#block-views-block-news-news ul {
    flex-wrap: wrap;
  }*/

@media screen and (max-width: 1650px){

    .news-border{
      width: 350px;
    }

    .news-border .date-of-news{
      width: 40%;
    }

 /*  #block-views-block-news-news ul {
    flex-wrap: wrap;
  }*/

  #block-views-block-news-news .item-list ul li {
    margin-bottom: 30px;
  }

  .ch-info p{
    font-size: 14px;
  }
}

@media screen and (max-width: 1440px){

  .ch-info p {
    font-size: 13px;
  }

  .news-border {
    width: 260px;
  }

  .news-border .date-of-news{
      width: 50%;
  }

}

@media screen and (max-width: 1150px){

  #block-views-block-news-news ul {
    flex-wrap: wrap;
  }

  #block-views-block-news-news .item-list ul li {
    margin-bottom: 30px;
  }

}

@media screen and (max-width: 768px){
  #map{
    display: none;
  }
}

@media screen and (max-width: 680px){

  .news-border a {
    font-size: 11px;
  }

  #block-views-block-news-news .view-content {
    padding: 0;
  }

  #block-views-block-news-news{
    padding: 0;
  }

  #block-views-block-news-news{
    display: none;
  }

   #block-views-block-news-block-1{
    display: block;
  }

  .news-border{
    width: 250px;
  }
}

/*@media screen and (max-width: 680px){

}*/

@media screen and (max-width: 600px){

 /* #block-views-block-news-block-1{
    display: block;
  }*/

  #block-views-block-news-block-1 .btn {
    font-size: 9px;
  }

  #block-views-block-news-block-1 .news-border .date-of-news{
    font-size: 10px;
    width: 100%;
    z-index: 2;
    border-left: none;
    border-top: none;
    border-right: none;
  }

  #block-views-block-news-block-1 img{
    width: auto;
    height: 150px;
  }

   #block-views-block-news-block-1 .news-border{
    width: 165px;
  }

   #block-views-block-news-block-1 .ch-info p{
    font-size: 10px;
  }

  #block-views-block-news-block-1 ul{
    display: flex;
    list-style: none;
    justify-content: space-around;
   /* flex-wrap: wrap;*/
  }

   #block-views-block-news-block-1 .ch-info{
    z-index: 1;
  }

  /*#block-views-block-news-news{
    display: none;
  }*/

  /*#block-views-block-news-block-1 .ch-info {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }*/
}
