/* ===== DOC HEADER ===== */
.doc-header {
    padding: 96px 0 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.doc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.doc-back:hover { color: var(--accent-light); }
.doc-back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.doc-header__date {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== LAYOUT ===== */
.doc-main {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    padding-top: 64px;
    padding-bottom: 100px;
    align-items: start;
}

@media (max-width: 900px) {
    .doc-main {
        grid-template-columns: 1fr;
    }
    .doc-toc {
        display: none;
    }
}

/* ===== TOC ===== */
.doc-toc {
    position: sticky;
    top: 96px;
}

.doc-toc__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.doc-toc nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-toc a {
    display: block;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid var(--border);
    transition: all 0.2s;
    line-height: 1.4;
}
.doc-toc a:hover {
    color: var(--text);
    border-left-color: var(--accent-light);
}
.doc-toc a.active {
    color: var(--accent-light);
    border-left-color: var(--accent);
    background: rgba(108,99,255,0.06);
    border-radius: 0 6px 6px 0;
}

/* ===== DOC BODY ===== */
.doc-body {
    max-width: 720px;
}

.doc-section {
    margin-bottom: 56px;
}

.doc-section__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.doc-section h1,
.doc-section__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.doc-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.doc-section p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.doc-section p strong {
    color: var(--text);
    font-weight: 600;
}

.doc-section a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.doc-section a:hover { color: var(--accent); }

/* ===== DOC LIST ===== */
.doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.doc-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.doc-list li svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-light);
    flex-shrink: 0;
    margin-top: 3px;
}

.doc-list li div strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== NOTE ===== */
.doc-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(108,99,255,0.08);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 16px;
}
.doc-note svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== DIVIDER ===== */
.doc-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 56px 0 40px;
}
.doc-divider::before,
.doc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.doc-divider span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== CONTACTS ===== */
.doc-contacts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.doc-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.doc-contact-item:hover {
    border-color: var(--accent);
    color: var(--text);
}
.doc-contact-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-light);
}
