* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Arial', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 100vh;
background-color: #f4f1ff;
padding-top: 20px;
}

.title {
font-size: 2.5em;
font-weight: bold;
color: #8a2be2;
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
padding: 10px;
background-color: #ffff66;
text-align: center;
margin-bottom: 20px;
width: 100%;
max-width: 600px;
border-bottom: 2px solid #000;
}

.content {
background-color: #e6e0ff;
padding: 20px;
width: 100%;
max-width: 600px;
text-align: center;
}

.chp-link {
display: block;
font-size: 1.5em;
margin: 15px 0;
color: #000;
text-decoration: none;
transition: color 0.3s;
}

.chp-link:hover {
color: #8a2be2;
}

.topics {
display: none; /* Блок изначально скрыт */
background-color: #e6e0ff;
color: #fff;
padding: 20px;
width: 100%;
max-width: 600px;
margin-top: 20px;
}

.topics:target {
display: block; /* Показать блок при переходе на якорь */
}

.topics h2 {
font-size: 1.8em;
margin-bottom: 10px;
color: #000000;
}

.topics ul {
list-style-type: disc;
margin-left: 20px;
}

.topics ul li {
font-size: 1.2em;
margin-bottom: 8px;
color: #000000;
}
.topics ul ul li {
    font-size: 1em;
    color: #555;
    margin-bottom: 6px; 
}
.sub-link {
    font-size: 1em; 
    color: #555;
    text-decoration: none; 
    transition: color 0.3s; 
}

.sub-link:hover {
    color: #8a2be2; 
    text-decoration: underline; 
}