/* Страница препарата — new-design/Treatment Page.dc.html */

body.nd .nd-tr-about,
body.nd .nd-tr-composition,
body.nd .nd-tr-doses,
body.nd .nd-tr-mfr,
body.nd .nd-tr-safety,
body.nd .nd-tr-diseases,
body.nd .nd-tr-analogs,
body.nd .nd-tr-experience {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 8px;
}

body.nd .nd-tr-about {
    padding: 24px;
}

/* ── About: Hero и основная информация ────────────────── */
body.nd .nd-tr-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.nd .nd-tr-media-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.nd .nd-tr-image {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    background: var(--nd-neutral);
    overflow: hidden;
}

body.nd .nd-tr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

body.nd .nd-tr-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: #F2F3F5;
    color: #33393F;
    font-size: 13px;
}

body.nd .nd-tr-chip--mode {
    background: #FFF8E0;
    color: #7A5A00;
}

body.nd .nd-tr-head-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

body.nd .nd-tr-title-block {
    flex: 1;
    min-width: 200px;
}

body.nd .nd-tr-h1 {
    margin: 0;
    font: 500 32px/38px var(--nd-font);
    color: var(--nd-text);
}

body.nd .nd-tr-regwarn {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
    background: #FDECEC;
    color: #A61B1B;
}

body.nd .nd-tr-regwarn.is-lph {
    background: #FFF4E0;
    color: #8A5A00;
}

body.nd .nd-tr-mfr {
    margin: 4px 0 0;
    font-size: 15px;
    color: #595959;
}

body.nd .nd-tr-reg {
    margin: 2px 0 0;
    font-size: 13px;
    color: #9AA3AD;
}

body.nd .nd-tr-efficacy-block {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

body.nd .nd-tr-efficacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #E8F5EC;
    color: #1F6B34;
    font-size: 14px;
}

body.nd .nd-tr-efficacy-badge strong {
    font-weight: 500;
}

body.nd .nd-tr-reports-count {
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-description {
    margin-top: 14px;
}

body.nd .nd-tr-desc-text {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    color: #33393F;
}

body.nd .nd-tr-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.nd .nd-tr-btn-primary {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--nd-accent);
    color: #fff;
    font: 500 15px/1 var(--nd-font);
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: background-color .15s;
}

body.nd .nd-tr-btn-primary:hover {
    background: var(--nd-accent-hover);
}

/* Specs grid */
body.nd .nd-tr-specs-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 24px;
    padding-top: 18px;
    border-top: 1px solid #F0F1F3;
}

body.nd .nd-tr-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.nd .nd-tr-spec-label {
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-spec-value {
    font-size: 15px;
    line-height: 21px;
    color: var(--nd-text);
}

body.nd .nd-tr-price-unit {
    color: #9AA3AD;
}

body.nd .nd-tr-price-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-empty {
    color: #A3A3A3;
}

/* ── Composition ────────────────────────────────────────── */
body.nd .nd-tr-h2 {
    margin: 0 0 12px;
    font: 500 20px/26px var(--nd-font);
    color: var(--nd-text);
}

body.nd .nd-tr-substances {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.nd .nd-tr-substance {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--nd-text);
    text-decoration: none;
    transition: background-color .15s;
}

body.nd .nd-tr-substance:hover {
    background: #F7F8FA;
}

body.nd .nd-tr-substance-name {
    flex: 1;
    min-width: 0;
    font: 500 16px/22px var(--nd-font);
    color: var(--nd-text);
}

body.nd .nd-tr-substance-conc {
    flex: none;
    font-size: 15px;
    color: #33393F;
}

/* ── Doses ──────────────────────────────────────────────── */
body.nd .nd-tr-dose-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

body.nd .nd-tr-dose-tab {
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #F2F3F5;
    color: #33393F;
    font: 500 15px/1 var(--nd-font);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

body.nd .nd-tr-dose-tab:hover {
    background: #E7E9EC;
}

body.nd .nd-tr-dose-tab.is-active {
    background: #16202B;
    color: #fff;
}

body.nd .nd-tr-dose-panel {
    display: none;
}

body.nd .nd-tr-dose-panel.is-active {
    display: block;
}

body.nd .nd-tr-table-wrapper {
    overflow-x: auto;
}

body.nd .nd-tr-dose-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 560px;
}

body.nd .nd-tr-dose-table thead {
    border-bottom: 1px solid #EDEDED;
}

body.nd .nd-tr-dose-table th {
    text-align: left;
    padding: 0 12px 10px 0;
    font: 500 13px/18px var(--nd-font);
    color: #808080;
    white-space: nowrap;
}

body.nd .nd-tr-dose-table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid #F4F5F6;
    font-size: 14px;
    line-height: 20px;
    color: var(--nd-text);
}

