/*
 * Новый дизайн — токены, база, каркас, компоненты.
 * Источник правды: 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 из РФ грузится нестабильно. */
/* Вариативный Roboto v51 как на Google Fonts (старый v2.137 на Windows рисовался жирнее макетов).
   Диапазон 400 500: всё жирнее 500 сжимается до 500 — bold в дизайне не используем. */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/roboto/roboto-v51-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/roboto/roboto-v51-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/roboto/roboto-v51-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/roboto/roboto-v51-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* База вместо отключённого mvp.css. Старые переменные — для не перенесённых блоков. */
:root { --surface: #fff; --surface-soft: #F7F7F7; --line: #EDEDED; --line-strong: #E0E0E0; --text: #000; --muted: #808080; --soft: #A6A6A6; --coral: #C2263A; --coral-dark: #A11F30; --coral-soft: #FFE7E9; --amber: #E5A400; --amber-soft: #FFF8E0; --green: #1F6B34; --green-soft: #EAF5EC; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
summary { cursor: pointer; }

: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/1.47 var(--nd-font);
  -webkit-font-smoothing: antialiased;
}
/* Старые style.css/mvp.css ставят Inter/Manrope/Fira на отдельные блоки — перебиваем всё. */
body.nd *:not(pre):not(code):not(kbd):not(.mce-ico):not(.dashicons):not([class^="dashicons-"]):not([class*=" dashicons-"]) { font-family: var(--nd-font) !important; }
/* Редактор публикации (wp_editor): иконки TinyMCE и вкладки не должны получать шрифт темы. */
body.nd .wp-editor-wrap .dashicons, body.nd .wp-editor-wrap [class*="dashicons-"]:before { font-family: dashicons !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/1.23 var(--nd-font); letter-spacing: 0; }
body.nd h2, body.nd .panel-title, body.nd .nd-h2 { font: 500 20px/1.3 var(--nd-font); letter-spacing: 0; }
body.nd h3, body.nd .nd-h3 { font: 500 22px/1.27 var(--nd-font); letter-spacing: 0; }
body.nd .nd-body-l { font-size: 17px; line-height: 1.53; }
body.nd .nd-caption, body.nd small { font-size: 13px; line-height: 1.38; }
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: 1.47; }
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: 1.38; }

/* Подсказка у иконки «i»: без JS, раскрывается по наведению и с клавиатуры. */
.nd-hint { position: relative; display: inline-flex; margin-left: 6px; cursor: help; }
.nd-hint-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: #C8CDD3; color: #fff; font-size: 11px; font-style: italic; font-weight: 700; line-height: 1;
}
.nd-hint:hover .nd-hint-i, .nd-hint:focus-visible .nd-hint-i { background: var(--nd-dark); }
.nd-hint .nd-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 40; width: max-content; max-width: 260px;
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
  white-space: normal; text-align: left; font-style: normal; font-weight: 400;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.nd-hint:hover .nd-tooltip, .nd-hint:focus-visible .nd-tooltip, .nd-hint:focus-within .nd-tooltip {
  opacity: 1; visibility: visible;
}
@media (max-width: 640px) {
  /* На узком экране всплывашка у края уезжает за вьюпорт — прижимаем к тегу слева. */
  .nd-hint .nd-tooltip { left: 0; transform: none; max-width: 70vw; }
}

