
/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; color: #111614; background: #fff; }

:root {
    --nv-green: #6bb476;
    --nv-green-dark: #4d9659;
    --nv-green-light: #edf6ef;
    --nv-black: #111614;
    --nv-dark: #0e1512;
    --nv-gray: #6b7280;
    --nv-gray-light: #f5f6f5;
    --nv-border: #e5e7eb;
    --page-width: 1240px;
    --page-pad: 32px;
}

ul.article-toc__list li::before{
    display: none;
}

.container {
        margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(var(--theme-page-width, 1500px) + calc(var(--theme-page-width-padding, 32px) * 2) - var(--theme-page-width-diff, 0px)) !important;
    padding-inline: var(--theme-page-width-padding, 32px) !important;
    width: 100% !important;
}
.main > .container .maxwidth-theme.wide- {
    max-width: 100%;
    padding-inline: 0 !important;
}

/* ═══════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 32px; border-radius: 12px;
    font-family: 'Manrope', sans-serif; font-size: 15px;
    font-weight: 700; cursor: pointer; border: none;
    transition: all 0.25s ease; white-space: nowrap;
    text-decoration: none; line-height: 1;
}
.btn-green { background: var(--nv-green); color: #fff; }
.btn-green:hover { background: var(--nv-green-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(107,180,118,0.4); color: #fff; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
    background: #ffffff;
    position: relative; overflow: hidden;
    padding: 64px 0 72px;
    border-bottom: 1px solid #e5e7eb;
}
.hero__grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(107,180,118,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107,180,118,0.1) 1px, transparent 1px),
        linear-gradient(rgba(107,180,118,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107,180,118,0.04) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
    mask-image: radial-gradient(ellipse 90% 100% at 70% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 70% 50%, black 20%, transparent 80%);
}
.hero .container { position: relative; z-index: 3; }

.hero__breadcrumb {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; color: #9ca3af;
    margin-bottom: 20px;
}
.hero__breadcrumb a { color: var(--nv-green); text-decoration: none; transition: color 0.2s; }
.hero__breadcrumb a:hover { color: var(--nv-green-dark); }

.hero__tag {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(107,180,118,0.3); border-radius: 10px;
    padding: 6px 14px; font-size: 11px; font-weight: 700;
    color: var(--nv-green-dark); letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 28px;
    background: rgba(107,180,118,0.06);
}
.hero__tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--nv-green);
    animation: blink 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero__title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111614; margin-bottom: 18px;
    max-width: 840px;
}
.hero__lead {
    font-size: 16px; color: #6b7280;
    line-height: 1.75; margin-bottom: 28px;
    max-width: 860px;
}
li.toc__item::before {
    display: none !important;
}


.hero__meta {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    margin-top: 8px;
}
.hero__meta-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #6b7280;
}
.hero__meta-item svg { width: 14px; height: 14px; fill: var(--nv-green); flex-shrink: 0; }

/* ═══════════════════════════════════════
   LAYOUT: SIDEBAR + CONTENT
═══════════════════════════════════════ */
.doc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 48px 0 80px;
    align-items: start;
}

/* ═══════════════════════════════════════
   SIDEBAR — TOC
═══════════════════════════════════════ */
.toc {
    position: sticky;
    top: 24px;
    background: #f5f6f5;
    border: 1.5px solid var(--nv-border);
    border-radius: 16px;
    padding: 24px 20px;
}
.toc__title {
    font-size: 11px; font-weight: 800; color: #9ca3af;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 16px;
}
.toc__list {
    list-style: none;
    display: flex; flex-direction: column; gap: 2px;
}
.toc__item a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.toc__item a:hover {
    background: #edf6ef;
    color: var(--nv-green-dark);
}
.toc__item a.active {
    background: #edf6ef;
    color: var(--nv-green-dark);
}
.toc__num {
    display: inline-block;
    width: 18px; height: 18px; border-radius: 5px;
    background: rgba(107,180,118,0.15);
    color: var(--nv-green-dark);
    font-size: 10px; font-weight: 800; text-align: center; line-height: 18px;
    margin-right: 6px; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   DOCUMENT CONTENT
═══════════════════════════════════════ */
.doc-content {
    min-width: 0;
}

.doc-section {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
}

.doc-section__header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--nv-border);
}
.doc-section__num {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--nv-green-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px; font-weight: 900; color: var(--nv-green-dark);
}
.doc-section__title {
    font-size: 20px; font-weight: 800; color: #111614;
    line-height: 1.25; letter-spacing: -0.02em;
}

