/* Новости и публикации (29.11.2026). Блок: большая новость с фото и четыре серых квадрата.
   Страница: тот же блок сверху, ниже сетка, фильтры. Контролы – серая панель: вид, практика, поиск (выбрано 29.11.2026).
   Тексты в образцах – заглушки, не для публикации */

.nmeta { display: block; hyphens: manual; font-size: var(--t-small); line-height: var(--l-small); color: var(--mute); }
.nmeta span + span { margin-left: 1.4em; }
.ntitle { display: block; font-weight: 500; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }

/* блок: слева большая новость с фото, справа 2 x 2 серых квадрата; зазор 2 px, как у карточек практик */
.nmix { grid-column: 1 / -1 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nquad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nbig { position: relative; display: flex; align-items: flex-end; overflow: hidden; min-height: 100%; background: var(--black); color: var(--white); }
.nbig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.nbig.in img, .no-js .nbig img { transform: scale(1); }
.nbig::after { content: ""; position: absolute; inset: 0; background: var(--black); opacity: .68; transition: opacity .7s var(--ease); }
.nbig:hover::after { opacity: .55; }
.nbig .in-t { position: relative; z-index: 1; padding: clamp(20px, 2.2vw, 44px); }
.nbig .nmeta { color: rgba(255,255,255,.62); margin-bottom: 14px; }
.nbig .ntitle { font-size: clamp(22px, min(1.9vw, var(--max) * .019), 40px); line-height: 1.22; max-width: 16em; }
.ncard { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; aspect-ratio: 1 / 1; padding: clamp(18px, 1.8vw, 36px);
  background: var(--gray-100); transition: background-color .6s var(--ease); }
.ncard:hover { background: var(--gray-200); }
.ncard .ntitle { font-size: clamp(17px, min(1.15vw, var(--max) * .0115), 24px); line-height: 1.3; }
/* кнопка «Все новости и публикации» – справа от заголовка блока, по нижнему краю строки заголовка */
.g > .nall { grid-column: 5 / span 2; justify-self: end; align-self: end; }
.sec .g > .nmix { margin-top: clamp(32px, 3vw, 64px); }
/* в блоке карточки проявляются, когда блок доходит до экрана */
.nmix[data-feed]:not(.shown) .nfade { animation: none; opacity: 0; }

/* кнопка-ссылка: рамка в 1 px, при наведении заливка; та же на странице для «Показать еще» */
.nbtn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 26px; border: 1px solid var(--ink); background: none; color: var(--ink);
  font: inherit; font-size: var(--t-body); cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.nbtn:hover { background: var(--ink); color: var(--white); }
.nbtn.swap { display: inline-grid; justify-items: center; }

/* ---------- страница ---------- */
.npage { padding-top: calc(var(--hdr) + clamp(48px, 5vw, 120px)); }
.npage h1 { grid-column: 1 / span 4; font-size: var(--t-h1); line-height: var(--l-h1); font-weight: 500; letter-spacing: -0.015em; }
/* панель во всю ширину, три равные части: вид, практика, поиск */
.nbar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: clamp(36px, 3.2vw, 72px); }
.nbar > * { min-width: 0; }
.nfeed { margin-top: clamp(28px, 2.4vw, 48px); }
.nrest { grid-column: 1 / -1 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.nrest .ncard { aspect-ratio: auto; min-height: clamp(220px, 15vw, 320px); }
.nempty { grid-column: 1 / -1; padding: clamp(48px, 5vw, 96px) 0; color: var(--mute); font-size: var(--t-lead); }
.nmore-row { grid-column: 1 / -1; margin-top: clamp(32px, 3vw, 64px); }
.nfade { animation: nfade .6s var(--ease) both; }
@keyframes nfade { from { opacity: 0; transform: translateY(10px); } }

/* выпадающий список практик и поиск – общие для всех вариантов */
.nsel { position: relative; }
.nsel select { width: 100%; appearance: none; -webkit-appearance: none; height: 48px; padding: 0 48px 0 18px; border: 0; border-radius: 0; background: var(--gray-100);
  font: inherit; font-size: var(--t-body); color: var(--ink); cursor: pointer; max-width: 100%; transition: background-color .3s; }
.nsel select:hover { background: var(--gray-200); }
.nsel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.nsearch { position: relative; }
.nsearch input { height: 48px; width: 100%; padding: 0 18px 0 46px; border: 0; border-radius: 0; background: var(--gray-100); font: inherit; font-size: var(--t-body); color: var(--ink); }
.nsearch input::placeholder { color: var(--mute); }
.nsearch svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--mute); pointer-events: none; }
.nsel select:focus-visible, .nsearch input:focus-visible { outline: 1px solid var(--ink); outline-offset: 0; }

