/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('images/home_page.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок */
header {
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
	position: relative;
}

header img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
}

.social-media a {
    margin-left: 15px;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.language-switcher {
    margin-left: 15px;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Кнопка "гамбургер" */
.menu-toggle {
    display: block; /* Видна всегда */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
	flex-shrink: 0;
}

/* Навигация */
nav {
    display: none; /* Скрыта по умолчанию */
    position: absolute;
    top: 90px; /* Подогнано под высоту header */
    left: 0;
    width: 100%;
    background-color: rgba(242, 242, 242, 0.9);
    z-index: 10; /* Чтобы меню было поверх контента */
    padding: 10px 0;
}

nav.show {
    display: block; /* Показывается при добавлении класса show */
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row; /* Горизонтальное меню по умолчанию */
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px; /* Расстояние между пунктами на десктопе */
}

nav ul li a {
    text-decoration: none;
    color: #00008B;
    font-weight: bold;
}

/* Основной контент */
main .container {
    background: none;
}

.title {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 2.5em;
}

/* Футер */
footer {
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.7);
}

footer .social-media a {
    margin: 0 10px;
    color: white;
    font-size: 20px;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap; /* Чтобы элементы не выходили за пределы */
	
    }
    header img {
        margin-bottom: 10px;
    }
    .header-right {
        margin-top: 10px;
    }
	.menu-toggle {
        display: block;
    }
    .social-media a {
        display: inline-block;
    }
    .title {
        font-size: 1.8em;
    }
	nav ul {
        flex-direction: column; /* Вертикальное меню на мобильных */
        align-items: center;
    }
    nav ul li {
        margin: 10px 0; /* Расстояние между пунктами на мобильных */
    }
}
