/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #3b7dd8;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #dde3ea;
    --radius: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.header {
    background: var(--primary);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.header-title a {
    color: #fff;
    text-decoration: none;
}

.bvi-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.bvi-btn:hover { background: rgba(255,255,255,0.25); }

.nav {
    background: var(--primary-light);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* === Mobile menu === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* === Main content === */
.main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.page-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.content-card h2 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.content-card p {
    margin-bottom: 12px;
}

.content-card ul {
    margin: 10px 0 14px 24px;
}

.content-card li {
    margin-bottom: 6px;
}

/* PDF download link */
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    margin: 16px 0;
    transition: background 0.2s;
}

.pdf-link:hover { background: var(--primary-light); }

.pdf-link::before {
    content: "\1F4C4";
    font-size: 1.2em;
}

/* === Tables === */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.info-table th,
.info-table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
}

.info-table tr:nth-child(even) {
    background: #f9fafb;
}

/* Section table for svedeniya */
.section-header {
    background: var(--primary) !important;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.section-header td {
    padding: 12px 14px;
    border-color: var(--primary-light);
}

/* === Footer === */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 24px 20px;
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer strong {
    color: #fff;
}

.footer a {
    color: rgba(255,255,255,0.9);
}

/* === Links list (struktura) === */
.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.links-list li:last-child { border-bottom: none; }

.links-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.links-list a:hover { text-decoration: underline; }

/* === Responsive === */
@media (max-width: 768px) {
    .header-title { font-size: 0.95rem; }

    .menu-toggle { display: block; }

    .nav-inner {
        flex-direction: column;
        display: none;
    }

    .nav-inner.open { display: flex; }

    .nav a { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.1); }

    .main { padding: 20px 14px 40px; }

    .content-card { padding: 18px; }

    .page-title { font-size: 1.25rem; }

    .info-table { font-size: 0.82rem; }
    .info-table th, .info-table td { padding: 8px 10px; }
}
