

/* Start:/local/templates/altelect/components/bitrix/news.list/altelect/style.css?17651505474544*/
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

/* Убираем эффект ховера у всей карточки */
/* .news-item:hover { } */

.news-item img.preview_picture {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  will-change: transform;
  transform: translateZ(0);
}

/* Эффект увеличения картинки при наведении, как у QR-кода */
.news-item a:hover img.preview_picture {
  transform: translateZ(0) scale(1.05);
}

.news-item.no-image .news-item-content {
  padding-top: 16px;
}

.news-item-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-item b,
.news-item a {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

.news-item a:hover {
  color: #0073e6;
}

.news-date-time {
  font-size: 13px;
  color: #888;
  margin: 6px 0 10px 0;
  color: var(--bg);
  width: 30%;
  text-align: left;
  color: var(--dark);
  font-weight: 600;
}

.news-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

/*  Адаптив */
@media (max-width: 992px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0px 24px 0px;
}

.news-title-block {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.news-title-block a {
  text-decoration: none;
  color: var(--dark);   /* используем твой красный */
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.news-title-block a:hover {
  color: var(--dark);
}

.news-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
  font-size: 16px;
  font-weight: 600;
  min-height: calc(1.25em * 2);
  margin: 0 0 8px 0;
}

.news-title-block a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-arrow {
  position: relative;
  top: 1px; /* опускаем стрелку */
}




@media (max-width: 600px) {
  .news-list { grid-template-columns: 1fr; gap: 12px; }

  /* Карточка — сетка: слева img, справа title/date, снизу text */
  .news-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-areas:
      "img title"
      "img date"
      "text text";
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .news-item img.preview_picture {
    grid-area: img;
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
  }

  /* Разворачиваем внутренний контейнер в поток сетки */
  .news-item-content { display: contents; padding: 0; }

  .news-item .news-title { grid-area: title; margin: 0; }
  .news-item .news-date-time {
    grid-area: date;
    width: max-content;
    display: inline-flex;
    align-items: center;
    text-align: left;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.1;
    border-radius: 12px;
    margin: 0;
  }

  .news-item-content p { grid-area: text; font-size: 13px; line-height: 1.45; margin: 2px 0 0 0; }

  /* Заголовок не резервирует лишнюю высоту на мобилке */
  .news-item .news-title {
    -webkit-line-clamp: unset;
    min-height: 0;
    display: block;
    line-height: 1.25;
  }
}



/* ===== Адаптация компонента новостей (.news-content → .news-list) ===== */
@media (max-width: 992px) {
	.news-content .news-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.news-content .news-item b,
	.news-content .news-item a { font-size: 15px; }
}

@media (max-width: 600px) {
	.news-content .news-list { grid-template-columns: 1fr; gap: 12px; }
	.news-content .news-item { flex-direction: row; align-items: flex-start; }
	.news-content .news-item img.preview_picture { width: 120px; height: 95px; border-radius: 6px 0 0 6px; flex-shrink: 0; object-fit: cover; }
	.news-content .news-item-content { padding: 12px; }
	.news-content .news-title { -webkit-line-clamp: 3; min-height: calc(1.25em * 2); }
	.news-content .news-date-time { width: auto; display: inline-block; padding: 2px 8px; font-size: 12px; }
	.news-content .news-item p { font-size: 13px; line-height: 1.45; }
}

/* End */


/* Start:/local/templates/altelect/components/bitrix/system.pagenavigation/altermax_catalog/style.css?1765150547562*/
.pagination-area ul li a {
    border: 1px solid #e5e5e5;
    display: block;
    height: 30px;
    width: 30px;
    text-decoration: none;
    transition: all .4s ease-out .2s;
    border-radius: 3px;
    color:black;
}

.pagination-area ul li {
    background: #f5f5f5;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    margin: 0 0 5px 5px;
    width: 30px;
    text-align: center;
}

.pagination-area ul li a.active {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color:white;
}

/* End */
/* /local/templates/altelect/components/bitrix/news.list/altelect/style.css?17651505474544 */
/* /local/templates/altelect/components/bitrix/system.pagenavigation/altermax_catalog/style.css?1765150547562 */
