/**************БАЗОВЫЕ НАСТРОЙКИ****************/
body {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background-color: #11111c;
    color: #dcb38c;
    background-image: linear-gradient(90deg, #08080c, #11111c, #08080c);
}
h1{
    padding-bottom: 0.5em;
    border-bottom: 1px solid #dcb38c;
}
h1, h2{
    padding-bottom: 0.1em;
    text-align: center;
}
header {
    /*background-color: #0c0c14;*/
    background-image: linear-gradient(90deg, #11111c, #08080c, #11111c);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: bold;
    margin-left: 1em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #dcb38c;
    text-decoration: none;
    font-weight: bold;
}

a:link{
    font-weight: bold;
    color: #dcb38c;
    text-decoration: none;
    font-style: italic
}
a:visited{
    font-weight: bold;
    color: #dcb38c;
    text-decoration: none;
}

/*************БАННЕР, МЕНЮ***************/

.menu-toggle {
    display: none; /* Скрываем на десктопе */
    font-size: 1.5em;
    background: none;
    border: none;
    color: #dcb38c;
    cursor: pointer;
    position: absolute;
    left: 2vw;
    top: 2vh;
    z-index: 1001;
}


/*************ОСНОВА*******************/

.maincontent{
    display: flex;
    justify-content: space-around;
    align-items: start;
    background: url('../imgs/bgblog.jpg') no-repeat center center/cover;
    margin: 0;
}

.hero {
    text-align: center;
}
article{
    background-color: rgba(0, 0, 0, 0.7);
    margin: 1em;
    padding: 1em;
}

@media (max-width: 888px){
    header {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .maincontent{
        display: block;
        background-attachment: fixed;
    }
    article{
        margin: 0 1em 0 1em;
    }
}
    
@media (max-width: 735px){
    .menu-toggle {
        display: block; /* Показываем кнопку на мобильных */
    }
    nav {
        position: fixed;
        top: 0;
        left: -100%; /* Прячем за экраном */
        width: 70%;
        height: 100%;
        background: #11111c;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease-in-out; /* Анимация появления */
        z-index: 1000;
        padding-top: 50px;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    nav ul li {
        margin: 15px 0;
    }
    nav.active {
        left: 0;
    }
    .logo {
        text-align: center;
        flex-grow: 1; /* Позволяет логотипу занять центр */
        font-size: 1.4em; /* Можно уменьшить для мобильной версии */
    }
}