body.nd .nd-tr-dose-table th.nd-tr-th-short { width: 1%; }
body.nd .nd-tr-dose-table tr > td:nth-child(5),
body.nd .nd-tr-dose-table tr > td:nth-child(6) { white-space: nowrap; }
body.nd .nd-tr-th-tip { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: help; outline: none; }
body.nd .nd-tr-th-i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid #B3B3B3; font: 600 10px/1 var(--nd-font); color: #808080;
}
body.nd .nd-tr-th-pop {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 5;
    width: max-content; max-width: 220px; padding: 6px 10px; border-radius: 8px;
    background: #1F1F1F; color: #fff; font: 400 12px/16px var(--nd-font); white-space: normal;
    opacity: 0; visibility: hidden; transition: opacity .15s;
}
body.nd .nd-tr-th-tip:hover .nd-tr-th-pop,
body.nd .nd-tr-th-tip:focus .nd-tr-th-pop { opacity: 1; visibility: visible; }

body.nd .nd-tr-empty-block {
    padding: 12px;
    border-radius: 10px;
    background: #F7F8FA;
    color: #595959;
    font-size: 14px;
    line-height: 20px;
}

/* ── MFR grid ───────────────────────────────────────────── */
body.nd .nd-tr-mfr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

/* ── Safety ─────────────────────────────────────────────── */
body.nd .nd-tr-safety-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 24px;
}

body.nd .nd-tr-ppe-list {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 22px;
    color: var(--nd-text);
}

body.nd .nd-tr-ppe-icon {
    flex: none;
    margin-top: 3px;
    color: var(--nd-accent);
}

/* ── Diseases ───────────────────────────────────────────── */
body.nd .nd-tr-disease-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.nd .nd-tr-disease-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #F2F3F5;
    color: #33393F;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .15s;
}

body.nd .nd-tr-disease-chip:hover {
    background: #E7E9EC;
}

body.nd .nd-tr-disease-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #595959;
}

body.nd .nd-tr-disease-score svg {
    color: #E5A400;
}

/* ── Analogs ────────────────────────────────────────────── */
body.nd .nd-tr-analog-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.nd .nd-tr-analog-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--nd-text);
    text-decoration: none;
    transition: background-color .15s;
}

body.nd .nd-tr-analog-link:hover {
    background: #F7F8FA;
}

body.nd .nd-tr-analog-info {
    flex: 1;
    min-width: 0;
}

body.nd .nd-tr-analog-title {
    display: block;
    font: 500 16px/22px var(--nd-font);
    color: var(--nd-text);
}

body.nd .nd-tr-analog-sub {
    display: block;
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-analog-score {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--nd-text);
}

body.nd .nd-tr-analog-score svg {
    color: #E5A400;
}

body.nd .nd-tr-analog-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #808080;
}

/* ── Experience ─────────────────────────────────────────── */
body.nd .nd-tr-exp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

body.nd .nd-tr-exp-stat {
    border-radius: 12px;
    padding: 14px 16px;
    background: #F7F8FA;
}

body.nd .nd-tr-exp-value {
    display: block;
    font: 500 24px/28px var(--nd-font);
}

body.nd .nd-tr-exp-label {
    display: block;
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-exp-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.nd .nd-tr-exp-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--nd-text);
    text-decoration: none;
    transition: background-color .15s;
}

body.nd .nd-tr-exp-link:hover {
    background: #F7F8FA;
}

