/*
 * Новый дизайн — токены, база, каркас, компоненты.
 * Источник правды: new-design/UI Kit.dc.html, new-design/Home Feed.dc.html, new-design/CLAUDE.md.
 * Всё под body.nd: без флага (inc/portal-new-design.php) файл не подключается,
 * а область видимости страхует от конфликтов со старым mvp.css.
 */

/* Roboto со своего сервера: Google Fonts из РФ грузится нестабильно. */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto/Roboto-Regular.ttf") format("truetype"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto/Roboto-Medium.ttf") format("truetype"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 600 900; font-display: swap; src: url("../fonts/roboto/Roboto-Medium.ttf") format("truetype"); }

:root {
  --nd-bg: #F2F2F2;
  --nd-surface: #fff;
  --nd-radius-card: 10px;
  --nd-radius-field: 12px;
  --nd-radius-pill: 999px;

  --nd-accent: #0B5DD7;
  --nd-accent-hover: #2664BF;
  --nd-accent-pressed: #0A4FB4;
  --nd-accent-soft: #E5F0FF;
  --nd-link-on-dark: #9EC2F5;

  --nd-dark-header: #1B1F24;
  --nd-dark: #16202B;
  --nd-dark-line: #2A2F36;

  --nd-text: #000;
  --nd-text-2: #595959;
  --nd-text-3: #808080;
  --nd-text-on-dark: #fff;
  --nd-text-on-dark-2: #9FB3C8;

  --nd-line: #EDEDED;
  --nd-line-2: #E4E6EA;
  --nd-line-warm: #E9E6E1;
  --nd-btn-line: #E0E0E0;
  --nd-field: #F4F5F7;
  --nd-select: #F7F6F4;
  --nd-neutral: #F2F3F5;

  --nd-rating-bg: #FFF8E0;
  --nd-rating: #E5A400;
  --nd-danger: #F0303D;

  --nd-disabled-bg: #EDEDED;
  --nd-disabled: #A3A3A3;

  --nd-font: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nd-header-h: 64px;

  /* Старые токены mvp.css переназначаем, чтобы непереверстанные блоки
     сразу получили новую палитру вместо коралла. */
}
body.nd {
  --bg: var(--nd-bg);
  --surface: #fff;
  --surface-soft: var(--nd-neutral);
  --line: var(--nd-line);
  --line-strong: var(--nd-btn-line);
  --text: var(--nd-text);
  --muted: var(--nd-text-2);
  --soft: var(--nd-text-3);
  --coral: var(--nd-accent);
  --coral-dark: var(--nd-accent-hover);
  --coral-soft: #EDF3FC;
  --amber: var(--nd-rating);
  --amber-soft: var(--nd-rating-bg);
  --green: var(--nd-text-2);
  --green-soft: var(--nd-neutral);
  --radius: var(--nd-radius-card);
  --shadow: none;
}

/* ── База ───────────────────────────────────────────── */
html:has(body.nd) { background: var(--nd-bg); }
body.nd {
  margin: 0;
  color: var(--nd-text);
  background: var(--nd-bg);
  font: 400 15px/22px var(--nd-font);
  -webkit-font-smoothing: antialiased;
}
/* Старые style.css/mvp.css ставят Inter/Manrope/Fira на отдельные блоки — перебиваем всё. */
body.nd *:not(pre):not(code):not(kbd) { font-family: var(--nd-font) !important; }
body.nd b, body.nd strong, body.nd th { font-weight: 500; }
body.nd .nd-link, body.nd .entry-content a { color: var(--nd-accent); }
body.nd .nd-link:hover, body.nd .entry-content a:hover { color: var(--nd-accent-hover); }
body.nd :focus-visible { outline: 2px solid var(--nd-accent); outline-offset: 2px; }
body.nd h1, body.nd h2, body.nd h3, body.nd h4, body.nd strong, body.nd b { font-weight: 500; }
body.nd.nd-locked { overflow: hidden; }

/* Типографика (UI Kit) */
body.nd h1, body.nd .page-title, body.nd .nd-h1 { font: 500 26px/32px var(--nd-font); letter-spacing: 0; }
body.nd h2, body.nd .panel-title, body.nd .nd-h2 { font: 500 20px/26px var(--nd-font); letter-spacing: 0; }
body.nd h3, body.nd .nd-h3 { font: 500 22px/28px var(--nd-font); letter-spacing: 0; }
body.nd .nd-body-l { font-size: 17px; line-height: 26px; }
body.nd .nd-caption, body.nd small { font-size: 13px; line-height: 18px; }
body.nd .muted { color: var(--nd-text-2); }

.nd-icon { flex: none; display: block; }
.nd-spacer { flex: 1; }

/* ── Кнопки ─────────────────────────────────────────── */
body.nd .nd-btn,
body.nd .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; height: auto; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--nd-radius-pill);
  background: #fff; border-color: var(--nd-btn-line); color: var(--nd-text);
  font: 500 15px/1 var(--nd-font); white-space: nowrap; cursor: pointer;
  text-decoration: none; transform: none; box-shadow: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
