/* ═══════════════════════════════════════════════════════════
   СИЛЬНЫЙ ВОЗРАСТ — Editorial Style 2026
   Вдохновение: NYT, The Bell, Meduza
   ─────────────────────────────────────────────────────────
   СТРУКТУРА ФАЙЛА:
   1. Переменные и сброс
   2. Шапка (header, лого, навигация)
   3. Бургер и мобильное меню
   4. Заголовки секций (block-head)
   5. Главный материал (lead)
   6. Свежее + Популярное (two-col-section)
   7. Секции по рубрикам (cat-section)
   8. Все материалы (all-section, фильтр, сетка)
   9. Цитата-баннер (quote-band)
   10. Подвал (footer)
   11. Скелетон-загрузка
   12. Адаптив (1024px, 768px, 480px)
═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────
   1. ПЕРЕМЕННЫЕ И СБРОС
   ───────────────────────────────────────────────────────── */
:root {
  /* Цвета — редакционная палитра */
  --ink:        #111110;   /* основной текст */
  --ink-mid:    #444440;   /* вторичный текст */
  --ink-light:  #888884;   /* подписи, мета */
  --ink-faint:  #BBBBB7;   /* даты, разделители */
  --paper:      #FAFAF8;   /* фон страницы */
  --paper-warm: #F4F0E8;   /* фон карточек */
  --red:        #C0392B;   /* акцент — рубрики, активные ссылки */
  --red-dark:   #9B2F24;   /* ховер на красном */
  --line:       #DDDDD8;   /* тонкие разделители */
  --line-dark:  #AAAAAA;   /* числа в топе */

  /* Шрифты */
  --serif:   'Playfair Display', 'Times New Roman', serif; /* заголовки */
  --ptserif: 'PT Serif', Georgia, serif;                   /* текст статей */
  --sans:    'Golos Text', system-ui, sans-serif;          /* интерфейс, метки */

  --container: 1160px;
  --t: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ptserif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }


/* ─────────────────────────────────────────────────────────
   АНИМАЦИИ
   ───────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Скролл-reveal: добавляется через JS */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }


/* ─────────────────────────────────────────────────────────
   2. ШАПКА
   ─────────────────────────────────────────────────────────
   Структура:
   .header
     .header__top        — дата + слоган (маленькая полоса)
     .header__main       — логотип по центру
     .header__nav-bar    — горизонтальная навигация
   ───────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
}

/* Верхняя полоса — дата и слоган */
.header__top { border-bottom: 1px solid var(--line); padding: 6px 0; }
.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--ink-light);
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Слоган в центре */
.header__tagline { font-weight: 600; letter-spacing: .12em; color: var(--ink-mid); }

/* Блок с логотипом */
.header__main { padding: 20px 0 16px; text-align: center; border-bottom: 3px solid var(--ink); }

/* Логотип — три части */
.logo { display: inline-flex; align-items: baseline; gap: 10px; cursor: pointer; }
.logo__pre {
  /* "Сильный" — маленький над словом */
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.logo__word {
  /* "Возраст" — главное слово */
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}
.logo__badge {
  /* "40+" — красный бейдж */
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .05em;
  align-self: center;
}

/* Навигационная полоса */
.header__nav-bar { border-bottom: 1px solid var(--line); }
.header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}

/* Навигация — горизонтальная строка */
.nav {
  display: flex;          /* ← горизонтально! */
  flex-direction: row;    /* явно строка */
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  flex: 1;
}
.nav::-webkit-scrollbar { display: none; }

/* Ссылки в навигации */
.nav__link,
.nav__cat-link {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 0 14px;
  height: 42px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;          /* не сжиматься */
  transition: color var(--t), border-color var(--t);
}
.nav__link:hover,
.nav__cat-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav__link.active    { color: var(--red); border-bottom-color: var(--red); }

/* Контейнер для рубрик в nav (span → flex) */
#navCats {
  display: contents; /* дочерние элементы участвуют в flex родителя */
}


/* ─────────────────────────────────────────────────────────
   3. БУРГЕР И МОБИЛЬНОЕ МЕНЮ
   ───────────────────────────────────────────────────────── */

/* Бургер — скрыт на десктопе */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 38px;
  height: 38px;
  justify-content: center;
  flex-shrink: 0;
}
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform var(--t), opacity var(--t); }
.burger span:nth-child(2) { width: 70%; }
/* Состояние открытого меню — анимация в крестик */
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Мобильное меню — выезжает справа */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--paper);
  z-index: 200;
  transform: translateX(100%); /* скрыто по умолчанию */
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
}
.mobile-menu.open { transform: translateX(0); } /* открыто */