body.nd .nd-tr-exp-avatar {
    flex: none;
    width: 34px;
    height: 34px;
    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-tr-exp-text {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 21px;
}

body.nd .nd-tr-exp-text strong {
    display: block;
    font-weight: 500;
    color: var(--nd-text);
}

body.nd .nd-tr-exp-meta {
    display: block;
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-exp-result {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
}

body.nd .nd-tr-exp-result[data-result="helped"] {
    background: #E8F5EC;
    color: #1F6B34;
}

body.nd .nd-tr-exp-result[data-result="partial"] {
    background: #FFF3D6;
    color: #7A5A00;
}

body.nd .nd-tr-exp-result[data-result="failed"] {
    background: #FDECEE;
    color: #B32330;
}

body.nd .nd-tr-exp-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #808080;
}

body.nd .nd-tr-exp-alert {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
    background: #EDF3FC;
    color: #1B3A63;
}

body.nd .nd-tr-exp-alert svg {
    flex: none;
    margin-top: 1px;
    color: var(--nd-accent);
}

body.nd .nd-tr-exp-alert p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

/* ── Адаптив ≤1000px ────────────────────────────────────── */
@media (max-width: 1000px) {
    body.nd .nd-tr-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    body.nd .nd-tr-specs-grid,
    body.nd .nd-tr-safety-grid,
    body.nd .nd-tr-exp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.nd .nd-tr-efficacy-block {
        align-items: flex-start;
    }
}

/* ── Адаптив ≤700px ────────────────────────────────────── */
@media (max-width: 700px) {
    body.nd .nd-tr-about {
        padding: 16px;
    }

    body.nd .nd-tr-about,
    body.nd .nd-tr-composition,
    body.nd .nd-tr-doses,
    body.nd .nd-tr-mfr,
    body.nd .nd-tr-safety,
    body.nd .nd-tr-diseases,
    body.nd .nd-tr-analogs,
    body.nd .nd-tr-experience {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.nd .nd-tr-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    body.nd .nd-tr-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    body.nd .nd-tr-efficacy-block {
        align-items: flex-start;
        width: 100%;
    }

    body.nd .nd-tr-specs-grid,
    body.nd .nd-tr-safety-grid,
    body.nd .nd-tr-mfr-grid,
    body.nd .nd-tr-exp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Без фото: чипы над заголовком, текст на всю ширину. */
body.nd .nd-tr-hero--no-photo { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body.nd .nd-tr-hero--no-photo .nd-tr-media-side { flex-direction: row; flex-wrap: wrap; }

html:has(.nd-tr-about) { scroll-behavior: smooth; }
body.nd #comments { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { html:has(.nd-tr-about) { scroll-behavior: auto; } }

body.nd .nd-tr-comments-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 4px; color: var(--nd-accent); font-size: 15px; text-decoration: none; }
body.nd .nd-tr-comments-link:hover { color: var(--nd-accent-hover); }

@media (max-width: 700px) {
    body.nd .nd-tr-description.is-collapsed { position: relative; max-height: 168px; overflow: hidden; }
    body.nd .nd-tr-description.is-collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255,255,255,0), #fff); }
    body.nd .nd-tr-desc-toggle { align-self: flex-start; margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--nd-accent); font: 500 15px/22px var(--nd-font); cursor: pointer; }
}

body.nd a.nd-tr-chip--link { text-decoration: none; transition: background-color .15s; }
body.nd a.nd-tr-chip--link:hover { background: #E7E9EC; color: #33393F; }
body.nd .nd-tr-reg { margin-top: 6px; }

/* Регламент: подпись «Для:» и короткие названия табов — только мобила */
body.nd .nd-tr-dose-for, body.nd .nd-tr-tab-short { display: none; }
body.nd .nd-tr-dose-search {
    display: flex; align-items: center; gap: 8px; height: 42px; margin-bottom: 12px; padding: 0 14px;
    border-radius: 12px; background: var(--nd-field, #F2F3F5); color: #808080;
}
body.nd .nd-tr-dose-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 15px var(--nd-font); color: var(--nd-text); outline: none; }
body.nd .nd-tr-dose-table tr.is-alt td { background: #F7F8FA; }
body.nd .nd-tr-dose-nothing { margin-top: 8px; }
body.nd .nd-tr-dose-table th:first-child, body.nd .nd-tr-dose-table td:first-child { padding-left: 10px; }

body.nd .nd-tr-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
    margin-left: 6px; border-radius: 999px; background: #F2F3F5; color: #33393F; font: 500 14px/1 var(--nd-font); vertical-align: 2px; box-sizing: border-box;
}
body.nd .nd-tr-analog-more { margin-top: 2px; }
body.nd .nd-tr-analog-toggle { margin-top: 10px; }

/* Описание: списки в стиле сайта */
body.nd .nd-tr-desc-text p { margin: 0 0 10px; }
body.nd .nd-tr-desc-text ul { margin: 0 0 10px; padding: 0; list-style: none; }
body.nd .nd-tr-desc-text li { position: relative; margin: 4px 0; padding-left: 16px; }
body.nd .nd-tr-desc-text li::before {
    content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--nd-accent);
}

/* Безопасность — внутри блока «О препарате» */
body.nd .nd-tr-safety-block { margin-top: 18px; }
body.nd .nd-tr-h3 { margin: 0; font: 500 16px/22px var(--nd-font); color: var(--nd-text); }
body.nd .nd-tr-specs-grid--safety { margin-top: 10px; padding-top: 0; border-top: 0; }
body.nd .nd-tr-more-btn { display: none; }

@media (max-width: 700px) {
    body.nd .nd-tr-more-btn,
    body.nd .nd-tr-analog-toggle { display: inline-flex; margin-top: 10px; background: #F2F3F5; border-color: #F2F3F5; }
    body.nd .nd-tr-more-btn:hover,
    body.nd .nd-tr-analog-toggle:hover { background: #E7E9EC; border-color: #E7E9EC; }
    body.nd .nd-tr-analog-link { padding: 5px 10px; }
    body.nd .nd-tr-analog-title { font: 500 15px/22px var(--nd-font); }

    /* Характеристики — компактная таблица, как на странице сорта */
    body.nd .nd-tr-specs-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    body.nd .nd-tr-specs-grid .nd-tr-spec {
        flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px;
        padding: 10px 0; border-bottom: 1px solid #F0F1F3;
    }
    body.nd .nd-tr-specs-grid .nd-tr-spec-label { flex: none; font-size: 14px; }
    body.nd .nd-tr-specs-grid .nd-tr-spec-value { font-size: 14px; font-weight: 500; text-align: right; }

    body.nd .nd-tr-dose-tabs { align-items: center; }
    body.nd .nd-tr-dose-for { display: inline; margin-right: 2px; font-size: 15px; color: #595959; }
    body.nd .nd-tr-tab-full { display: none; }
    body.nd .nd-tr-tab-short { display: inline; }

    /* Регламент — блоки списком, подписи из thead через data-label */
    body.nd .nd-tr-table-wrapper { overflow: visible; }
    body.nd .nd-tr-dose-table { min-width: 0; }
    body.nd .nd-tr-dose-table thead { display: none; }
    body.nd .nd-tr-dose-table, body.nd .nd-tr-dose-table tbody, body.nd .nd-tr-dose-table tr { display: block; }
    body.nd .nd-tr-dose-table tr { margin-bottom: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid #F0F1F3; }
    body.nd .nd-tr-dose-table tr[hidden] { display: none; }
    body.nd .nd-tr-dose-table tr.is-alt { background: #F7F8FA; border-color: #F7F8FA; }
    body.nd .nd-tr-dose-table tr.is-alt td { background: none; }
    body.nd .nd-tr-dose-table td {
        display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right;
    }
    body.nd .nd-tr-dose-table td::before {
        content: attr(data-label); flex: 0 1 45%; text-align: left; font-size: 13px; line-height: 20px; color: #808080;
    }
    body.nd .nd-tr-dose-table td:first-child { padding-left: 0; font-weight: 500; }
}

/* Инструкция ЛПХ из магазина — свободный текст вместо таблицы usage_lph */
body.nd .nd-tr-lph-text {
    font-size: 15px;
    line-height: 22px;
    color: #262626;
}
body.nd .nd-tr-lph-text ul,
body.nd .nd-tr-lph-text ol {
    margin: 0 0 12px;
    padding-left: 20px;
    list-style: disc;
}
body.nd .nd-tr-lph-text li { margin: 4px 0; }
body.nd .nd-tr-lph-text p { margin: 0 0 12px; }
body.nd .nd-tr-lph-text table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.nd .nd-tr-lph-text th,
body.nd .nd-tr-lph-text td { padding: 8px; border-bottom: 1px solid #EDEFF2; text-align: left; vertical-align: top; }

body.nd .nd-tr-substance-more { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: #0B5DD7; }
body.nd .nd-tr-analog-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; }
body.nd .nd-tr-analog-price { color: #000; font-weight: 500; }
body.nd .nd-tr-analog-for { color: #595959; }
body.nd .nd-tr-analog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
body.nd .nd-tr-analog-chip { padding: 6px 12px; border: 0; border-radius: 16px; background: #F2F3F5; color: #1A1A1A; font: 400 14px/20px var(--nd-font); cursor: pointer; }
body.nd .nd-tr-analog-chip:hover { background: #E7E9EC; }
body.nd .nd-tr-analog-chip:disabled { opacity: .45; cursor: default; background: #F2F3F5; }
body.nd .nd-tr-analog-chip.is-active { background: #1A1A1A; color: #fff; }
body.nd .nd-tr-analog-link[hidden] { display: none; }
body.nd .nd-tr-analog-price--side { flex: none; text-align: right; font-size: 16px; line-height: 22px; white-space: nowrap; }
body.nd .nd-tr-analog-price--side small { display: block; font: 400 13px/18px var(--nd-font); color: #808080; }

/* Правая колонка: якорная навигация — только список ссылок со счётчиками; комментарии — ниже, на всю ширину */
body.nd .nd-tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px; align-items: start; }
body.nd .nd-tr-toc { position: sticky; top: 80px; width: 200px; }
body.nd .nd-tr-toc-inner {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px; border-radius: 10px; background: #fff;
}
body.nd .nd-tr-toc-inner a {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 9px 10px 9px 15px; border-radius: 8px; color: #33393F; font: 400 13.5px/1.35 var(--nd-font); text-decoration: none;
    transition: background-color .15s, color .15s;
}
body.nd .nd-tr-toc-inner a::before {
    content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px;
    background: transparent; transition: background-color .15s;
}
body.nd .nd-tr-toc-inner a:hover { background: #F2F3F5; }
body.nd .nd-tr-toc-inner a:focus-visible { outline: 2px solid var(--nd-accent); outline-offset: 1px; }
body.nd .nd-tr-toc-inner a.is-active { background: var(--nd-accent-soft); color: var(--nd-accent); font-weight: 500; }
body.nd .nd-tr-toc-inner a.is-active::before { background: var(--nd-accent); }
body.nd .nd-tr-toc-label {
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
body.nd .nd-tr-toc-count {
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--nd-neutral); color: #595959; font: 500 11px/1 var(--nd-font);
}
body.nd .nd-tr-toc-inner a.is-active .nd-tr-toc-count { background: #fff; color: var(--nd-accent); }
body.nd .nd-tr-layout .nd-stack > section[id] { scroll-margin-top: 80px; }
@media (max-width: 1000px) {
    body.nd .nd-tr-layout { grid-template-columns: minmax(0, 1fr); }
    body.nd .nd-tr-toc { display: none; }
}

/* Характеристики таблицей + карточка «Состав» справа */
body.nd .nd-tr-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
body.nd .nd-tr-facts.has-composition { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
body.nd .nd-tr-spec-table { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--nd-font); }
body.nd .nd-tr-spec-table th, body.nd .nd-tr-spec-table td { padding: 8px 0; border-bottom: 1px solid #F0F1F3; vertical-align: top; text-align: left; font-size: 14px; }
body.nd .nd-tr-spec-table th { width: 45%; padding-right: 16px; font-weight: 400; color: #808080; }
body.nd .nd-tr-spec-table td { color: var(--nd-text); font-weight: 400; }
body.nd .nd-tr-facts .nd-tr-safety-block { margin-top: 24px; }
body.nd .nd-tr-composition-card { position: sticky; top: 80px; padding: 20px; border-radius: 14px; background: linear-gradient(160deg, #EEF7EC 0%, #E3F1F6 100%); }
body.nd .nd-tr-composition-h { margin: 0 0 12px; font: 600 13px/18px var(--nd-font); letter-spacing: .06em; text-transform: uppercase; color: #3C6E47; }
body.nd .nd-tr-composition-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.nd .nd-tr-composition-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.75); color: var(--nd-text); text-decoration: none; transition: background-color .15s; }
body.nd .nd-tr-composition-item:hover { background: #fff; }
body.nd .nd-tr-composition-name { font: 500 15px/20px var(--nd-font); overflow-wrap: anywhere; }
body.nd .nd-tr-composition-conc { font: 600 15px/20px var(--nd-font); color: #3C6E47; white-space: nowrap; }
body.nd .nd-tr-composition-more { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: #808080; }
@media (max-width: 900px) {
    body.nd .nd-tr-facts.has-composition { grid-template-columns: minmax(0, 1fr); }
    body.nd .nd-tr-composition-card { position: static; order: -1; }
}
body.nd .nd-tr-dose-search[hidden] { display: none; }
body.nd .nd-tr-empty-block--warn { background: #FDECEC; color: #B42318; border: 1px solid #F7C9C5; }
