:root {
    --text: #1c1917;
    --text-secondary: #57534e;
    --border: #e7e5e4;
    --bg: #fff;
    --bg-alt: #fafaf9;
    --link: #0f5fa0;
    --accent: #1976d2;
    --max: 1080px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    margin: 0;
    padding: 24px 16px 80px;
    font-size: 14px;
}


h1 {
    font-size: 18px;
    text-align: center;
    margin: 24px 0 16px;
    line-height: 1.3;
    font-weight: 600;
}

h2 {
    font-size: 14px;
    margin: 24px 0 10px;
    font-weight: 600;
    text-transform: none;
}

h2.appendix-heading {
    font-size: 16px;
    text-align: center;
    margin: 48px 0 4px;
    letter-spacing: 0.02em;
}

h3 {
    font-size: 13px;
    margin: 18px 0 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

h3.appendix-subtitle {
    font-size: 14px;
    text-align: center;
    color: var(--text);
    margin: 4px 0 4px;
    font-weight: 600;
}

p {
    margin: 8px 0;
    text-align: justify;
    line-height: 1.55;
}

p.appendix-note-line {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin: 0 0 16px;
}

hr.footnote-sep {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 24px 0 12px;
    width: 200px;
}

p.footnote {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0;
    text-align: left;
}

p.footnote .footnote-mark {
    font-weight: 700;
    color: var(--text);
    margin-right: 4px;
}

ul {
    margin: 8px 0;
    padding-left: 20px;
}

ul li {
    margin: 3px 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 12px;
    table-layout: fixed;
}

th, td {
    border: 1px solid var(--border);
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

th {
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 12px;
}

/* Медиазапросы */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        white-space: normal;
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 16px 12px 60px;
        font-size: 13px;
    }
    h1 {
        font-size: 16px;
    }
    h2 {
        font-size: 13px;
    }
    table {
        font-size: 11px;
    }
    th, td {
        padding: 5px 6px;
    }
}