body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
}
div.content {
    width: 70vw;
    margin-left: 15vw;
    margin-right: 15vw;
}
div.content h2 {
    text-align: center;
}
div.dictionaries, div.terms-wrap, div.contents-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
div.terms-wrap > ul, div.contents-wrap > ul {
    list-style-type: none;
}
div.dictionaries div.column {
    width: min-content;
}
div.page-nav {
    text-align: center;
}
div.page-nav > ul {
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
}
header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}
header h1 {
    margin: 0;
    font-size: 2rem;
}
h1 a {
    color: #fff;
    text-decoration: none;
}
footer.pages {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 1em;
}
footer.pages a {
    text-decoration: none;
    color: #333;
}
select, input {
    background-color: #f2f2f2;
    border: none;
    color: #000;
    padding: 5px;
    font-size: 1rem;
    width: 90%;
    border-radius: 5px;
    max-width: 410px;
    text-align: center;
}
button {
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin: 10px;
    font-size: 1rem;
}
button:hover {
    background-color: #0077be;
    color: white;
}
form {
    text-align: center;
}
details.nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}
h3:target {
    background-color: #ffa;
}
footer.commit {
    text-align: end;
    margin-top: auto;
}

/* Минимальные правки для новой навигации, чтобы не слипалось */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 15px;
}
.nav-links a {
    text-decoration: none;
    color: #0077be;
}
h3 {
    scroll-margin-top: 20px; /* Чтобы заголовок не скрывался за краем экрана при переходе */
}