

/* Start:/local/templates/.default/2021/css/seo-tiles-top.css?17809465433993*/
/* SEO Tiles Top: блок тегов/чипсов над каталогом */
/* Корневой контейнер групп */
.seo-tiles-wide {
  width: 100%;
  background: #f5f5f5;
  padding: 15px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.seo-tiles-wide .seo-tiles-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.seo-tiles-wide__actions {
  display: flex;
  justify-content: flex-end;
  /* width: 100%; */
}
/* CLOSED: первая группа и кнопка "Показать ещё" в одной строке */
.seo-tiles-wide:not(.is-open) .seo-tiles-content {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.seo-tiles-wide:not(.is-open) .tags__group:first-child,
.seo-tiles-wide:not(.is-open) .seo-tiles-wide__group:first-child {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.seo-tiles-wide:not(.is-open) .seo-tiles-wide__actions {
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* Группа: заголовок | список тегов | кнопка */
.seo-tiles-wide .tags__group,
.seo-tiles-wide .seo-tiles-wide__group {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* CLOSED: показываем только первую категорию */
.seo-tiles-wide:not(.is-open) .tags__group:not(:first-child),
.seo-tiles-wide:not(.is-open) .seo-tiles-wide__group:not(:first-child) {
  display: none !important;
}
/* OPEN: все группы, flex-direction column */
.seo-tiles-wide.is-open .tags__group,
.seo-tiles-wide.is-open .seo-tiles-wide__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.seo-tiles-wide .tags__title,
.seo-tiles-wide .seo-tiles-wide__title {
  flex: 0 0 auto;
  white-space: nowrap;
  /* padding-top: 6px; */
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  margin: 0;
  /* min-width: 140px; */
}
.seo-tiles-wide .tags__list,
.seo-tiles-wide .seo-tiles-wide__chips {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  min-width: 0;
}

/* CLOSED: одна строка, nowrap, без обрезов — лишние чипсы скрываются через JS */
.seo-tiles-wide:not(.is-open) .tags__list,
.seo-tiles-wide:not(.is-open) .seo-tiles-wide__chips {
  flex-wrap: nowrap;
  overflow: visible;
  min-width: 50px;
}
.seo-tiles-wide .seo-tiles-wide__chip.seo-chip--hidden {
  display: none !important;
}

/* OPEN: wrap, теги в несколько строк, без выхода за грани */
.seo-tiles-wide.is-open .tags__list,
.seo-tiles-wide.is-open .seo-tiles-wide__chips {
  flex-wrap: wrap;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}
.seo-tiles-wide.is-open .seo-tiles-wide__chip {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Чипсы */
.seo-tiles-wide .seo-tiles-wide__chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.3;
  color: #212121;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}
.seo-tiles-wide .seo-tiles-wide__chip:hover {
  background: #eee;
  border-color: #ccc;
}

/* Кнопка справа */
.seo-tiles-wide .tags__toggle,
.seo-tiles-wide .seo-tiles-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  color: #666;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.seo-tiles-wide .tags__toggle:hover,
.seo-tiles-wide .seo-tiles-toggle:hover {
  background: #eee;
  border-color: #ccc;
  color: #212121;
}
.seo-tiles-wide .tags__toggle[hidden],
.seo-tiles-wide .seo-tiles-toggle[hidden] {
  display: none !important;
}

/* Нижний блок "Также ищут" — отступы до футера */
.seo-tiles-wide--bottom {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* End */


/* Start:/local/templates/.default/2021/css/mta-articles-block.css?17860428127786*/
/* Блок «Тематические статьи» на страницах разделов каталога.
   Разметка — local/php_interface/inc/2021/articles-block.php (mtaArticlesBlockHtml).
   Слайдер в адаптиве — local/templates/.default/2021/js/mta-articles-block.js (Swiper 6.6.2).

   Файл самодостаточен: не полагается на .card / .btn__prcolor / .section__title из общих стилей,
   потому что часть из них живёт в mta-inside.css, который догружается JS-ом через секунду после
   load — блок успел бы моргнуть неоформленным. Подключается через Asset::addCss только когда
   блок реально выводится. */

.mta-articles {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Заголовок блока. Класс .section__title в разных файлах проекта переопределяется
   по-разному (местами color:#fff для тёмных секций) — фиксируем свой вид двумя классами,
   чтобы выиграть по специфичности независимо от порядка подключения. */
.mta-articles .mta-articles__title {
  margin: 0 0 20px;
  color: #212121;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
}

/* Раскладка: на десктопе обычная сетка 3 в ряд, Swiper не инициализируется вовсе.
   Переопределяем flex от swiper-bundle CSS (он уже есть на странице раздела). */
.mta-articles__slider {
  position: relative;
}
.mta-articles__slider .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.mta-articles__slider .mta-articles__slide {
  width: auto;
  height: auto;
  display: flex;
}

.mta-articles__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.mta-articles__img-link {
  display: block;
  line-height: 0;
}
.mta-articles__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mta-articles__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
}

.mta-articles__card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}
.mta-articles__card-link {
  color: #212121;
  text-decoration: none;
}
.mta-articles__card-link:hover,
.mta-articles__card-link:focus {
  color: #000;
  text-decoration: underline;
}

.mta-articles__text {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Кнопка «Все статьи» — фирменный стиль кнопок сайта (.btn__prcolor). */
.mta-articles__actions {
  margin-top: 20px;
  text-align: center;
}
.mta-articles a.mta-articles__all {
  display: inline-block;
  box-sizing: border-box;
  padding: 8px 20px 9px;
  color: #000;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: #ffd030;
  border: none;
  border-radius: 17px;
  cursor: pointer;
  transition: color 320ms, background 320ms;
}
.mta-articles a.mta-articles__all:hover,
.mta-articles a.mta-articles__all:focus {
  color: #fff;
  background: #07090a;
}
.mta-articles a.mta-articles__all:active {
  color: #fff;
  background: #f7ab47;
}

/* Точки пагинации нужны только в режиме слайдера (адаптив).
   Второй селектор — с классом, который навешивает сам Swiper: в стилях проекта есть
   .swiper-container .swiper-pagination-bullets{display:flex}, и без этого уточнения точки
   остались бы видны на десктопе в момент, когда слайдер ещё не успел разрушиться. */
.mta-articles .mta-articles__pagination,
.mta-articles .mta-articles__pagination.swiper-pagination-bullets {
  display: none;
}

/* ---------- Адаптив: слайдер ---------- */
/* Порог 992px — тот же, что у остального адаптива проекта (JS завязан на innerWidth < 992). */
@media (max-width: 991px) {
  .mta-articles__slider .swiper-wrapper {
    display: flex;
    gap: 0;
  }
  .mta-articles__slider .mta-articles__slide {
    /* Видимый «краешек» следующей карточки — понятный намёк, что блок листается. */
    width: 82%;
    max-width: 320px;
    flex-shrink: 0;
  }

  /* Обе формы селектора — зеркально правилу выше, иначе более специфичный вариант
     с .swiper-pagination-bullets продолжил бы прятать точки и в адаптиве.
     position: static обязателен — Swiper задаёт .swiper-pagination{position:absolute},
     из-за чего точки ложились поверх карточки. */
  .mta-articles .mta-articles__pagination,
  .mta-articles .mta-articles__pagination.swiper-pagination-bullets {
    display: flex;
    position: static;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    transform: none;
  }
  /* Сам кружок остаётся 8px (цвета — фирменные, из общих стилей), но зона нажатия
     расширяется до 24×24: padding кликабелен, а фон рисуется только по content-box.
     Внутри .swiper-container это давало проектное правило, снаружи его нет. */
  .mta-articles .mta-articles__pagination .swiper-pagination-bullet {
    box-sizing: content-box;
    width: 8px;
    height: 8px;
    padding: 8px;
    background-clip: content-box;
  }
  /* Оформление самих точек намеренно НЕ переопределяем: в стилях проекта буллет рисуется
     псевдоэлементом ::after (8px кружок, активный — фирменный оранжевый, зона клика 24×24).
     Свои цвета тут всё равно не применились бы и разъезжались бы с остальными слайдерами сайта. */

  /* Фолбэк, если Swiper по какой-то причине не поднялся (класс ставит наш JS):
     нативный горизонтальный скролл со снапом — блок остаётся полностью рабочим. */
  .mta-articles__slider.mta-articles--noswiper {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
  }
  .mta-articles__slider.mta-articles--noswiper .swiper-wrapper {
    gap: 15px;
  }
  .mta-articles__slider.mta-articles--noswiper .mta-articles__slide {
    scroll-snap-align: start;
  }
  /* Точки создаёт сам Swiper. Пока их нет (фолбэк mta-articles--noswiper, момент до
     инициализации) — контейнер пуст и не должен занимать место. */
  .mta-articles .mta-articles__pagination:empty {
    display: none;
  }
}

@media (max-width: 575px) {
  .mta-articles .mta-articles__title {
    font-size: 1.25rem;
  }
  .mta-articles__slider .mta-articles__slide {
    width: 86%;
  }
}

/* End */
/* /local/templates/.default/2021/css/seo-tiles-top.css?17809465433993 */
/* /local/templates/.default/2021/css/mta-articles-block.css?17860428127786 */