/* Крестик закрытия */
.mobile-menu__close {
  align-self: flex-end;
  margin-bottom: 28px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.mobile-menu__close:hover { background: var(--line); }

/* Список ссылок */
.mobile-menu__list { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__list a {
  display: block;
  padding: 11px 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--t);
}
.mobile-menu__list a:hover { color: var(--red); }

/* Нижняя часть мобильного меню */
.mobile-menu__foot { padding-top: 24px; color: var(--ink-light); font-size: .85rem; line-height: 1.6; }
.mobile-menu__foot .logo__word { font-size: 1.2rem; display: block; margin-bottom: 4px; }

/* Затемнение фона при открытом меню */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.overlay.visible { opacity: 1; pointer-events: all; }


/* ─────────────────────────────────────────────────────────
   4. ЗАГОЛОВКИ СЕКЦИЙ
   Используется везде: .block-head с .block-title и .block-more
   ───────────────────────────────────────────────────────── */
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink); /* жирная линия под заголовком секции */
  margin-bottom: 20px;
}
.block-title {
  /* Название секции — маленькие капслок буквы */
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
}
.block-more {
  /* Ссылка "Смотреть все →" */
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .04em;
  white-space: nowrap;
  transition: opacity var(--t);
}
.block-more:hover { opacity: .7; }


/* ─────────────────────────────────────────────────────────
   5. ГЛАВНЫЙ МАТЕРИАЛ (LEAD)
   Сетка: главная статья слева + 3 анонса справа
   ───────────────────────────────────────────────────────── */
.lead { padding: 36px 0; border-bottom: 1px solid var(--line); }

.lead__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

/* Левая часть — главная статья */
.lead__main {
  padding-right: 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: opacity var(--t);
}
.lead__main:hover { opacity: .85; }

/* Правая часть — анонсы */
.lead__side { display: flex; flex-direction: column; }

/* Картинка главной статьи */
.lead__image {
  aspect-ratio: 16/10;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-warm);
  margin-bottom: 4px;
}
.lead__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lead__main:hover .lead__image img { transform: scale(1.03); }
.lead__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }

/* Метка рубрики */
.lead__cat {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
}
/* Заголовок главной статьи */
.lead__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
.lead__excerpt { font-family: var(--ptserif); font-size: 1rem; color: var(--ink-mid); line-height: 1.65; }
.lead__meta {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--ink-faint);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Анонсы справа */
.lead__side-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity var(--t);
}
.lead__side-item:first-child { padding-top: 0; }
.lead__side-item:last-child  { border-bottom: none; }
.lead__side-item:hover { opacity: .7; }
.lead__side-cat  { font-family: var(--sans); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--red); }
.lead__side-title{ font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.lead__side-date { font-family: var(--sans); font-size: .72rem; color: var(--ink-faint); }


/* ─────────────────────────────────────────────────────────
   6. СВЕЖЕЕ + ПОПУЛЯРНОЕ
   Две колонки: свежие статьи слева, топ-список справа
   ───────────────────────────────────────────────────────── */
.two-col-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr; /* шире слева */
  gap: 40px;
  align-items: start;
}

