/* ============================================================
   СВОЙ БАРНАУЛ — страница новости + страница рубрики
   Дополнение к styles.css
   ============================================================ */

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; align-items: center; gap: 9px; padding: 18px 0; color: var(--ink-3); font-size: 13.5px; font-weight: 500; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); transition: color .15s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .cur { color: var(--ink-2); }

/* ============================================================
   СТРАНИЦА НОВОСТИ
   ============================================================ */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 48px; margin-top: 6px; align-items: start; }
.article { min-width: 0; max-width: 760px; }

.art-head { margin-bottom: 26px; }
.art-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; margin: 14px 0 0; }
.art-head .lede { font-family: var(--font-text); font-size: 20px; line-height: 1.45; color: var(--ink-2); margin-top: 18px; font-weight: 500; }

.art-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-meta .au { display: flex; align-items: center; gap: 11px; }
.art-meta .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.art-meta .au b { display: block; font-size: 14.5px; font-weight: 700; }
.art-meta .au span { font-size: 12.5px; color: var(--ink-3); }
.art-meta .mspace { margin-left: auto; }
.art-meta .stat { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; }

.share { display: flex; align-items: center; gap: 9px; }
.share a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s, transform .1s; }
.share a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.art-hero { aspect-ratio: 16/9; border-radius: var(--r-lg); margin: 26px 0 10px; }
.art-cap { font-size: 13px; color: var(--ink-3); padding: 4px 2px 0; font-style: italic; }

/* Проза */
.prose { font-size: 18.5px; line-height: 1.68; color: #2a251f; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-size: 27px; font-weight: 800; margin: 38px 0 16px; letter-spacing: -0.015em; }
.prose a.inl { color: var(--accent-press); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.prose ul { margin: 0 0 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.pullquote { margin: 32px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--accent); }
.pullquote p { font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.3; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.pullquote cite { display: block; margin-top: 12px; font-family: var(--font-text); font-style: normal; font-weight: 600; font-size: 14px; color: var(--ink-3); }

.inset { background: var(--accent-tint); border-radius: var(--r-md); padding: 22px 24px; margin: 30px 0; }
.inset h4 { font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-press); margin: 0 0 10px; }
.inset p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.art-fig { margin: 30px 0; }
.art-fig .ph { aspect-ratio: 16/9; border-radius: var(--r-md); }

/* Теги */
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 36px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.tags a { background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.tags a:hover { background: var(--accent); color: #fff; }

/* Подвал статьи: автор/поделиться */
.art-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); flex-wrap: wrap; }
.art-foot .ftxt { font-weight: 600; font-size: 15px; }
.art-foot .ftxt span { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; margin-top: 2px; }

/* Читайте также */
.also { margin-top: 18px; }

/* ============================================================
   СТРАНИЦА РУБРИКИ
   ============================================================ */
.cat-hero { padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.cat-hero .ct { display: flex; align-items: center; gap: 16px; }
.cat-hero .cmark { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.cat-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 900; }
.cat-hero .cdesc { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; max-width: 60ch; }
.cat-hero .cmeta { color: var(--ink-3); font-size: 13.5px; font-weight: 600; margin-top: 12px; letter-spacing: .03em; }

/* Подрубрики-чипы + сортировка */
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 30px; flex-wrap: wrap; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chips a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1.5px solid var(--line-strong); color: var(--ink-2); transition: all .15s; }
.chips a:hover { border-color: var(--ink-3); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sortby { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; font-weight: 500; flex-shrink: 0; }
.sortby select { font-family: var(--font-text); font-weight: 600; font-size: 14px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; cursor: pointer; }

/* Сетка рубрики: крупная + лента */
.cat-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 48px; align-items: start; }

/* Большая карточка наверху рубрики */
.cat-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; }
.cat-feature .ph { min-height: 280px; }
.cat-feature .cf-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.cat-feature h2 { font-size: 28px; font-weight: 800; margin-top: 12px; }
.cat-feature .dek { color: var(--ink-2); font-size: 16px; margin-top: 14px; }
.cat-feature .tm { color: var(--ink-3); font-size: 13px; font-weight: 500; margin-top: 18px; }

/* Лента рубрики (крупнее, с описанием) */
.cat-feed { display: flex; flex-direction: column; }
.cat-feed .ci { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cat-feed .ci:first-child { padding-top: 0; }
.cat-feed .ci .ph { aspect-ratio: 16/10; border-radius: var(--r-md); }
.cat-feed .ci h3 { font-size: 21px; font-weight: 700; margin-top: 9px; }
.cat-feed .ci .dek { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.cat-feed .ci .it-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; margin-top: 12px; }

/* Пагинация */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 15px; color: var(--ink-2); transition: all .15s; }
.pager a:hover { border-color: var(--ink-3); }
.pager a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager a.np { font-weight: 600; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .article-wrap, .cat-grid { grid-template-columns: 1fr; gap: 40px; }
  .article { max-width: none; }
  .cat-feature { grid-template-columns: 1fr; }
  .cat-feature .ph { min-height: 220px; aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .cat-feed .ci { grid-template-columns: 1fr; gap: 14px; }
  .art-head h1 { font-size: 28px; }
  .prose { font-size: 17px; }
  .art-meta .mspace { margin-left: 0; width: 100%; }
}

/* ============================================================
   СТРАНИЦА ПОИСКА
   ============================================================ */
.search-hero { padding: 38px 0 30px; border-bottom: 1px solid var(--line); }
.search-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; }
.search-big { position: relative; max-width: 680px; margin: 22px 0 0; }
.search-big input { width: 100%; height: 58px; border: 2px solid var(--ink); background: var(--surface); border-radius: 999px; padding: 0 22px 0 54px; font-family: var(--font-text); font-size: 18px; color: var(--ink); }
.search-big input:focus { outline: none; border-color: var(--accent); }
.search-big .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search-big .go { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 24px; font-family: var(--font-text); font-weight: 700; font-size: 15px; cursor: pointer; }
.search-big .go:hover { background: var(--accent-press); }
.search-meta { color: var(--ink-2); font-size: 15px; margin-top: 20px; }
.search-meta b { color: var(--ink); }
.search-meta .q { color: var(--accent-press); }
.search-feed mark { background: var(--accent-tint); color: var(--accent-press); padding: 0 2px; border-radius: 3px; font-weight: 700; }
