/* ============================================================================
   news-listing v1 — страница /novosti и /novosti/rubrika/* (20-Oct-2026)
   Порт mockup news-listing-v1.html (15-Oct-2026) + ДНЕВНАЯ линия публикации
   вместо часовой (ТЗ юзера 20.10.2026). Всё скоупнуто классом .nl-* / id nl-*.
   Тёмная тема — через прод-механизм html.dark (app.js applyTheme).
   ========================================================================== */

/* === ДО-токены (глобальные --dm-primary/accent/bg/surface/text/muted есть
   в main.css; здесь — только недостающие, scoped, чтобы не трогать сайт) === */
.nl-page {
  --dm-primary-2: oklch(58% .18 235);
  --dm-warn: oklch(72% .14 70);
  --dm-rose: oklch(64% .19 18);
  --dm-surface-2: oklch(96% .01 265);
  --dm-border: oklch(90% .01 260);
  --dm-radius-lg: 22px;
  --glass-shadow: 0 12px 36px -16px oklch(0% 0 0 / .18), 0 2px 8px oklch(0% 0 0 / .06);
  --page-max: 1240px;
  --nl-topbar-h: 60px;
  --img-scrim: linear-gradient(180deg, oklch(20% .02 260 / .35) 0%, oklch(20% .02 260 / .75) 100%);
}
html.dark .nl-page {
  --dm-primary-2: oklch(80% .13 220);
  --dm-warn: oklch(80% .12 75);
  --dm-surface-2: oklch(22% .02 260);
  --dm-border: oklch(28% .02 260);
  --glass-shadow: 0 12px 36px -16px oklch(0% 0 0 / .55), 0 2px 8px oklch(0% 0 0 / .25);
  --img-scrim: linear-gradient(180deg, oklch(8% .02 260 / .35) 0%, oklch(8% .02 260 / .8) 100%);
}

.nl-page a { color: inherit; }
.nl-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .nl-wrap { padding: 0 14px; } }

/* === H1 / lede ============================================================ */
.nl-h1-wrap {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 14px 0 8px;
}
.nl-h1 {
  margin: 0; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.08;
  letter-spacing: -.02em; font-weight: 800; color: var(--dm-text);
}
.nl-h1 i { color: var(--dm-primary); font-size: .7em; vertical-align: 6px; margin-right: 6px; }
.nl-h1 small {
  display: block; font-size: 13px; font-weight: 500; color: var(--dm-muted);
  margin-top: 8px; letter-spacing: .02em;
}
.nl-lede-num {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(127,127,127,.06); border: 1px solid var(--dm-border);
  font-size: 13px; color: var(--dm-muted);
}
.nl-lede-num b { color: var(--dm-text); font-weight: 700; }
.nl-lede-num i { color: var(--dm-primary); font-size: 18px; }
@media (max-width: 480px) { .nl-lede-num { display: none; } }