/* Свежее — список с превью */
.fresh-item {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--t);
}
.fresh-item:first-child { padding-top: 0; }
.fresh-item:last-child  { border-bottom: none; }
.fresh-item:hover { opacity: .7; }
.fresh-item__body  { display: flex; flex-direction: column; gap: 6px; }
.fresh-item__cat   { font-family: var(--sans); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--red); }
.fresh-item__title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.fresh-item__excerpt {
  font-family: var(--ptserif); font-size: .85rem; color: var(--ink-mid); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fresh-item__date { font-family: var(--sans); font-size: .72rem; color: var(--ink-faint); }
.fresh-item__img  { width: 100px; height: 72px; border-radius: 2px; overflow: hidden; background: var(--paper-warm); flex-shrink: 0; }
.fresh-item__img img { width: 100%; height: 100%; object-fit: cover; }
.fresh-item__img-ph  { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Популярное — нумерованный список */
.popular-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--t);
}
.popular-item:first-child { padding-top: 0; }
.popular-item:last-child  { border-bottom: none; }
.popular-item:hover { opacity: .7; }
.popular-item__num {
  /* Большая цифра-номер */
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--line-dark);
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}
.popular-item__title { font-family: var(--serif); font-size: .98rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.popular-item__cat   { font-family: var(--sans); font-size: .68rem; color: var(--ink-light); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }


/* ─────────────────────────────────────────────────────────
   7. СЕКЦИИ ПО РУБРИКАМ
   Для каждой рубрики — горизонтальная сетка из 3 статей
   ───────────────────────────────────────────────────────── */
.cat-section { padding: 40px 0; border-bottom: 1px solid var(--line); }

/* Заголовок секции рубрики с цветной точкой и линией */
.cat-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.cat-section__title-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.cat-section__dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } /* цветная точка рубрики */
.cat-section__title { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); white-space: nowrap; }
.cat-section__line  { flex: 1; height: 1px; background: var(--line); margin: 0 12px; } /* декоративная линия */
.cat-section__more  { font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--red); white-space: nowrap; transition: opacity var(--t); }
.cat-section__more:hover { opacity: .7; }

/* Сетка 3 статьи */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cat-grid-item {
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--t);
}
.cat-grid-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.cat-grid-item:hover { opacity: .75; }
/* Картинка в карточке рубрики */
.cat-grid-item__img { aspect-ratio: 3/2; overflow: hidden; background: var(--paper-warm); border-radius: 2px; margin-bottom: 12px; }
.cat-grid-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-grid-item:hover .cat-grid-item__img img { transform: scale(1.04); }
.cat-grid-item__ph      { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cat-grid-item__title   { font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 8px; }
.cat-grid-item__excerpt {
  font-family: var(--ptserif); font-size: .83rem; color: var(--ink-mid); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-grid-item__date { font-family: var(--sans); font-size: .7rem; color: var(--ink-faint); margin-top: 8px; }


/* ─────────────────────────────────────────────────────────
   8. ВСЕ МАТЕРИАЛЫ
   Фильтр по рубрикам + сетка 4 колонки
   ───────────────────────────────────────────────────────── */
.all-section { padding: 40px 0 60px; }

/* Кнопки фильтра */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0; }
.filter-btn {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 5px 14px;
  color: var(--ink-light);
  border: 1px solid var(--line);
  border-left: none;
  background: none;
  cursor: pointer;
  transition: all var(--t);
}
.filter-btn:first-child { border-left: 1px solid var(--line); border-radius: 3px 0 0 3px; }
.filter-btn:last-child  { border-radius: 0 3px 3px 0; }
.filter-btn:hover  { background: var(--paper-warm); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Сетка всех статей */
.all-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.all-item {
  padding: 20px 20px 20px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--t);
}
.all-item:nth-child(4n) { border-right: none; }
.all-item:hover { opacity: .75; }
.all-item__cat    { font-family: var(--sans); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 8px; }
.all-item__title  { font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: 8px; }
.all-item__excerpt{
  font-family: var(--ptserif); font-size: .82rem; color: var(--ink-mid); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.all-item__date   { font-family: var(--sans); font-size: .7rem; color: var(--ink-faint); margin-top: 10px; }

.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; }
.empty-state p { font-family: var(--sans); color: var(--ink-light); }

/* Кнопка "Загрузить ещё" */
.load-more-wrap { text-align: center; padding-top: 32px; border-top: 1px solid var(--line); }
.load-more-btn {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 11px 32px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  transition: all var(--t);
}
.load-more-btn:hover { background: var(--ink); color: #fff; }


/* ─────────────────────────────────────────────────────────
   9. ЦИТАТА-БАННЕР
   Тёмный блок с редакционной цитатой
   ───────────────────────────────────────────────────────── */
.quote-band { background: var(--ink); padding: 40px 0; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.45;
}


/* ─────────────────────────────────────────────────────────
   10. ПОДВАЛ
   ───────────────────────────────────────────────────────── */
.footer { padding: 48px 0 32px; border-top: 3px solid var(--ink); background: var(--paper); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 40px; }
.footer__brand .logo__word { font-family: var(--serif); font-size: 1.4rem; font-weight: 900; color: var(--ink); display: block; margin-bottom: 10px; }
.footer__brand p { font-family: var(--ptserif); font-size: .88rem; color: var(--ink-mid); line-height: 1.65; max-width: 280px; }
.footer__nav h3 { font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-light); margin-bottom: 14px; }
.footer__nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a  { font-family: var(--sans); font-size: .85rem; color: var(--ink-mid); transition: color var(--t); }
.footer__nav a:hover { color: var(--red); }
.footer__copy { text-align: right; }
.footer__copy p { font-family: var(--sans); font-size: .8rem; color: var(--ink-light); line-height: 1.6; }
.disclaimer { font-size: .72rem !important; color: var(--ink-faint) !important; margin-top: 8px; }


/* ─────────────────────────────────────────────────────────
   11. СКЕЛЕТОН-ЗАГРУЗКА
   ───────────────────────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--paper-warm) 25%, #EAE8E0 50%, var(--paper-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 3px;
}
.skel--title { height: 40px; width: 80%; margin-bottom: 16px; }
.skel--text  { height: 16px; width: 100%; margin-bottom: 10px; }
.skel--text.short { width: 60%; }


/* ─────────────────────────────────────────────────────────
   12. АДАПТИВ
   ───────────────────────────────────────────────────────── */

/* ── Планшет (до 1024px) ── */
@media (max-width: 1024px) {
  /* 3 колонки вместо 4 */
  .all-grid { grid-template-columns: repeat(3, 1fr); }
  .all-item:nth-child(4n) { border-right: 1px solid var(--line); padding-right: 20px; }
  .all-item:nth-child(3n) { border-right: none; padding-right: 0; }

  /* Подвал — 2 колонки */
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__copy  { text-align: left; }

  /* Логотип чуть меньше */
  .logo__word { font-size: 2.4rem; }
}

/* ── Мобильный (до 768px) ── */
@media (max-width: 768px) {
  /* Скрываем десктопную навигацию, показываем бургер */
  .nav    { display: none; }
  .burger { display: flex; }

  /* Логотип меньше */
  .logo__word { font-size: 1.9rem; }
  .logo__pre  { font-size: .75rem; }

  /* Шапка — дата скрыта */
  .header__top { display: none; }

  /* Lead — в колонку */
  .lead__inner {
    grid-template-columns: 1fr;
  }
  .lead__main {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 8px;
  }

  /* Свежее+Popular — в колонку */
  .two-col { grid-template-columns: 1fr; }
  .fresh-item { grid-template-columns: 1fr 80px; }
  .fresh-item__img { width: 80px; height: 60px; }

  /* Рубрики — 2 колонки (третья скрыта) */
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid-item:nth-child(2) { border-right: none; padding-right: 0; margin-right: 0; }
  .cat-grid-item:nth-child(3) { display: none; }

  /* Все статьи — 1 колонка */
  .all-grid { grid-template-columns: 1fr; }
  .all-item { border-right: none !important; }

  /* Заголовок секции + фильтры — в колонку */
  .all-section .block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
  }
  .filter-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .filter-btn {
    border-left: 1px solid var(--line) !important;
    border-radius: 3px !important;
    flex-shrink: 0;
  }

  /* Подвал — одна колонка */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__copy  { text-align: left; }
}

