* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #2a2a2a;
    color: #f0f0f0;
    line-height: 1.6;
    padding: 20px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div {
    max-width: 900px;
    margin: 0 auto;
}
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #d4a76a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

    h1:first-child {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 20px;
    }

        h1:first-child::after {
            content: '';
            position: absolute;
            width: 100px;
            height: 3px;
            background: #8b5a2b;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }

h2 {
    color: #d4a76a;
    margin-top: 0;
    font-family: 'Cormorant Garamond';
    text-align: center;
    position: relative;
}
.poem-container {
    background-color: #3a3a3a;
    border-radius: 10px;
    padding: 25px;
    margin: 0 auto 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #d4a76a;
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 600px;
}

    .poem-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #8b5a2b, #d4a76a);
    }

.poem {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 0.7;
    text-align: left;
    white-space: pre-line;
    color: #f0f0f0;
    padding: 20px;
}

    .poem h1 {
        color: #d4a76a;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .poem p {
        margin-bottom: 0.3rem;
        position: relative;
        padding: 0 10px;
    }

        .poem p:nth-child(odd) {
            font-weight: 500;
        }

        .poem p:last-child {
            margin-bottom: 0;
            font-weight: 600;
            color: #d4a76a;
        }

.content-section {
    background-color: #3a3a3a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    .content-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .content-section p {
        font-size: 1.1rem;
        color: #d0d0d0;
        text-align: justify;
    }

.empty-section {
    text-align: center;
    padding: 20px;
    background-color: rgba(212, 167, 106, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px dashed #d4a76a;
}

    .empty-section h1 {
        color: #d4a76a;
        font-style: italic;
    }

    .empty-section p {
        color: #d0d0d0;
    }

footer {
    text-align: center;
    margin-top: auto;
    padding: 20px;
    color: #aaa;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.decoration {
    position: absolute;
    font-size: 2rem;
    color: rgba(212, 167, 106, 0.5);
    z-index: 0;
}

    .decoration.left {
        top: 10px;
        left: 10px;
    }

    .decoration.right {
        bottom: 10px;
        right: 10px;
        transform: rotate(180deg);
    }

.nav-link {
    display: inline-block;
    color: #d4a76a;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    padding: 8px 20px;
    margin: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    border: 2px solid #d4a76a;
    background-color: rgba(212, 167, 106, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

    .nav-link:hover {
        color: #f0f0f0;
        background-color: rgba(212, 168, 106, 0.349);
        border-color: #f0c876;
        border-bottom: 2px solid #d4a76a;
        transform: translateY(-2px);
    }

.menu-nav {
    display: none; /* Скрыто на десктопе */
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 45px;
    z-index: 1000;
    cursor: pointer;
    padding: 8px;
    background-color: rgba(58, 58, 58, 0.9);
    border-radius: 6px;
    border: 2px solid #d4a76a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu-line {
    width: 100%;
    height: 3px;
    background-color: #d4a76a;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        border-bottom: none;
    }

    ;

    h1:first-child {
        font-size: 2rem;
        margin-top: 60px;
    }


    .poem-container {
        padding: 20px;
    }

    .poem {
        font-size: 1.1rem;
        line-height: 1;
        padding: 15px;
    }

        .poem p {
            margin-bottom: 0.2rem;
        }

    .content-section {
        padding: 20px;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 6px 15px;
        margin: 0 5px;
        display: block;
        width: 100%;
        margin: 15px 0;
        padding: 12px 20px;
        font-size: 1.2rem;
        border-width: 1.5px;
        text-align: center;
    }

    .menu-nav {
        display: block;
    }

    .main-nav.nav-open {
        left: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: #3a3a3a;
        margin: 0;
        padding: 70px 20px 20px;
        border-right: 2px solid #d4a76a;
        border-bottom: none;
        text-align: left;
        z-index: 999;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        transition: left 0.3s ease;
    }
}