/* панель фильтров: светло-серая полоса на всю ширину; выбранный вид залит черным */
.nseg { display: flex; }
.nseg button { flex: 1 1 auto; }
.nseg button { height: 48px; padding: 0 20px; border: 0; background: none; font: inherit; font-size: var(--t-body); color: var(--mute); cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.nseg button:hover { color: var(--ink); }
.nbar { padding: 12px; background: var(--gray-100); gap: 8px 12px; }
.nseg button.on { background: var(--ink); color: var(--white); }
.nsel select, .nsearch input { background: var(--white); }
.nsel select:hover { background: var(--white); }

@media (max-width: 860px) {
  .nmix { grid-template-columns: 1fr; }
  .g > .nall { grid-column: 1 / -1; justify-self: start; grid-row: 3; }
  .sec .g > .nall { margin-top: 24px; }
  .nbig { aspect-ratio: 4 / 3; }
  .ncard { aspect-ratio: auto; min-height: 180px; }
  .nrest { grid-template-columns: 1fr; }
  .nbar { grid-template-columns: 1fr; }
  .nseg { display: flex; } .nseg button { flex: 1 1 auto; padding: 0 8px; font-size: var(--t-small); white-space: nowrap; }
  .nsel select, .nsearch input { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { .nmix[data-feed] .nfade { opacity: 1; } }

/* ---------- страница новости (news-item.html?id=...), вариант 1 выбран 29.11.2026 ---------- */
.art-meta { font-size: var(--t-small); line-height: var(--l-small); color: var(--mute); }
.art-meta > * { display: block; }
.art-meta > * + * { margin-top: 6px; }
.art-meta a { color: var(--ink); transition: opacity .3s; }
.art-meta a:hover { opacity: .6; }
.art h1 { font-size: var(--t-h1); line-height: var(--l-h1); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; max-width: 22em; }
.art-lead { font-size: var(--t-lead); line-height: var(--l-lead); font-weight: 500; text-wrap: pretty; max-width: 32em; }
.art-body { font-size: var(--t-body); line-height: var(--l-body); max-width: 40em; text-wrap: pretty; hyphens: auto; }
.art-body p + p, .art-body ul + p, .art-body p + ul { margin-top: 1em; }
.art-body li { position: relative; padding-left: 1.6em; }
.art-body li + li { margin-top: .5em; }
.art-body li::before { content: "–"; position: absolute; left: 0; color: var(--mute); }
/* публикации юристов: разделы, подразделы, нумерованные списки, цитата из акта, таблица */
.art-body h2 { font-size: clamp(22px, 1.2vw + 6px, 32px); line-height: 1.17; font-weight: 500; margin: 2.2em 0 .7em; text-wrap: balance; scroll-margin-top: 32px; }
.art-body > h2:first-child { margin-top: 0; }
.art-body h3 { font-weight: 600; margin: 1.8em 0 .4em; text-wrap: balance; }
.art-body h2 + h3 { margin-top: 0; }
.art-body ul, .art-body ol { margin: 1em 0; }
.art-body ol { counter-reset: n; }
.art-body ol > li { counter-increment: n; }
.art-body ol > li::before { content: counter(n) "."; }
.art-body b { font-weight: 600; }
.art-body a { text-decoration: underline; text-decoration-color: var(--gray-300); text-underline-offset: .2em; transition: text-decoration-color .3s; }
.art-body a:hover { text-decoration-color: currentColor; }
.art-body blockquote { margin: 1.4em 0; padding-left: 1.6em; color: var(--mute); }
.art-body blockquote p + p { margin-top: .8em; }
.art-table { margin: 1.6em 0; overflow-x: auto; }
.art-table table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: var(--l-small); hyphens: auto; }
.art-table th, .art-table td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; }
.art-table th { font-weight: 600; padding-top: 0; }
.art-table td { border-top: 1px solid var(--line); }
.art-table td:last-child, .art-table th:last-child { padding-right: 0; }
/* автор и содержание – в левой колонке */
.art-author { display: grid; justify-items: start; font-size: var(--t-small); line-height: var(--l-small); }
.art-author[hidden], .art-toc[hidden] { display: none; }
.art-photo { display: block; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--gray-200); margin-bottom: 14px; }
.art-name { font-size: var(--t-body); line-height: var(--l-body); font-weight: 600; }
.art-role { color: var(--mute); max-width: 22em; }
.art-toc { font-size: var(--t-small); line-height: var(--l-small); }
.art-toc .k { color: var(--mute); }
/* оглавление как в документации: тонкая линия слева, у текущего раздела отрезок черный */
.art-toc ol { position: relative; list-style: none; margin-top: 12px; border-left: 1px solid var(--line); }
.art-toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1.5px; border-left: 2px solid transparent; color: var(--mute); transition: color .3s, border-color .3s; }
.art-toc a:hover { color: var(--ink); }
.art-toc a.on { color: var(--ink); border-left-color: var(--ink); }
.art-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tools .nbtn { padding: 12px 20px; font-size: var(--t-small); }
.art-tools-m { display: none; }
.art-rel { padding-top: var(--sec); }
.art-rel .nrel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.art-rel .nrel .ncard { aspect-ratio: auto; min-height: clamp(220px, 15vw, 320px); }

