

/* Start:/bitrix/templates/redesign-2025/components/bitrix/news.list/prof_biblio/style.css?17727034744706*/
/* =========================
   Список материалов — улучшенная стилистика
   ========================= */

/* Общие переменные (необязательно, но удобно) */
:root{
  --post-bg: #fff;
  --post-border: rgba(0,0,0,.08);
  --post-border-hover: rgba(0,0,0,.14);
  --post-shadow: 0 10px 30px rgba(0,0,0,.06);
  --post-radius: 16px;
  --text-main: rgba(0,0,0,.92);
  --text-muted: rgba(0,0,0,.62);
}

/* Разделитель — делаем тонкую линию вместо “пустого блока” */
.hr.mgs_marb_20{
  margin: 18px 0;
  height: 1px;
  background: rgba(0,0,0,.08);
  border: 0;
  opacity: 1;
}

/* Карточка поста */
.post{
  background: var(--post-bg);
  border: 1px solid var(--post-border);
  border-radius: var(--post-radius);
  padding: 18px 18px;
  margin: 0 0 16px 0;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post:hover{
  transform: translateY(-2px);
  border-color: var(--post-border-hover);
  box-shadow: var(--post-shadow);
}

/* Ссылка заголовка */
.post a{
  color: inherit;
  text-decoration: none;
}

.post a:hover{
  text-decoration: none;
}

/* Заголовок + автор */
.post .font_size_18{
  margin-bottom: 12px;
}

.post .font_size_18 a{
  display: inline;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-main);

  /* лёгкий эффект “акцента” при наведении */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .18s ease, opacity .18s ease;
}

.post:hover .font_size_18 a{
  background-size: 100% 2px;
}

/* Автор */
.post .font_size_12{
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  opacity: 1;
}

/* Контент: картинка + текст */
.post .imgtxt{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Блок изображения */
.post .it_img{
  flex: 0 0 220px;
  max-width: 220px;
}

/* “Обложка” */
.post .it_img a{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.post .it_img img{
  display: block;
  width: 100%;
  height: auto;
}

/* Ховер на картинку */
.post:hover .it_img a{
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* Текст */
.post .it_txt{
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.6;
  color: rgba(0,0,0,.84);
  overflow-wrap: anywhere;
}

/* Если внутри превью бывают теги типа p/ul — чуть приводим к виду */
.post .it_txt p{
  margin: 0 0 10px 0;
}

.post .it_txt p:last-child{
  margin-bottom: 0;
}

.post .it_txt ul,
.post .it_txt ol{
  margin: 8px 0 0 18px;
}

/* =========================
   Планшеты
   ========================= */
@media (max-width: 980px){
  .post{
    padding: 16px;
    border-radius: 14px;
  }

  .post .it_img{
    flex-basis: 180px;
    max-width: 180px;
  }

  .post .font_size_18 a{
    font-size: 17px;
  }
}

/* =========================
   Телефоны
   ========================= */
@media (max-width: 640px){
  .post{
    padding: 14px;
    border-radius: 14px;
    transform: none; /* на мобиле меньше “прыжков” */
  }

  .post:hover{
    transform: none;
    box-shadow: none;
  }

  .post .imgtxt{
    flex-direction: column;
    gap: 12px;
  }

  .post .it_img{
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .post .it_img a{
    border-radius: 14px;
  }

  .post .font_size_18 a{
    font-size: 16px;
    line-height: 1.25;
  }

  .post .it_txt{
    font-size: 14px;
    line-height: 1.55;

    /* аккуратное ограничение текста */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* =========================
   Доступность: убираем анимации если пользователь просит
   ========================= */
@media (prefers-reduced-motion: reduce){
  .post,
  .post .it_img a,
  .post .font_size_18 a{
    transition: none !important;
  }
}
/* End */
/* /bitrix/templates/redesign-2025/components/bitrix/news.list/prof_biblio/style.css?17727034744706 */
