/* ============================================================
   Лента «Новости» и «Рынок и аналитика» — дизайн site2.
   Рендер ленты — на JS (см. шаблоны): фильтр пересобирает
   раскладку заново (широкая → 6 мелких → широкая, по кругу).
   ============================================================ */
.rk-feed, .rk-feed * { box-sizing: border-box; }
.rk-feed { background: transparent; padding-top: 124px; padding-bottom: 50px; }   /* отступ под фикс-шапку + низ до футера */

/* Ширина страницы как на главной: main = 1200 */
main { width: 100%; max-width: 1200px; padding-inline: 0; box-sizing: border-box; }
@media (max-width: 1240px) { main { padding-inline: 20px; } }
.rk-feed .feed-wrap { max-width: 1200px; margin: 0 auto; }

/* --- Шапка --- */
/* Крошки переносятся целыми пунктами: без wrap flex сжимал их и рвал по
   словам («О / компании»). */
.rk-feed .feed-crumbs { display: flex; flex-wrap: wrap; gap: 8px; row-gap: 4px; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 13px; color: #83879a; margin: 0 0 22px; }
.rk-feed .feed-crumbs a { color: #83879a; text-decoration: none; }
.rk-feed .feed-crumbs a:hover { color: #000f9f; }
.rk-feed .feed-crumbs span { opacity: .5; }
@media (max-width: 560px) { .rk-feed .feed-crumbs { font-size: 12.5px; gap: 6px; } }
.rk-feed .feed-head { max-width: 820px; margin-bottom: 26px; }
.rk-feed .feed-eyebrow { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #000b73; display: inline-flex; align-items: center; gap: 11px; }
.rk-feed .feed-eyebrow::before { content: ""; width: 30px; height: 1.5px; background: #000f9f; display: inline-block; }
.rk-feed .feed-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 38px); line-height: 1.06; letter-spacing: -.02em; color: #14161d; margin: 14px 0 0; }
.rk-feed .feed-sub { font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.55; color: #474b58; margin: 16px 0 0; }

/* --- Плашка «Также почитайте» (как фото 3) --- */
.rk-feed .feed-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 26px; padding: 20px 28px; border-radius: 16px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 2px 10px rgba(20,28,60,.06); }
.rk-feed .feed-promo .fp-l { display: flex; align-items: center; gap: 14px; }
.rk-feed .feed-promo .fp-ic { flex: none; width: 34px; height: 34px; color: #000f9f; display: flex; align-items: center; justify-content: center; }
.rk-feed .feed-promo .fp-ic svg { width: 22px; height: 22px; }
.rk-feed .feed-promo .fp-tx b { display: block; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: #14161d; margin-bottom: 3px; }
.rk-feed .feed-promo .fp-tx span { font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.5; color: #83879a; }
.rk-feed .feed-promo a { flex: none; display: inline-flex; align-items: center; gap: 8px; color: #000f9f; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; background: transparent; transition: gap .2s; }
.rk-feed .feed-promo a:hover { gap: 12px; }
.rk-feed .feed-promo a svg { width: 16px; height: 16px; flex: none; }

/* --- Фильтр по годам (сегмент-пилюли) --- */
.rk-feed .feed-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: transparent; border: 1px solid #dfe3ec; padding: 4px; border-radius: 999px; margin-bottom: 26px; }
.rk-feed .feed-tabs button { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; padding: 7px 15px; border: 0; border-radius: 999px; color: #474b58; background: transparent; cursor: pointer; transition: .18s; }
.rk-feed .feed-tabs button.on { background: #fff; color: #14161d; box-shadow: 0 2px 10px rgba(20,28,60,.06); }
/* Мобильный фильтр: единая капсула с radius 999px при переносе на несколько
   строк превращалась в «стадион» с кнопками враскоряку. На узких убираем
   внешнюю рамку — каждый год становится самостоятельной пилюлей. */
@media (max-width: 700px) {
  /* Плашка «Также почитайте»: на узких иконка стоит в одной строке с
     заголовком, а описание уходит следующим абзацем во всю ширину —
     раньше иконка висела по центру высокого текста сбоку. */
  .rk-feed .feed-promo .fp-l { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: center; }
  .rk-feed .feed-promo .fp-tx { display: contents; }
  .rk-feed .feed-promo .fp-ic { grid-column: 1; grid-row: 1; width: 28px; height: 28px; }
  .rk-feed .feed-promo .fp-tx b { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .rk-feed .feed-promo .fp-tx span { grid-column: 1 / -1; grid-row: 2; }

  .rk-feed .feed-tabs { display: flex; gap: 8px; padding: 0; border: 0; border-radius: 0; margin-bottom: 22px; }
  .rk-feed .feed-tabs button { background: #fff; border: 1px solid #dfe3ec; padding: 8px 14px; font-size: 12.5px; }
  .rk-feed .feed-tabs button.on { background: #000f9f; border-color: #000f9f; color: #fff; box-shadow: none; }
}

/* --- Сетка мелких карточек --- */
.rk-feed .feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
@media (max-width: 900px) { .rk-feed .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rk-feed .feed-grid { grid-template-columns: 1fr; } }

/* --- Мелкая карточка (как фото 2) --- */
.rk-feed .card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 24px; border-radius: 18px; text-decoration: none; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 10px rgba(20,28,60,.06); transition: transform .22s, box-shadow .22s; }
.rk-feed .card:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(18,26,60,.10); }
.rk-feed .card-date { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; color: #3b4bd8; background: #eef0fb; padding: 6px 12px; border-radius: 999px; }
.rk-feed .card h4 { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; color: #14161d; margin: 14px 0 8px; }
.rk-feed .card-ex { font-family: 'Montserrat', sans-serif; font-size: 13.5px; line-height: 1.55; color: #6b7180; margin: 0 0 18px; }
.rk-feed .card-btn { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; border: 1.5px solid #dfe3ec; background: transparent; color: #14161d; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; transition: border-color .2s; }
.rk-feed .card-btn:hover { border-color: #000f9f; color: #000f9f; }
.rk-feed .card-btn svg { width: 15px; height: 15px; flex: none; }

/* --- Широкая карточка (общее) --- */
.rk-feed .feat { position: relative; overflow: hidden; border-radius: 18px; cursor: pointer; text-decoration: none; display: block; margin-bottom: 30px; box-shadow: 0 26px 64px rgba(9,13,48,.20); }
.rk-feed .feat-chart, .rk-feed .feat-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rk-feed .feat-cover { object-fit: cover; }

/* Вариант A: график/обложка во весь фон (тёмная навигация) */
.rk-feed .feat-a { min-height: 330px; display: flex; align-items: flex-end; background: linear-gradient(160deg, #070a2b, #0d1893); }
.rk-feed .feat-a .feat-chart { opacity: .5; }
.rk-feed .feat-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,6,25,.88) 6%, rgba(3,6,25,.15) 62%, transparent); }
.rk-feed .feat-a .feat-body { position: relative; z-index: 1; padding: 34px 36px; max-width: 720px; }
.rk-feed .feat-a .feat-date { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16); padding: 6px 13px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rk-feed .feat-a h3 { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; margin: 16px 0 20px; }
/* Стеклянная кнопка (как фото 1) */
.rk-feed .feat-a .feat-btn { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #14161d; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; transition: .22s ease; }
.rk-feed .feat-a .feat-btn:hover { background: #fff; transform: translateY(-1px); }
.rk-feed .feat-a .feat-btn svg { width: 15px; height: 15px; }

/* Вариант B: текст слева + график/обложка-панель справа */
.rk-feed .feat-b { display: grid; grid-template-columns: 1fr 42%; background: #fff; border: 1px solid #eaedf4; box-shadow: 0 2px 10px rgba(20,28,60,.06); min-height: 300px; }
.rk-feed .feat-b .feat-body { padding: 36px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.rk-feed .feat-b .feat-date { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; color: #3b4bd8; background: #eef0fb; padding: 6px 13px; border-radius: 999px; }
.rk-feed .feat-b h3 { color: #14161d; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.01em; margin: 16px 0 12px; }
.rk-feed .feat-b .feat-ex { font-family: 'Montserrat', sans-serif; font-size: 14.5px; line-height: 1.6; color: #6b7180; margin: 0 0 20px; }
.rk-feed .feat-b .feat-btn { display: inline-flex; align-items: center; gap: 8px; background: #000f9f; color: #fff; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 999px; }
.rk-feed .feat-b .feat-btn svg { width: 15px; height: 15px; }
.rk-feed .feat-b .feat-panel { position: relative; background: linear-gradient(160deg, #070a2b, #0d1893); overflow: hidden; }
.rk-feed .feat-b .feat-panel .feat-chart { opacity: .6; }
@media (max-width: 760px) { .rk-feed .feat-b { grid-template-columns: 1fr; } .rk-feed .feat-b .feat-panel { min-height: 150px; order: -1; } }

.rk-feed .feed-empty { font-family: 'Montserrat', sans-serif; color: #83879a; font-size: 15px; padding: 40px 0; }

/* --- Шапка страницы материала (в стиле site2: крошки + надзаголовок + крупный заголовок) --- */
.art-crumbs { display: flex; flex-wrap: wrap; gap: 8px; row-gap: 4px; align-items: center; font-family: 'Montserrat', sans-serif; font-size: 13px; color: #83879a; margin: 0 0 22px; }
.art-crumbs a { color: #83879a; text-decoration: none; }
.art-crumbs a:hover { color: #000f9f; }
.art-crumbs .sep { opacity: .5; }
@media (max-width: 560px) { .art-crumbs { font-size: 12.5px; gap: 6px; } }
.art-eyebrow { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #000b73; display: inline-flex; align-items: center; gap: 11px; }
.art-eyebrow::before { content: ""; width: 30px; height: 1.5px; background: #000f9f; display: inline-block; }
.art-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.02em; color: #14161d; margin: 14px 0 0; }

/* --- Низ статьи: кнопка «Все материалы», «Читайте также» --- */
.art-back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid #dfe3ec; background: transparent; color: #14161d; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.art-back-btn:hover { border-color: #000f9f; color: #000f9f; background: rgba(0,15,159,.05); }
.art-back-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.art-back-btn:hover svg { transform: translateX(-4px); }
.art-divider { height: 1px; background: #e6e9f2; margin: 44px 0; }
.art-more-h { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 700; color: #14161d; margin: 0 0 22px; }
.rk-feed.art-related { padding-top: 0; }
.rk-feed.art-related .feed-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 0; }
@media (max-width: 640px) { .rk-feed.art-related .feed-grid { grid-template-columns: 1fr; } }

/* --- Дефолтная брендовая обложка (когда обложка не загружена) — внутри материала и на главной --- */
.rk-defcover { position: relative; overflow: hidden; border-radius: 18px; min-height: 320px; margin: 0 0 40px; padding: 48px 40px; text-align: center; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #070a2b, #0d1893); }
.rk-defcover .dc-chart { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.rk-defcover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 40%, transparent 30%, rgba(3,6,25,.65) 100%); }
.rk-defcover .dc-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.rk-defcover .dc-eyebrow { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 12px; }
.rk-defcover .dc-eyebrow::before, .rk-defcover .dc-eyebrow::after { content: ""; width: 26px; height: 1.5px; background: #9fb1ff; display: inline-block; }
.rk-defcover .dc-logo { height: 46px; width: auto; margin: 22px 0 16px; filter: brightness(0) invert(1); }
.rk-defcover .dc-tag { font-family: 'Montserrat', sans-serif; font-size: 14px; color: rgba(255,255,255,.7); }