/* ── Маленький мобильный (до 480px) ── */
@media (max-width: 480px) {
  /* Одна колонка везде */
  .all-grid { grid-template-columns: 1fr; }
  .all-item {
    border-right: none !important;
    padding-right: 0 !important;
  }

  /* Рубрики — одна колонка, показываем все 3 */
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid-item {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 4px;
  }
  .cat-grid-item:last-child { border-bottom: none; }
  .cat-grid-item:nth-child(3) { display: block; }

  /* Фильтр-кнопки переносятся */
  .filter-bar { gap: 6px; }
  .filter-btn { border-left: 1px solid var(--line) !important; border-radius: 3px !important; }

  /* Логотип */
  .logo__word { font-size: 1.6rem; }
  .logo__badge { display: none; }
}


/* ─────────────────────────────────────────────────────────
   13. СТРАНИЦА РУБРИКИ (/category/...)
   ───────────────────────────────────────────────────────── */
.cat-page-hero {
  padding: 32px 0 28px;
  border-bottom: 3px solid var(--ink); /* цвет меняется через JS */
  margin-bottom: 0;
}
.cat-page-back {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  display: inline-block;
  margin-bottom: 16px;
  transition: opacity var(--t);
}
.cat-page-back:hover { opacity: .7; }
.cat-page-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.cat-page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 8px;
}
.cat-page-count {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-faint);
}
.cat-page-posts { padding: 32px 0 60px; }