/* 1. поля слева, как разделы практик: в колонках 1–2 – дата, вид, практика, действия; текст в 3–6 */
.a1 .art { padding-top: calc(var(--hdr) + clamp(48px, 5vw, 120px)); align-items: start; row-gap: 32px; }
.a1 .art-side { grid-column: 1 / span 2; position: sticky; top: calc(var(--hdr) + 32px); display: flex; flex-direction: column; gap: 28px;
  }
/* широкий экран: колонка не выше экрана, если не помещается – прокручивается только оглавление (высоту уточняет news.js) */
@media (min-width: 861px) {
  .a1 .art-side { max-height: calc(100svh - var(--hdr) - 64px); }
  .a1 .art-side > * { flex: none; }
  .a1 .art-side > .art-toc:not([hidden]) { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .a1 .art-toc ol { min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .a1 .art-toc ol::-webkit-scrollbar { display: none; }
}
/* невысокий экран: автор компактной строкой – фото слева, имя и должность справа */
@media (min-width: 861px) and (max-height: 860px) {
  .a1 .art-author:not([hidden]) { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; }
  .a1 .art-author .art-photo { width: 48px; grid-row: 1 / span 2; margin: 0; }
  .a1 .art-author .art-name { align-self: end; } .a1 .art-author .art-role { align-self: start; }
  .a1 .art-side { gap: 22px; }
}
.a1 .art-main { grid-column: 3 / span 4; }
.a1 .art-lead { margin-top: clamp(28px, 2.4vw, 48px); }
.a1 .art-body { margin-top: clamp(28px, 2.4vw, 48px); }

@media (max-width: 860px) {
  .a1 .art-side, .a1 .art-main { grid-column: 1 / -1; position: static; }
  /* на телефоне данные новости – одной строкой над заголовком, кнопка ссылки – под текстом */
  .a1 .art { row-gap: 20px; }
  .a1 .art-side { display: block; }
  .a1 .art-side .art-meta > * { display: inline; } .a1 .art-side .art-meta > * + *::before { content: ""; margin-left: 1.2em; }
  .a1 .art-side .art-tools, .a1 .art-side .art-toc { display: none; }
  .a1 .art-side .art-meta > span { white-space: nowrap; }
  .a1 .art-side .art-meta > a { display: block; margin-top: 4px; } .a1 .art-side .art-meta > a::before { content: none; }
  .a1 .art-side .art-meta > span + a { margin-top: 8px; }
  /* автор на телефоне – строкой под датой: фото слева, имя и должность справа */
  .a1 .art-author:not([hidden]) { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; margin-top: 24px; }
  .a1 .art-author .art-photo { width: 56px; grid-row: 1 / span 2; margin: 0; }
  .a1 .art-author .art-name { align-self: end; } .a1 .art-author .art-role { align-self: start; }
  .a1 .art-tools-m { display: flex; margin-top: 36px; }
  .art-rel .nrel { grid-template-columns: 1fr; }
}

/* узкий телефон (iPhone SE и подобные): квадраты блока в один столбец, дата и вид не переносятся */
@media (max-width: 600px) {
  .nquad { grid-template-columns: 1fr; }
  .ncard, .nrest .ncard { min-height: 0; gap: 28px; }
  .nmeta span { white-space: nowrap; }
}

/* шапка уехала вверх – колонка статьи поднимается следом, без пустой полосы над ней */
.a1 .art-side { transition: top .6s var(--ease); }
body.a1:has(> .hdr.hide) .art-side { top: 32px; }
