.default-icon-edit {
  display: none;
}

/* Новости com_content */

.allnews-list {
  /* margin-top: 30px; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 25px;
}

@media (max-width: 991px) {
  .allnews-list {
      grid-template-columns: 1fr;
      gap: 15px;
  }
}

.textnews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.allnews-list__item {
  background-color: transparent;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
}

@media (max-width: 990px) {
  .allnews-list__item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
  }
}

.allnews-list__item .intro-img-block {
  max-height: 110px;
}

.allnews-list__item img {
  object-position: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

@media (max-width: 991px) {
  .allnews-list__item-text {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}


.allnews-list__item-date {
display: block;
    color: #054277;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
    /* font-weight: 700; */
    font-size: 1.3rem;
    margin: 0 0 10px;
}

@media (max-width: 991px) {
  .allnews-list__item-date {
    display: block;
    color: #0b6a98;
    /* text-transform: uppercase; */
    line-height: 1;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 11px;
    margin: 5px 0 0px;
    order: 2;
    font-family: var(--font-desktop-text);
  }
}


.allnews-list__item-title {
  font-size: 15px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  font-weight: 400;
  margin: 0;
  font-family: var(--font-desktop-text);
}

@media (max-width: 991px) {
  .allnews-list__item-title {
    font-size: 15px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    font-weight: 400;
    margin: 0;
    font-family: var(--font-desktop-text);
  }
}


.all-news__item-title-link {
  color: var(--header-color);
}

.tags.allnews-list__item-tags {
  list-style-type: none;
  display: flex;
}

.allnews-list__item-tag {
  border-right: 1px solid #ccc;
  padding: 0 10px;
  margin: 0;
  line-height: 1;
  font-size: 14px;
  text-transform: uppercase;
}





.news-article__toolbar-print {
  font-size: inherit;
  text-align: inherit;
  line-height: 0;
  letter-spacing: 0;
  text-transform: inherit;
  font-family: inherit;
  border-bottom: 0;
  margin: 0;
  padding-bottom: 0;
}



.news-article__toolbar-print a {
  width: 24px;
  height: 24px;
  /* background-color: #4789c8; */
  background-size: 15px;
  background-image: url(/images/icon/print.svg);
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  /* border-radius: 50%; */
  /* background-color: #4789c873 !important; */
  background-color: #92c2e1;
}

@media (max-width: 900px) {
  .default-toolbar__print a {
    display: none;
  }
}

.ya-share2__container_size_m .ya-share2__badge .ya-share2__icon {
  height: 24px !important;
  width: 24px !important;
  background-size: 24px 24px !important;
}

.ya-share2__list {
  display: flex !important;
  padding: 0;
  margin: 0 5px 0 0 !important;
  gap: 5px;
}
@media (max-width: 1300px) {
  .ya-share2__list {
    display: flex !important;
    padding: 0;
    gap: 5px;
    margin: 0 !important;
    flex-direction: row !important;
  }
}

.ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item {
  vertical-align: top;
  padding: 0;
  margin: 0  !important;
  background-color: #d0f0f6;
}
.ya-share2__badge {
  display: flex !important;
  padding: 0;
  margin: 0 !important;
  /* border-radius: 0 !important; */
  flex-direction: column;
  background-color: #4789c873 !important;
  border-radius: 0 !important;
}


/* внутри статьи новости */

.news-article__page {
  max-width: 900px;
}


.news-article__full-img-block {
  float: none;
  max-width: 450px;
  margin: 0 0 50px;
  max-height: 300px;
  overflow: hidden;
  position: relative;
}


@media (max-width: 700px) {
  .news-article__full-img-block {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 40px 0 15px 0;
}
}


.news-article__full-img {
  max-width: 100%;
  height: auto;
}

.news-article__full-img-caption {
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-desktop-text);
  line-height: 1.1;
  padding: 10px;
  position: absolute;
  background-color: #0d0c0c6b;
  bottom: 0;
  left: 0;
}

/* .news-article__subtitle-block {
  display: flex;
  gap: 30px;
  margin-top: 0;
  margin-bottom: 40px;
} */

@media screen and (max-width: 700px) {
  .news-article__subtitle-block {

  }
}

.allnews-article__date {
  display: inline-block;
  letter-spacing: 1px;
  font-size: 14px;
  margin: 0;
  line-height: 1;
  color: #2d7199;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media screen and (max-width: 700px) {
  .allnews-article__date {

  }
}

.toolbar {
  position: relative;
  /* border-top: 1px solid #4789c8; */
}
.article__icon-edit, .icon-edit {
  position: absolute;
  left: 30px;
  top: 0;
}

/* новости на главной */

.main-news__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-sizing: border-box;
  gap: 40px;
  padding: 0;
}

@media (max-width: 991px) {
  .main-news__container {      
      gap: 15px;
  }
}

@media (max-width: 700px) {
  .main-news__container {
    gap: 15px;
    padding: 0;
    grid-template-columns: 1fr;
    background-color: #ffffff;
  }
}

.main-news__item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  /* padding: 30px 20px 30px 30px; */
  /* background-color: #063966; */
  background-color: #ffffff;
  /* box-shadow: #6589997a 0 0 37px; */
  /* box-shadow: #6589997a 0 10px 27px; */
  box-shadow: #6589997a 0 10px 27px, #d0f0f6 inset 0 0px 0px 0px;
}

@media (max-width: 991px) {
  .main-news__item {      
      display: grid;
      height: 100%;
      grid-template-columns: 1fr;
      /* padding: 30px 20px 30px 30px; */
  }
}