/* Параграф */
.doc-p {
    font-size: 14px; line-height: 1.8; color: #374151;
    margin-bottom: 14px;
}
.doc-p:last-child { margin-bottom: 0; }

/* Пронумерованный пункт */
.doc-clause {
    display: flex; gap: 12px;
    margin-bottom: 12px;
}
.doc-clause__num {
    flex-shrink: 0;
    font-size: 12px; font-weight: 800; color: var(--nv-green-dark);
    padding-top: 2px; min-width: 32px;
}
.doc-clause__text {
    font-size: 14px; line-height: 1.8; color: #374151;
}

/* Список */
.doc-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 8px;
    margin: 12px 0 16px 0;
}
.doc-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; line-height: 1.7; color: #374151;
}
.doc-list li::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--nv-green);
    flex-shrink: 0;
    margin-top: 8px;
    top: 0;
}

/* Таблица */
.doc-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1.5px solid var(--nv-border);
    margin: 20px 0;
}
.doc-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.doc-table th {
    background: #f5f6f5;
    padding: 12px 16px;
    text-align: left;
    font-size: 11px; font-weight: 800; color: #9ca3af;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-bottom: 1.5px solid var(--nv-border);
}
.doc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    line-height: 1.6; color: #374151;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: #fafafa; }
.doc-table td:first-child { font-weight: 700; color: #111614; white-space: nowrap; }
.doc-table td:last-child { font-size: 12px; color: #9ca3af; }

/* Карточки с контрагентами */
.contractor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.contractor-card {
    background: #fff;
    border: 1.5px solid var(--nv-border);
    border-radius: 12px;
    padding: 16px 18px;
    transition: border-color 0.2s;
}
.contractor-card:hover { border-color: var(--nv-green); }
.contractor-card__name {
    font-size: 13px; font-weight: 800; color: #111614;
    margin-bottom: 6px;
}
.contractor-card__addr {
    font-size: 12px; color: #9ca3af; line-height: 1.5;
    margin-bottom: 8px;
}
.contractor-card__purpose {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--nv-green-light); border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px; font-weight: 700; color: var(--nv-green-dark);
    line-height: 1.4;
}

/* Инфо-блок */
.doc-info {
    background: var(--nv-green-light);
    border: 1px solid rgba(107,180,118,0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex; gap: 12px;
}
.doc-info svg { width: 16px; height: 16px; fill: var(--nv-green); flex-shrink: 0; margin-top: 2px; }
.doc-info p { font-size: 13px; font-weight: 600; color: #374151; line-height: 1.65; }
.doc-info p strong { color: var(--nv-green-dark); }

/* Дедлайн-бейджи */
.deadline-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.deadline-row:last-child { border-bottom: none; }
.deadline-badge {
    flex-shrink: 0;
    background: #111614; color: #fff;
    border-radius: 8px; padding: 4px 10px;
    font-size: 12px; font-weight: 800;
    white-space: nowrap;
}
.deadline-badge--green { background: var(--nv-green); }
.deadline-text {
    font-size: 13px; font-weight: 500; color: #374151; line-height: 1.5;
}

/* ═══════════════════════════════════════
   CTA (копия из исходной страницы)
═══════════════════════════════════════ */
.cta {
    padding: 100px 0;
    background: var(--nv-dark);
    position: relative; overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(107,180,118,0.1);
}
.cta__glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(107,180,118,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta__inner { max-width: 680px; margin: 0 auto; }
.cta__title {
    font-size: clamp(24px, 3vw, 38px); font-weight: 800;
    color: #fff; line-height: 1.2; letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta__text {
    font-size: 16px; color: rgba(255,255,255,0.45);
    line-height: 1.8; margin-bottom: 0;
}
.cta__actions { margin-top: 32px; margin-bottom: 0; }
.cta .btn-green { background: var(--nv-green); }
.cta .btn-green:hover { background: var(--nv-green-dark); }
.cta__sub {
    margin-top: 16px;
    font-size: 13px; color: rgba(255,255,255,0.3);
}
.cta__trust {
    margin-top: 40px; display: flex; align-items: center;
    justify-content: center; gap: 28px; flex-wrap: wrap;
}
.cta__trust-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: rgba(255,255,255,0.3);
}
.cta__trust-item svg { width: 14px; height: 14px; fill: var(--nv-green); opacity: 0.7; flex-shrink: 0; }

/* ═══════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; }
    .toc { position: static; }
}
@media (max-width: 640px) {
    :root { --page-pad: 20px; }
    .hero { padding: 48px 0 56px; }
    .cta { padding: 64px 0; }
    .doc-layout { padding: 32px 0 56px; }
}