* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f5f7;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Внутренние отступы */
.content {
    padding: 40px 50px;
}

/* Заголовки */
h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a2540;
    border-left: 5px solid #0a2540;
    padding-left: 20px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a4d6b;
    padding-bottom: 8px;
    border-bottom: 2px solid #e6edf2;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #2c5a7a;
}

/* Обычный текст и списки */
p {
    margin-bottom: 16px;
    color: #2c3e4e;
}

ul, ol {
    margin: 12px 0 20px 30px;
}

li {
    margin-bottom: 8px;
}

/* Таблица (для целей обработки) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.data-table th, .data-table td {
    border: 1px solid #dce5ec;
    padding: 14px 18px;
    vertical-align: top;
    text-align: left;
    background-color: #fff;
}

.data-table th {
    background-color: #eef2f5;
    font-weight: 600;
    width: 30%;
    color: #0f3b4f;
}

.data-table td {
    background-color: #ffffff;
}

/* Оглавление */
.toc {
    background: #f8fafc;
    padding: 20px 28px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid #e2edf2;
}

.toc p {
    font-weight: 700;
    margin-bottom: 12px;
    color: #0a2540;
}

.toc ul {
    margin: 0;
    columns: 2;
    column-gap: 30px;
}

.toc li {
    margin-bottom: 6px;
    list-style: none;
}

.toc a {
    text-decoration: none;
    color: #1a6f9c;
    font-size: 14px;
}

.toc a:hover {
    text-decoration: underline;
    color: #0f4b6e;
}

/* Контактный блок */
.contact-box {
    background: #f0f6fa;
    padding: 24px 30px;
    border-radius: 16px;
    margin: 30px 0 20px;
    border-left: 4px solid #1a6f9c;
}

footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2edf2;
    font-size: 13px;
    color: #6a7c8a;
    text-align: center;
}

/* Адаптив */
@media (max-width: 700px) {
    .content {
        padding: 25px 20px;
    }
    h1 {
        font-size: 26px;
    }
    h2 {
        font-size: 20px;
    }
    .data-table th, .data-table td {
        padding: 10px 12px;
        display: table-cell;
    }
    .toc ul {
        columns: 1;
    }
}