@media (max-width: 700px) {
  .main-news__item {
    padding: 0;
    display: block;
    position: relative;
    box-shadow: none;
  }


  .main-news__item:nth-child(3),
  .main-news__item:nth-child(4) {
    display: none;
  }
}


@media (max-width: 700px) {
  .main-news__item-container:first-child  .main-news__item {
      padding: 0;
      gap: 0;
      grid-template-columns: 1fr;
      /* background-color: var(--light-color); */
  }
}


.main-news__img {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  list-style: none;
  /* order: 2; */
  background-position: center;
  background-size: cover;
  /* margin: 30px 30px; */
  position: relative;
  /* filter: hue-rotate(356deg) brightness(1.05); */
  /* box-shadow: #d0f0f6 0 0 0 3px;*/
}


/* .main-news__item:nth-child(even)  .main-news__img {
  order: 0;
} */

@media (max-width: 991px) {
  .main-news__img {
      height: 220px;
      border: 0;
  }
}

.main-news__item img {
  max-width: 100%;
  height: 100%;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}


@media (max-width: 700px) {
  .main-news__img {
      height: 240px;
      width: 100%;
      filter: none;
  }
}

.main-news__img::after {
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 100%;

  /* mix-blend-mode: color;
  background-image: linear-gradient(23deg, #3f51b53d, #06d7ff3b); */
}

@media (max-width: 700px) {
  .main-news__img::after {
    background-image: linear-gradient(359deg, #02325e, transparent 54%);
    }
  }


  .main-news__text {
    display: flex;
    padding: 5px 30px 30px 30px;
    flex-direction: column;
}


@media (max-width: 991px) {
  .main-news__text {
      padding: 15px;
  }
}

  @media (max-width: 700px) {
    .main-news__text {
      padding: 15px 0px 15px;
    }
}

.main-news__title {
  font-size: 16px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 400;
  font-family: 'pt sans';
}

  @media (max-width: 700px) {
    .main-news__title {
        font-size: 17px;
        line-height: 1.2;
        margin: 0;
        font-family: var(--font-desktop-text);
    }
  }

  .main-news__title a {    
    /* color: var(--header-main-color); */
  }

@media (max-width: 700px) {
  .main-news__title a {
    /* color:  #fff; */
  }
}

  .news-catItemDateCreated {
    color: #55b3c5;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
    /* font-weight: 700; */
    font-size: 20px;
    margin: 25px 0 15px;
}

@media (max-width: 991px) {
  .news-catItemDateCreated {
    margin: 15px 0 15px;
  }
}

  @media (max-width: 700px) {
    .news-catItemDateCreated {
      font-size: 15px;
      margin: 10px 0 0px 0;
      /* color: #ffffff70; */
      /* font-weight: 400; */
      order: 2;
      z-index: 1;
      font-family: 'pt sans';
    }
}


.mainnews__btn-all {
  text-align: center;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .mainnews__btn-all {
    text-align: left;
    margin-top: 15px;
  }
}


.mainnews__btn-all-link{
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: #2d64a5;
  display: inline-flex;
  border-bottom: 1px solid #2d64a5;
  padding: 15px 0 5px;
}

@media (max-width: 700px) {
  .mainnews__btn-all-link {
    font-size: 17px;
    border: 1px solid #2d64a5;
    padding: 10px 15px;
    margin-top: 0;
  }
}




/* ----------------------------------------- */
/* попап для фото в статье */


.article__img-sm {
  cursor: pointer;
  transition: 0.3s;
}

@media (max-width: 700px) {
  .article__img-sm {
    width: 100%;
  }
}

.article__img-sm:hover {opacity: 0.7;}

/* Модальный (фон) */
.article__img-modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1;
  align-items: center;
  flex-direction: column;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  justify-content: center;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/*Модальное содержание (изображение) */
.article__img-modal-content {
  display: flex;
  max-width: 90%;
  width: auto;
  height: auto;
  max-height: 90%;
}

/* Заголовок модального изображения */
.article__img-caption {
  width: 90%;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 16px;
}

/* Добавить анимацию */
.article__img-modal-content, .article__img-caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* Кнопка закрытия */
.article__img-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.article__img-close:hover,
.article__img-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Ширина изображения на меньших экранах */

@media only screen and (max-width: 700px){
  .article__img-modal-content {
    width: 100%;
  }
}

/* ссылка на старые новости K2 */

.news-arhiv__bottom-link {
  margin-top: 30px;
}

.news-arhiv__bottom-link ul,
.news-arhiv__bottom-link li   {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.news-arhiv__bottom-link a {
  padding: 15px 30px;
  display: block;
  color: #ffffff;
  background-color: steelblue;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  border: 1px dashed var(--medium-color);
  text-decoration: none;
}
.news-arhiv__bottom-link a:hover {
  background-color: #FF9800;
}



.news-article__page h1,
.news-article h1 {
  margin: 0 0 15px 0;
  font-family: "pt serif";
  font-size: 31px;
  line-height: 1.1;
  color: #2d7199;
}

@media (max-width: 700px) {
  h1 {
    font-family: var(--color-dark-blue);
  }
}

.articleBody_news {
  margin-top: 25px;
}

@media screen and (max-width: 700px) {
  .articleBody_news {
      padding: 0px 10px 0;
      margin-top: 0px;
  }
}

/* old k2 news */

/* #k2Container .news_all {
  gap: 30px 0;
}
#k2Container .news_all .card-news {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.3;
  border: 0;
} */

#k2Container .news_all img {
  height: 200px !important;
  object-fit: cover;
}