:root {
    --gov-blue: #003366;
    --gov-red: #d32f2f;
    --gov-bg: #f4f6f9;
    --gov-text: #222222;
    --gov-border: #cfd8dc;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

body {
    margin: 0; padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--gov-bg); color: var(--gov-text);
    display: flex; flex-direction: column; min-height: 100vh;
}

header {
    background-color: var(--gov-blue); color: white;
    padding: 25px 20px; text-align: center;
    border-bottom: 5px solid var(--gov-red);
}

header h1 { margin: 0; font-size: 26px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
header .subtitle { margin-top: 6px; font-size: 11px; color: #b0c4de; letter-spacing: 2px; text-transform: uppercase; }

.emblem {
    width: 60px; height: 60px; margin: 0 auto 12px auto;
    border: 3px solid #ffd700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Courier New', monospace; font-weight: bold; font-size: 20px; color: #ffd700;
}
.emblem::after { content: '</>'; }

/* Универсальная навигационная панель */
nav {
    background-color: #1a237e; padding: 12px 10px;
    text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: sticky; top: 0; z-index: 100;
}
nav a {
    color: #ffffff; text-decoration: none; margin: 0 14px; font-size: 13px;
    font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s;
}
nav a:hover { color: #ffd700; }
nav a.active { border-bottom: 2px solid #ffd700; padding-bottom: 2px; color: #ffd700; }

/* Хлебные крошки для вложенной навигации */
.breadcrumbs {
    max-width: 1100px; margin: 20px auto 0 auto; padding: 0 20px;
    font-size: 13px; color: #666;
}
.breadcrumbs a { color: var(--gov-blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

main { max-width: 1100px; margin: 30px auto; padding: 0 20px; flex: 1; width: -webkit-fill-available; }

.section-title {
    font-size: 18px; color: var(--gov-blue); border-bottom: 2px solid var(--gov-blue);
    padding-bottom: 6px; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Элементы контента и списков */
.card {
    background-color: white; border: 1px solid var(--gov-border);
    border-top: 4px solid var(--gov-blue); padding: 30px; margin-bottom: 25px;
    box-shadow: var(--card-shadow); border-radius: 0 0 4px 4px;
}
.card h2 { margin-top: 0; color: var(--gov-blue); font-size: 22px; border-bottom: 1px solid #eee; padding-bottom: 10px; text-transform: uppercase; }
.card p { line-height: 1.6; font-size: 15px; text-align: justify; }

/* Вложенные сетки и ссылки */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.sub-card {
    background: #fafafa; border: 1px solid #e0e0e0; padding: 20px;
    text-decoration: none; color: inherit; display: block; transition: all 0.2s ease;
}
.sub-card:hover { background: #fff; border-color: var(--gov-blue); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.sub-card h4 { margin: 0 0 8px 0; color: var(--gov-blue); font-size: 15px; text-transform: uppercase; }
.sub-card p { font-size: 13px; color: #555; margin: 0; line-height: 1.4; }

.badge { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 3px; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; }
.badge.frozen { background-color: #78909c; color: white; }
.badge.active { background-color: #2e7d32; color: white; }

/* Формы обратной связи */
form { display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin-top: 20px; }
label { font-weight: bold; font-size: 14px; color: #444; }
input[type="text"], input[type="email"], textarea {
    padding: 10px; border: 1px solid var(--gov-border); font-size: 14px; width: 100%; box-sizing: border-box;
}
textarea { resize: vertical; min-height: 120px; }
button {
    background: var(--gov-blue); color: white; border: none; padding: 12px 20px;
    font-weight: bold; text-transform: uppercase; cursor: pointer; transition: background 0.2s; max-width: 200px;
}
button:hover { background: #002244; }

footer { background-color: #263238; color: #b0bec5; padding: 25px 20px; text-align: center; font-size: 12px; border-top: 3px solid #eceff1; margin-top: auto; }
footer p { margin: 4px 0; }