

/* Start:/local/templates/zso/components/bitrix/news.list/.default/style.css?176485023812663*/

.js-webp .s-main__bg.s-main__bg-news::after {
    background-image: none;
}

.main-news {
    padding-top: 170px;
    padding-bottom: 60px;
}

@media (max-width:991px) {
    .main-news {
        padding-top: 80px;
        padding-bottom: 40px;
    } 
    
}

.s-main-news {
    background-color: #4c90f8;
}

/* Breadcrumbs — под разметку .bread-crumbs / .bread-crumbs__item / .bread-crumbs__link */
.bread-crumbs-wrap { /* на всякий случай, чтобы не ломало сетку */
  width: 100%;
  margin-top: 20px;
}

.bread-crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;                 /* аккуратные отступы между элементами */
  font-size: 14px;               /* сопоставимо с существующими .breadcrumbs */
  line-height: 1.3;
  color: rgba(21,27,29,.92);     /* базовый текст сайта */
  overflow-x: auto;              /* на узких экранах не ломаемся */
  overflow-y: hidden;
  white-space: nowrap;           /* крошки в одну строку */
  -webkit-overflow-scrolling: touch;
}

/* пункт */
.bread-crumbs__item {
  display: inline-flex;
  align-items: center;
}

/* разделитель */
.bread-crumbs__item + .bread-crumbs__item::before {
  content: "›";                  /* деликатная стрелка */
  display: inline-block;
  margin: 0 6px 0 2px;
  color: #C8C8C8;                /* нейтрально, как в разделителях меню */
  transform: translateY(-.5px);
}

/* ссылка */
.bread-crumbs__link {
  color: rgba(21,27,29,.92);     /* базовый цвет ссылок на сайте */
  text-decoration: none;
  transition: color .3s;         /* как у ссылок/текста на сайте */
}

/* hover/active как у .text-link/.menu__link */
.bread-crumbs__link:hover,
.bread-crumbs__link:focus {
  color: #2D77EC;
  text-decoration: none;
  outline: none;
}

/* текущий пункт (не ссылка) */
.bread-crumbs__active,
.bread-crumbs__item:last-child .bread-crumbs__link {
  color: #909C9F;                /* приглушаем текущий */
  pointer-events: none;
  cursor: default;
}

/* состояние на темном фоне, если крошки попадут в hero/баннер */
.text-white .bread-crumbs,
.text-white .bread-crumbs__item,
.text-white .bread-crumbs__link {
  color: #fff;
}
.text-white .bread-crumbs__item + .bread-crumbs__item::before {
  color: rgba(255,255,255,.7);
}
.text-white .bread-crumbs__link:hover,
.text-white .bread-crumbs__link:focus {
  color: #fff;
  opacity: .85;
}

/* адаптив: на очень узких — меньше кегль */
@media (max-width: 575.5px) {
  .bread-crumbs { font-size: 13px; }
}



/* ===== News Cards ===== */
.news-items { /* контейнер раздела */
  --card-radius: 16px;
  --card-shadow: 0 6px 20px rgba(0,0,0,.07);
  --card-shadow-hover: 0 10px 30px rgba(0,0,0,.12);
  --text-color: rgba(21,27,29,.92);
  --muted: #909C9F;
  --divider: #EBEEF0;
  --accent: #2D77EC; /* акцент как в ссылках/ховерах сайта */
  font-family: "Circe", "Roboto", sans-serif;
  color: var(--text-color);
}

.news-items__item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform, box-shadow;
}

.news-items__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(45,119,236,.25);
}

/* Кликабельность всей карточки через растянутую ссылку */
.news-items__item .stretched-link { position: static; } /* на случай bootstrap */
.news-items__item .stretched-link::after,
.news-items__item .news-items__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ===== Image ===== */
.news-items__img {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* 16:9 на десктопе, 4:3 на мобильных */
  padding-top: 56.25%;
}

@media (max-width: 575.5px) {
  .news-items__img { padding-top: 75%; }
}

/* Плашка (метка) */
.news-items__img .plachka {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.news-items__img .plachka img { display:block; max-height: 22px; width:auto; }

/* ===== Text zone ===== */
.news-items__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
}

/* Заголовок */
.news-items__title {
  display: inline-block;
  margin: 0;
  font-size: 18px; line-height: 1.25;
  color: var(--text-color);
  text-decoration: none;
  transition: color .25s ease;
}
.news-items__item:hover .news-items__title,
.news-items__title:hover,
.news-items__title:focus {
  color: var(--accent);
  outline: none;
}