body.nd .nd-btn:hover, body.nd .button:hover { color: var(--nd-text); border-color: #B9B9B9; transform: none; }
body.nd .nd-btn--primary, body.nd .button.primary {
  background: var(--nd-accent); border-color: var(--nd-accent); color: #fff;
}
body.nd .nd-btn--primary:hover, body.nd .button.primary:hover { background: var(--nd-accent-hover); border-color: var(--nd-accent-hover); color: #fff; }
body.nd .nd-btn--primary:active, body.nd .button.primary:active { background: var(--nd-accent-pressed); }
body.nd .nd-btn--dark, body.nd .button.dark { background: var(--nd-dark); border-color: var(--nd-dark); color: #fff; }
body.nd .nd-btn--dark:hover, body.nd .button.dark:hover { background: #22303F; color: #fff; }
body.nd .nd-btn--text { background: transparent; border-color: transparent; color: var(--nd-accent); padding: 0 8px; }
body.nd .nd-btn--text:hover { color: var(--nd-accent-hover); border-color: transparent; }
body.nd .nd-btn--ghost-dark { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
body.nd .nd-btn--ghost-dark:hover { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; }
body.nd .button.danger { background: #fff; border-color: #F5C2C6; color: var(--nd-danger); }
body.nd .button.small, body.nd .nd-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
body.nd .nd-btn--block { width: 100%; }
body.nd .nd-btn:disabled, body.nd .button:disabled, body.nd .button[aria-disabled="true"] {
  background: var(--nd-disabled-bg); border-color: var(--nd-disabled-bg); color: var(--nd-disabled); cursor: not-allowed;
}
body.nd .nd-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}

/* ── Карточки/панели ────────────────────────────────── */
body.nd .panel, body.nd .card, body.nd .nd-card {
  border: 0; border-radius: var(--nd-radius-card); background: #fff; box-shadow: none;
}
body.nd .panel, body.nd .nd-card { padding: 20px 24px; }
body.nd .panel + .panel { margin-top: 8px; }
body.nd .panel-title { margin: 0 0 14px; }
body.nd .card-footer { border-top-color: var(--nd-line); }

/* ── Чипы, бейджи ───────────────────────────────────── */
body.nd .chips { gap: 8px; }
body.nd .chip, body.nd .nd-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--nd-btn-line); border-radius: var(--nd-radius-pill);
  background: #fff; color: var(--nd-text); font-size: 14px; line-height: 1;
}
body.nd .chip:hover, body.nd .nd-chip:hover { border-color: #B9B9B9; color: var(--nd-text); }
body.nd .chip.active, body.nd .nd-chip.is-active {
  background: var(--nd-dark); border-color: var(--nd-dark); color: #fff;
}
.nd-badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; font: 500 12px/1 var(--nd-font); white-space: nowrap;
}
.nd-badge--review      { background: #EDF3FC; color: #0B5DD7; }
.nd-badge--publication { background: #EDE7FA; color: #4B3B8F; }
.nd-badge--treatment   { background: #FDF0E6; color: #8A4B12; }
.nd-badge--disease     { background: #FBEDEE; color: #9B2C34; }
.nd-badge--sort        { background: #EEF1F4; color: #33393F; }
.nd-badge--rating      { background: var(--nd-rating-bg); color: #7A5A00; }
.nd-badge--live        { background: var(--nd-danger); color: #fff; }
.nd-badge--count       { height: 22px; padding: 0 9px; background: var(--nd-accent); color: #fff; }

/* ── Поля ───────────────────────────────────────────── */
body.nd input[type="text"], body.nd input[type="search"], body.nd input[type="email"],
body.nd input[type="url"], body.nd input[type="number"], body.nd input[type="password"],
body.nd input[type="tel"], body.nd input[type="date"], body.nd textarea {
  min-height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--nd-radius-field);
  background: var(--nd-field); color: var(--nd-text); font-size: 15px; box-shadow: none;
}
body.nd textarea { padding: 10px 12px; line-height: 22px; }
body.nd input::placeholder, body.nd textarea::placeholder { color: var(--nd-text-3); }
body.nd input:focus, body.nd textarea:focus, body.nd select:focus {
  outline: 0; border-color: var(--nd-accent); background: #fff; box-shadow: 0 0 0 3px rgba(11,93,215,.14);
}
body.nd select {
  min-height: 42px; border: 1px solid var(--nd-line-warm); border-radius: var(--nd-radius-field);
  background-color: var(--nd-select); color: var(--nd-text);
}
body.nd input[type="checkbox"], body.nd input[type="radio"] { accent-color: var(--nd-accent); }
body.nd label { color: var(--nd-text); }

/* Choices.js — селекты с поиском */
body.nd .choices__inner {
  min-height: 42px; border: 1px solid var(--nd-line-warm); border-radius: var(--nd-radius-field);
  background: var(--nd-select); font-size: 15px;
}
body.nd .choices.is-focused .choices__inner, body.nd .choices.is-open .choices__inner { border-color: var(--nd-accent); }
body.nd .choices__list--dropdown, body.nd .choices__list[aria-expanded] {
  border: 0; border-radius: 12px; padding: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.14);
}
body.nd .choices__list--dropdown .choices__item--selectable.is-highlighted { background: var(--nd-bg); border-radius: 8px; }
body.nd .choices__input { background: var(--nd-field); border-radius: 8px; }
body.nd .choices__list--multiple .choices__item { background: var(--nd-dark); border-color: var(--nd-dark); border-radius: 999px; }

/* Прогресс */
.nd-progress { height: 6px; border-radius: 999px; background: #F0F1F3; overflow: hidden; }
.nd-progress > i { display: block; height: 100%; border-radius: inherit; background: var(--nd-accent); }

/* Тултип */
.nd-tooltip { padding: 6px 10px; border-radius: 8px; background: var(--nd-dark); color: #fff; font-size: 13px; line-height: 18px; }

/* ── Шапка ──────────────────────────────────────────── */
.nd-page { min-height: 100vh; background: var(--nd-bg); }
.nd-header { position: sticky; top: 0; z-index: 30; background: var(--nd-dark-header); }
.nd-header-inner {
  position: relative; max-width: 1280px; height: var(--nd-header-h); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 0 20px; box-sizing: border-box;
}
body.nd .nd-logo { display: flex; align-items: center; gap: 10px; flex: none; color: #fff; }
body.nd .nd-logo:hover { color: #fff; }
.nd-logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--nd-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 500 17px/1 var(--nd-font);
}
.nd-logo-word { font: 500 17px/1 var(--nd-font); }

body.nd .nd-search {
  position: relative; flex: 1 1 auto; max-width: 560px; height: 42px;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; box-sizing: border-box;
  border-radius: var(--nd-radius-field); background: rgba(255,255,255,.08); color: #9AA3AD;
}
body.nd .nd-search input {
  flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #fff; font-size: 15px; box-shadow: none;
}
body.nd .nd-search input:focus { background: transparent; box-shadow: none; }
body.nd .nd-search input::placeholder { color: #9AA3AD; }
/* Родной крестик input[type=search] крохотный и тёмный — свой, 40×40, белый. */
body.nd .nd-search input::-webkit-search-cancel-button { display: none; }
body.nd .nd-search input::-ms-clear { display: none; }
.nd-search-clear { order: 1; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -14px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.nd-search-clear { border-radius: 0 var(--nd-radius-field) var(--nd-radius-field) 0; }
.nd-search-clear:hover { background: rgba(255,255,255,.12); }
.nd-search-clear[hidden] { display: none; }
.nd-search-glass { display: flex; }
.nd-search-back, .nd-search-cancel, .nd-mob-menu, .nd-mob-search { display: none !important; }
.nd-search-back { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: #595959; align-items: center; justify-content: center; }
.nd-search-cancel { order: 2; height: 30px; padding: 0 4px 0 10px; border: 0; background: transparent; color: var(--nd-accent); font: 500 15px/30px var(--nd-font); cursor: pointer; }

/* Идёт эфир: красная кнопка с волнами (ПК — справа от поиска, ≤700 — слева от лупы) */
body.nd .nd-efir-live-btn { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--nd-danger, #E5322D); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
body.nd .nd-efir-live-btn:hover { color: #fff; filter: brightness(1.08); }
.nd-efir-live-btn--mob, body.home .nd-efir-live-btn--desk { display: none !important; }
.nd-efir-live-btn .nd-efir-w1 { animation: nd-efir-wave 1.6s ease-in-out infinite; }
.nd-efir-live-btn .nd-efir-w2 { animation: nd-efir-wave 1.6s ease-in-out .3s infinite; }
@keyframes nd-efir-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nd-efir-live-btn path { animation: none !important; } }
@media (max-width: 700px) {
  .nd-efir-live-btn--desk { display: none !important; }
  .nd-efir-live-btn--mob { display: inline-flex !important; }
}

.nd-hdr-cluster { position: relative; display: flex; align-items: center; gap: 8px; }
body.nd .nd-header .nd-icon-btn { color: #D6DAE0; }
body.nd .nd-header .nd-icon-btn:hover { background: rgba(255,255,255,.1); }
body.nd .nd-mob-menu { color: #fff; margin-left: -10px; border-radius: 12px; }
body.nd .nd-hdr-cluster .nd-btn { height: 42px; font-size: 14px; }
.nd-hdr-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #33393F; color: #fff; display: flex; align-items: center; justify-content: center; font: 500 14px/1 var(--nd-font); }
.nd-hdr-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Колокольчик и поповер уведомлений (разметка — portal_render_notification_bell) */
body.nd .nd-header .portal-notification-bell {
  width: 40px; height: 40px; border: 0; background: transparent; color: #D6DAE0;
}
body.nd .nd-header .portal-notification-bell:hover,
body.nd .nd-header .portal-notification-bell:focus-visible { background: rgba(255,255,255,.1); border: 0; }
body.nd .portal-notification-count {
  top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border: 0;
  border-radius: 999px; background: var(--nd-danger); font: 500 11px/16px var(--nd-font);
}
body.nd .nd-header .portal-notification-popover {
  top: 100%; right: 0; margin-top: 8px; width: 380px; border: 0; border-radius: 14px; color: var(--nd-text);
  box-shadow: 0 6px 12px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.22);
}
body.nd .portal-notification-popover-item.unread { background: #F7F9FC; }

/* ── Каркас: три колонки ────────────────────────────── */
.nd-shell {
  max-width: 1280px; margin: 0 auto; padding: 8px 20px 0; box-sizing: border-box;
  display: grid; grid-template-columns: 220px minmax(0,1fr) 320px; gap: 20px; align-items: start;
}
.nd-shell:not(:has(> .nd-right-col)) { grid-template-columns: 220px minmax(0,1fr); }
.nd-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nd-main > * { margin-top: 0; margin-bottom: 0; }

.nd-nav-col {
  position: sticky; top: 80px; background: #fff; border-radius: var(--nd-radius-card);
  padding: 8px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box;
}
.nd-nav { display: flex; flex-direction: column; gap: 2px; }
.nd-drawer-actions { display: none; flex-direction: column; gap: 6px; padding: 4px 4px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--nd-line); }
body.nd .nd-nav-link {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  border-radius: 8px; color: var(--nd-text); font-size: 14px;
}
body.nd .nd-nav-link .nd-icon { color: var(--nd-text-2); }
body.nd .nd-nav-link:hover { background: #0000000d; color: var(--nd-text); }
body.nd .nd-nav-link.is-active { background: var(--nd-accent-soft); color: var(--nd-accent); }
body.nd .nd-nav-link.is-active .nd-icon { color: currentColor; }
body.nd .nd-nav-link--child { height: 34px; padding-left: 40px; color: var(--nd-text-2); font-size: 13px; }
body.nd .nd-drawer-actions .nd-nav-link { height: 44px; font-size: 15px; }

.nd-right-col { position: sticky; top: 80px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nd-right-col > .panel + .panel { margin-top: 0; }
.nd-sheet-head, .nd-filter-fab, .nd-bottom-nav { display: none; }

.nd-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); }

/* ── Подвал ─────────────────────────────────────────── */
.nd-footer { margin-top: 32px; background: var(--nd-dark-header); color: #D6DAE0; }
.nd-footer-inner { max-width: 1280px; margin: 0 auto; padding: 32px 20px; box-sizing: border-box; }
.nd-footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.nd-footer strong { display: block; margin-bottom: 8px; color: #fff; font-weight: 500; }
.nd-footer-text { font-size: 13px; line-height: 19px; color: #9AA3AD; }
.nd-footer-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
body.nd .nd-footer a { color: var(--nd-link-on-dark); }
body.nd .nd-footer a:hover { color: #C6DCFA; }
.nd-footer-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7C848D; }

/* ── ≤1200: правая колонка → шторка снизу ───────────── */
@media (max-width: 1200px) {
  .nd-shell, .nd-shell:not(:has(> .nd-right-col)) { grid-template-columns: 220px minmax(0,1fr); }
  .nd-right-col {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    max-height: 88vh; overflow-y: auto; padding: 10px 12px 24px; box-sizing: border-box;
    border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -8px 40px rgba(0,0,0,.28);
    transform: translateY(102%); transition: transform .22s ease; visibility: hidden;
  }
  [data-sheet="open"] .nd-right-col { transform: none; visibility: visible; }
  .nd-right-col > .panel { padding: 12px 8px; }
  .nd-sheet-head { display: flex; align-items: center; justify-content: center; position: relative; min-height: 20px; }
  .nd-sheet-grip { width: 44px; height: 4px; border-radius: 2px; background: #D6DAE0; }
  .nd-sheet-close { position: absolute; right: -4px; top: -4px; color: var(--nd-text-2) !important; }
  .nd-filter-fab {
    position: fixed; right: 16px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--nd-accent); color: #fff;
    font: 500 15px/1 var(--nd-font); box-shadow: 0 6px 20px rgba(11,93,215,.4); cursor: pointer;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nd-right-col, .nd-nav-col { transition: none !important; }
}

/* ── ≤1000: левая навигация → шторка с бургером ─────── */
@media (max-width: 1000px) {
  .nd-shell, .nd-shell:not(:has(> .nd-right-col)) { grid-template-columns: minmax(0,1fr); padding: 8px 12px 0; }
  .nd-nav-col {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: 272px;
    border-radius: 0; overflow-y: auto; padding: 12px;
    transform: translateX(-102%); transition: transform .22s ease; visibility: hidden;
  }
  [data-menu="open"] .nd-nav-col { transform: none; visibility: visible; }
  .nd-drawer-actions { display: flex; }
  .nd-mob-menu { display: inline-flex !important; }
  .nd-hdr-post, .nd-hdr-fav { display: none !important; }
}

/* ── ≤700: мобильная вёрстка ────────────────────────── */
@media (max-width: 700px) {
  .nd-page { padding-bottom: 64px; }
  .nd-header-inner { gap: 10px; padding: 0 12px; }
  .nd-logo-word { display: none; }
  .nd-mob-search { display: inline-flex !important; }
  body.nd.home-mobile-header-page { padding-top: 0; }
  body.nd .nd-search { display: none; }
  /* sticky-шапка z:30 — контекст наложения; без подъёма scrim (z:55) ложится поверх поиска */
  body.nd [data-search="open"] .nd-header { z-index: 60; }
  body.nd [data-search="open"] .nd-search {
    display: flex; position: fixed; left: 0; right: 0; top: var(--nd-header-h); z-index: 58;
    max-width: none; height: auto; padding: 10px 12px 12px; border-radius: 0 0 16px 16px;
    background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.18);
  }
  body.nd [data-search="open"] .nd-search input {
    height: 42px; padding: 0 12px; border-radius: 12px; background: var(--nd-field); color: #000; font-size: 16px;
  }
  [data-search="open"] .nd-search-glass { display: none; }
  [data-search="open"] .nd-search-back { display: flex !important; }
  [data-search="open"] .nd-search-cancel { display: block !important; }
  .nd-filter-fab { bottom: 76px; }
  body.nd .nd-header .portal-notification-popover { position: fixed; left: 8px; right: 8px; top: 70px; width: auto; }

  .nd-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center;
    padding: 0 4px env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--nd-line-2);
  }
  body.nd .nd-bottom-nav a {
    flex: 1; min-width: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--nd-text-2); font-size: 11px; line-height: 13px;
  }
  body.nd .nd-bottom-nav a.is-active { color: var(--nd-accent); }
  body.nd .nd-bottom-nav a.nd-bottom-plus {
    flex: none; width: 52px; height: 52px; margin: 0 6px; border-radius: 16px; background: var(--nd-accent); color: #fff;
  }
  .nd-footer-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  body.nd .nd-main > .panel, body.nd .nd-main > .card, body.nd .nd-main > section { padding-left: 16px; padding-right: 16px; }
  body.nd .nd-main > section.feed { padding-left: 0; padding-right: 0; }
}

/* ── Фильтр (правая колонка) — Home Feed.dc.html ────── */
.feed-filter-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #404040; }
body.nd .feed-filter-head .panel-title { margin: 0; color: var(--nd-text); }
body.nd .nd-right-col .feed-filter { padding: 20px; }
body.nd .feed-filter-form { display: flex; flex-direction: column; gap: 12px; }
body.nd .feed-filter-field { display: block; margin: 0; }
body.nd .feed-filter-label {
  display: block; margin: 0 0 6px; font: 400 13px/18px var(--nd-font); color: var(--nd-text-2);
}
body.nd .feed-filter-label .micro { color: var(--nd-text-3); }
body.nd .feed-filter input.catalog-select {
  width: 100%; height: 42px; box-sizing: border-box; border: 1px solid var(--nd-line-warm); border-radius: 12px; background: var(--nd-select);
}
body.nd .feed-filter .catalog-select:disabled { opacity: .6; cursor: not-allowed; }
body.nd .feed-filter-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--nd-text); cursor: pointer; }
body.nd .feed-filter-actions { display: flex; gap: 8px; }
body.nd .feed-filter-actions .nd-btn--primary { flex: 1; }
body.nd .feed-filter-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--nd-text-2); }

/* Переключатель (UI Kit): checkbox с role="switch" */
body.nd input.nd-switch {
  flex: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px;
  background: #D6DAE0; -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color .15s;
}
body.nd input.nd-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s;
}
body.nd input.nd-switch:checked { background: var(--nd-accent); }
body.nd input.nd-switch:checked::after { transform: translateX(18px); }
body.nd input.nd-switch:disabled { opacity: .5; cursor: not-allowed; }

/* Старые .btn из прототипов — те же кнопки UI Kit */
body.nd .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--nd-btn-line); border-radius: 999px; background: #fff; color: var(--nd-text);
  font: 500 15px/1 var(--nd-font); cursor: pointer; text-decoration: none;
}
body.nd .btn-primary { background: var(--nd-accent); border-color: var(--nd-accent); color: #fff; }
body.nd .btn-primary:hover { background: var(--nd-accent-hover); border-color: var(--nd-accent-hover); color: #fff; }
body.nd .btn-ghost { background: transparent; border-color: transparent; color: var(--nd-accent); }

/* ── Селект с поиском — Home Feed.dc.html, фильтр ленты ─ */
.nd-select { position: relative; }
body.nd select.nd-select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.nd .nd-select-btn {
  width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid #E0E0E0; border-radius: 12px; background: #fff; font-size: 15px; color: #000;
  cursor: pointer; text-align: left;
}
body.nd .nd-select-btn:hover { border-color: #B9B9B9; }
body.nd .nd-select-btn:disabled { opacity: .6; cursor: not-allowed; border-color: #E0E0E0; }
.nd-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-select-btn svg { flex: none; }
.nd-select-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20;
  padding: 6px; border-radius: 12px; background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.14);
}
.nd-select.is-open .nd-select-panel { display: block; }
.nd-select-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; margin-bottom: 4px; border-radius: 8px; background: #F4F5F7; }
.nd-select-search svg { flex: none; }
body.nd .nd-select-search input {
  flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent; outline: none; box-shadow: none; font-size: 14px; color: #000;
}
body.nd .nd-select-search input:focus { background: transparent; box-shadow: none; border: 0; }
.nd-select-list { max-height: 196px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
body.nd .nd-select-option {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; flex: none;
  border: 0; border-radius: 8px; background: transparent; font-size: 15px; color: #000; cursor: pointer; text-align: left;
}
body.nd .nd-select-option[hidden] { display: none; }
body.nd .nd-select-option:hover, body.nd .nd-select-option:focus-visible { background: #F2F2F2; outline: none; }
.nd-select-option span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-select-empty { display: block; padding: 8px 10px; font-size: 14px; color: #808080; }

/* ── Подсказки поиска — Home Feed.dc.html #suggest-panel ─ */
body.nd .search-suggest {
  top: 100%; margin-top: 6px; z-index: 40; padding: 6px 0 0; border: 0; border-radius: 12px; background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.1), 0 12px 32px rgba(0,0,0,.2); overflow: hidden;
}
body.nd .search-suggest-item {
  display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 6px; padding: 6px 10px; box-sizing: border-box;
  border-radius: 8px; color: #000; font-size: 15px;
}
body.nd .search-suggest-item + .search-suggest-item { border-top: 0; }
body.nd .search-suggest-item:hover, body.nd .search-suggest-item.active { background: #F2F2F2; color: #000; }
body.nd .search-suggest-title { flex: 1; min-width: 0; }
body.nd .search-suggest-label { flex: none; font-size: 13px; color: #808080; }
body.nd .search-suggest-item.search-suggest-all {
  display: block; min-height: 0; margin: 6px 0 0; padding: 12px 16px; border-radius: 0; border-top: 1px solid #EDEDED;
}
body.nd .search-suggest-item.search-suggest-all:hover, body.nd .search-suggest-item.search-suggest-all.active { background: #F7F9FC; }
body.nd .search-suggest-all .search-suggest-title { color: #0B5DD7; font-size: 15px; }
body.nd .nd-search .search-suggest { left: 0; right: 0; }

/* ── Уведомления — Home Feed.dc.html #notif-panel ─────── */
body.nd .portal-notification-popover header {
  padding: 14px 16px 12px; border-bottom: 0; gap: 10px;
}
body.nd .portal-notification-popover header strong { font: 500 17px/22px var(--nd-font); }
body.nd .portal-notification-popover header span { font-size: 13px; color: #595959; white-space: nowrap; }
body.nd .portal-notification-feed { max-height: 360px; }
body.nd .portal-notification-popover-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: #fff; color: #000;
}
body.nd .portal-notification-popover-item.unread { background: #F5F9FF; }
body.nd .portal-notification-popover-item:hover, body.nd .portal-notification-popover-item:focus-visible { background: #F7F7F7; color: #000; }
body.nd .portal-notification-popover-item .notification-icon {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #EDF1F6; color: #33393F; font: 500 14px/1 var(--nd-font);
}
body.nd .portal-notification-popover-item > span:last-child { flex: 1; min-width: 0; }
body.nd .portal-notification-popover-item strong { display: block; padding: 0; font: 500 14px/19px var(--nd-font); text-wrap: pretty; }
body.nd .portal-notification-popover-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: #808080; text-wrap: pretty; }
body.nd .portal-notification-popover footer { padding: 0; border-top: 1px solid #EDEDED; }
body.nd .portal-notification-popover footer a {
  display: block; width: 100%; padding: 13px 16px; text-align: center; color: #0B5DD7; font: 500 15px/1 var(--nd-font);
}
body.nd .portal-notification-popover footer a:hover { background: #F7F9FC; }
body.nd .portal-notification-loading, body.nd .portal-notification-empty { padding: 24px 16px; font-size: 15px; color: #808080; }

/* ── Карточка отзыва — Home Feed.dc.html ─────────────── */
.nd-rc { background: #fff; border-radius: 10px; padding: 20px 24px; }
.nd-rc--pending { outline: 1px dashed #D6DAE0; outline-offset: -1px; }
.nd-rc-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nd-rc-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #EDF1F6; color: #33393F; display: flex; align-items: center; justify-content: center; font: 500 15px/1 var(--nd-font); }
.nd-rc-avatar img, .nd-pc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-rc-who { flex: 1; min-width: 160px; }
.nd-rc-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-rc-name { color: #000; font: 500 15px/20px var(--nd-font); }
body.nd .nd-rc-name:hover { color: #0B5DD7; }
.nd-role { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 13px; }
body.nd .level-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 0; border-radius: 999px; background: #F2F3F5; color: #33393F; font: 400 13px/1 var(--nd-font); }
.nd-rc-meta { margin-top: 6px; font-size: 13px; line-height: 18px; color: #808080; }
.nd-user-rating { position: relative; cursor: help; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 13px; }
.nd-rc-dates { font-size: 13px; line-height: 18px; color: #808080; }
.nd-rc-score { position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nd-user-rating[data-tip]:hover::after, .nd-user-rating[data-tip]:focus-visible::after,
.nd-rc-score[data-tip]:hover::after, .nd-rc-score[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: #16202B; color: #fff; font: 400 12px/16px var(--nd-font); pointer-events: none; }
.nd-ring { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(#0B5DD7 0 var(--p), #F0F1F3 var(--p) 100%); }
.nd-rc-score.is-open .nd-ring { background: conic-gradient(#0A4FB4 0 var(--p), #E4E6EA var(--p) 100%); }
.nd-ring > span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font: 500 18px/1 var(--nd-font); color: #000; }
.nd-rc-score-label { font-size: 13px; line-height: 18px; color: #808080; text-align: left; }
.nd-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.nd-rc-scores { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #FAFBFC; gap: 10px 20px; }
.nd-rc-scores[hidden] { display: none; }
.nd-rc-crit { display: flex; justify-content: space-between; font-size: 13px; color: #595959; }
body.nd .nd-rc-crit strong { color: #000; font-weight: 500; }
.nd-rc-scores .nd-progress { margin-top: 4px; }
.nd-rc-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
body.nd .nd-chip-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
body.nd .nd-chip-tag--sort { background: #EEF1F4; color: #33393F; }
body.nd .nd-chip-tag--review { background: #F2F3F5; color: #33393F; }
body.nd .nd-chip-tag--neutral { background: #F2F3F5; color: #33393F; }
body.nd .nd-chip-tag--paid { height: 22px; padding: 0 10px; background: #FFF8E0; color: #7A5A00; }
body.nd a.nd-chip-tag:hover { background: #E8EAEE; color: #33393F; }
body.nd .nd-rc-title { margin: 12px 0 0; font: 500 20px/26px var(--nd-font); text-wrap: pretty; }
body.nd .nd-rc-title a, body.nd .nd-pc-title a { color: #000; }
body.nd .nd-rc-title a:hover, body.nd .nd-pc-title a:hover { color: #0B5DD7; }
body.nd .nd-rc-text { margin: 8px 0 0; font: 400 15px/22px var(--nd-font); color: #000; text-wrap: pretty; }
.nd-rc-thumbs { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.nd-rc-thumbs a { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #F2F3F5; }
.nd-rc-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-rc-proscons { margin-top: 14px; gap: 10px; }
.nd-pros, .nd-cons { border-radius: 12px; padding: 14px 16px; }
.nd-pros { background: #F6F7F9; }
.nd-cons { background: #F6F7F9; }
body.nd .nd-pros strong, body.nd .nd-cons strong { display: block; font: 500 15px/20px var(--nd-font); }
body.nd .nd-pros strong { color: #2F7D46; }
body.nd .nd-cons strong { color: #B0413E; }
.nd-pros span, .nd-cons span { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; }
.nd-rc-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid #EDEDED; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nd-rc-note { font-size: 13px; color: #808080; }
body.nd .nd-read { font: 500 14px/1 var(--nd-font); color: #0B5DD7; white-space: nowrap; }
body.nd .nd-read:hover { color: #2664BF; }

/* Подвал отзыва: лайк, избранное, комментарии — плашки 36px */
body.nd .nd-rc .button-like, body.nd .nd-rc .portal-favorite-button, body.nd .nd-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; min-height: 0; padding: 0 14px; border: 0; border-radius: 999px;
  background: #F2F3F5; color: #33393F; font: 400 14px/1 var(--nd-font); cursor: pointer; box-shadow: none; transform: none;
}
body.nd .nd-pill:hover, body.nd .nd-rc .portal-favorite-button:not(.active):hover, body.nd .nd-rc .button-like:not(.active):hover { background: #E8EAEE; color: #33393F; }
body.nd .nd-rc .button-like.active { background: #000; color: #fff; }
body.nd .nd-rc .portal-favorite-button.active { background: #000; color: #fff; }
body.nd .nd-rc .portal-favorite-button svg { width: 17px; height: 17px; }

/* ── Карточка публикации/видео — Home Feed.dc.html #video-card ─ */
.nd-pc { background: #fff; border-radius: 10px; padding: 20px 24px 16px; }
.nd-pc-top { margin-top: 12px; display: flex; gap: 16px; align-items: flex-start; }
body.nd .nd-pc-top .nd-pc-text { margin: 0; flex: 1; min-width: 0; }
.nd-pc--pending { outline: 1px dashed #D6DAE0; outline-offset: -1px; }
.nd-pc-thumb { flex: none; position: relative; width: 200px; height: 130px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.08); display: block; }
.nd-pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-pc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nd-pc-duration { position: absolute; right: 8px; bottom: 8px; height: 20px; padding: 0 6px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff; font: 400 13px/20px var(--nd-font); }
.nd-pc-body { flex: 1; min-width: 0; }
.nd-pc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: #595959; }
.nd-pc-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #EDF1F6; color: #33393F; display: flex; align-items: center; justify-content: center; font: 500 11px/1 var(--nd-font); }
body.nd .nd-pc-author { color: #000; font-weight: 500; }
body.nd .nd-pc-title { margin: 8px 0 0; font: 500 20px/26px var(--nd-font); text-wrap: pretty; }
body.nd .nd-pc-text { margin: 6px 0 0; font-size: 15px; line-height: 22px; color: #000; text-wrap: pretty; }
.nd-pc .nd-rc-chips { margin-top: 10px; }
.nd-pc-foot { margin-top: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.nd .nd-pc .button-like, body.nd .nd-pc-action, body.nd .nd-pc .portal-favorite-button {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #595959; font: 400 14px/1 var(--nd-font); white-space: nowrap; cursor: pointer; box-shadow: none; transform: none;
}
body.nd .nd-pc .button-like:hover { color: #000; background: transparent; }
body.nd .nd-pc .button-like.active { color: #fff; background: #000; padding: 0 12px; border-radius: 999px; }
body.nd .nd-pc-action:hover, body.nd .nd-pc .portal-favorite-button:hover, body.nd .nd-pc .portal-favorite-button.active { color: #000; background: transparent; }
.nd-pc-muted { font-size: 14px; color: #808080; white-space: nowrap; }

body.nd .button-like.active svg, body.nd .portal-favorite-button.active svg { fill: currentColor; }
body.nd .button-like.is-loading, body.nd .portal-favorite-button.is-loading { opacity: .6; }

@media (max-width: 560px) {
  .nd-two { grid-template-columns: minmax(0,1fr); }
  .nd-rc, .nd-pc { padding-left: 16px; padding-right: 16px; }
  .nd-pc-top { flex-direction: column; }
  .nd-pc-thumb { width: 100%; height: 190px; }
}

/* ── Отзыв: раскрытие текста и просмотр фото — Home Feed.dc.html ─ */
body.nd .nd-rc-more { margin-top: 6px; padding: 0; border: 0; background: transparent; color: #0B5DD7; font: 500 14px/20px var(--nd-font); cursor: pointer; }
body.nd .nd-rc-more:hover { color: #2664BF; }
body.nd .nd-rc-thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #F4F5F7; cursor: pointer; }
body.nd .nd-rc-thumb.is-active { border-color: #0B5DD7; }
.nd-rc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-viewer { margin-top: 10px; border-radius: 12px; background: #16202B; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.nd-viewer[hidden] { display: none; }
.nd-viewer-stage { height: 260px; border-radius: 8px; background: #22303D; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nd-viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.nd-viewer-bar { display: flex; align-items: center; gap: 10px; }
body.nd .nd-viewer-nav { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nd-viewer-counter { flex: 1; font-size: 13px; color: #9FB3C8; }
body.nd .nd-viewer-close { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; cursor: pointer; }
body.nd .nd-viewer-nav:hover, body.nd .nd-viewer-close:hover { background: rgba(255,255,255,.2); }
@media (min-width: 701px) { .nd-viewer-stage { height: 420px; } }

/* ── Архив темы публикаций (taxonomy-blog_topic.php; макета нет, элементы UI Kit) ── */
body.nd .nd-topic-head { display: block; margin: 0 0 8px; padding: 24px; border-radius: var(--nd-radius-card); background: var(--nd-surface); }
body.nd .nd-topic-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; line-height: 18px; color: var(--nd-text-3); }
body.nd .nd-topic-crumbs a { color: var(--nd-text-3); }
body.nd .nd-topic-crumbs a:hover { color: var(--nd-accent); }
body.nd .nd-topic-badge { height: 24px; margin-bottom: 8px; background: #EDE7FA; color: #4B3B8F; }
body.nd .nd-topic-head .page-title { margin: 0; }
body.nd .nd-topic-desc { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--nd-text-2); }
body.nd .nd-topic-desc p { margin: 0 0 8px; }
body.nd .nd-topic-count { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--nd-text-3); }
body.nd .nd-topic-chips { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
body.nd .nd-topic-chips .nd-chip { flex: none; }
@media (max-width: 700px) { body.nd .nd-topic-head { padding: 20px; } }

/* ── Публикации — new-design/Publications.dc.html ───── */
.nd-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 4px 4px 2px; font-size: 13px; line-height: 18px; color: #808080; }
.nd-page-head { background: #fff; border-radius: 10px; padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.nd-page-head-text { flex: 1; min-width: 0; }
body.nd .nd-page-h1 { margin: 0; font: 500 28px/34px var(--nd-font); }
body.nd .nd-page-lead { margin: 6px 0 0; font-size: 15px; line-height: 22px; color: #595959; text-wrap: pretty; }
body.nd .nd-page-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: #0B5DD7; color: #fff; font: 500 15px/1 var(--nd-font); }
body.nd .nd-page-cta:hover { background: #2664BF; color: #fff; }

.nd-pub-filters { background: #fff; border-radius: 10px; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.nd-pub-filters-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nd-pub-filters-row:has(> .nd-pub-search) { flex-wrap: nowrap; }
/* Панель фильтров — по образцу каталога сортов (.nd-sc-*). */
.nd-pub-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--nd-btn-line); border-radius: var(--nd-radius-field); background: #fff; }
.nd-pub-search:focus-within { border-color: var(--nd-accent); }
.nd-pub-search svg { flex: none; }
body.nd .nd-pub-search input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; box-shadow: none; font-size: 15px; }
body.nd .nd-pub-search input:focus { border: 0; background: transparent; box-shadow: none; }
body.nd .nd-pub-submit { flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: var(--nd-radius-pill); background: var(--nd-accent); color: #fff; font: 500 15px/1 var(--nd-font); white-space: nowrap; cursor: pointer; }
body.nd .nd-pub-submit:hover { background: var(--nd-accent-hover); }
body.nd .nd-pub-reset { display: inline-flex; align-items: center; height: 42px; box-sizing: border-box; padding: 0 16px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #33393F; font: 400 15px/1 var(--nd-font); }
body.nd .nd-pub-reset:hover { background: #F7F8FA; color: #33393F; }
.nd-pub-select--type, .nd-pub-select--topic, .nd-pub-select--crop { width: 220px; max-width: 100%; }
@media (max-width: 700px) { .nd-pub-select--type, .nd-pub-select--topic, .nd-pub-select--crop { width: 100%; } }
body.nd .nd-pub-select .nd-select-panel { right: auto; min-width: 270px; }
body.nd .nd-pub-select .nd-select-option { height: auto; min-height: 36px; padding: 8px 10px; line-height: 20px; }
.nd-pub-count { font-size: 13px; color: #808080; }

/* Карточка-строка #pub-row */
.nd-pc--row { padding: 16px; }
.nd-pc--row .nd-pc-top { gap: 18px; }
.nd-pc--row .nd-pc-thumb { width: 240px; height: 150px; border-radius: 12px; background: #F2F3F5; }
.nd-pc--row .nd-pc-play { width: 48px; height: 48px; background: rgba(22,32,43,.82); pointer-events: none; }
.nd-pc--row .nd-pc-duration { height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(22,32,43,.82); font: 500 12px/22px var(--nd-font); pointer-events: none; }
.nd-pc--row .nd-pc-meta { color: #808080; }
.nd-pc-who { display: inline-flex; align-items: center; gap: 8px; }
.nd-pc--row .nd-pc-avatar { width: 26px; height: 26px; }
body.nd .nd-pc--row .nd-pc-author { color: #33393F; font-weight: 400; }
.nd-pc-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 12px; line-height: 22px; }
.nd-pc-tag--pending { background: #FFF3D6; color: #7A5A00; }
.nd-pc-tag--paid { background: #EDE7FA; color: #4B3B8F; }
body.nd .nd-pc--row .nd-pc-text { color: #000; }
body.nd .nd-pc--row .nd-chip-tag--neutral { padding: 0 11px; }
body.nd .nd-pc--row a.nd-chip-tag:hover { background: #E7E9EC; }
.nd-pc--row .nd-pc-foot { gap: 8px; }
body.nd .nd-pc--row .button-like, body.nd .nd-pc--row .nd-pc-action, body.nd .nd-pc--row .portal-favorite-button {
  gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 14px;
}
body.nd .nd-pc--row .button-like svg, body.nd .nd-pc--row .portal-favorite-button svg { width: 17px; height: 17px; }
body.nd .nd-pc--row .button-like:hover { background: #F2F3F5; color: #33393F; }
body.nd .nd-pc--row .button-like.active { background: #000; color: #fff; }
body.nd .nd-pc--row .nd-pc-action:hover, body.nd .nd-pc--row .portal-favorite-button:hover { background: #F2F3F5; color: #33393F; }
body.nd .nd-pc--row .portal-favorite-button.active { background: #000; color: #fff; }
.nd-pc--row .nd-pc-muted { font-size: 13px; }
body.nd .nd-pc-edit { font-size: 14px; }
body.nd .nd-pc--row .nd-read { font: 400 14px/1 var(--nd-font); }
.nd-pc-pending-note { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #808080; }

/* Правая колонка */
.nd-side-card { background: #fff; border-radius: 10px; padding: 20px; }
body.nd .nd-side-title { margin: 0 0 12px; font: 500 18px/24px var(--nd-font); }
.nd-side-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.nd .nd-side-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 14px; }
body.nd .nd-side-chip:hover { background: #E7E9EC; color: #33393F; }
body.nd .nd-side-chip.is-active { background: #16202B; color: #fff; }

/* Пагинация */
body.nd .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 8px 0 2px; }
body.nd .page-number { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; box-sizing: border-box; padding: 0 12px; border: 0; border-radius: 10px; background: #F2F3F5; color: #33393F; font: 500 15px/1 var(--nd-font); }
body.nd .page-number.active { background: #16202B; color: #fff; }

@media (max-width: 700px) {
  .nd-page-head, .nd-pub-filters { padding-left: 16px; padding-right: 16px; }
  .nd-pc--row .nd-pc-top { flex-direction: column; }
  .nd-pc--row .nd-pc-thumb { width: 100%; height: 180px; }
}

/* ── Страница публикации — new-design/Publication Page.dc.html ── */
.nd-post-card { background: #fff; border-radius: 10px; padding: 24px; }
.nd-post-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nd-post-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #EDF1F6; color: #33393F; display: flex; align-items: center; justify-content: center; font: 500 15px/1 var(--nd-font); }
.nd-post-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-post-avatar--lg { width: 52px; height: 52px; font-size: 18px; }
.nd-post-author-text { min-width: 0; }
body.nd .nd-post-author-name { font: 500 16px/22px var(--nd-font); color: #000; }
body.nd .nd-post-author-name:hover { color: #0B5DD7; }
.nd-post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #808080; }
body.nd .nd-post-follow { position: relative; }
body.nd .nd-post-follow .portal-author-follow-button { height: 40px; min-height: 0; padding: 0 18px; border: 0; border-radius: 999px; background: #0B5DD7; color: #fff; font: 500 15px/1 var(--nd-font); cursor: pointer; box-shadow: none; }
body.nd .nd-post-follow .portal-author-follow-button.is-following { background: #F2F3F5; color: #33393F; }
body.nd .nd-post-title { margin: 18px 0 0; font: 500 34px/42px var(--nd-font); text-wrap: pretty; }
body.nd .nd-post-lead { margin: 14px 0 0; font: 400 18px/28px var(--nd-font); color: #000; text-wrap: pretty; }
.nd-post-tags { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-post-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 14px; }
body.nd .nd-post-tag:hover { background: #E7E9EC; color: #33393F; }
.nd-post-time { font-size: 13px; color: #808080; }
body.nd .nd-post-hero { display: block; width: 100%; height: 380px; margin-top: 18px; border-radius: 14px; object-fit: cover; }
.nd-post-video { margin-top: 18px; border-radius: 14px; overflow: hidden; }
.nd-post-video iframe, .nd-post-video video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }
@media (max-width: 767px) { body.nd .nd-post-lead { font-size: 14px; line-height: 22px; } }
.nd-post-text { margin-top: 22px; font-size: 17px; line-height: 28px; color: #000; max-width: 74ch; }
.nd-post-text p { margin: 0 0 18px; text-wrap: pretty; }
body.nd .nd-post-text h2 { margin: 26px 0 10px; font: 500 24px/30px var(--nd-font); }
.nd-post-text img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.nd-post-text figure { margin: 22px 0; }
.nd-post-text > :last-child { margin-bottom: 0; }
.nd-post-paywall { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #F7F8FA; font-size: 15px; line-height: 22px; color: #595959; }
.nd-post-paywall strong { display: block; margin-bottom: 4px; font: 500 17px/23px var(--nd-font); color: #000; }
.nd-post-authorbox { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: #F7F8FA; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nd-post-authorbox-text { flex: 1; min-width: 180px; }
.nd-post-authorbox-text strong { display: block; font: 500 17px/23px var(--nd-font); }
.nd-post-authorbox-text span { font-size: 14px; color: #808080; }
body.nd .nd-post-btn-outline { display: inline-flex; align-items: center; height: 40px; box-sizing: border-box; padding: 0 18px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #33393F; font: 500 15px/1 var(--nd-font); }
body.nd .nd-post-btn-outline:hover { color: #33393F; border-color: #B9B9B9; }
.nd-post-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #F0F1F3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-post-actions .button-like, body.nd .nd-post-actions .portal-favorite-button, body.nd .nd-post-action {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; min-height: 0; padding: 0 16px; border: 0; border-radius: 999px;
  background: #F2F3F5; color: #33393F; font: 400 15px/1 var(--nd-font); cursor: pointer; box-shadow: none; transform: none;
}
body.nd .nd-post-actions .button-like svg, body.nd .nd-post-actions .portal-favorite-button svg { width: 18px; height: 18px; }
body.nd .nd-post-actions .button-like:hover, body.nd .nd-post-actions .portal-favorite-button:hover, body.nd .nd-post-action:hover { background: #F2F3F5; color: #33393F; }
body.nd .nd-post-actions .button-like.active { background: #000; color: #fff; }
body.nd .nd-post-actions .portal-favorite-button.active { background: #000; color: #fff; }

.nd-post-section { background: #fff; border-radius: 10px; padding: 20px 24px; }
body.nd .nd-post-h2 { margin: 0 0 14px; font: 500 20px/26px var(--nd-font); }
.nd-related { display: flex; flex-direction: column; gap: 2px; }
body.nd .nd-related-row { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; color: #000; }
body.nd .nd-related-row:hover { background: #F7F8FA; color: #000; }
.nd-related-kind { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; line-height: 22px; }
.nd-related-kind--review { background: #EDF3FC; color: #0B5DD7; }
.nd-related-kind--publication { background: #EDE7FA; color: #4B3B8F; }
.nd-related-title { flex: 1; min-width: 0; font-size: 16px; line-height: 22px; }
.nd-related-meta { flex: none; font-size: 13px; color: #9AA3AD; }

/* Комментарии (разметка template-parts/comments/*, js/comments.js) */
body.nd .nd-post-comments .comments-section { margin: 0; padding: 20px 24px; border: 0; border-radius: 10px; background: #fff; box-shadow: none; }
body.nd .nd-post-comments .comments-head { margin: 0; }
body.nd .nd-post-comments .comments-head h2 { margin: 0; font: 500 20px/26px var(--nd-font); }
body.nd .nd-post-comments .comment-add-wrap { margin-top: 16px; }
body.nd .nd-post-comments .comment-form { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 0; }
body.nd .nd-post-comments .comment-form > .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #33393F; color: #fff; display: flex; align-items: center; justify-content: center; font: 500 14px/1 var(--nd-font); }
body.nd .nd-post-comments .comment-form > .avatar img { width: 100%; height: 100%; object-fit: cover; }
body.nd .nd-post-comments .comment-field { flex: 1; min-width: 0; display: block; }
body.nd .nd-post-comments .comment-form textarea { width: 100%; box-sizing: border-box; min-height: 86px; padding: 12px 14px; border: 1px solid #E9E6E1; border-radius: 12px; background: #fff; outline: none; font-size: 15px; line-height: 22px; resize: vertical; }
body.nd .nd-post-comments .comment-form .form-submit { flex-basis: 100%; margin: -4px 0 0 52px; }
body.nd .nd-post-comments .comment-form .button.primary { height: 40px; min-height: 0; padding: 0 20px; border: 0; border-radius: 999px; background: #0B5DD7; color: #fff; font: 500 15px/1 var(--nd-font); }
body.nd .nd-post-comments .comment-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
body.nd .nd-post-comments .comment-list .children { margin: 10px 0 0; padding: 0 0 0 28px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
body.nd .nd-post-comments .comment-item { padding: 14px 16px; border-radius: 14px; background: #F7F8FA; display: flex; align-items: flex-start; gap: 12px; }
body.nd .nd-post-comments .comment-item > .avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #EDF1F6; color: #33393F; display: flex; align-items: center; justify-content: center; font: 500 13px/1 var(--nd-font); }
body.nd .nd-post-comments .comment-item > .avatar img { width: 100%; height: 100%; object-fit: cover; }
body.nd .nd-post-comments .comment-item > div { flex: 1; min-width: 0; }
body.nd .nd-post-comments .comment-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body.nd .nd-post-comments .comment-meta strong, body.nd .nd-post-comments .comment-meta strong a { font: 500 15px/20px var(--nd-font); color: #000; }
body.nd .nd-post-comments .comment-meta time, body.nd .nd-post-comments .comment-edited { font-size: 13px; color: #9AA3AD; }
body.nd .nd-post-comments .comment-text { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: #33393F; }
body.nd .nd-post-comments .comment-text p { margin: 0; text-wrap: pretty; }
body.nd .nd-post-comments .comment-controls { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-post-comments .comment-control { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-height: 0; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #0B5DD7; font: 400 13px/1 var(--nd-font); cursor: pointer; box-shadow: none; }
body.nd .nd-post-comments .comment-like-button { background: #EDEFF2; color: #595959; }
body.nd .nd-post-comments .comment-like-button.active { background: #FDECEE; color: #C4303D; }
body.nd .nd-post-comments .comment-like-button.active svg { fill: currentColor; }

@media (max-width: 700px) {
  .nd-post-card, .nd-post-section, body.nd .nd-post-comments .comments-section { padding-left: 16px; padding-right: 16px; }
  body.nd .nd-post-title { font-size: 26px; line-height: 32px; }
  body.nd .nd-post-hero { height: 220px; }
  body.nd .comment-form { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px; }
  body.nd .comment-form > .avatar { display: none !important; }
  body.nd .comment-form .comment-field { width: 100%; flex: none; }
  body.nd .comment-form .form-submit { margin: 0 !important; flex-basis: auto; }
  body.nd .comment-form .form-submit .button { width: 100%; }
}

/* ── Страница отзыва — new-design/Review Page.dc.html ── */
.nd-rp-head { display: flex; align-items: flex-start; gap: 12px; }
.nd-rp-who { flex: 1; min-width: 0; }
.nd-rp-meta { font-size: 13px; line-height: 18px; color: #595959; }
.nd-rp .nd-badge--rating { height: 22px; font-size: 13px; }
.nd-rp-score { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #FFF8E0; }
body.nd .nd-rp-score strong { font: 500 20px/1 var(--nd-font); color: #4A3800; }
.nd-rp-score span { font-size: 13px; color: #7A5A00; }
body.nd .nd-rp-title { margin: 16px 0 0; font: 500 30px/36px var(--nd-font); text-wrap: pretty; }
body.nd .nd-rp-lead { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: #595959; }
.nd-rp-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
body.nd .nd-rp-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #F0F0F0; color: #595959; font-size: 13px; }
body.nd .nd-rp-chip.is-link { color: #000; }
body.nd .nd-rp-chip.is-link:hover { background: #E7E9EC; }
.nd-rp-gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.nd-rp-photo { position: relative; display: block; height: 190px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.08); }
.nd-rp-photo.is-extra { display: none; }
.nd-rp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-rp-photo-more { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font: 500 17px/1 var(--nd-font); }
.nd-rp-text { margin-top: 18px; max-width: 72ch; font-size: 17px; line-height: 26px; }
.nd-rp-text p { margin: 0 0 14px; text-wrap: pretty; }
.nd-rp-text > :last-child { margin-bottom: 0; }
.nd-rp-crit { margin-top: 20px; gap: 10px 20px; }
.nd-rp-crit .nd-progress { margin-top: 4px; background: #F0F0F0; }
.nd-rp-pc { margin-top: 16px; gap: 8px; }
.nd-rp-pros, .nd-rp-cons { border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 22px; }
.nd-rp-pros { background: #EDF3FC; }
.nd-rp-cons { background: #FFE7E9; }
body.nd .nd-rp-pros strong, body.nd .nd-rp-cons strong { display: block; font-weight: 500; }

.nd-rp-extra { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: #FAFAFA; display: flex; flex-direction: column; gap: 18px; }
body.nd .nd-rp-extra .review-growing { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.nd-rp-extra .review-growing-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
body.nd .nd-rp-extra .review-growing-head h3 { margin: 0; font: 500 17px/23px var(--nd-font); }
.nd-rp-extra .review-growing-note { font-size: 13px; color: #808080; }
.nd-rp-extra .review-growing-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
body.nd .nd-rp-extra .review-growing-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #000; font-size: 14px; }
body.nd .nd-rp-extra a.review-growing-chip:hover { border-color: #0B5DD7; color: #000; }
.nd-rp-extra .review-growing-chip small { font-size: 14px; color: #595959; }
.nd-rp-extra .review-growing-chip small.is-helped { color: #1F6B34; }
.nd-rp-extra .review-growing-chip small.is-failed { color: #C2263A; }
.nd-rp-extra .review-growing-list { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
body.nd .nd-rp-extra .review-growing-item { margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; }
.nd-rp-extra .review-growing-item.is-text { grid-column: 1 / -1; }
.nd-rp-extra .review-growing-item dt { font-size: 13px; line-height: 18px; color: #808080; }
.nd-rp-extra .review-growing-item dd { margin: 2px 0 0; font: 500 15px/21px var(--nd-font); color: #000; }
.nd-rp-extra .review-growing-item dd .review-growing-chips { margin-top: 4px; }
body.nd .nd-rp-extra .review-growing-item dd .review-growing-chip { height: 26px; font-size: 13px; font-weight: 400; }
.nd-rp-extra .review-growing-item.tone-good dd { color: #1F6B34; }
.nd-rp-extra .review-growing-item.tone-bad dd { color: #C2263A; }

.nd-rp-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid #EDEDED; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
body.nd .nd-rp-actions .button-like, body.nd .nd-rp-actions .portal-favorite-button, body.nd .nd-rp-action {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #595959; font: 400 14px/1 var(--nd-font); white-space: nowrap; cursor: pointer; box-shadow: none; transform: none;
}
body.nd .nd-rp-actions .button-like svg, body.nd .nd-rp-actions .portal-favorite-button svg { width: 18px; height: 18px; }
body.nd .nd-rp-actions .button-like:hover { background: transparent; color: #000; }
body.nd .nd-rp-actions .button-like.active { background: #000; color: #fff; }
body.nd .nd-rp-action:hover, body.nd .nd-rp-actions .portal-favorite-button:hover, body.nd .nd-rp-actions .portal-favorite-button.active { background: transparent; color: #000; }

.nd-rp-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
body.nd .nd-rp-sec-head .nd-post-h2 { margin: 0; }
.nd-rp-sec-note { font-size: 13px; color: #808080; }
.nd-rp-offers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
body.nd .nd-rp-offer { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid #EDEDED; border-radius: 12px; color: #000; }
body.nd .nd-rp-offer:hover { border-color: #0B5DD7; color: #000; }
body.nd .nd-rp-offer-title { font: 500 16px/22px var(--nd-font); text-wrap: pretty; }
.nd-rp-offer-sub { font-size: 13px; line-height: 18px; color: #595959; }
.nd-rp-offer-price { margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-rp-offer-price strong { font: 500 17px/22px var(--nd-font); }
.nd-rp-stock { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #F2F3F5; color: #595959; font-size: 13px; }
.nd-rp-stock.is-in { background: #E8F1E9; color: #1F6B34; }

.nd-rp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
body.nd .nd-rp-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 1px solid #E4E6EA; border-radius: 999px; background: #fff; color: #33393F; font: 500 14px/1 var(--nd-font); cursor: pointer; }
.nd-rp-tab span { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 6px; background: #F0F1F3; color: #595959; font: 400 12px/1 var(--nd-font); }
body.nd .nd-rp-tab.is-active { border-color: #16202B; background: #16202B; color: #fff; }
.nd-rp-tab.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.nd-rp-more { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.nd-rp-more[hidden] { display: none; }
.nd-rp-more .nd-rc { background: #FAFAFA; padding: 18px 20px; }
.nd-rp-all { align-self: flex-start; margin-top: 4px; }
body.nd .nd-rp-pub { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 12px; background: #FAFAFA; color: #000; }
body.nd .nd-rp-pub:hover { background: #F3F5F8; color: #000; }
.nd-rp-pub-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #808080; }
body.nd .nd-rp-pub-title { font: 500 20px/26px var(--nd-font); text-wrap: pretty; }
.nd-rp-pub-text { font-size: 16px; line-height: 24px; color: #595959; text-wrap: pretty; }

@media (max-width: 900px) { .nd-rp-offers { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) {
  .nd-rp-offers, .nd-rp-gallery, .nd-rp-crit, .nd-rp-pc, .nd-rp-extra .review-growing-list { grid-template-columns: minmax(0,1fr); }
  body.nd .nd-rp-title { font-size: 26px; line-height: 32px; }
  .nd-rp-more .nd-rc { padding-left: 14px; padding-right: 14px; }
}

/* ── Страница сорта — new-design/Sort Page.dc.html ── */
.nd-sp-hero { background: #fff; border-radius: 10px; padding: 24px; }
/* mvp.css красит #add-review / .review-form-card в тёмный — перебиваем. */
body.nd #add-review.nd-sp-form { background: #fff; color: #000; padding: 22px 24px 24px; border: 0; box-shadow: none; }
body.nd .nd-sp-form-title { margin: 0; color: #000; text-wrap: pretty; }
body.nd #add-review.nd-sp-form .muted,
body.nd #add-review.nd-sp-form .micro,
body.nd #add-review.nd-sp-form .field,
body.nd #add-review.nd-sp-form .rating-input label { color: #595959; }
body.nd #add-review.nd-sp-form .input,
body.nd #add-review.nd-sp-form .choices.portal-field-choice .choices__inner { color: #000; border: 1px solid transparent; border-radius: 12px; background: #F4F5F7; }
body.nd #add-review.nd-sp-form .input::placeholder { color: #808080; }
body.nd #add-review.nd-sp-form .input:focus { border-color: #0B5DD7; background: #fff; box-shadow: 0 0 0 3px rgba(11,93,215,.14); }
body.nd #add-review.nd-sp-form .region-picker-trigger { color: #000; border: 1px solid #E9E6E1; border-radius: 12px; background: #F7F6F4; }
body.nd #add-review.nd-sp-form .rating-input { background: #F7F7F7; border-radius: 12px; }
body.nd #add-review.nd-sp-form .star-value { color: #595959; }
body.nd #add-review.nd-sp-form .upload-box { color: #808080; border: 1px dashed #C9C9C9; border-radius: 12px; background: #FAFAFA; }
body.nd #add-review.nd-sp-form .upload-box strong { color: #000 !important; }
body.nd #add-review.nd-sp-form .button:not(.primary) { color: #000; border: 1px solid #E0E0E0; background: #fff; }
body.nd #add-review.nd-sp-form .button:not(.primary):hover { border-color: #B9B9B9; }
.nd-sp-form-note { margin-top: 4px; font-size: 14px; line-height: 20px; color: #595959; }
.nd-sp-guest { margin-top: 16px; border-radius: 12px; background: #EDF3FC; padding: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nd-sp-guest > div { flex: 1; min-width: 220px; }
body.nd .nd-sp-guest strong { display: block; font: 500 17px/23px var(--nd-font); color: #123A73; }
.nd-sp-guest p { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: #123A73; text-wrap: pretty; }
.nd-sp-culture { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #FFF8E0; color: #7A5A00; font-size: 13px; }
body.nd .nd-sp-title { margin: 12px 0 4px; font: 500 30px/36px var(--nd-font); text-wrap: pretty; }
.nd-sp-meta { font-size: 15px; color: #595959; }
.nd-sp-rating { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nd-sp-rating-badge { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #FFF8E0; }
body.nd .nd-sp-rating-badge strong { font: 500 20px/1 var(--nd-font); color: #4A3800; }
.nd-sp-rating-badge span { font-size: 13px; color: #7A5A00; }
.nd-sp-rating svg { flex: none; width: 19px; height: 19px; }
.nd-sp-rating a { font-size: 15px; color: #0B5DD7; }
body.nd .nd-sp-description { margin: 16px 0 0; font: 400 17px/26px var(--nd-font); max-width: 70ch; text-wrap: pretty; }
.nd-sp-facts { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.nd-sp-fact { border-radius: 12px; padding: 12px 14px; background: #F7F7F7; }
.nd-sp-fact-label { display: block; font-size: 13px; line-height: 18px; color: #808080; }
.nd-sp-fact-value { display: block; margin-top: 2px; font: 500 15px/21px var(--nd-font); }
.nd-sp-region-stats { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #EDF3FC; font-size: 15px; line-height: 21px; color: #123A73; flex-wrap: wrap; }
.nd-sp-region-stats svg { flex: none; width: 18px; height: 18px; }
.nd-sp-region-stats strong { font-weight: 500; }
.nd-sp-actions { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-sp-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #0B5DD7; color: #fff; font: 500 15px/1 var(--nd-font); white-space: nowrap; cursor: pointer; text-decoration: none; }
body.nd .nd-sp-cta:hover { background: #2664BF; }
body.nd .nd-sp-cta:active { background: #0A4FB4; }
body.nd .nd-sp-actions .portal-favorite-button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #000; font: 500 15px/1 var(--nd-font); cursor: pointer; }
body.nd .nd-sp-actions .portal-favorite-button:hover { border-color: #B9B9B9; }
body.nd .nd-sp-actions .portal-favorite-button.active { background: #000; color: #fff; border-color: #000; }
body.nd .nd-sp-actions .portal-favorite-button svg { width: 17px; height: 17px; }
.nd-sp-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.nd-sp-detail { border-radius: 12px; padding: 12px 14px; background: #F7F7F7; }
.nd-sp-detail-label { display: block; font-size: 13px; line-height: 18px; color: #808080; }
.nd-sp-detail-value { display: block; margin-top: 2px; font: 500 15px/21px var(--nd-font); }
.nd-sp-reviews-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nd-sp-reviews-head > div { flex: 1; min-width: 200px; }
body.nd .nd-sp-reviews-head .nd-post-h2 { margin: 0; }
.nd-sp-reviews-meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: #595959; }
.nd-sp-reviews-head form { position: relative; flex: none; min-width: 200px; }
.nd-sp-sort { width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #E0E0E0; border-radius: 12px; background: #fff; font-size: 15px; color: #000; cursor: pointer; text-align: left; }
.nd-sp-sort:hover { border-color: #B9B9B9; }
.nd-sp-reviews-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.nd-sp-reviews-empty { margin-top: 16px; border-radius: 12px; background: #F7F7F7; padding: 28px 22px; text-align: center; }
body.nd .nd-sp-reviews-empty strong { display: block; font: 500 17px/23px var(--nd-font); }
.nd-sp-reviews-empty p { margin: 6px auto 16px; max-width: 44ch; font-size: 15px; line-height: 22px; color: #595959; text-wrap: pretty; }
body.nd .nd-sp-empty-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: #0B5DD7; color: #fff; font: 500 15px/1 var(--nd-font); white-space: nowrap; cursor: pointer; text-decoration: none; }
body.nd .nd-sp-empty-cta:hover { background: #2664BF; }

.nd-sp-fact[hidden] { display: none; }
body.nd .nd-sp-facts-more { margin-top: 8px; height: 36px; padding: 0 14px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #0B5DD7; font: 500 14px/1 var(--nd-font); cursor: pointer; }
body.nd .nd-sp-facts-more:hover { border-color: #B9B9B9; }
.nd-sp-stats-list { margin-top: 14px; }
.nd-sp-stats-list ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.nd-sp-stats-list li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #F7F7F7; font-size: 14px; }
.nd-sp-stats-list li a { color: #000; text-decoration: none; }
.nd-sp-stats-list li span { color: #808080; }
body.nd .nd-sp-stats-top { margin-top: 14px; display: block; border-radius: 12px; padding: 12px 14px; background: #FFF8E0; color: #000; text-decoration: none; }
.nd-sp-reviews-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; align-items: stretch; }
.nd-sp-reviews-aside { min-width: 0; }
body.nd .nd-sp-reviews-aside .feed-filter { position: sticky; top: 80px; }
body.nd .nd-sp-reviews-aside .feed-filter { padding: 20px; }
@media (max-width: 1100px) {
  .nd-sp-reviews-layout { grid-template-columns: minmax(0,1fr); }
  .nd-sp-reviews-aside { order: -1; }
  body.nd .nd-sp-reviews-aside .feed-filter { position: static; }
}
@media (max-width: 640px) {
  .nd-sp-facts, .nd-sp-details { grid-template-columns: minmax(0,1fr); }
  body.nd .nd-sp-reviews-list .nd-rc { padding-left: 0; padding-right: 0; }
}
[data-nd-mcollapse] > .is-mcollapsed { display: none !important; }
body.nd .nd-mcollapse-more { margin-top: 8px; height: 36px; padding: 0 14px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #0B5DD7; font: 500 14px/1 var(--nd-font); cursor: pointer; }

/* Sort catalog */
.nd-page-head:has(.nd-sc-filters) { flex-direction: column; align-items: stretch; }
.nd-sc-filters { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.nd-sc-search-row { display: flex; gap: 8px; }
.nd-sc-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--nd-btn-line); border-radius: var(--nd-radius-field); background: #fff; }
.nd-sc-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--nd-text); }
.nd-sc-search svg { flex: none; color: #8C8C8C; }
.nd-sc-search input[type="search"] { -webkit-appearance: none; appearance: none; height: 100%; padding: 0; margin: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
.nd-sc-search:focus-within { border-color: var(--nd-accent); }
.nd-sc-submit { flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: var(--nd-radius-pill); background: var(--nd-accent); color: #fff; font: 500 15px/1 var(--nd-font); cursor: pointer; white-space: nowrap; }
.nd-sc-submit:hover { background: var(--nd-accent-hover); }
.nd-sc-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-sc-selects > .nd-select, .nd-sc-selects > select { width: 220px; max-width: 100%; }
@media (max-width: 700px) { .nd-sc-selects > .nd-select, .nd-sc-selects > select { width: 100%; } }
.nd-sc-cultures-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-sc-cultures-list a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--nd-radius-pill); background: #F2F3F5; color: #000; font-size: 14px; text-decoration: none; }
.nd-sc-cultures-list a:hover { background: #E8EAED; }
.nd-sc-cultures-list a.is-active { background: #16202B; color: #fff; }
.nd-sc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nd-sc-tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px; border-radius: var(--nd-radius-pill); background: #16202B; color: #fff; font-size: 14px; white-space: nowrap; text-decoration: none; }
.nd-sc-tag:hover { background: #2A3642; color: #fff; }
.nd-sc-tag svg { flex: none; opacity: .8; }
.nd-sc-alpha { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.nd-sc-alpha a { flex: none; min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--nd-radius-pill); background: transparent; color: #404040; font-size: 14px; cursor: pointer; text-decoration: none; }
.nd-sc-alpha a:hover { background: #F0F0F0; }
.nd-sc-alpha a.is-active { background: var(--nd-accent); color: #fff; font-weight: 500; }
.nd-sc-table-wrap { padding: 0 0 8px !important; overflow-x: auto; }
.nd-sc-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 24px 12px; }
.nd-sc-count { font: 500 15px/22px var(--nd-font); }
.nd-sc-checkbox { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--nd-btn-line); border-radius: var(--nd-radius-pill); font-size: 14px; white-space: nowrap; cursor: pointer; }
.nd-sc-checkbox input { flex: none; }
.nd-sc-reset { display: inline-flex; align-items: center; box-sizing: border-box; height: 34px; padding: 0 16px; border: 0; border-radius: var(--nd-radius-pill); background: var(--nd-accent-soft); color: var(--nd-accent); font: 500 14px/1 var(--nd-font); white-space: nowrap; cursor: pointer; text-decoration: none; }
.nd-sc-reset:hover { background: #D5E6FC; }
.nd-sc-table { --sort-grid-cols: 1fr; display: block; min-width: 900px; padding: 0 24px; }
.nd-sc-thead { display: grid; grid-template-columns: var(--sort-grid-cols); column-gap: 16px; align-items: center; border-bottom: 1px solid #EDEDED; padding: 8px 0 12px; }
.nd-sc-th { position: relative; min-width: 0; }
.nd-sc-col-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #808080; font: 500 11px/1 var(--nd-font); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.nd-sc-col-btn:hover { color: #404040; }
.nd-sc-col-btn.is-active { color: var(--nd-accent); }
.nd-sc-col-btn svg { flex: none; width: 13px; height: 13px; transition: transform .15s; }
.nd-sc-col-plain { display: block; color: #808080; font: 500 11px/1 var(--nd-font); letter-spacing: .03em; text-transform: uppercase; }
.nd-sc-row { display: grid; grid-template-columns: var(--sort-grid-cols); column-gap: 16px; align-items: center; min-height: 66px; padding: 8px 0; border-bottom: 1px solid #EDEDED; color: var(--nd-text); text-decoration: none; transition: background .15s; }
.nd-sc-row:hover { background: #F7F7F7; }
.nd-sc-row strong { font: 500 15px/20px var(--nd-font); }
.nd-sc-th:has(.nd-sc-col-btn) { display: flex; }
.nd-sc-th.is-right { justify-content: flex-end; }
.nd-sc-cell { min-width: 0; overflow-wrap: anywhere; }
.nd-sc-cell.is-right { text-align: right; }

/* Мобильный каталог сортов: вместо таблицы — карточки с подписанными полями. */
@media (max-width: 700px) {
  .nd-sc-table-wrap:has(.nd-sc-table--sorts) { overflow: visible; }
  .nd-sc-toolbar { padding: 16px 16px 12px; }
  .nd-sc-table--sorts { min-width: 0; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
  .nd-sc-table--sorts .nd-sc-thead { display: none; }
  .nd-sc-table--sorts .nd-sc-row { grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; row-gap: 0; align-items: start; min-height: 0; padding: 14px 16px 6px; border: 1px solid #EDEDED; border-radius: 12px; }
  .nd-sc-table--sorts .nd-sc-row:hover { background: #FAFAFA; }
  .nd-sc-table--sorts .nd-sc-cell { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 0; border-top: 1px solid #F2F2F2; text-align: right; overflow-wrap: normal; }
  .nd-sc-table--sorts .nd-sc-cell::before { content: attr(data-label); flex: none; font-size: 13px; line-height: 18px; color: #808080; text-align: left; }
  .nd-sc-table--sorts .nd-sc-cell.is-empty { display: none; }
  .nd-sc-table--sorts .nd-sc-cell.is-name { grid-column: 1; grid-row: 1; display: block; min-height: 0; padding: 0 0 12px; border-top: 0; text-align: left; overflow-wrap: anywhere; }
  .nd-sc-table--sorts .nd-sc-cell.is-name::before { content: none; }
  .nd-sc-table--sorts .nd-sc-cell.is-name strong { font: 500 17px/23px var(--nd-font); }
  .nd-sc-table--sorts .nd-sc-cell.is-rate { grid-column: 2; grid-row: 1; display: block; min-height: 0; padding: 0; border-top: 0; }
  .nd-sc-table--sorts .nd-sc-cell.is-rate::before { content: none; }
  .nd-sc-table--sorts .nd-sc-text-secondary { font-size: 15px; color: #000; }
}
.nd-sc-text-secondary { font-size: 14px; color: #595959; }
.nd-sc-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--nd-btn-line); color: #404040; font-size: 13px; white-space: nowrap; }
.nd-sc-stock { display: flex; align-items: center; gap: 8px; }
.nd-sc-stock-region, .nd-sc-stock-country { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 13px; position: relative; }
.nd-sc-stock-region { background: #FDE7EA; color: #C2263A; }
.nd-sc-stock-country { background: #E7F4EA; color: #1F6B34; }
.nd-sc-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.nd-sc-stock-region .nd-sc-dot { background: #F0303D; }
.nd-sc-stock-country .nd-sc-dot { background: #2E8B4A; }
.nd-sc-empty { color: #C9C9C9; }
.nd-sc-ring { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--nd-accent) var(--p), #E6E6E6 0); }
.nd-sc-ring b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; font: 500 12px/1 var(--nd-font); }

@media (max-width: 1000px) {
  .nd-sp-facts, .nd-sp-details { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .nd-sp-facts, .nd-sp-details { grid-template-columns: minmax(0,1fr); }
  body.nd .nd-sp-title { font-size: 26px; line-height: 32px; }
  .nd-sp-hero { padding: 20px 16px; }
  .nd-sp-actions { flex-direction: column; }
  body.nd .nd-sp-cta, body.nd .nd-sp-empty-cta { width: 100%; }
  body.nd .nd-sp-actions .portal-favorite-button { width: 100%; }
  .nd-sp-reviews-head { flex-direction: column; }
  .nd-sp-reviews-head form { width: 100%; }
}

/* ── Болезни — new-design/Diseases.dc.html ── */
.nd-dis-reset { height: 42px; }
.nd-dis-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 0 4px; font-size: 13px; color: #808080; }
.nd-dis-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.nd-dis-card { background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.nd-dis-cover { display: block; height: 150px; background: #F2F2F2; }
.nd-dis-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nd-dis-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nd-dis-head { display: flex; align-items: flex-start; gap: 10px; }
.nd-dis-name { flex: 1; min-width: 0; }
body.nd .nd-dis-name h2 { margin: 0; font: 500 18px/24px var(--nd-font); }
body.nd .nd-dis-name h2 a { color: #000; }
.nd-dis-latin { font-size: 13px; font-style: italic; color: #808080; }
.nd-dis-level { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 24px; white-space: nowrap; background: #FFF8E0; color: #7A5A00; }
.nd-dis-level.is-low { background: #E7F4EA; color: #1F6B34; }
.nd-dis-level.is-high, .nd-dis-level.is-quarantine { background: #FDECEE; color: #B32330; }
.nd-dis-excerpt { margin: 0; font-size: 14px; line-height: 20px; color: #595959; text-wrap: pretty; }
.nd-dis-tags, .nd-dp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nd-dis-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 13px; }
.nd-dis-stats { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #808080; }
body.nd .nd-dis-stats strong { color: #000; font-weight: 500; }
.nd-dis-empty { background: #fff; border-radius: 10px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
body.nd .nd-dis-empty strong { font: 500 18px/24px var(--nd-font); }
.nd-dis-empty span { font-size: 15px; color: #808080; max-width: 46ch; }

/* ── Карточка болезни — new-design/Disease Page.dc.html ── */
body.nd .nd-dp-hero { padding: 24px; }
.nd-dp-hero-top { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 24px; align-items: start; }
.nd-dp-hero-top.no-media { grid-template-columns: minmax(0,1fr); }
.nd-dp-hero-media { height: 230px; border-radius: 14px; overflow: hidden; background: #F2F2F2; }
.nd-dp-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nd-dp-hero-text { min-width: 0; }
body.nd .nd-dp-title { margin: 12px 0 0; font: 500 32px/38px var(--nd-font); text-wrap: pretty; }
body.nd .nd-dp-latin { margin: 4px 0 0; font-size: 15px; font-style: italic; color: #808080; }
body.nd .nd-dp-syn { margin: 2px 0 0; font-size: 13px; color: #9AA3AD; }
body.nd .nd-dp-lead { margin: 12px 0 0; font-size: 16px; line-height: 24px; color: #33393F; text-wrap: pretty; }
.nd-dp-actions { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.nd .nd-dp-actions .nd-sp-cta { height: 42px; }
.nd-dp-specs { margin-top: 22px; padding-top: 18px; border-top: 1px solid #F0F1F3; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px 24px; }
.nd-dp-specs > div, .nd-dp-case-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nd-dp-specs span:first-child, .nd-dp-case-facts span:first-child { font-size: 13px; color: #808080; }
.nd-dp-specs span:last-child { font-size: 15px; line-height: 21px; }
body.nd .nd-dp-note { margin: 16px 0 0; font-size: 13px; color: #808080; }
.nd-dp-text { font-size: 16px; line-height: 24px; color: #33393F; max-width: 74ch; }
body.nd .nd-dp-text p { margin: 0 0 14px; text-wrap: pretty; }
body.nd .nd-dp-text p:last-child { margin-bottom: 0; }
.nd-dp-gallery { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.nd-dp-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nd-dp-gallery img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.nd-dp-gallery figcaption { font-size: 13px; line-height: 18px; color: #595959; }
.nd-dp-pair { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.nd-dp-box { border-radius: 12px; padding: 14px 16px; background: #F7F8FA; font-size: 15px; line-height: 22px; }
.nd-dp-box.is-yes { background: #EDF3FC; }
.nd-dp-box.is-no { background: #F7F0EE; }
body.nd .nd-dp-box strong { display: block; font-weight: 500; margin-bottom: 4px; }
.nd-dp-months { display: flex; gap: 4px; align-items: flex-end; }
.nd-dp-months > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nd-dp-months span { font-size: 12px; color: #808080; }
.nd-dp-months i { display: block; width: 100%; border-radius: 6px; }
.nd-dp-months i.is-high { height: 64px; }
.nd-dp-months i.is-mid { height: 40px; }
.nd-dp-months i.is-low { height: 16px; }
.nd-dp-months i.is-high, .nd-dp-legend i.is-high { background: #C4303D; }
.nd-dp-months i.is-mid, .nd-dp-legend i.is-mid { background: #E5B33C; }
.nd-dp-months i.is-low, .nd-dp-legend i.is-low { background: #CFE0F8; }
.nd-dp-legend { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #595959; }
.nd-dp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nd-dp-legend i { width: 12px; height: 12px; border-radius: 3px; }
.nd-dp-list { display: flex; flex-direction: column; gap: 2px; }
.nd-dp-drug, .nd-dp-mixup { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; color: #000; text-decoration: none; }
.nd-dp-drug:hover, .nd-dp-mixup:hover { background: #F7F8FA; color: #000; }
.nd-dp-drug-main { flex: 1; min-width: 0; }
.nd-dp-drug-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.nd .nd-dp-drug-name strong, body.nd .nd-dp-mixup strong { font: 500 16px/22px var(--nd-font); }
.nd-dp-role { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 12px; }
.nd-dp-role.is-main { background: #EDF3FC; color: #0B5DD7; }
.nd-dp-drug-sub { display: block; font-size: 13px; color: #808080; }
.nd-dp-drug-score { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #33393F; }
.nd-dp-drug-reports { flex: none; font-size: 13px; color: #9AA3AD; }
body.nd .nd-dp-hint { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: #595959; }
.nd-dp-info { margin-top: 14px; display: flex; align-items: flex-start; gap: 12px; border-radius: 12px; padding: 14px 16px; background: #EDF3FC; }
.nd-dp-info svg { flex: none; margin-top: 1px; }
body.nd .nd-dp-info p { margin: 0; font-size: 14px; line-height: 20px; color: #1B3A63; }
.nd-dp-table-wrap { overflow-x: auto; }
.nd-dp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
body.nd .nd-dp-table th { text-align: left; padding: 0 12px 10px 0; font: 500 13px/18px var(--nd-font); color: #808080; border-bottom: 1px solid #EDEDED; background: none; }
body.nd .nd-dp-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid #F4F5F6; }
body.nd .nd-dp-table .is-right { text-align: right; padding-right: 0; }
body.nd .nd-dp-table .is-muted { color: #595959; font-size: 14px; }
.nd-dp-mixup { align-items: flex-start; }
body.nd .nd-dp-mixup strong { flex: none; width: 180px; }
.nd-dp-mixup span { flex: 1; min-width: 0; font-size: 15px; line-height: 22px; color: #595959; }
.nd-dp-cases-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
body.nd .nd-dp-cases-head .nd-post-h2 { margin: 0; }
.nd-dp-cases-head span { font-size: 13px; color: #808080; }
.nd-dp-cases { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.nd-dp-case { border-radius: 12px; padding: 16px; background: #F7F8FA; display: flex; flex-direction: column; gap: 10px; }
.nd-dp-case-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nd-dp-case-head a, body.nd .nd-dp-case-head strong { font: 500 15px/20px var(--nd-font); color: #000; }
.nd-dp-initials { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #EDF1F6; color: #33393F; display: flex; align-items: center; justify-content: center; font: 500 13px/1 var(--nd-font); }
body.nd .nd-dp-case p { margin: 0; font-size: 15px; line-height: 22px; color: #33393F; text-wrap: pretty; }
.nd-dp-case-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px 20px; }
.nd-dp-case-facts span:last-child { font-size: 14px; }
.nd-dp-add { margin-top: 16px; padding: 18px 20px; border-radius: 12px; border: 1px dashed #D8DCE1; }
body.nd .nd-dp-add > strong { display: block; font: 500 17px/23px var(--nd-font); }
.nd-dp-add > span { display: block; margin-top: 4px; font-size: 14px; color: #808080; }
.nd-dp-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
body.nd .nd-dp-form input[type="text"], body.nd .nd-dp-form input[type="number"], body.nd .nd-dp-form textarea { box-sizing: border-box; width: 100%; height: 42px; padding: 0 14px; border: 1px solid #E9E6E1; border-radius: 12px; background: #F7F6F4; outline: none; font-size: 15px; box-shadow: none; }
body.nd .nd-dp-form textarea { height: auto; min-height: 90px; padding: 12px 14px; line-height: 22px; resize: vertical; }
body.nd .nd-dp-form input:focus, body.nd .nd-dp-form textarea:focus { border-color: var(--nd-accent); }
.nd-dp-form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.nd .nd-dp-form-row input { flex: 1; min-width: 140px; width: auto; }
body.nd .nd-dp-form-row .nd-sp-cta { height: 42px; padding: 0 22px; }
.nd-dp-form-msg { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 20px; color: #595959; background: #F5F4F2; }
.nd-dp-form-msg.is-success { color: #1E6B34; background: #E8F5EC; }
.nd-dp-form-msg.is-error { color: #A42A2A; background: #FCEBEB; }
.nd-dp-form-msg:empty { display: none; }
.nd-dp-login { display: inline-block; margin-top: 12px; font-size: 15px; }

@media (max-width: 1000px) {
  .nd-dp-specs, .nd-dp-case-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .nd-dis-grid, .nd-dp-hero-top, .nd-dp-pair { grid-template-columns: minmax(0,1fr); }
  .nd-dp-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.nd .nd-dp-hero { padding: 16px; }
  body.nd .nd-dp-title { font-size: 26px; line-height: 32px; }
  .nd-dp-mixup { flex-direction: column; gap: 2px; }
  body.nd .nd-dp-mixup strong { width: auto; }
  .nd-dp-drug { flex-wrap: wrap; }
}

/* Болезни — таблица (Diseases.dc.html от 14.09) */
.nd-dis-table { --sort-grid-cols: 2fr 1.4fr 1fr 1fr 1fr; min-width: 780px; }
.nd-dis-table .nd-sc-thead, .nd-dis-table .nd-sc-row { column-gap: 20px; padding-left: 12px; padding-right: 12px; }
.nd-dis-table .nd-sc-row { min-height: 0; padding-top: 12px; padding-bottom: 12px; border-bottom-color: #F2F2F2; }
.nd-dis-name-cell { display: flex; flex-direction: column; gap: 2px; }
.nd-dis-table .nd-dis-latin { color: #9AA3AD; }
.nd-dis-table .nd-sc-cell.is-right { font-size: 14px; color: #000; }
.nd-dis-table .nd-sc-cell.is-zero { color: #A3A3A3; }
.nd-dis-filter { position: relative; }
.nd-dis-filter summary { list-style: none; }
.nd-dis-filter summary::-webkit-details-marker { display: none; }
.nd-dis-filter-pop { position: absolute; left: 0; top: 100%; margin-top: 6px; z-index: 25; width: 210px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.14); }
.nd-dis-filter-pop label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: #000; cursor: pointer; text-transform: none; letter-spacing: 0; }
.nd-dis-filter-pop input[type="checkbox"] { box-sizing: border-box; width: 16px; height: 16px; margin: 0; accent-color: #0B5DD7; flex: none; }
.nd-dis-filter-actions { margin-top: 8px; display: flex; gap: 6px; }
.nd-dis-filter-actions button { flex: 1; height: 32px; border: 0; border-radius: 8px; background: #1B1F24; color: #fff; font: 500 13px/1 var(--nd-font); cursor: pointer; }
.nd-dis-filter-actions a { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 1px solid #E0E0E0; border-radius: 8px; background: #fff; color: #000; font: 500 13px/1 var(--nd-font); text-decoration: none; }

/* Карточка болезни — миниатюры и просмотр фото */
.nd-dp-thumbs { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.nd-dp-thumbs > button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #F2F3F5; overflow: hidden; cursor: pointer; }
.nd-dp-thumbs > button.is-active { border-color: #0B5DD7; }
.nd-dp-thumbs > button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nd-dp-viewer { flex: 1 0 100%; margin-top: 2px; border-radius: 12px; background: #16202B; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.nd-dp-viewer img { display: block; width: 100%; height: 280px; border-radius: 8px; background: #22303D; object-fit: contain; }
.nd-dp-viewer-bar { display: flex; align-items: center; gap: 10px; }
.nd-dp-viewer-bar button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nd-dp-viewer-bar span { flex: 1; font-size: 13px; color: #9FB3C8; }
.nd-dp-viewer-bar .nd-dp-viewer-close { width: auto; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; }

/* 404 — Not Found.dc.html */
.nd-404 { background: #fff; border-radius: 10px; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.nd-404-code { font: 500 96px/96px var(--nd-font); color: #E4E6EA; }
body.nd .nd-404-title { margin: 8px 0 0; font: 500 26px/32px var(--nd-font); }
.nd-404-text { margin: 0; font-size: 16px; line-height: 24px; color: #595959; max-width: 44ch; text-wrap: pretty; }
.nd-404-actions { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
body.nd .nd-404-actions .nd-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; }

/* Статическая страница — Static Page.dc.html */
.nd-static { background: #fff; border-radius: 10px; padding: 32px; }
body.nd .nd-static-title { margin: 0; font: 500 34px/42px var(--nd-font); }
.nd-static-date { margin: 8px 0 0; font-size: 14px; color: #808080; }
.nd-static-toc { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; background: #F7F8FA; }
.nd-static-toc strong { font: 500 15px/22px var(--nd-font); }
.nd-static-toc a { font-size: 15px; line-height: 24px; }
.nd-static-text { margin-top: 24px; font-size: 17px; line-height: 28px; max-width: 74ch; }
body.nd .nd-static-text h2 { margin: 26px 0 10px; font: 500 24px/30px var(--nd-font); scroll-margin-top: 80px; }
body.nd .nd-static-text h2:first-child { margin-top: 0; }
.nd-static-text p { margin: 0 0 18px; text-wrap: pretty; }
.nd-static-text ul, .nd-static-text ol { margin: 0 0 18px; padding-left: 22px; }
.nd-static-text li { margin-bottom: 6px; }
.nd-static-text img { max-width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 700px) {
  .nd-static { padding: 20px 16px; }
  body.nd .nd-static-title { font-size: 26px; line-height: 32px; }
  .nd-404 { padding: 56px 16px; }
}

/* Подсказки поиска в каталогах (js/search-suggest.js вешает список на label поля). */
body.nd .nd-sc-search { position: relative; }
body.nd .nd-sc-search .search-suggest { left: 0; right: 0; }

/* Чипы автора и подвал публикации — как у отзыва */
body.nd .nd-user-rating[data-tip]:hover::after, body.nd .nd-user-rating[data-tip]:focus-visible::after { left: 0; right: auto; }
.nd-post-author-text .nd-rc-name-row { margin-top: 4px; }
.nd-pc-meta .nd-role, .nd-pc-meta .nd-user-rating { height: 22px; font-size: 12px; }
body.nd article.nd-pc .button-like, body.nd article.nd-pc .portal-favorite-button, body.nd article.nd-pc .nd-pill,
body.nd .nd-post-actions .button-like, body.nd .nd-post-actions .portal-favorite-button, body.nd .nd-post-actions .nd-post-action {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; min-height: 0; padding: 0 14px; border: 0; border-radius: 999px;
  background: #F2F3F5; color: #33393F; font: 400 14px/1 var(--nd-font); cursor: pointer; box-shadow: none; transform: none;
}
body.nd article.nd-pc .nd-pill:hover, body.nd article.nd-pc .portal-favorite-button:not(.active):hover, body.nd article.nd-pc .button-like:not(.active):hover,
body.nd .nd-post-actions .nd-post-action:hover, body.nd .nd-post-actions .portal-favorite-button:not(.active):hover, body.nd .nd-post-actions .button-like:not(.active):hover { background: #E8EAEE; color: #33393F; }
body.nd article.nd-pc .button-like.active, body.nd .nd-post-actions .button-like.active { background: #000; color: #fff; }
body.nd article.nd-pc .portal-favorite-button.active, body.nd .nd-post-actions .portal-favorite-button.active { background: #000; color: #fff; }
body.nd article.nd-pc .portal-favorite-button svg, body.nd .nd-post-actions .portal-favorite-button svg { width: 17px; height: 17px; }
body.nd article.nd-pc .nd-pc-foot { gap: 10px; }

/* Шапка публикации = шапка отзыва; оценка на мобиле — плашка вместо кольца */
.nd-pc .nd-rc-head + .nd-pc-title { margin-top: 12px; }
@media (max-width: 700px) {
  .nd-rc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; }
  .nd-rc-avatar { grid-column: 1; grid-row: 1; justify-self: center; }
  .nd-rc-who { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
  .nd-rc-name-row { gap: 6px; }
  .nd-rc-name-row .nd-rc-name { flex-basis: 100%; }
  .nd-rc-name-row > span { height: 22px; padding: 0 8px; gap: 3px; font-size: 12px; }
  .nd-rc-score { grid-column: 1; grid-row: 2; justify-self: center; }
  .nd-rc-score .nd-ring { width: 44px; height: 44px; padding: 0; flex-direction: column; justify-content: center; gap: 1px; border-radius: 50%; background: #16202B; box-shadow: 0 2px 6px rgba(22,32,43,.25); }
  .nd-rc-score.is-open .nd-ring { background: #0B5DD7; }
  .nd-rc-score .nd-ring::before { content: "★"; color: #FFC21A; font-size: 11px; line-height: 1; }
  .nd-rc-score .nd-ring > span { width: auto; height: auto; background: transparent; font: 700 15px/1 var(--nd-font); color: #fff; }
  .nd-rc-score[data-tip]::after { display: none; }
}

/* Блок «Обсуждали в эфирах» — template-parts/nd/efir-topic.php */
.nd-efir-topic { background: #16202B; color: #fff; border-radius: 20px; padding: 20px; }
.nd-efir-topic-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.nd-efir-topic-badge { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #E8433A; color: #fff; display: flex; align-items: center; justify-content: center; }
.nd-efir-topic-text { flex: 1; min-width: 180px; }
.nd-efir-topic-title { margin: 0; font: 600 20px/26px var(--nd-font); color: #fff; }
.nd-efir-topic-lead { margin: 2px 0 0; font-size: 13px; color: #9FB3C8; }
.nd-efir-topic-all { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: #16202B; font-weight: 500; font-size: 14px; }
.nd-efir-topic-all:hover { background: #E8EDF2; color: #16202B; }
.nd-efir-topic-list { display: flex; flex-direction: column; gap: 2px; }
.nd-efir-topic-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: #fff; }
.nd-efir-topic-row:hover { background: rgba(255,255,255,.08); color: #fff; }
.nd-efir-topic-play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.nd-efir-topic-row-text { flex: 1; min-width: 0; }
.nd-efir-topic-row-title { display: block; font: 500 16px/22px var(--nd-font); text-wrap: pretty; }
.nd-efir-topic-row-meta { display: block; font-size: 13px; color: #9FB3C8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-efir-topic-dur { flex: none; font-size: 13px; color: #9FB3C8; }
@media (max-width: 480px) { .nd-efir-topic { padding: 16px; } .nd-efir-topic-dur { display: none; } }

@media (max-width: 700px) {
  body.nd .nd-body-l,
  .nd-post-text,
  .nd-rp-text,
  .nd-static-text { font-size: 14px; line-height: 22px; }
}

/* Смежные рубрики (Category Archive) и Рост недели (Rating) — правая колонка. */
.nd-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-cat-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 14px; }
.nd-cat-chip:hover { background: #E7E9EC; }

/* Публикации по теме — компактные строки (template-parts/nd/topic-publications.php) */
.nd-topic-pubs-list { display: flex; flex-direction: column; margin-top: 12px; }
.nd-topic-pub { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid #EEF1F4; color: inherit; text-decoration: none; min-width: 0; }
.nd-topic-pub:first-child { border-top: 0; }
.nd-topic-pub:hover { background: #F6F8FA; border-radius: 10px; }
.nd-topic-pub-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.nd-topic-pub-avatar img, .nd-topic-pub-avatar > * { width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover; display: block; font-size: 12px; }
.nd-topic-pub-author { flex: none; max-width: 160px; font-size: 13px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-topic-pub-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-topic-pub:hover .nd-topic-pub-title { color: #0B5DD7; }
.nd-topic-pub-meta { flex: none; font-size: 13px; color: #8A9199; white-space: nowrap; }
@media (max-width: 600px) { .nd-topic-pub-author, .nd-topic-pub-meta { display: none; } }

/* Перенесено из nd-editor.css: дропдаун с поиском нужен и вне редактора. */
/* ──── Дропдаун классификации ──── */
/* Разметка из new-design/Publication Editor.dc.html: кнопка 44px, поповер
   с полем «Поиск», галочка у выбранного. Строит js/nd-select.js поверх
   настоящего <select> — он остаётся в DOM и уезжает из виду. */

.nd-select {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nd-select-native {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.nd-select-button {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--nd-line-warm);
	border-radius: var(--nd-radius-field);
	background: var(--nd-select);
	font: 400 14px/1.2 var(--nd-font);
	color: var(--nd-text);
	text-align: left;
	cursor: pointer;
}

.nd-select-button:hover {
	border-color: #B9B9B9;
}

.nd-select-button svg {
	flex: none;
	color: var(--nd-text-3);
}

.nd-select.is-open .nd-select-button {
	border-color: var(--nd-accent);
	background: #fff;
}

.nd-select-value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nd-select-value.is-placeholder {
	color: var(--nd-text-3);
}

.nd-select-panel {
	position: absolute;
	left: 0;
	top: 44px;
	z-index: 20;
	min-width: 270px;
	max-width: 100%;
	margin-top: 4px;
	padding: 6px;
	border-radius: var(--nd-radius-field);
	background: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .14);
}

.nd-select-search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px;
	margin-bottom: 4px;
	border-radius: 8px;
	background: var(--nd-field);
	color: var(--nd-text-3);
}

.nd-select-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	outline: none;
	font: 400 14px/1.2 var(--nd-font);
	color: var(--nd-text);
}

.nd-select-list {
	max-height: 196px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nd-select-option {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 36px;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font: 400 15px/20px var(--nd-font);
	color: var(--nd-text);
	text-align: left;
	cursor: pointer;
}

.nd-select-option:hover,
.nd-select-option:focus-visible {
	background: #F2F2F2;
}

.nd-select-option-label {
	flex: 1;
	min-width: 0;
}

.nd-select-option.is-selected svg {
	flex: none;
	color: var(--nd-accent);
}

.nd-select-empty {
	display: block;
	padding: 8px 10px;
	font-size: 14px;
	color: var(--nd-text-3);
}

.nd-select-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nd-select-chips:empty {
	display: none;
}

.nd-select-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 8px 0 13px;
	border-radius: var(--nd-radius-pill);
	background: var(--nd-dark);
	color: #fff;
	font-size: 14px;
}

.nd-select-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nd-select-chip-remove:hover {
	background: rgba(255, 255, 255, .16);
}

@media (max-width: 700px) {
	.nd-select-panel {
		min-width: 0;
		width: 100%;
	}
}

.nd-select.is-disabled .nd-select-button {
	background: var(--nd-disabled-bg);
	border-color: var(--nd-line-2);
	color: var(--nd-disabled);
	cursor: not-allowed;
}

.nd-select.is-disabled .nd-select-value {
	color: var(--nd-disabled);
}
