/* Основное оформление страницы */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
    padding-top: 120px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #243247;
    background-color: #eef2f6;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* Шапка и меню */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px;
    box-sizing: border-box;
    padding: 16px 0;
    color: white;
    background-color: #214b75;
}

.site-name {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    padding: 4px 8px;
    border-radius: 4px;
}

nav a:hover,
.selected-menu {
    color: #214b75;
    background-color: white;
}

nav a,
footer a {
    color: white;
}

a:hover {
    text-decoration: none;
}

/* Разделы и изображение */
main {
    flex: 1;
}

section {
    margin: 28px 0;
    padding: 24px;
    background-color: white;
    border-radius: 8px;
}

h1 {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.2;
}

h2 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.3;
}

img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 6px;
}

/* Таблица */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border: 1px solid #c7d3df;
    text-align: left;
    overflow-wrap: anywhere;
}

th {
    background-color: #e3edf7;
}

/* Футер */
footer {
    height: 110px;
    box-sizing: border-box;
    padding: 16px 0;
    color: white;
    background-color: #214b75;
}

footer p {
    margin: 8px 0;
}