/* Дата */
.news-items__date {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* Превью‑текст: 3 строки, затем троеточие */
.news-items__text > div:not(.news-items__btn-wrap) {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопка «Подробнее» прижата вниз */
.news-items__btn-wrap {
  margin-top: auto;
  padding-top: 6px;
}

/* Подстройка стандартной кнопки сайта внутри карточки */
.news-items__btn-wrap .btn.btn2.btn_border {
  border-radius: 999px;
  border-width: 1px;
  padding: 10px 16px;
  transition: transform .2s ease;
}
.news-items__item:hover .btn.btn2.btn_border { transform: translateY(-1px); }

/* ===== States on dark blocks (если карточки на тёмном фоне в hero) ===== */
.text-white .news-items__item { background:#0E1012; border-color: rgba(255,255,255,.15); }
.text-white .news-items__title,
.text-white .news-items { color:#fff; }
.text-white .news-items__date { color: rgba(255,255,255,.7); }
.text-white .news-items__img .plachka { background: rgba(14,16,18,.7); color:#fff; border-color: rgba(255,255,255,.12); }

/* ===== Spacing/Responsive ===== */
@media (min-width: 992px) {
  .rows > [class*="col-"] { margin-bottom: 24px; }
}
@media (max-width: 991.5px) {
  .rows > [class*="col-"] { margin-bottom: 18px; }
}



/* одна ссылка: заголовок со stretched-link покрывает всю карточку */
.news-items__title.stretched-link {
  position: static; /* чтобы ::after мог растянуться от карточки */
}
.news-items__item { position: relative; }
.news-items__title.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;              /* кликабельна вся карточка */
  z-index: 10;
}

/* "Подробнее" рисуем в .news-items__btn-wrap */
.news-items__btn-wrap {
  position: relative;
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: 2px;   /* место под линию */
  width: fit-content;
}

/* текст через ::before */
.news-items__btn-wrap::before {
  content: "Подробнее";
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-color, rgba(21,27,29,.92));
  pointer-events: none;          /* клики уходит в stretched-link */
  transition: color .25s ease;
}

/* подчёркивание через ::after (анимируется при ховере карточки) */
.news-items__btn-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: auto;
  bottom: 0;
  height: 2px;
  width: 0;                       /* старт: скрыто */
  background: var(--accent, #2D77EC);
  border-radius: 2px;
  transition: width .28s ease;
}

/* при наведении на карточку — плавное подчёркивание и акцентный цвет текста */
.news-items__item:hover .news-items__btn-wrap::after { width: 100%; }
.news-items__item:hover .news-items__btn-wrap::before { color: var(--accent, #2D77EC); }

/* доступность при фокусе клавиатурой на ссылке-заголовке */
.news-items__title.stretched-link:focus {
  outline: 2px solid rgba(45,119,236,.35);
  outline-offset: 2px;
}

/* тёмные блоки */
.text-white .news-items__btn-wrap::before { color:#fff; }
.text-white .news-items__item:hover .news-items__btn-wrap::before { color:#fff; opacity:.85; }
.text-white .news-items__btn-wrap::after { background:#fff; }





/* ===== Pagination (внутри блока новостей) ===== */
.news-items .pagination{
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  font-family: "Circe","Roboto",sans-serif;
  color: rgba(21,27,29,.92);
}

/* Инфострока "Новости 1–3 из 4" — делаем мелкой и приглушённой */
.news-items .pagination > font.text:first-of-type{
  display:block;
  font-size:13px;
  line-height:1.4;
  color:#909C9F;
  margin-bottom: 10px;
}

/* Сам блок пагинации от Bitrix (с текстом, |, ссылками и <b>) */
.news-items .pagination > font.text:last-of-type{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  /* Хитрость: прячем сырой текст типа "Начало | Пред. |" и сами палки */
  font-size:0;            /* текстовые ноды не занимают места */
  color:transparent;      /* на всякий случай */
}

/* Видимые элементы: ссылки и текущая страница (<b>) */
.news-items .pagination > font.text:last-of-type a,
.news-items .pagination > font.text:last-of-type b{
  font-size:14px;         /* возвращаем кегль для видимых элементов */
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 12px;
  border:1px solid #EBEEF0;
  border-radius:999px;
  text-decoration:none;
  color: rgba(21,27,29,.92);
  background:#fff;
  transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s;
}

/* Hover/focus по ссылкам */
.news-items .pagination > font.text:last-of-type a:hover,
.news-items .pagination > font.text:last-of-type a:focus{
  color:#2D77EC;
  border-color: rgba(45,119,236,.4);
  background: rgba(45,119,236,.06);
  outline: none;
  box-shadow: 0 4px 14px rgba(45,119,236,.12);
}

/* Текущая страница (<b>) — активная таблетка */
.news-items .pagination > font.text:last-of-type b{
  font-weight:600;
  color:#fff;
  background:#2D77EC;
  border-color:#2D77EC;
  box-shadow: 0 6px 16px rgba(45,119,236,.18);
}

/* Сужаем на очень узких экранах */
@media (max-width:575.5px){
  .news-items .pagination > font.text:last-of-type a,
  .news-items .pagination > font.text:last-of-type b{
    min-width:32px;
    height:32px;
    padding:0 10px;
    font-size:13px;
  }
}

/* Тёмные секции */
.text-white .news-items .pagination > font.text:first-of-type{ color: rgba(255,255,255,.7); }
.text-white .news-items .pagination > font.text:last-of-type a,
.text-white .news-items .pagination > font.text:last-of-type b{
  background:#0E1012;
  border-color: rgba(255,255,255,.15);
  color:#fff;
}
.text-white .news-items .pagination > font.text:last-of-type a:hover,
.text-white .news-items .pagination > font.text:last-of-type a:focus{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
  color:#fff;
}
.text-white .news-items .pagination > font.text:last-of-type b{
  background:#2D77EC;
  border-color:#2D77EC;
}

/* End */
/* /local/templates/zso/components/bitrix/news.list/.default/style.css?176485023812663 */
