/* ==========================================================================
   МК СЕВЕРОЗАПАД — общие стили для юридических страниц
   ========================================================================== */

:root {
    --nav-bg: #1d2938;
    --primary: #072d50;
    --blue: #0f4e8c;
    --blue-dark: #033e7d;
    --table-head: #1a3a6b;
    --accent-blue: #4A90D9;
    --info-bg: #ebf4ff;
    --text: #505050;
    --text-dark: #2a2a2a;
    --muted: #999999;
    --border: #dddddd;
    --border-dark: #CCCCCC;
    --bg-light: #f4f7f9;
    --bg-row: #f7f7f7;
    --white: #ffffff;
}




h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Slab", "Roboto", serif;
    font-weight: 600;
    margin: 0;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--blue-dark);
    line-height: 1.3;
}

h1 + .subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    margin-top: 6px;
    font-family: "Roboto", sans-serif;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--blue-dark);
    margin: 32px 0 14px;
    line-height: 1.25;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
    margin: 24px 0 10px;
    line-height: 1.3;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 18px 0 8px;
}

p {
    margin: 0 0 16px;
    line-height: 22px;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 100ms linear;
}

a:hover {
    text-decoration: underline;
    color: var(--blue-dark);
}

strong, b {
    font-weight: 700;
    color: var(--text-dark);
}

ul, ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 6px;
    line-height: 22px;
}

/* Алфавитный список (а, б, в…) */
ol.alpha {
    list-style: none;
    counter-reset: alpha;
    padding-left: 0;
}

ol.alpha > li {
    counter-increment: alpha;
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
}

ol.alpha > li::before {
    content: counter(alpha, lower-alpha) ")";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--blue);
}

/* ===== Контент ===== */
.page-wrap {
    max-width: 1366px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}


.page__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.page__updated {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.page__updated strong {
    color: var(--text);
}

/* ===== Информационный блок ===== */
.notice {
    background: var(--info-bg);
    border-left: 5px solid var(--accent-blue);
    padding: 16px 22px;
    margin: 0 0 26px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    line-height: 23px;
}

.notice strong {
    color: var(--blue-dark);
}

.notice--yandex {
    margin-top: 16px;
}

/* ===== Таблицы ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
    background: var(--white);
    border: 1px solid var(--border-dark);
}

.data-table th {
    background: var(--table-head);
    color: #fff;
    text-align: left;
    font-weight: 600;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
}

.data-table th.center {
    text-align: center;
}

.data-table td {
    padding: 11px 14px;
    border: 1px solid var(--border);
    vertical-align: top;
    line-height: 21px;
}


.data-table td.label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

/* ===== Подпись / примечание внизу страницы ===== */
.signature {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 22px;
    color: var(--text-dark);
}

.signature strong {
    color: var(--primary);
}

.page-footer-note {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
}

.page-footer-note strong {
    color: var(--primary);
}


@media (max-width: 768px) {
    h1 { font-size: 24px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    .page__title-row { flex-direction: column; align-items: flex-start; }
}

/* ===== Адаптивные таблицы (карточный режим) ===== */
@media (max-width: 600px) {
    .data-table,
    .data-table tbody {
        display: block;
        width: 100%;
    }
    .data-table {
        border: 0;
        background: transparent;
    }
    .data-table thead {
        display: none;
    }
    .data-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--white);
        overflow: hidden;
    }
    .data-table tr:last-child {
        margin-bottom: 0;
    }
    .data-table tr:nth-child(even) {
        background: var(--bg-row);
    }
    .data-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        border: 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
        white-space: normal;
        background: transparent;
    }
    .data-table tr > td:last-child {
        border-bottom: 0;
    }
    .data-table td.label {
        color: #fff;
        background: var(--table-head);
        font-weight: 600;
        white-space: normal;
    }
    .data-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: var(--blue);
    }
    .notice { padding: 14px 16px; }
}