/* ── Шапка ──────────────────────────────────────────── */
.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: 34px; height: 34px; flex: none; color: var(--nd-accent); display: block;
}
.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; }
/* Поиски фильтров: родной крестик прячем, кнопку [data-nd-search-clear] добавляет nd-shell.js — как в шапке. */
body.nd :is(.nd-sc-search, .nd-pub-search, .nd-authors-search-input, .nd-trs-search) input[type="search"]::-webkit-search-cancel-button { display: none; }
body.nd :is(.nd-sc-search, .nd-pub-search, .nd-authors-search-input, .nd-trs-search) .nd-filter-search-clear { flex: none; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 44px; margin: 0 -14px 0 0; padding: 0; border: 0; border-radius: 0 var(--nd-radius-field) var(--nd-radius-field) 0; background: #E3E6EA; color: #333; font-size: 22px; line-height: 1; cursor: pointer; }
body.nd :is(.nd-sc-search, .nd-pub-search, .nd-authors-search-input, .nd-trs-search) .nd-filter-search-clear:hover { background: #D3D8DE; }
body.nd .nd-trs-search .nd-filter-search-clear { border-radius: 0 12px 12px 0; }
body.nd :is(.nd-sc-search, .nd-pub-search, .nd-authors-search-input, .nd-trs-search) .nd-filter-search-clear[hidden] { display: none; }
/* Родной крестик 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-hdr-review { gap: 8px; padding: 0 18px 0 14px; }
.nd-hdr-review svg { stroke-width: 2.2; }
.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/2 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; }
.nd-hdr-user { position: relative; flex: none; }
/* padding-top — мост, чтобы меню не закрывалось при переводе курсора */
.nd-hdr-user-menu { position: absolute; top: 100%; right: 0; z-index: 100; padding-top: 8px; min-width: 180px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.nd-hdr-user:hover .nd-hdr-user-menu,
.nd-hdr-user:focus-within .nd-hdr-user-menu { opacity: 1; visibility: visible; }
.nd-hdr-user-menu a { display: block; padding: 10px 16px; background: #fff; color: #1F2328; font: 500 14px/1.3 var(--nd-font); text-decoration: none; white-space: nowrap; }
.nd-hdr-user-menu a:first-child { border-radius: 12px 12px 0 0; padding-top: 12px; }
.nd-hdr-user-menu a:last-child { border-radius: 0 0 12px 12px; padding-bottom: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.nd-hdr-user-menu a:hover { background: #F2F4F6; }

/* Колокольчик и поповер уведомлений (разметка — 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/1.45 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; }
body.nd .nd-promo-author {
  display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 14px;
  border-radius: 8px; background-color: var(--nd-dark, #16202B); color: #fff; text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20q10-15 20 0t20 0' fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='1.6'/%3E%3C/svg%3E");
  transition: transform .2s;
}
body.nd .nd-promo-author:hover { transform: translateY(-2px); color: #fff; }
.nd-promo-author-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--nd-accent, #0B5DD7); font-size: 12px; line-height: 16px; font-weight: 500; }
.nd-promo-author strong { font-size: 14px; line-height: 20px; font-weight: 500; }
.nd-promo-author-more { font-size: 13px; line-height: 18px; color: #9EC2F5; }
.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; }
body.nd .nd-nav-link--efir { box-shadow: inset 2px 0 0 #e5484d; border-radius: 0 8px 8px 0; }
body.nd .nd-nav-link--efir .nd-icon { color: #e5484d; }
body.nd .nd-badge--efir { display: inline-flex; align-items: center; gap: 4px; background: #e5484d; color: #fff; font-weight: 600; }
body.nd .nd-badge--efir .nd-icon { color: #fff; }

.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-main { position: relative; }
body.nd .login-prompt { margin-bottom: 16px; }
/* Язычок шапки: shell даёт 8px сверху, поэтому top:-8px стыкует кнопку с шапкой. */
body.nd .nd-back-btn {
  position: absolute; top: -8px; right: 0; z-index: 2; gap: 4px; min-height: 34px; padding: 0 14px 0 10px;
  border: 0; border-radius: 0 0 8px 8px; background: var(--nd-dark-header); color: #fff; font-size: 13px;
}
body.nd .nd-back-btn:hover { background: #2A3038; color: #fff; }

.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: 1.46; 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; }
  /* UI Kit #header-kit: на мобиле «Добавить отзыв» — синий круг 40px после колокольчика */
  .nd-hdr-review { order: 1; width: 40px; height: 40px; padding: 0; margin: 0 2px; justify-content: center; gap: 0; }
  .nd-hdr-review svg { width: 20px; height: 20px; }
  .nd-hdr-review-text { display: none; }
  .nd-hdr-user, .nd-hdr-cluster > [data-auth-open] { order: 2; }
  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: 1.18;
  }
  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/1.38 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 .is-locked { opacity: .45; cursor: not-allowed; }
body.nd .feed-filter .is-locked .catalog-select:disabled { opacity: 1; background: var(--nd-bg-2, #f2f2f2); }
body.nd .feed-filter .is-locked input { pointer-events: none; }
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: 1.38; 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 {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 60; 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/1.29 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/1.36 var(--nd-font); text-wrap: pretty; }
body.nd .portal-notification-popover-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.38; 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/1.33 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: 1.38; 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: 1.38; 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/1.33 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: 1.38; 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/1.3 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/1.47 var(--nd-font); color: #000; text-wrap: pretty; }
.nd-review-delete { border: 0; background: none; font: inherit; color: #C62828; cursor: pointer; }
.nd-review-delete:disabled { opacity: .5; cursor: default; }
.nd-rc-audio { margin-top: 12px; }
.nd-audio { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 18px; margin: 0; border: 0; border-radius: 14px; background: #111; color: #fff; font: 600 17px/1 inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.nd-audio:hover { background: #333; }
.nd-audio-row { display: flex; align-items: center; gap: 8px; }
.nd-audio-share { position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; padding: 0; margin: 0; border: 0; border-radius: 14px; background: #F0F2F5; color: #111; cursor: pointer; -webkit-appearance: none; appearance: none; }
.nd-audio-share:hover { background: #E4E7EB; }
.nd-audio-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #111; color: #fff; font-size: 13px; white-space: nowrap; }
.nd-audio-tip[hidden] { display: none; }
.nd-audio.is-hint { animation: nd-audio-hint 1.2s ease-in-out 3; }
@keyframes nd-audio-hint { 50% { box-shadow: 0 0 0 8px rgba(11,93,215,.35); } }
.nd-audio-ico { display: grid; place-items: center; width: 24px; height: 24px; }
.nd-audio-ico svg { width: 24px; height: 24px; }
.nd-audio-ico > * { grid-area: 1 / 1; }
.nd-audio-text b { margin-left: 4px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.65); }
.nd-audio-eq { display: none; align-items: flex-end; gap: 3px; height: 22px; }
.nd-audio-eq i { display: block; width: 4px; height: 22px; border-radius: 2px; background: #fff; transform-origin: bottom center; animation: nd-audio-eq 1s ease-in-out infinite; }
.nd-audio-eq i:nth-child(2) { animation-delay: .2s; }
.nd-audio-eq i:nth-child(3) { animation-delay: .4s; }
.nd-audio-eq i:nth-child(4) { animation-delay: .1s; }
.nd-audio.is-playing .nd-audio-i-mic { display: none; }
.nd-audio.is-playing .nd-audio-eq { display: flex; }
@keyframes nd-audio-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .nd-audio-eq i { animation: none; transform: scaleY(.7); } }
.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/1.33 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: 1.47; }
.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: auto; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.08); display: block; }
.nd-pc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; 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/1.54 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: 1.38; 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/1.3 var(--nd-font); text-wrap: pretty; }
body.nd .nd-pc-text { margin: 6px 0 0; font-size: 15px; line-height: 1.47; 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: auto; }
}

/* ── Отзыв: раскрытие текста и просмотр фото — Home Feed.dc.html ─ */
body.nd .nd-rc-more { margin-top: 6px; padding: 0; border: 0; background: transparent; color: #0B5DD7; font: 500 14px/1.43 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: 300px; } }

/* ── Архив темы публикаций (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: 1.38; 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: 1.47; 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: 1.38; 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: 1.38; 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/1.21 var(--nd-font); }
body.nd .nd-page-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.47; 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: 1.43; }
.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: auto; 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/1.83 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: 1.83; }
.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-pc-pending-note a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #1B1D21; color: #fff; font-weight: 500; text-decoration: none; }
.nd-pc-pending-note a:hover { background: #33393F; }
.nd-chip-tag.nd-chip-tag--dark { background: #1B1D21; color: #fff; }

/* Правая колонка */
.nd-side-card { background: #fff; border-radius: 10px; padding: 20px; }
body.nd .nd-side-title { margin: 0 0 12px; font: 500 18px/1.33 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: auto; }
}

/* ── Страница публикации — 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/1.38 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/1.24 var(--nd-font); text-wrap: pretty; }
body.nd .nd-post-lead { margin: 14px 0 0; font: 400 18px/1.56 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: auto; margin-top: 18px; border-radius: 14px; }
.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: 1.57; } }
.nd-post-text { margin-top: 22px; font-size: 17px; line-height: 1.65; 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/1.25 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; }

/* Хаб культуры в каталоге сортов: эфиры слева (sticky), текст справа */
.nd-sc-hub-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.nd-sc-hub-grid:not(:has(.nd-sc-hub-side > *)) { grid-template-columns: minmax(0, 1fr); }
.nd-sc-hub-side { position: sticky; top: 80px; min-width: 0; }
.nd-sc-hub-grid .nd-sc-hub { margin-top: 0; font-size: 15px; line-height: 1.6; max-width: none; }
.nd-sc-hub-grid .nd-sc-hub p, .nd-sc-hub-grid .nd-sc-hub ul { margin: 0 0 12px; }
body.nd .nd-sc-hub-grid .nd-sc-hub h2 { margin: 18px 0 6px; font-size: 19px; line-height: 1.32; }
body.nd .nd-sc-hub-grid .nd-sc-hub h2:first-child { margin-top: 0; }
.nd-sc-hub-toggle { display: none; }
body.nd .nd-sc-perpage { flex: 0 0 auto; width: 120px; }
body.nd .nd-sc-perpage .nd-select { width: 100%; min-width: 0; }
.nd-sc-hub-side { position: static; }
.nd-sc-hub-grid .nd-sc-hub { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.nd-sc-hub-toggle:checked ~ .nd-sc-hub { max-height: none; -webkit-mask-image: none; mask-image: none; }
.nd-sc-hub-more { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--nd-accent, #2e7d32); cursor: pointer; }
.nd-sc-hub-more .is-hide, .nd-sc-hub-toggle:checked ~ .nd-sc-hub-more .is-show { display: none; }
.nd-sc-hub-toggle:checked ~ .nd-sc-hub-more .is-hide { display: inline; }
@media (max-width: 900px) {
  .nd-sc-hub-grid { grid-template-columns: minmax(0, 1fr); }
  .nd-sc-hub-grid .nd-sc-hub { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .nd-sc-hub-toggle:checked ~ .nd-sc-hub { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .nd-sc-hub-more { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--nd-accent, #2e7d32); cursor: pointer; }
  .nd-sc-hub-more .is-hide, .nd-sc-hub-toggle:checked ~ .nd-sc-hub-more .is-show { display: none; }
  .nd-sc-hub-toggle:checked ~ .nd-sc-hub-more .is-hide { display: inline; }
}
.nd-post-paywall { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #F7F8FA; font-size: 15px; line-height: 1.47; color: #595959; }
.nd-post-paywall strong { display: block; margin-bottom: 4px; font: 500 17px/1.35 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/1.35 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/1.3 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: 1.83; }
.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: 1.38; }
.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/1.3 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: 1.47; 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/1.33 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: 1.47; 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: 1.23; }
  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: 1.38; 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/1.2 var(--nd-font); text-wrap: pretty; }
body.nd .nd-rp-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.47; 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; }
body.nd .nd-rp-chip.is-sort { background: #1A1A1A; color: #fff; font-weight: 500; }
body.nd .nd-rp-chip.is-sort:hover { background: #333; }
.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: 15px; line-height: 1.53; color: #1F1F1F; }
.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: 1.47; }
.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/1.35 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; }
body.nd .nd-rp-extra .review-growing-list { display: block; max-width: 640px; margin: 10px 0 0; border-radius: 12px; background: #fff; overflow: hidden; }
body.nd .nd-rp-extra .review-growing-item { margin: 0; padding: 7px 14px; border: 0; border-top: 1px solid #F0F0F0; border-radius: 0; background: none; display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 12px; align-items: baseline; }
body.nd .nd-rp-extra .review-growing-item:first-child { border-top: 0; }
.nd-rp-extra .review-growing-item dt { font-size: 13px; line-height: 1.54; color: #808080; }
.nd-rp-extra .review-growing-item dd { margin: 0; font: 500 14px/1.43 var(--nd-font); color: #000; }
.nd-rp-extra .review-growing-item.is-text dd { font-weight: 400; }
.nd-rp-extra .review-growing-item dd .review-growing-chips { margin-top: 0; gap: 4px; }
body.nd .nd-rp-extra .review-growing-item dd .review-growing-chip { height: 22px; padding: 0 8px; font-size: 13px; font-weight: 400; }
body.nd .nd-rp-extra .review-growing-chips .review-growing-chip { height: auto; min-height: 30px; padding: 5px 12px; line-height: 1.3; flex-wrap: wrap; gap: 0 6px; }
@media (max-width: 700px) {
  body.nd .nd-rp-extra .review-growing-item { grid-template-columns: 45% 1fr; gap: 10px; padding: 7px 12px; }
  .nd-rp-pub-text { display: none !important; }
  .nd-rp-extra { margin: 20px -16px -16px; padding: 16px; border-radius: 0 0 12px 12px; }
  .nd-rp-head { flex-wrap: wrap; gap: 10px; }
  .nd-rp-head .nd-post-avatar img { width: 44px; height: 44px; }
  .nd-rp-who { flex: 1 1 0; }
  .nd-rp-who .nd-rc-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
  .nd-rp-who .nd-rc-name { flex: 0 0 100%; }
  .nd-rp-score { height: 32px; padding: 0 10px; gap: 5px; }
  body.nd .nd-rp-score strong { font-size: 16px; }
  .nd-rp-score span { display: none; }
  .nd-rp-meta { margin-top: 4px; }
}
.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; }
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, body.nd .nd-rp-actions .portal-favorite-button { height: 36px; padding: 0 14px; border-radius: 999px; background: #F2F3F5; color: #33393F; }
body.nd .nd-rp-actions .button-like:hover, body.nd .nd-rp-actions .portal-favorite-button:hover { background: #E8EAEE; color: #33393F; }
body.nd .nd-rp-actions .button-like.active, body.nd .nd-rp-actions .button-like.active:hover { background: #FDE7EA; color: #C2263A; }
body.nd .nd-rp-actions .button-like.active svg, body.nd .nd-rp-actions .button-like.active svg path { color: #C2263A; fill: #C2263A; stroke: #C2263A; }
body.nd .nd-rp-actions .portal-favorite-button.active, body.nd .nd-rp-actions .portal-favorite-button.active:hover { background: #0B5DD7; color: #fff; }
body.nd .nd-rp-action:hover { 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/1.38 var(--nd-font); text-wrap: pretty; }
.nd-rp-offer-sub { font-size: 13px; line-height: 1.38; 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/1.29 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; }
body.nd .nd-rp-dt .nd-dt-panel { margin-top: 0; padding-top: 20px; }
.nd-rp-pub-sort { margin-right: 8px; color: #000; font-weight: 500; }
.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; }
body.nd .nd-rp-pub--review { flex-direction: row; align-items: stretch; gap: 16px; overflow: hidden; }
.nd-rp-pub-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nd-rp-pub-rating { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; margin: -18px -20px -18px 0; padding: 0 20px; border-radius: 12px; background: #EDEFF2; color: #1A1A1A; font-size: 20px; font-weight: 500; }
body.nd .nd-rp-pub--review:hover .nd-rp-pub-rating { background: #E4E7EB; }
.nd-rp-sec-head:has(> .nd-read) { justify-content: space-between; }
.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/1.3 var(--nd-font); text-wrap: pretty; }
.nd-rp-pub-text { font-size: 16px; line-height: 1.5; 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: 1.23; }
  .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: 1.43; 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/1.35 var(--nd-font); color: #123A73; }
.nd-sp-guest p { margin: 4px 0 0; font-size: 15px; line-height: 1.47; 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; }
.nd-sp-mfr { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--nd-line-2); background: #F4F5F7; color: var(--nd-text); font-size: 13px; font-weight: 500; text-decoration: none; }
.nd-sp-mfr:hover { border-color: var(--nd-accent); color: var(--nd-accent); }
body.nd .nd-sp-title { margin: 12px 0 4px; font: 500 30px/1.2 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 14px/1.57 var(--nd-font); max-width: 70ch; text-wrap: pretty; }
/* Характеристики — компактная таблица: набор полей у культур разной длины,
   плитки на 3 колонки растягивали шапку на пол-экрана. */
.nd-sp-facts { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); width: 50%; border-top: 1px solid #ECECEC; }
.nd-sp-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #ECECEC; }
.nd-sp-fact-label { font-size: 13px; line-height: 1.38; color: #808080; flex: 0 1 auto; }
.nd-sp-fact-value { font: 500 14px/1.43 var(--nd-font); text-align: right; flex: 0 1 auto; }
@media (max-width: 900px) { .nd-sp-facts { width: 100%; } }
.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: 1.4; 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-cta--dark { background: #000; }
body.nd .nd-sp-cta--dark:hover { background: #333; }
body.nd .nd-sp-cta--dark:active { background: #1A1A1A; }
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: 1.38; color: #808080; }
.nd-sp-detail-value { display: block; margin-top: 2px; font: 500 15px/1.4 var(--nd-font); }
.nd-sp-reviews-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #F0F0F0; }.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: 1.38; 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/1.35 var(--nd-font); }
.nd-sp-reviews-empty p { margin: 6px auto 16px; max-width: 44ch; font-size: 15px; line-height: 1.47; 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; }
/* Шапка сорта: слева текст, справа устойчивость. Ниже 900px — в одну колонку. */
body.nd .nd-sp-lead { margin-top: 4px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; }
body.nd .nd-sp-lead--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { body.nd .nd-sp-lead { grid-template-columns: 1fr; gap: 16px; } }
body.nd .nd-sp-lead-main > :first-child { margin-top: 0; }
body.nd .nd-sp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.nd .nd-sp-source-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5E2F6; background: #EDF3FC; color: #123A73; font: 500 13px/1 var(--nd-font); cursor: pointer; }
body.nd .nd-sp-source-badge:hover { border-color: #0B5DD7; color: #0B5DD7; }
body.nd .nd-sp-source-badge--vendor { border-color: #D9EAD9; background: #F2FBF4; color: #1E7B34; }
body.nd .nd-sp-source-badge--vendor:hover { border-color: #1E7B34; color: #14602A; }
body.nd .nd-sp-highlights { margin: 12px 0 0; padding: 0 0 0 18px; color: #2B2B2B; font: 400 14px/1.55 var(--nd-font); }
body.nd .nd-sp-highlights li { margin: 2px 0; }
/* В две колонки блок выравнивается по верху описания, поэтому отступ нужен
   только когда он падает под текст на узком экране. */
body.nd .nd-sp-diseases { margin-top: 0; padding: 14px 16px; border: 1px solid #ECECEC; border-radius: 14px; background: #FCFCFC; }
@media (max-width: 900px) { body.nd .nd-sp-diseases { margin-top: 16px; } }
body.nd .nd-sp-diseases-title { margin: 0 0 8px; font: 500 16px/1.3 var(--nd-font); color: #1A1A1A; }
body.nd .nd-sp-diseases-title--similar { margin-top: 20px; }
body.nd .nd-sp-disease-list { margin: 0; padding: 0; list-style: none; }
body.nd .nd-sp-disease { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid #EFEFEF; font: 400 14px/1.35 var(--nd-font); }
body.nd .nd-sp-disease:first-child { border-top: 0; }
body.nd .nd-sp-disease a { color: #1A1A1A; text-decoration: none; }
body.nd .nd-sp-disease a:hover { color: #0B5DD7; }
body.nd .nd-sp-disease span { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #666; font-size: 13px; white-space: nowrap; }
body.nd .nd-sp-disease span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B9B9B9; }
body.nd .nd-sp-disease--low span::before { background: #2E9E4A; }
body.nd .nd-sp-disease--mid span::before { background: #E0A21B; }
body.nd .nd-sp-disease--high span::before { background: #D64040; }
body.nd .nd-sp-fertilizer { margin: 14px 0 0; color: #4A4A4A; font: 400 14px/1.5 var(--nd-font); }
body.nd .nd-sp-source-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16,16,16,.45); }
body.nd .nd-sp-source-modal[hidden] { display: none; }
body.nd .nd-sp-source-dialog { width: 100%; max-width: 420px; padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.22); }
body.nd .nd-sp-source-dialog h3 { margin: 0 0 8px; font: 600 17px/1.35 var(--nd-font); color: #1A1A1A; }
body.nd .nd-sp-source-dialog p { margin: 0 0 16px; font: 400 14px/1.5 var(--nd-font); color: #4A4A4A; }
body.nd .nd-sp-source-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.nd .nd-sp-source-go { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #0B5DD7; color: #fff; font: 500 14px/1 var(--nd-font); text-decoration: none; }
body.nd .nd-sp-source-go:hover { background: #0949A8; }
body.nd .nd-sp-source-close { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #E0E0E0; background: #fff; color: #4A4A4A; font: 500 14px/1 var(--nd-font); cursor: pointer; }
body.nd .nd-sp-source-host { display: block; margin-top: 10px; color: #8A8A8A; font-size: 12px; }
body.nd .nd-sp-facts-source { margin: 10px 0 0; color: #8A8A8A; font: 400 13px/1.4 var(--nd-font); }
body.nd .nd-sp-facts-source a { color: #8A8A8A; text-decoration: underline; }
body.nd .nd-sp-facts-source a:hover { color: #0B5DD7; }
.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.has-suggest { position: relative; }
.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-dis-kinds { margin-bottom: 4px; }
.nd-dis-kinds a { border: 1px solid #E0E0E0; }
.nd-dis-kinds a.is-active { border-color: var(--nd-accent); }
.nd-sc-table-wrap { padding: 0 0 8px !important; overflow-x: auto; }
.nd-sc-table-wrap > .empty { margin: 16px 24px 24px; padding: 32px 16px; border-top: 1px solid #ededed; text-align: center; }
.nd-sc-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 24px 12px; }
.nd-sc-count { font: 500 15px/1.47 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: 1004px; padding: 0 24px; }
/* Поповер фильтра колонки: форма живёт в шапке, ширина не влияет на grid. */
.nd-sc-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: -12px; min-width: 210px; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid #EDEDED; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(16,24,40,.14); text-transform: none; letter-spacing: 0; }
.nd-sc-th.is-right .nd-sc-pop { left: auto; right: -12px; }
.nd-sc-pop[hidden] { display: none; }
.nd-sc-pop-opts { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.nd-sc-pop-opts label { display: flex; align-items: center; gap: 10px; font: 400 14px/1.29 var(--nd-font); color: var(--nd-text); cursor: pointer; }
.nd-sc-pop-opts input { flex: none; width: 16px; height: 16px; margin: 0; }
.nd-sc-pop-acts { display: flex; align-items: center; gap: 8px; }
.nd-sc-pop-apply { height: 34px; padding: 0 16px; border: 0; border-radius: var(--nd-radius-pill); background: #16202B; color: #fff; font: 500 14px/1 var(--nd-font); cursor: pointer; }
.nd-sc-pop-apply:hover { background: #2A3642; }
.nd-sc-pop-clear { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--nd-btn-line); border-radius: var(--nd-radius-pill); color: var(--nd-text); font: 500 14px/1 var(--nd-font); text-decoration: none; }
.nd-sc-pop-clear:hover { background: #F5F5F5; }
.nd-sc-thead { display: grid; grid-template-columns: var(--sort-grid-cols); column-gap: 12px; 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: 12px; 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/1.33 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: 1.38; 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/1.35 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: 1.23; }
  .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; align-items: stretch; }
  .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/1.33 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: 1.85; 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: 1.43; 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/1.33 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, .nd-dp-hero-top:not(:has(> .nd-dp-hero-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/1.19 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: 1.5; 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: 1.4; }
body.nd .nd-dp-note { margin: 16px 0 0; font-size: 13px; color: #808080; }
.nd-dp-text { font-size: 16px; line-height: 1.5; 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: 1.38; 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: 1.47; }
.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/1.38 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; }
.nd-dp-drug-price { flex: none; font-size: 14px; color: #33393F; white-space: nowrap; }
.nd-dp-sort { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.nd-dp-sort button { height: 32px; padding: 0 14px; border: 1px solid #E1E4E8; border-radius: 999px; background: #fff; color: #33393F; font-size: 14px; cursor: pointer; }
.nd-dp-sort button.is-active { border-color: #0B5DD7; background: #EDF3FC; color: #0B5DD7; }
@media (max-width: 600px) { .nd-dp-drug { flex-wrap: wrap; } .nd-dp-drug-main { flex-basis: 100%; } }
body.nd .nd-dp-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.43; 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: 1.43; 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/1.38 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; }
body.nd .nd-dp-table-sub { display: block; margin-top: 2px; font-size: 12px; line-height: 1.33; color: #808080; }
.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: 1.47; 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/1.33 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: 1.47; 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/1.35 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: 1.47; 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: 1.43; 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: 1.23; }
  .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/1 var(--nd-font); color: #E4E6EA; }
body.nd .nd-404-title { margin: 8px 0 0; font: 500 26px/1.23 var(--nd-font); }
.nd-404-text { margin: 0; font-size: 16px; line-height: 1.5; 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/1.24 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/1.47 var(--nd-font); }
.nd-static-toc a { font-size: 15px; line-height: 1.6; }
.nd-static-text { margin-top: 24px; font-size: 17px; line-height: 1.65; max-width: 74ch; }
body.nd .nd-static-text h2 { margin: 26px 0 10px; font: 500 24px/1.25 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: 1.23; }
  .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/1.3 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/1.38 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; }
.nd-tr-group-efir{display:flex;align-items:center;gap:8px}
.nd-tr-group-efir .nd-efir-topic-row{flex:1;min-width:0}
.nd-tr-group-efir-del{flex:none;width:28px;height:28px;border:1px solid var(--nd-line,#ddd);border-radius:50%;background:none;cursor:pointer;font-size:18px;line-height:1}
.nd-tr-group-efir-add{margin-top:12px}
.nd-tr-group-efir-q{width:100%;padding:10px 12px;border:1px solid var(--nd-line,#ddd);border-radius:10px;font:inherit}
.nd-tr-group-efir-found{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.nd-tr-group-efir-found button{text-align:left;padding:8px 10px;border:1px solid var(--nd-line,#ddd);border-radius:8px;background:none;cursor:pointer;font:inherit}
@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: 1.57; }
}

/* Смежные рубрики (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-size: 14px; font-weight: 500; color: #1F2328; 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/1.33 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);
}

/* iOS зумит страницу при фокусе поля с font-size < 16px */
@media (hover: none) and (pointer: coarse) {
	body.nd input:not([type=checkbox]):not([type=radio]):not([type=range]),
	body.nd select,
	body.nd textarea { font-size: 16px !important; }
}

html:has(body.nd) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.nd) { scroll-behavior: auto; } }
body.nd #add-review, body.nd #questions, body.nd #reviews { scroll-margin-top: calc(var(--nd-header-h) + 20px); }

/* Вопросы о сорте */
body.nd .nd-qa { padding: 24px; border-radius: 20px; background: #F5F5F5; }
body.nd .nd-qa .nd-qa-item { border-top-color: #E4E4E4; }
body.nd .nd-qa .nd-qa-answers { border-left-color: #E0E0E0; }
body.nd .nd-qa-mark--danger { color: #C62828; }
@media (max-width: 600px) { body.nd .nd-qa { padding: 16px; border-radius: 16px; } }
body.nd .nd-qa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.nd .nd-qa-form { margin-top: 16px; display: grid; gap: 10px; }
body.nd .nd-qa-label { font: 500 14px/1.3 var(--nd-font); color: #1A1A1A; }
body.nd .nd-qa-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #E0E0E0; border-radius: 12px; font: 400 15px/1.45 var(--nd-font); resize: vertical; background: #fff; }
body.nd .nd-qa-form textarea:focus { outline: none; border-color: #000; }
body.nd .nd-qa-form-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.nd .nd-qa-status { font-size: 14px; color: #666; }
body.nd .nd-qa-list { margin: 16px 0 0; padding: 0; list-style: none; }
body.nd .nd-qa-item { padding: 18px 0; border-top: 1px solid #EFEFEF; }
body.nd .nd-qa-q-text { margin: 0; font: 500 16px/1.45 var(--nd-font); color: #1A1A1A; }
body.nd .nd-qa-meta { margin-top: 6px; font-size: 13px; color: #808080; }
body.nd .nd-qa-answers { margin: 12px 0 0; padding: 0 0 0 16px; list-style: none; border-left: 2px solid #EFEFEF; display: grid; gap: 12px; }
body.nd .nd-qa-answer p { margin: 0; font: 400 15px/1.5 var(--nd-font); color: #1A1A1A; }
body.nd .nd-qa-answer.is-best { margin-left: -18px; padding-left: 16px; border-left: 2px solid #2E9E4A; }
body.nd .nd-qa-best { display: inline-block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #1E7B34; }
body.nd .nd-qa-mark, body.nd .nd-qa-reply-toggle { padding: 0; border: 0; background: none; color: #0B5DD7; font: 500 13px/1.3 var(--nd-font); cursor: pointer; text-decoration: none; }
body.nd .nd-qa-reply-toggle { margin-top: 10px; display: inline-block; font-size: 14px; }
body.nd .nd-qa-mark:hover, body.nd .nd-qa-reply-toggle:hover { text-decoration: underline; }
body.nd .nd-qa-form--reply { margin-top: 10px; }
@media (max-width: 600px) { body.nd .nd-qa-head { flex-direction: column; } body.nd .nd-qa-head .nd-sp-cta { width: 100%; justify-content: center; } }

/* Форма обратной связи [portal_feedback] */
body.nd .portal-feedback { display: grid; gap: 16px; max-width: 640px; margin-top: 20px; }
body.nd .portal-feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.nd .portal-feedback-field { display: grid; gap: 6px; margin: 0; }
body.nd .portal-feedback-field > span { font-size: 14px; font-weight: 600; color: var(--nd-text); }
body.nd .portal-feedback-field input, body.nd .portal-feedback-field select, body.nd .portal-feedback-field textarea {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 15px;
  color: var(--nd-text); background: var(--nd-surface); border: 1px solid var(--nd-line-warm); border-radius: var(--nd-radius-field);
}
body.nd .portal-feedback-field textarea { min-height: 150px; resize: vertical; }
body.nd .portal-feedback-field input:focus, body.nd .portal-feedback-field select:focus, body.nd .portal-feedback-field textarea:focus {
  outline: none; border-color: var(--nd-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nd-accent) 18%, transparent);
}
body.nd .portal-feedback-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--nd-text-2); margin: 0; }
body.nd .portal-feedback-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--nd-accent); }
body.nd .portal-feedback .nd-btn { justify-self: start; min-width: 180px; }
body.nd .portal-feedback-ok, body.nd .portal-feedback-err { padding: 12px 16px; border-radius: var(--nd-radius-field); }
body.nd .portal-feedback-ok { background: #EAF6EC; color: #1E6B2E; }
body.nd .portal-feedback-err { background: #FDECEC; color: #A12626; }
@media (max-width: 600px) { body.nd .portal-feedback-row { grid-template-columns: 1fr; } body.nd .portal-feedback .nd-btn { width: 100%; } }
body.nd .nd-static-text a, body.nd .entry-content a, body.nd .nd-post-text a, body.nd .nd-dp-text a, body.nd .nd-prod-text a, body.nd .nd-efir-transcript a { color: var(--nd-accent); text-decoration: underline; text-underline-offset: 2px; }
body.nd .nd-static-text a:hover, body.nd .entry-content a:hover, body.nd .nd-post-text a:hover, body.nd .nd-dp-text a:hover, body.nd .nd-prod-text a:hover, body.nd .nd-efir-transcript a:hover { color: var(--nd-accent-hover); text-decoration-thickness: 2px; }

/* Лайк и избранное — по UI Kit на всех страницах. */
body.nd .button-like.active, body.nd .button-like.active:hover { background: #FDE7EA !important; color: #C2263A !important; }
body.nd .button-like.active svg, body.nd .button-like.active svg path { fill: #C2263A; stroke: #C2263A; }
body.nd .portal-favorite-button.active, body.nd .portal-favorite-button.active:hover { background: #0B5DD7 !important; color: #fff !important; }

/* Привязка аккаунтов в профиле (перенесено из mvp-theme.css). */
.portal-auth-links { margin: 0 0 24px; }
.portal-auth-links .nd-pe-note { margin: 0 0 12px; }
.portal-auth-warn { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid #E5A400; border-radius: 8px; background: #FFF8E0; font-size: 14px; line-height: 1.43; color: #4A3800; }
.portal-auth-row { padding: 16px 0; border-top: 1px solid #EDEDED; }
.portal-auth-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.portal-auth-row__name { font-weight: 500; font-size: 16px; }
.portal-auth-row__hint { margin: 6px 0 0; font-size: 13px; line-height: 1.38; color: #808080; }
.portal-auth-badge { padding: 2px 10px; border-radius: 999px; background: #EAF5EC; color: #1F6B34; font-size: 13px; line-height: 1.54; }
.portal-auth-links .portal-vk-one-tap { display: block; max-width: 420px; margin: 12px 0 0; }
.portal-ya-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 12px 0 18px; border-radius: 10px; background: #000; color: #fff; font-weight: 500; }
.portal-auth-links .portal-ya-btn { max-width: 420px; margin: 12px 0 0; }
body.nd .portal-ya-btn:hover, body.nd .portal-ya-btn:focus-visible { background: #262626; color: #fff; }
.portal-ya-btn__logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #FC3F1D; font-size: 15px; }

/* Пустое состояние (template-parts/common/empty-state.php). */
.empty { padding: 20px 0; font-size: 14px; line-height: 1.43; color: #808080; }
.empty-title { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; color: #000; }

/* Лента: зазор между карточками (раньше давал mvp.css). */
body.nd .feed { display: flex; flex-direction: column; gap: 8px; }

/* Единый стиль текстовых блоков — ПК и мобила одинаково. Перебивает страничные nd-*.css. */
html body.nd :is(.nd-rp-text, .nd-rc-text, .nd-pc-text, .nd-post-text, .nd-dp-text, .nd-sb-text, .nd-tr-desc-text, .nd-tr-lph-text, .nd-prod-text, .nd-static-text, .entry-content, .nd-efir-transcript, .nd-dm-text, .nd-qa-answer, .nd-mf-desc, .nd-profile-about-text, .nd-rp-pros, .nd-rp-cons, .nd-pros, .nd-cons, .nd-cat-excerpt) {
  font-size: 15px; line-height: 1.6; font-weight: 400; color: #3A3A3A;
}
html body.nd :is(.nd-page-lead, .nd-post-lead, .nd-rp-lead, .nd-rp-pub-text, .nd-efir-lead, .nd-dp-lead, .nd-sb-desc, .nd-search-excerpt, .nd-search-subtitle, .nd-auth-lead, .nd-dm-lead, .nd-topic-desc, .nd-dis-excerpt, .nd-404-text, .nd-efir-nothing p) {
  font-size: 15px; line-height: 1.6; font-weight: 400; color: #595959;
}
html body.nd :is(.nd-rp-pros, .nd-rp-cons, .nd-pros, .nd-cons) { font-size: 14px; line-height: 1.55; }

/* Базовые лайк/избранное (UI Kit) — там, где нет контекстного стиля. */
:where(.portal-favorite-button, .portal-like-button) { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #F2F3F5; color: #33393F; font-size: 14px; cursor: pointer; white-space: nowrap; }
:where(.portal-favorite-button, .portal-like-button):hover { background: #E8EAEE; }
:where(.portal-favorite-button, .portal-like-button) svg { width: 18px; height: 18px; }

/* Уведомления форм — вариант A из design-lab/notice-ui-a.html: серая плашка внутри белой формы,
   цвет только у иконки. Первая строка сообщения — заголовок, остальные — пояснение (JS делит по \n). */
body.nd .portal-notice,
body.nd .portal-review-form .alert { position: relative; display: block; margin: 16px 0; padding: 14px 18px 14px 50px; border: 1px solid #E4E5E8; border-radius: 12px; background: #F2F3F5; color: #000; font-size: 14.5px; font-weight: 500; line-height: 1.45; box-shadow: none; animation: nd-notice-in .32s ease-out; }
body.nd .portal-notice.is-error,
body.nd .portal-review-form .alert.error { background: #FBEAE9; border-color: #F2D4D2; color: #7A231C; }
body.nd .portal-notice__title { display: block; }
body.nd .portal-notice__desc { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: #595959; }
body.nd .portal-notice::before,
body.nd .portal-review-form .alert::before { content: ""; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; background: no-repeat center / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230B5DD7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='9'/%3E%3Cpath d='M7.3 11.3l2.3 2.3 5-5.4'/%3E%3C/svg%3E"); }
body.nd .portal-notice.is-error::before,
body.nd .portal-review-form .alert.error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23B3261E' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='9'/%3E%3Cpath d='M11 6.7v5'/%3E%3Ccircle cx='11' cy='14.9' r='1' fill='%23B3261E' stroke='none'/%3E%3C/svg%3E"); }
body.nd .portal-notice.is-pending::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230B5DD7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='9'/%3E%3Cpath d='M11 7v4.3l3 1.9'/%3E%3C/svg%3E"); }
@keyframes nd-notice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.nd .portal-notice, body.nd .portal-review-form .alert { animation: none; } }

/* Фильтр ленты: выбранные значения. Правила ленты главной — только сюда, mvp-theme.css в nd не грузится. */
body.nd .feed-filter-field .catalog-select.is-set { font-weight: 500; }
body.nd .feed-active-chips { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
@media (max-width: 1200px) { body.nd .feed-active-chips { display: flex; } }
body.nd .feed-active-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--nd-accent-soft); color: var(--nd-accent); font: 500 14px/1 Roboto, sans-serif; text-decoration: none; white-space: nowrap; }
body.nd .feed-active-chip:hover { background: var(--nd-accent); color: #fff; }
body.nd .feed-active-chip span { font-size: 18px; line-height: 1; opacity: .8; }
body.nd .feed-active-chip.is-reset { background: none; padding: 0 8px; }
body.nd .feed-active-chip.is-reset:hover { color: var(--nd-accent-hover); background: none; text-decoration: underline; }
body.nd .nd-select:has(> select.is-set) .nd-select-button { font-weight: 500; }
body.nd .feed-filter-field .nd-select:has(> select.is-set) { position: relative; width: calc(100% - 30px); }
body.nd .feed-filter-field .nd-select:has(> select.is-set)::after { content: ''; position: absolute; right: -28px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--nd-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── Страница сорта, перестройка — new-design/Sort Page Hero, Chat Razbory Block 3b, Sort Discussion Tabs ── */
body.nd .nd-sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
body.nd .nd-sp-main { min-width: 0; }
body.nd .nd-sp-grid:not(:has(.nd-sp-side)) { grid-template-columns: minmax(0, 1fr); }
body.nd .nd-sp-culture { background: #EEF1F4; color: #33393F; }
body.nd .nd-sp-title { font-size: 26px; line-height: 32px; }
body.nd .nd-sp-description { font-size: 15px; line-height: 22px; max-width: 64ch; }
body.nd .nd-sp-facts { width: auto; max-width: 520px; margin-top: 20px; border-top-color: #EDEDED; }
body.nd .nd-sp-fact { padding: 9px 0; border-bottom-color: #EDEDED; gap: 16px; }
body.nd .nd-sp-fact-value { font-size: 13px; line-height: 18px; }
body.nd .nd-sp-facts-more { margin-top: 12px; }
body.nd .nd-sp-actions { margin-top: 20px; }
body.nd .nd-sp-cta--dark { background: #16202B; }
body.nd .nd-sp-cta--dark:hover { background: #2A3542; }
body.nd .nd-sp-side { position: sticky; top: 76px; border: 1px solid #EDEDED; border-radius: 12px; background: #FAFAFA; overflow: hidden; }
body.nd .nd-sp-side-sec { padding: 16px 18px; }
body.nd .nd-sp-side-sec + .nd-sp-side-sec--chips { border-top: 1px solid #EDEDED; padding-top: 14px; }
body.nd .nd-sp-side-h { flex: 1; margin: 0 0 6px; font: 500 16px/22px var(--nd-font); color: #000; }
body.nd .nd-sp-resist { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
body.nd .nd-sp-resist > a { flex: 1; min-width: 0; font-size: 14px; line-height: 19px; color: #000; text-decoration: none; }
body.nd .nd-sp-resist > a:hover { color: #0B5DD7; }
body.nd .nd-sp-resist-lvl { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; line-height: 14px; color: #595959; white-space: nowrap; }
body.nd .nd-sp-resist-bars { display: flex; gap: 3px; }
body.nd .nd-sp-resist-bars i { width: 14px; height: 4px; border-radius: 999px; background: #DDE1E6; }
body.nd .nd-sp-resist-bars i.on { background: #0B5DD7; }
body.nd .nd-sp-side-sec--dark { background: #1B1F24; color: #fff; }
body.nd .nd-sp-side-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
body.nd .nd-sp-side-sec--dark .nd-sp-side-h { margin: 0; color: #fff; }
body.nd .nd-sp-side-sec--dark a { font-size: 13px; color: #9EC2F5; text-decoration: none; }
body.nd .nd-sp-side-sec--dark a:hover { color: #fff; }
body.nd .nd-sp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body.nd .nd-sp-tile { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 12px; line-height: 16px; color: #9FB3C8; }
body.nd .nd-sp-tile > span { display: block; }
body.nd .nd-sp-tile > span + span { margin-top: 2px; }
body.nd .nd-sp-tile strong { font: 500 16px/20px var(--nd-font); color: #fff; }
body.nd .nd-sp-poll { margin-top: 12px; }
body.nd .nd-sp-poll-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 18px; color: #9FB3C8; }
body.nd .nd-sp-poll-row > span:first-child { flex: 1; }
body.nd .nd-sp-poll-row strong { font-weight: 500; color: #fff; }
body.nd .nd-sp-poll-bar { margin-top: 5px; height: 6px; border-radius: 999px; background: #2A2F36; overflow: hidden; }
body.nd .nd-sp-poll-bar i { display: block; height: 100%; border-radius: 999px; background: #0B5DD7; }
body.nd .nd-sp-sellers { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: #9FB3C8; }
body.nd .nd-sp-sellers svg { flex: none; }
body.nd .nd-sp-side-top { display: block; margin-top: 10px; line-height: 18px; }
body.nd .nd-sp-side-sub { margin-bottom: 8px; font-size: 13px; line-height: 18px; color: #808080; }
body.nd .nd-sp-side-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.nd .nd-sp-side-chips a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid #E4E6EA; border-radius: 999px; background: #fff; color: #000; font-size: 13px; text-decoration: none; }
body.nd .nd-sp-side-chips a:hover { border-color: #B9B9B9; }
body.nd .nd-sp-side-chips a span { color: #808080; }
@media (max-width: 1100px) {
  body.nd .nd-sp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.nd .nd-sp-side { position: static; }
}
@media (max-width: 700px) {
  body.nd .nd-sp-hero { padding: 18px 16px; }
  body.nd .nd-sp-title { font-size: 22px; line-height: 28px; }
  body.nd .nd-sp-side { margin: 0 -16px -18px; border-radius: 0 0 10px 10px; border-left: 0; border-right: 0; border-bottom: 0; }
  body.nd .nd-sp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body.nd .nd-sp-actions > :first-child { grid-column: 1 / -1; }
  body.nd .nd-sp-actions > * { justify-content: center; width: auto; }
}

/* Эфиры / разборы в чате (3b): тёмный на эфирах, тёмно-синий на разборах. */
body.nd .nd-st { border-radius: 10px; background: #16202B; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; transition: background-color .2s; }
body.nd .nd-st[data-nd-tab-current="chat"] { background: #1A3A66; }
body.nd .nd-st-tabs { display: flex; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.18); overflow-x: auto; scrollbar-width: none; }
body.nd .nd-st-tab { flex: none; height: 40px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #9FB3C8; font: 500 15px/1 var(--nd-font); white-space: nowrap; cursor: pointer; }
body.nd .nd-st-tab:hover { color: #fff; }
body.nd .nd-st-tab.is-active { color: #fff; border-bottom-color: #fff; }
body.nd .nd-st-panel { display: flex; flex-direction: column; }
body.nd .nd-st-panel[hidden] { display: none; }
body.nd .nd-st-panel--chat { gap: 8px; }
body.nd .nd-st-efir { display: flex; align-items: center; gap: 14px; margin: 0 -8px; padding: 12px 8px; border-radius: 10px; color: #fff; text-decoration: none; }
body.nd .nd-st-efir:hover { background: #1F2B38; color: #fff; }
body.nd .nd-st-play { flex: none; width: 34px; height: 34px; border-radius: 999px; background: #2A3542; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
body.nd .nd-st-efir-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.nd .nd-st-efir-title { font: 500 16px/22px var(--nd-font); color: #fff; }
body.nd .nd-st-efir-meta { font-size: 13px; line-height: 18px; color: #9FB3C8; }
body.nd .nd-st-dur { flex: none; font-size: 13px; line-height: 18px; color: #9FB3C8; white-space: nowrap; }
body.nd .nd-st-dur-m { display: none; }
body.nd .nd-st-case { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 10px; background: #fff; color: #000; text-decoration: none; }
body.nd .nd-st-case:hover { background: #F7F8FA; color: #000; }
body.nd .nd-st-case-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.nd .nd-st-case-title { font: 500 15px/22px var(--nd-font); text-wrap: pretty; }
body.nd .nd-st-case-meta { font-size: 13px; line-height: 18px; color: #808080; }
body.nd .nd-st-count { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #EDF3FC; color: #0B5DD7; font: 500 13px/1 var(--nd-font); white-space: nowrap; }
body.nd .nd-st-more { align-self: flex-start; display: inline-flex; align-items: center; height: 42px; margin-top: 4px; color: #9EC2F5; font: 500 14px/1 var(--nd-font); text-decoration: none; }
body.nd .nd-st-more:hover { color: #fff; }
@media (max-width: 700px) {
  body.nd .nd-st { padding: 12px 16px 16px; gap: 12px; }
  body.nd .nd-st-tabs { gap: 20px; }
  body.nd .nd-st-tab { height: 44px; }
  body.nd .nd-st-efir { align-items: flex-start; gap: 12px; margin: 0; padding: 10px 0; }
  body.nd .nd-st-play { width: 36px; height: 36px; }
  body.nd .nd-st-efir-title { font-size: 15px; line-height: 21px; }
  body.nd .nd-st-efir-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body.nd .nd-st-dur { display: none; }
  body.nd .nd-st-dur-m { display: inline; }
  body.nd .nd-st-case { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  body.nd .nd-st-count { order: 2; height: 24px; padding: 0 10px; font-size: 12px; }
  body.nd .nd-st-case-title { font-size: 15px; line-height: 21px; }
}

/* Обсуждение сорта: табы-«папки», внутри — существующие блоки без своих карточек и заголовков. */
body.nd .nd-dt-tabs { position: relative; z-index: 1; margin-bottom: -1px; display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; scrollbar-width: none; }
body.nd .nd-dt-tab { flex: none; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid #F4F5F7; border-bottom: 0; border-radius: 12px 12px 0 0; background: #F4F5F7; color: #595959; font: 500 15px/1 var(--nd-font); white-space: nowrap; cursor: pointer; }
body.nd .nd-dt-tab:hover { color: #000; }
body.nd .nd-dt-tab.is-active { height: 53px; border-color: #EDEDED; background: #fff; color: #000; }
body.nd .nd-dt-tab svg { flex: none; }
body.nd .nd-dt-short { display: none; }
body.nd .nd-dt-count { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: #E4E6EA; color: #33393F; font: 500 12px/22px var(--nd-font); text-align: center; }
body.nd .nd-dt-tab.is-active .nd-dt-count { background: #0B5DD7; color: #fff; }
body.nd .nd-dt-body { border: 1px solid #EDEDED; border-radius: 0 10px 10px 10px; background: #fff; padding: 4px 24px 24px; }
body.nd .nd-dt-panel[hidden] { display: none; }
body.nd .nd-dt-panel .comments-section,
body.nd .nd-dt-panel .nd-qa,
body.nd .nd-dt-panel .nd-bf { margin: 0; padding: 20px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.nd .nd-dt-panel .comments-head h2,
body.nd .nd-dt-panel .nd-qa-head .nd-post-h2,
body.nd .nd-dt-panel .nd-bf > .panel-title { display: none; }
body.nd .nd-dt-panel .nd-qa-head .nd-qa-lead { margin-top: 0 !important; font-size: 15px; line-height: 22px; }
@media (max-width: 700px) {
  body.nd .nd-dt-tab { flex: 1 1 0; height: 42px; padding: 0 4px; font-size: 13px; }
  body.nd .nd-dt-tab.is-active { height: 49px; }
  body.nd .nd-dt-tab svg, body.nd .nd-dt-label { display: none; }
  body.nd .nd-dt-short { display: inline; }
  body.nd .nd-dt-body { padding: 4px 16px 16px; }
}
/* Таб «Что говорят покупатели» — как в Sort Discussion Tabs: строка заголовка с кнопкой, лента превью 120×160. */
body.nd .nd-dt-panel .nd-bf { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 12px; }
body.nd .nd-dt-panel .nd-bf-subtitle { order: 1; flex: 1 1 220px; margin: 0; font-size: 15px; line-height: 22px; color: #595959; }
body.nd .nd-dt-panel .nd-bf-upload,
body.nd .nd-dt-panel .nd-bf-upload-header { display: contents; }
body.nd .nd-dt-panel .nd-bf-upload-title,
body.nd .nd-dt-panel .nd-bf-text { display: none; }
body.nd .nd-dt-panel .nd-bf-toggle,
body.nd .nd-dt-panel .nd-bf-upload > a.nd-btn { order: 2; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid #E0E0E0; border-radius: 999px; background: #fff; color: #000; font: 500 15px/1 var(--nd-font); cursor: pointer; text-decoration: none; }
body.nd .nd-dt-panel .nd-bf-toggle:hover,
body.nd .nd-dt-panel .nd-bf-upload > a.nd-btn:hover { border-color: #C9CDD3; color: #000; }
body.nd .nd-dt-panel .nd-bf-notice { order: 3; flex-basis: 100%; margin: 0; }
body.nd .nd-dt-panel .nd-bf-form { order: 4; flex-basis: 100%; margin: 0; }
body.nd .nd-dt-panel .nd-bf-form[hidden] { display: none; }
body.nd .nd-dt-panel .nd-bf-drop { border: 1px dashed #C9CDD3; border-radius: 12px; background: #fff; }
body.nd .nd-dt-panel .nd-bf-grid { order: 5; flex-basis: 100%; display: flex; gap: 10px; margin: 0; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
body.nd .nd-dt-panel .nd-bf-item { position: relative; flex: none; width: 120px; height: 160px; margin: 0; }
body.nd .nd-dt-panel .nd-bf-shot { display: block; width: 100%; height: 100%; aspect-ratio: auto !important; border: 1px solid #EDEDED; border-radius: 10px; overflow: hidden; background: #F4F5F7; cursor: zoom-in; }
body.nd .nd-dt-panel .nd-bf-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.nd .nd-dt-panel .nd-bf-del { position: absolute; top: 6px; right: 6px; margin: 0; }
body.nd .nd-dt-panel .nd-bf-del-btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: rgba(22,32,43,.85); color: #fff; font: 400 18px/28px var(--nd-font); text-align: center; cursor: pointer; }
body.nd .nd-dt-panel .nd-bf-del-btn:hover { background: #16202B; }
/* Онлайн-точка у аватара (js/nd-presence.js) */
.nd-online-box{position:relative;overflow:visible!important}
.nd-online-box>img{border-radius:50%}
.nd-online-dot{position:absolute;right:0;bottom:0;width:22%;height:22%;min-width:7px;min-height:7px;max-width:11px;max-height:11px;border-radius:50%;background:#22C55E;box-shadow:0 0 0 2px #fff;cursor:help;z-index:1}

/* Фото в комментариях: до 3 штук */
.cmt-photos { display: grid; gap: 6px; margin-top: 8px; max-width: 480px; }
.cmt-photos--2 { grid-template-columns: 1fr 1fr; }
.cmt-photos--3 { grid-template-columns: 1fr 1fr 1fr; }
.cmt-photos .cmt-photo { display: block; margin: 0; }
.cmt-photos .cmt-photo img { display: block; width: 100%; height: auto; border-radius: 8px; object-fit: cover; }
.cmt-photos--2 .cmt-photo img, .cmt-photos--3 .cmt-photo img { aspect-ratio: 1; height: 100%; }
.cmt-photo-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.cmt-photo-previews .cmt-photo-preview { position: relative; display: inline-block; }
.cmt-photo-previews .cmt-photo-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.cmt-photo-previews .cmt-photo-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; line-height: 20px; font-size: 11px; cursor: pointer; }
.cmt-attach { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmt-attach:not(:has(.cmt-photo-previews:not([hidden]))) { display: none; }
.comment-form .cmt-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body.nd .comment-form p.form-submit.cmt-actions { flex: none; margin: 0; align-items: stretch; }
body.nd .comment-form .cmt-actions .cmt-attach-btn { width: auto; }
body.nd .comment-form #comment { height: 88px; min-height: 88px; }
body.nd .comment-form > .cmt-attach { order: 10; flex-basis: 100%; padding-left: 52px; box-sizing: border-box; }
.comments-section .cmt-actions .cmt-attach-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; background: #3A4250; color: #fff; }
.comments-section .cmt-actions .cmt-attach-btn:hover { background: #4A5363; }
@media (max-width: 700px) {
  .comment-form .cmt-actions { align-items: stretch; }
  .comment-form .cmt-actions .cmt-attach-btn { order: -1; }
  body.nd .comment-form > .cmt-attach { padding-left: 0; }
}
.cmt-attach-btn[data-tooltip] { position: relative; }
.cmt-attach-btn.is-locked { opacity: .5; cursor: not-allowed; }
.cmt-attach-btn[data-tooltip]:hover::after, .cmt-attach-btn[data-tooltip]:focus-within::after { opacity: 1; }
.cmt-attach-btn[data-tooltip]::after { content: attr(data-tooltip); position: absolute; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: 260px; padding: 6px 10px; border-radius: 6px; font-size: 13px; line-height: 1.35; white-space: normal; background: #1f2a1f; color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.cmt-attach-btn.is-locked:hover::after, .cmt-attach-btn.is-locked:focus-visible::after { opacity: 1; }
