/* Блок «Статьи по теме» на странице категории — по согласованному макету category-articles/mockup. */
.cat-art {
  --ca-text: #1b1b1b; --ca-muted: #686868; --ca-line: #e6e6e6; --ca-soft: #f6f7f8; --ca-brand: #34495e;
  margin: 40px 0 32px; color: var(--ca-text); min-width: 0; clear: both;
}
.cat-art__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-art__title { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.cat-art__count { font-size: 13px; color: var(--ca-muted); }
.cat-art__all { margin-left: auto; font-size: 13px; color: var(--ca-brand); white-space: nowrap; text-decoration: none; }
.cat-art__all:hover { text-decoration: underline; }

.cat-art__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-art__card { display: flex; gap: 14px; min-width: 0; border: 1px solid var(--ca-line); border-radius: 8px; padding: 12px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cat-art__card:hover { border-color: #c9d2db; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); color: inherit; }
.cat-art__card:hover .cat-art__name { color: var(--ca-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cat-art__card[hidden] { display: none; }
.cat-art__img { flex: 0 0 132px; height: 88px; border-radius: 6px; overflow: hidden; background: var(--ca-soft); }
.cat-art__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-art__body { display: flex; flex-direction: column; min-width: 0; }
.cat-art__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 12px; line-height: 1.4; color: var(--ca-muted); }
.cat-art__dot { width: 3px; height: 3px; border-radius: 50%; background: #b5b5b5; flex: none; }
.cat-art__name { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-art__text { font-size: 13px; line-height: 1.45; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-art__more { display: flex; justify-content: center; margin-top: 14px; }
.cat-art__more[hidden] { display: none; }
.cat-art__more-btn { height: 36px; padding: 0 22px; border-radius: 4px; border: 1px solid var(--ca-brand); background: #fff; color: var(--ca-brand); font: inherit; font-weight: 500; cursor: pointer; }
.cat-art__more-btn:hover { background: var(--ca-soft); }

/* без обложки: текст в 3 строки */
.cat-art_noimg .cat-art__card { padding: 14px 16px; }
.cat-art_noimg .cat-art__text { -webkit-line-clamp: 3; }

/* 2 в ряд: карточка шире — обложка больше, текст в 3 строки */
.cat-art_cols2 .cat-art__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-art_cols2 .cat-art__img { flex-basis: 168px; height: 112px; }
.cat-art_cols2 .cat-art__text { -webkit-line-clamp: 3; }

/* лента: без smooth в CSS и с мягкой привязкой — иначе в Safari на iPhone не листается (опыт плагина analogs) */
.cat-art__vp { position: relative; }
.cat-art_row .cat-art__list { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 1px; }
.cat-art_row .cat-art__list::-webkit-scrollbar { display: none; }
.cat-art_row .cat-art__card { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; }
.cat-art__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ca-line); background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--ca-text); cursor: pointer; padding: 0; }
.cat-art__arrow[hidden] { display: none; }
.cat-art__arrow_prev { left: -16px; }
.cat-art__arrow_next { right: -16px; }
@media (hover: none) { .cat-art__arrow { display: none !important; } }

@media (max-width: 1200px) {
  .cat-art__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-art_row .cat-art__card { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 760px) {
  .cat-art__list, .cat-art_cols2 .cat-art__list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cat-art { margin: 28px 0 24px; }
  .cat-art__title { font-size: 18px; }
  .cat-art__all { margin-left: 0; width: 100%; }
  .cat-art__list, .cat-art_cols2 .cat-art__list { gap: 8px; }
  .cat-art__card { padding: 10px; gap: 12px; }
  .cat-art__img, .cat-art_cols2 .cat-art__img { flex-basis: 96px; height: 72px; }
  .cat-art__name { font-size: 14px; }
  .cat-art__text, .cat-art_cols2 .cat-art__text { -webkit-line-clamp: 2; }
  .cat-art_row .cat-art__card { flex-basis: 300px; }
}
