/* Журнал: лента /journal, рубрики, карточка статьи, постраничный вывод (08.10.2026).
   Подключают pages/zhurnal.htm, zhurnal-rubrika.htm и «Читайте также» на странице статьи.
   Цвета и чипы — как у каталога (main.css: .catalog_free_plan__tag). После правки — поднять ?v= в страницах. */

.pj-feed .container { padding-top: 216px; padding-bottom: 120px; }
.pj-feed__head { margin-top: 28px; }
.pj-feed__title { margin: 0; }
.pj-feed__intro { margin: 16px 0 0; max-width: 46em; color: #4f5560; font-size: 16px; line-height: 1.5; }
.pj-feed__empty { margin: 40px 0 0; color: #4f5560; font-size: 16px; line-height: 1.5; }
.pj-feed__empty a, .pj-feed__text a { color: #137dff; }
.pj-feed__text { margin-top: 64px; max-width: 50em; color: #2b2f36; font-size: 16px; line-height: 1.6; }
.pj-feed__text p, .pj-feed__text ul, .pj-feed__text ol { margin: 0 0 1em; }
.pj-feed__text h2, .pj-feed__text h3 { margin: 1.5em 0 .5em; color: #000; font-family: "RFDewi", sans-serif; font-weight: 700; line-height: 1.25; }
.pj-feed__text h2 { font-size: 24px; }
.pj-feed__text h3 { font-size: 20px; }

/* Рубрики */
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pj-chips__item { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border: 1px solid #e1e3e6; border-radius: 50px; background: #fff; color: #000; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .3s, border-color .3s; }
.pj-chips__item:hover:not(.is-active) { background: #e1e3e6; }
.pj-chips__item.is-active { border-color: rgba(0, 68, 255, .47); }
.pj-chips__num { color: #8a9099; }

/* Сетка и карточка */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; }
.pj-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; transition: box-shadow .3s; }
.pj-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.pj-card__img { aspect-ratio: 1200 / 630; background: #e8ebef; }
.pj-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #c3c8cf; }
.pj-card__noimg .icon { width: 48px; height: 48px; fill: currentColor; }
.pj-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 24px 24px; }
.pj-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #8a9099; font-size: 13px; line-height: 1.3; }
.pj-card__rubric { position: relative; z-index: 2; color: #137dff; font-weight: 400; text-decoration: none; }
.pj-card__rubric:hover { text-decoration: underline; }
.pj-card__title { margin: 0; color: #000; font-family: "RFDewi", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; transition: color .3s; }
.pj-card:hover .pj-card__title { color: #137dff; }
.pj-card__link { color: inherit; text-decoration: none; }
.pj-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pj-card__link:focus-visible { outline: 2px solid #137dff; outline-offset: 2px; }
.pj-card__lead { display: -webkit-box; margin: 0; overflow: hidden; color: #4f5560; font-size: 15px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Постраничный вывод */
.pj-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pj-pager__item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #e1e3e6; border-radius: 8px; background: #fff; color: #000; font-size: 15px; text-decoration: none; transition: background .3s; }
.pj-pager__item:hover:not(.is-active) { background: #e1e3e6; }
.pj-pager__item.is-active { border-color: #137dff; background: #137dff; color: #fff; font-weight: 600; }
.pj-pager__gap { padding: 0 4px; color: #8a9099; }

@media (max-width: 1024px) {
  .pj-feed .container { padding-top: 150px; padding-bottom: 80px; }
  .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .pj-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .pj-card__body { padding: 16px 16px 20px; }
  .pj-card__title { font-size: 18px; }
}

@media (max-width: 500px) {
  .pj-feed .container { padding-top: 88px; padding-bottom: 40px; }
  .pj-feed__head { margin-top: 20px; }
  .pj-feed__intro { font-size: 14px; line-height: 22px; }
  .pj-chips { margin-top: 20px; }
  .pj-chips__item { padding: 8px 12px; font-size: 14px; }
  .pj-pager { margin-top: 32px; }
  .pj-feed__text { margin-top: 40px; font-size: 15px; }
}

@media (max-width: 400px) {
  .pj-chips { gap: 6px; }
  .pj-chips__item { gap: 4px; padding: 7px 10px; font-size: 13px; }
}
