body {
    display: flex;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
}

.sidebar {
    width: 280px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    padding: 20px;
}

.content {
    margin-left: 320px;
    padding: 40px;
    max-width: 900px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-section span {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px 0;
    color: #3498db;
    font-size: 1.1em;
}

.nav-sublist {
    list-style: none;
    padding-left: 15px;
    margin: 5px 0;
}

.nav-sublist li {
    margin: 8px 0;
}

.nav-list a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-list a:hover {
    background-color: #3498db;
    color: white;
}

.nav-list a.active {
    background-color: #3498db;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .content {
        margin-left: 0;
    }
}

.center-img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/*Стиль для заданий*/
.task-box {
    border: 4.5pt solid red;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px; /* Опционально: скруглённые углы */
}

.task-box strong {
    color: #c00; /* Красный цвет для заголовка */
    display: block;
    margin-bottom: 10px;
}

p {
    text-indent: 1.25cm;
}

/* Стили для блоков кода */
pre {
    margin: 20px 0;
    border-radius: 6px;
    overflow-x: auto;
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

pre code {
    display: block;
    padding: 15px;
    line-height: 1.5;
    font-size: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* Для инлайн-кода */
code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.95em;
}