body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: relative;
}

header img {
    height: 50px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.article-content {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: auto;
    margin: 15px 0;
}

.article-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.comments-section {
    margin-top: 30px;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    margin-bottom: 15px;
}

.comment {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 3px solid #222;
}

.comment-header {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #777;
    margin-left: 10px;
}

.comment-text {
    font-size: 14px;
    color: #444;
}

#comment-form {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

#comment-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#comment-form button {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

#comment-form button:hover {
    background: #444;
}

footer {
    text-align: center;
    padding: 15px;
    background: #222;
    color: #fff;
    margin-top: 20px;
}

@media (max-width: 768px) {
     .menu-toggle {
        display: block;
        z-index: 1001; 
        position: relative;
    }

    nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000; /* Поднимаем меню выше всех */
    }

    nav ul {
        list-style: none;
        padding: 10px;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        text-align: center;
    }

    nav ul li a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
        display: block;
        padding: 10px;
    }

    nav.active {
        display: block;
    }


    .hero {
        position: relative;
        z-index: 1; 
    }
}

.footer-nav {
    background: #222; /* тот же тёмный фон, что и футер */
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav ul li {
    display: inline;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #fff; /* белые ссылки на тёмном фоне */
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #aaa; /* подсветка при наведении */
}