/* === ЧИПЫ-РУБРИКИ (ссылки на SEO /novosti/rubrika/*) ===================== */
.nl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.nl-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none;
  background: var(--dm-surface); border: 1px solid var(--dm-border); color: var(--dm-text);
  transition: all .25s cubic-bezier(.16,1,.3,1); white-space: nowrap;
}
.nl-chip .n { color: var(--dm-muted); font-weight: 500; }
.nl-chip:hover { border-color: var(--dm-primary); color: var(--dm-primary); transform: translateY(-1px); }
.nl-chip.active {
  background: var(--dm-primary); color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px oklch(50% .22 265 / .30);
}
.nl-chip.active .n { color: #fff; opacity: .9; }

/* === КОНТРОЛЫ (view + sort) ============================================== */
.nl-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.nl-seg { display: inline-flex; padding: 4px; background: var(--dm-surface); border: 1px solid var(--dm-border); border-radius: 14px; gap: 2px; }
.nl-seg button {
  padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  color: var(--dm-muted); transition: all .18s; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nl-seg button i { font-size: 14px; }
.nl-seg button[aria-pressed="true"] { background: var(--dm-text); color: var(--dm-bg); box-shadow: 0 4px 14px oklch(15% .01 265 / .20); }
.nl-seg button:hover:not([aria-pressed="true"]) { color: var(--dm-text); }
html.dark .nl-seg button[aria-pressed="true"] { background: var(--dm-bg); color: var(--dm-text); }
.nl-sort-group { display: inline-flex; gap: 4px; padding: 4px; background: var(--dm-surface); border: 1px solid var(--dm-border); border-radius: 14px; }
.nl-sort-link {
  padding: 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  color: var(--dm-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all .18s;
}
.nl-sort-link i { font-size: 14px; }
.nl-sort-link[aria-current="true"] { background: var(--dm-text); color: var(--dm-bg); }
html.dark .nl-sort-link[aria-current="true"] { background: var(--dm-bg); color: var(--dm-text); }

/* === HERO ================================================================ */
.nl-hero {
  position: relative; display: block; height: 360px; border-radius: var(--dm-radius-lg);
  overflow: hidden; border: 1px solid var(--dm-border); background: var(--dm-surface);
  text-decoration: none; margin-bottom: 28px;
}
.nl-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.nl-hero:hover img { transform: scale(1.04); }
.nl-hero::after { content: ""; position: absolute; inset: 0; background: var(--img-scrim); z-index: 1; }
.nl-hero .nl-hero-c { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 32px; color: #fff; z-index: 2; }
.nl-hero .kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; background: oklch(75% .17 85 / .95);
  color: oklch(20% .02 85); padding: 5px 11px; border-radius: 999px; width: max-content; margin-bottom: 12px;
}
.nl-hero .kicker i { font-size: 13px; }
.nl-hero h2 { margin: 0 0 10px; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; max-width: 24ch; color: #fff; }
.nl-hero p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; opacity: .94; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #fff; }
.nl-hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; opacity: .88; color: #fff; }
.nl-hero-meta i { font-size: 14px; vertical-align: -1px; }
.nl-hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .55; display: inline-block; }
@media (max-width: 1024px) { .nl-hero { height: 320px; } .nl-hero .nl-hero-c { padding: 24px 28px; } }
@media (max-width: 768px) { .nl-hero { height: 260px; } .nl-hero .nl-hero-c { padding: 20px 22px; } .nl-hero h2 { font-size: 20px; } .nl-hero p { font-size: 13px; } }
@media (max-width: 480px) { .nl-hero { height: 220px; } .nl-hero .nl-hero-c { padding: 16px 18px; } .nl-hero h2 { font-size: 17px; } .nl-hero p { font-size: 12.5px; } }

/* === ДНЕВНОЙ РЕЛЬС — 1-в-1 стиль таймлайна афиши (.af-day) ================
   Правила скопированы дословно из inline-стилей templates/afisha.html
   (ТЗ юзера 21.10.2026: «таймлайн новостей = стиль афиши, ОДИН стиль»).
   Токены --color-surface/--color-text/--color-primary глобальные (app.css)
   и сами переворачиваются в .dark — поэтому dark 1-в-1 без доп. правил. */
.nl-rail { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; margin-bottom: 6px; min-width: 0; scroll-snap-type: x proximity; }
.nl-rail::-webkit-scrollbar { display: none; }
.nl-day { flex-shrink: 0; min-width: 66px; padding: 10px 8px; border-radius: 16px; text-align: center; cursor: pointer; background: var(--color-surface); border: 1.5px solid transparent; transition: all .2s cubic-bezier(.34, 1.56, .64, 1); scroll-snap-align: start; font-family: inherit; color: var(--color-text); position: relative; text-decoration: none; }
.nl-day:hover { transform: translateY(-3px); border-color: rgba(0, 122, 255, .4); }
.nl-day.on { background: linear-gradient(160deg, #0a84ff, #0060df); color: #fff; box-shadow: 0 8px 24px rgba(0, 122, 255, .35); }
.nl-day.wknd { border-color: rgba(227, 179, 65, .4); }
.nl-day.wknd.on { background: linear-gradient(160deg, #ff8534, #ff6b00); box-shadow: 0 8px 24px rgba(255, 107, 0, .35); }
.nl-day-dow { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: .65; font-weight: 700; }
.nl-day-num { font-size: 20px; font-weight: 800; margin: 2px 0; }
.nl-day.wknd .nl-day-num { color: #e3b341; }
.nl-day.wknd.on .nl-day-num { color: #fff; }
.nl-day-cnt { font-size: 10px; font-weight: 700; color: var(--color-primary); background: rgba(0, 122, 255, .12); border-radius: 999px; padding: 2px 8px; display: inline-block; }
.nl-day.on .nl-day-cnt { background: rgba(255, 255, 255, .22); color: #fff; }
.nl-day-sep { flex-shrink: 0; display: flex; align-items: center; font-size: 10px; font-weight: 800; color: var(--dm-muted, #8b98a5); text-transform: uppercase; letter-spacing: 1.5px; padding: 0 8px; opacity: .8; white-space: nowrap; }

/* === TOOLBAR ROW ========================================================== */
.nl-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 6px 16px; font-size: 13px; }
.nl-day-info { display: inline-flex; align-items: center; gap: 8px; color: var(--dm-muted); font-weight: 500; }
.nl-day-info i { color: var(--dm-primary); font-size: 16px; }
.nl-day-info b { color: var(--dm-text); font-weight: 700; }
.nl-toolbar-meta { color: var(--dm-muted); font-size: 12.5px; }

/* === СЕТКА КАРТОЧЕК ======================================================= */
.nl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1024px) { .nl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .nl-grid { grid-template-columns: 1fr; } }

.nl-ncard {
  position: relative; display: block; text-decoration: none; color: inherit;
  background: var(--dm-surface); border: 1px solid var(--dm-border); border-radius: var(--dm-radius-lg);
  overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1), border-color .25s cubic-bezier(.16,1,.3,1);
}
.nl-ncard:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow); border-color: oklch(75% .17 85 / .35); }
.nl-ncard .ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--dm-surface-2), var(--dm-border)); aspect-ratio: 16 / 10; }
.nl-ncard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.nl-ncard:hover .ph img { transform: scale(1.05); }
.nl-ncard .ph .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dm-muted); }
.nl-ncard .ph .noimg i { font-size: 40px; opacity: .45; }
/* === Карточные бейджи (ТЗ 21.10: Раздел + ИИ + Возраст — «очень красивые») ===
   Ряд на фото слева-вверху: [Раздел] [ИИ] [Реклама]; возраст — круглая пилюля
   справа-внизу (как рейтинг на кино-постерах). 0+ = мягкий «всегда», 12+/18+ =
   предупреждающие янтарь/красный. Glass + blur = стиль портала. */
.nl-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 66px); }
.nl-cat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(135deg, oklch(55% .2 265), oklch(62% .18 245)); color: #fff;
  box-shadow: 0 2px 8px rgba(15,20,25,.22); backdrop-filter: blur(6px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
/* 22.10: глобальный app.css красит ВСЕ .ph-duotone в сине-серый !important —
   внутри пилюль иконки сливались с фоном (жалоба юзера). Перебиваем точечно. */
.nl-cat i { font-size: 11px; flex-shrink: 0; color: #fff !important; }
/* 22.10 по ТЗ юзера (п.6): белый бейдж ИИ + тёмно-янтарный текст/иконка —
   жёлтая плашка на сепия-фото сливалась; белый контрастен на любом фоне */
.nl-ai {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.95); color: oklch(48% .15 80);
  box-shadow: 0 2px 8px rgba(15,20,25,.25); backdrop-filter: blur(6px);
}
.nl-ai i { font-size: 13px; color: inherit !important; }
.nl-age {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center;
  min-width: 30px; height: 30px; justify-content: center; padding: 0 7px;
  border-radius: 50%; font-size: 11.5px; font-weight: 900; letter-spacing: -.01em;
  /* 22.10 п.3: усилено кольцо+тень — тёмный круг тонул на тёмных участках фото */
  background: rgba(17,24,32,.74); color: #fff;
  border: 1.5px solid rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(15,20,25,.35), 0 2px 10px rgba(2,6,16,.45);
  backdrop-filter: blur(6px); font-variant-numeric: tabular-nums;
}
.nl-age.a12 { background: oklch(66% .17 80 / .97); color: #fff; border-color: rgba(255,255,255,.5); }
.nl-age.a18 { background: oklch(48% .21 22 / .97);  color: #fff; border-color: rgba(255,255,255,.5); }
.nl-ad {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: oklch(87% .11 95 / .95); color: oklch(30% .07 85);
  box-shadow: 0 2px 8px rgba(15,20,25,.15); backdrop-filter: blur(6px);
}
.nl-ncard .body { padding: 16px 18px 14px; }
.nl-ncard .meta-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dm-muted); margin-bottom: 8px; flex-wrap: wrap; }
.nl-ncard .meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dm-muted); opacity: .55; display: inline-block; }
.nl-ncard .meta-row i { font-size: 13px; opacity: .85; }
.nl-ncard h3 { margin: 0 0 8px; font-size: 15.5px; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; color: var(--dm-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nl-ncard p.sum { margin: 0 0 10px; font-size: 13px; color: var(--dm-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-ncard .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--dm-border); }
.nl-ncard .pub { font-size: 11.5px; color: var(--dm-muted); display: inline-flex; align-items: center; gap: 5px; }
.nl-ncard .pub i { color: var(--dm-primary); font-size: 12px; }
.nl-ncard .views { font-size: 11.5px; color: var(--dm-muted); display: inline-flex; align-items: center; gap: 5px; }
.nl-ncard .views b { color: var(--dm-text); font-weight: 700; }
.nl-ncard .views i { font-size: 12px; }
.nl-ncard .geo-pin { color: var(--dm-primary); }
.nl-ncard .geo-pin i { font-size: 13px; opacity: 1 !important; }

/* === FEED-VIEW (таймлайн по дням) ========================================= */
.nl-feed { display: none; flex-direction: column; gap: 28px; }
.nl-feed-day { position: relative; padding-left: 74px; }
.nl-feed-head {
  position: sticky; top: var(--nl-topbar-h); z-index: 5; background: var(--dm-bg);
  padding: 8px 0; margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--dm-border);
}
.nl-feed-head::before {
  content: ""; position: absolute; left: -34px; top: 14px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--dm-primary); box-shadow: 0 0 0 4px oklch(50% .22 265 / .15);
}
.nl-feed-day .fd-day { font-weight: 800; font-size: 14px; color: var(--dm-primary); text-transform: capitalize; }
.nl-feed-day .fd-count { font-size: 12px; color: var(--dm-muted); padding: 3px 8px; background: var(--dm-surface); border: 1px solid var(--dm-border); border-radius: 999px; }
.nl-fi {
  display: grid; grid-template-columns: 160px 70px 1fr; gap: 16px; align-items: start;
  background: var(--dm-surface); border: 1px solid var(--dm-border); border-radius: var(--dm-radius-lg);
  overflow: hidden; transition: all .25s cubic-bezier(.16,1,.3,1); text-decoration: none; color: inherit;
}
.nl-fi:hover { border-color: var(--dm-primary); transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.nl-fi-img { position: relative; min-height: 140px; overflow: hidden; background: linear-gradient(135deg, var(--dm-surface-2), var(--dm-border)); }
.nl-fi-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-fi-img .nl-badges { top: 6px; left: 6px; gap: 4px; max-width: calc(100% - 44px); }
.nl-fi-img .nl-cat { padding: 3px 8px; font-size: 9px; max-width: 120px; }
.nl-fi-img .nl-cat i { font-size: 10px; }
.nl-fi-img .nl-ai { padding: 3px 7px; font-size: 10px; gap: 3px; }
.nl-fi-img .nl-ai i { font-size: 11px; }
.nl-fi-img .nl-ad { padding: 3px 7px; font-size: 9px; }
.nl-fi-img .nl-age { top: auto; right: 6px; bottom: 6px; min-width: 24px; height: 24px; font-size: 9.5px; padding: 0 4px; }
.nl-fi-time { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--dm-muted); font-variant-numeric: tabular-nums; padding-top: 14px; }
.nl-fi-body { padding: 14px 14px 14px 0; }
.nl-fi-body h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--dm-text); }
.nl-fi-body p { margin: 0 0 7px; font-size: 13px; color: var(--dm-muted); line-height: 1.45; }
.nl-fi-body .meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dm-muted); }
.nl-fi-body .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dm-muted); opacity: .55; display: inline-block; }
.nl-fi-body .meta i { font-size: 12px; }
@media (max-width: 768px) {
  .nl-feed-day { padding-left: 36px; }
  .nl-feed-head::before { left: -26px; }
  .nl-fi { grid-template-columns: 88px 50px 1fr; }
  .nl-fi-body p { display: none; }
}

