* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0b0e14;
    color: #e0e4f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ================= NAV ================= */

.nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.nav-btn {
    background: transparent;
    border: 1px solid #3d4760;
    color: #b4c0f0;
    font-size: 1.8rem;
    line-height: 1;
    padding: 4px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-btn:hover {
    border-color: #7aa2f7;
    color: #ffffff;
}

/* Меню скрыто по умолчанию */
.nav-menu {
    position: absolute;
    top: 55px;
    left: 0;

    display: flex;
    flex-direction: column;

    background: #141824;
    border: 1px solid #2f3545;
    border-radius: 18px;

    padding: 14px;
    min-width: 200px;

    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;

    transition: 0.2s ease;
}

/* Когда открыто */
.nav-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-menu a {
    color: #a9b8e8;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 12px;
    transition: 0.2s;
}

.nav-menu a:hover {
    background: rgba(122,162,247,0.15);
    color: #ffffff;
}

.nav-menu a.active {
    color: #ffffff;
    background: rgba(187,154,247,0.15);
}

/* ================= CONTENT ================= */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #ffffff;
    border-left: 4px solid #7aa2f7;
    padding-left: 24px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.lead {
    font-size: 1.2rem;
    color: #a9b8e8;
    margin-bottom: 48px;
    margin-top: 8px;
    padding-left: 28px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #bb9af7;
    margin: 48px 0 24px 0;
    border-bottom: 1px solid #2f3545;
    padding-bottom: 8px;
}

.log-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.log-entry {
    background: #1a1e2b;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #2f3545;
    transition: border-color 0.2s;
}

.log-entry:hover {
    border-color: #7aa2f7;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.log-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

.log-tag.wip {
    background: #2d3a5e;
    color: #adc6ff;
    border-color: #7aa2f7;
}

.log-tag.done {
    background: #1d4330;
    color: #9fefc0;
    border-color: #4fb87a;
}

.log-tag.bug {
    background: #4f2d3a;
    color: #ffb0c0;
    border-color: #ff7b9c;
}

.log-tag.idea {
    background: #3d3355;
    color: #d0b0ff;
    border-color: #b77bff;
}

.log-title {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 400;
}

.log-desc {
    color: #c8d3f0;
    font-size: 1rem;
    margin: 12px 0 16px 0;
    border-left: 2px solid #3f4a6b;
    padding-left: 18px;
}

.log-meta {
    font-size: 0.9rem;
    color: #7d8bb8;
    background: #0f1320;
    padding: 12px 18px;
    border-radius: 16px;
    margin-top: 16px;
}

.context-box {
    background: #151c2b;
    border-radius: 24px;
    padding: 28px;
    margin: 48px 0 24px 0;
    border: 1px solid #3d4a6b;
    color: #c4d0ff;
    font-size: 1.1rem;
}

.context-box ul {
    list-style: none;
    padding-left: 8px;
    margin: 16px 0;
}

.context-box li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.context-box li::before {
    content: "•";
    color: #7aa2f7;
    font-weight: bold;
    position: absolute;
    left: 0;
}

footer {
    margin-top: 64px;
    text-align: center;
    color: #5e6c92;
    font-size: 0.9rem;
    border-top: 1px solid #222835;
    padding-top: 32px;
}

footer a {
    color: #7aa2f7;
    text-decoration: none;
}
