/* Основные стили */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #ebdfdf;
    background-color: #000000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px 0;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex; /* Делаем список горизонтальным */
    align-items: center; /* Выравниваем элементы по центру вертикально */
    padding: 0; /* Убираем отступы по умолчанию */
    margin: 0; /* Убираем отступы по умолчанию */
    list-style: none; /* Убираем маркеры списка */
    flex-wrap: nowrap; /* Запрещаем перенос элементов на новую строку */
    white-space: nowrap; /* Дополнительная страховка для запрета переноса */
}

.nav-menu ul li {
    margin-right: 15px; /* Отступ между элементами */
}

.nav-menu a {
    color: #fff; /* Цвет текста ссылок */
    text-decoration: none; /* Убираем подчеркивание */
    font-size: 1em; /* Размер шрифта */
}

.nav-menu img {
    width: 250px; /* Ширина изображения */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    margin-left: 0px; /* Отступ слева от изображения */
}

/* Добавьте дополнительные стили для наведения, если нужно */
.nav-menu a:hover {
    color: #ebdfdf; /* Цвет текста при наведении */
}

/* Стили для видео */
.video-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Стили для кнопок */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.button {
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.button:active {
    transform: scale(0.95);
}

.button span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

/* Стили для логотипа */
.logo-container {
    width: 100%;
    text-align: center;
    padding: 0;
    background-color: #fff;
    margin-top: -4px;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Стили для бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    margin-right: auto;
}

.burger-menu .bar {
    width: 20px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    header h1 {
        margin-left: auto;
    }

    .nav-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #000;
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 70px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu ul li {
        margin: 15px 0;
    }

    .burger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .button {
        width: 80px;
        height: 80px;
        font-size: 12px;
    }
}

/* Стили для секций */
.section {
    padding: 50px 0;
    text-align: center;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.section p, .section ul {
    font-size: 1.2em;
    line-height: 1.6;
}

.section ul {
    list-style: none;
    padding: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery img {
    max-width: 100%;
    height: auto;
    border: 2px solid #000;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #161616;
    margin: 10% auto; /* Отступ сверху 10% и центрирование по горизонтали */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Ширина 90% от родительского контейнера */
    max-width: 500px;
    max-height: 80vh; /* Устанавливаем максимальную высоту (80% от высоты окна) */
    overflow-y: auto; /* Включаем вертикальную прокрутку, если содержимое превышает максимальную высоту */
    border-radius: 10px;
    text-align: center;
    position: relative;
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 600px) {
    .modal-content {
        margin: 10px; /* Устанавливаем отступы в 10 пикселей со всех сторон */
        width: auto; /* Убираем фиксированную ширину */
        max-width: calc(100% - 20px); /* Учитываем отступы, чтобы содержимое не выходило за пределы экрана */
    }
}

.close, .close-details {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.close:hover, .close-details:hover {
    color: #000000;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label {
    font-weight: bold;
    text-align: left;
}

form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 20px;
    background-color: #6b0404;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 305px;
}

form button:hover {
    background-color: #333;
}

/* Стили для кнопки "Подробнее" */
.details-btn {
    padding: 10px 20px;
    background-color: #6b0404;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.details-btn:hover {
    background-color: #333;
}

.nav-menu {
    display: flex;
    flex-direction: column; /* Изменяем направление на вертикальное */
}

/* Стили для навигационного меню */
.nav-menu {
    display: flex;
    flex-direction: column; /* Изменяем направление на вертикальное */
}

.social-icons {
    display: grid; /* Используем сетку */
    grid-template-columns: repeat(2, 1fr); /* Две колонки */
    gap: 10px; /* Отступ между иконками */
    margin-top: 10px; /* Отступ сверху */
}

.social-icons a {
    display: flex; /* Центрируем иконки */
    justify-content: center;
    align-items: center;
    width: 50px; /* Ширина иконок */
    height: 50px; /* Высота иконок */
    background-color: #000; /* Фон иконок */
    border-radius: 10px; /* Закругленные углы */
    transition: background-color 0.3s ease; /* Плавное изменение фона при наведении */
}

.social-icons a:hover {
    background-color: #6b0404; /* Цвет фона при наведении */
}

.social-icons a i {
    color: #fff; /* Цвет иконок */
    font-size: 1.5em; /* Размер иконок */
}