/* === EMPTY / LOADING ====================================================== */
.nl-empty { text-align: center; padding: 60px 24px; color: var(--dm-muted); grid-column: 1 / -1; background: var(--dm-surface); border: 1px dashed var(--dm-border); border-radius: var(--dm-radius-lg); }
.nl-empty i { font-size: 48px; color: var(--dm-primary); margin-bottom: 12px; display: block; }
.nl-empty h2 { margin: 0 0 8px; color: var(--dm-text); font-size: 18px; font-weight: 800; }
.nl-loading-row { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px; color: var(--dm-muted); font-size: 13px; gap: 8px; align-items: center; }
.nl-loading-row i { font-size: 18px; animation: nl-spin 1s linear infinite; }
@keyframes nl-spin { to { transform: rotate(360deg); } }

/* === BTT / TOAST ========================================================== */
/* BTT — 1-в-1 с кнопкой детали новости (.nws-btt, news-detail.v7.css) */
.nl-btt { position: fixed; right: 22px; bottom: 22px; z-index: 51; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(20, 30, 60, .10); background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--dm-text); box-shadow: 0 16px 48px rgba(0, 0, 0, .12); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; cursor: pointer; transition: all .3s cubic-bezier(.34, 1.56, .64, 1); }
html.dark .nl-btt { background: rgba(22, 27, 34, .85); border-color: rgba(255, 255, 255, .08); box-shadow: 0 16px 48px rgba(0, 0, 0, .5); }
.nl-btt.show { opacity: 1; transform: none; pointer-events: auto; }
.nl-btt:hover { box-shadow: 0 0 30px oklch(75% .17 85 / .25), 0 8px 32px rgba(0, 0, 0, .08); }
.nl-btt i { font-size: 22px; color: var(--dm-primary); }
@media (max-width: 639px) { .nl-btt { bottom: calc(53px + env(safe-area-inset-bottom, 0px) + 18px); } }
@media print { .nl-btt { display: none !important; } }
.nl-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 10px); z-index: 200; padding: 11px 18px; border-radius: 14px; background: var(--dm-text); color: var(--dm-bg); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px oklch(0% 0 0 / .25); opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.16,1,.3,1); }
.nl-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nl-toast i { font-size: 16px; color: var(--dm-accent); }

/* === Reveal (prefers-reduced-motion учтён) ================================ */
body.has-anim .nl-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
body.has-anim .nl-reveal.in { opacity: 1; transform: none; }
/* restore «Ленты» из sessionStorage до API-ответа: не мигает grid->feed */
#nl-zone.nl-view-loading #news-grid { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .nl-day:hover, .nl-ncard:hover, .nl-fi:hover, .nl-hero:hover img, .nl-ncard:hover .ph img { transform: none !important; }
  .nl-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nl-loading-row i { animation: none; }
}
