/* Основные стили */
/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000000, #1c1c1c);
    color: #e6e6e6;
    margin: 0;
    line-height: 1.6;
    user-select: none; /* Запрет выделения текста */
}

/* Общий контейнер */
.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1800px;
}

/* Фон видео и затемнение */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Затемнение для видео */
}

/* Заставка загрузки */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    text-align: center;
    color: #ffcc00;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 0 10px #ff1c1c, 0 0 20px #ff1c1c, 0 0 30px #ff1c1c;
    animation: flickerAnimation 1.5s infinite;
}

/* Анимация для заставки */
@keyframes flickerAnimation {
    0%   { opacity: 1; }
    50%  { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Шапка */
header {
    background: linear-gradient(90deg, #ff1c1c 0%, #151719 45%, #151719 55%, #ff1c1c 100%);
    padding: 0px 0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #ffcc00; /* Желтая полоса для гоночного акцента */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
}

.store-description {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: #ffcc00;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 10px #ff1c1c, 0 0 20px #ff1c1c, 0 0 30px #ff1c1c;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    }
    
/* Стили для мобильной версии */
@media (max-width: 768px) {
    .header-container {
        justify-content: center; /* Центрирование всего контейнера */
    }
    
    .logo-container {
        width: 100%; /* Логотип занимает всю ширину */
        padding-left:30px;
        display: flex; /* Для центрирования flex-элементов */
        justify-content: center; /* Точное центрирование логотипа */
    }

    nav {
        display: none; /* Скрываем навигацию в мобильной версии */
    }

    .store-description {
        display: none; /* Скрыть текст описания в мобильной версии */
    }
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    background: #ff1c1c;
    border-radius: 30px;
    transition: background 0.3s, transform 0.3s;
}

nav ul li a:hover {
    background: #ffcc00;
    transform: translateY(-5px);
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-right: 25px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s, transform 0.3s;
    padding: 10px 20px;
    background: #ffcc00;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 28, 28, 0.5);
    text-transform: uppercase; /* Заглавные буквы для гоночного акцента */
}

nav ul li a:hover {
    color: #141414;
    background: #cca300;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 204, 0, 0.5);
}

/* Главная секция */
#home {
    padding: 0px 0;
    text-align: center;
    background: url('img/background.jpg') no-repeat center center/cover;
    color: #fff;
}

#home h1 {
    font-size: 1em;
    margin-bottom: 10px;
}

#home p {
    font-size: 1.2em;
}

/* Секция товаров */
.products-section {
    padding: 0px 0;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5em;
    color: #ff1c1c;
    margin-bottom: 20px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    justify-items: center; /* Центрируем карточки товаров */
}

.product-card {
    background-color: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%; /* Чтобы карточка занимала всю ширину колонки */
    max-width: 300px; /* Максимальная ширина для каждой карточки */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.7);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Предотвращение выделения и скачивания изображений */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none; /* Отключает все события на изображениях */
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
}

.product-card h3 {
    color: #ff1c1c;
    margin: 10px 0;
}

/* Цена товара */
.product-card .price {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffcc00;
    margin: 10px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Бонусный текст */
.product-card .bonus {
    font-size: 1em;
    color: #ff6666;
    margin: 5px 0;
}

/* Поле для ввода суммы */
.amount-input {
    width: calc(100% - 40px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 25px;
    border: 2px solid #ff1c1c;
    background: #2c2c2c;
    color: #e6e6e6;
    font-size: 1em;
    text-align: center;
}

.amount-input:focus {
    outline: none;
    border-color: #ff0000;
}

/* Кнопка покупки */
.product-card button {
    background: linear-gradient(135deg, #ff1c1c, #b30000);
    color: #fff;
    border: none;
    padding: 20px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: background 0.3s;
    width: 100%;
    margin-top: auto;
}

.product-card button:hover {
    background: linear-gradient(135deg, #b30000, #ff0000);
}

/* Секция доставки */
#delivery {
    padding: 50px 0;
    background-color: #141414;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-top: 50px;
}

#delivery h2 {
    font-size: 2.2em;
    color: #ff1c1c;
    text-align: center;
    margin-bottom: 20px;
}

#delivery p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.8;
}

/* Подвал */
footer {
    background-color: #0e0e0e;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

footer .container {
    text-align: center;
}

footer h3 {
    color: #ff1c1c;
    font-size: 1.8em;
    margin-bottom: 20px;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #ff1c1c;
    text-decoration: none;
    font-weight: bold;
}

footer button {
    background: linear-gradient(135deg, #333, #000);
    color: #ff1c1c;
    border: 1px solid #ff1c1c;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s, border-color 0.3s;
}

footer button:hover {
    background: linear-gradient(135deg, #ff1c1c, #b30000);
    color: #fff;
    border-color: #b30000;
}

/* Адаптивная верстка */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    header, nav ul {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    #home h1 {
        font-size: 2em;
    }

    .products-container {
        justify-items: center; /* Центрируем карточки товаров на мобильных экранах */
    }

    .product-card {
        width: 100%;
        max-width: 300px; /* Максимальная ширина для каждой карточки на мобильных экранах */
    }

    footer button {
        width: 90%;
    }
}
.footer-column {
        flex: 1;
        min-width: 300px;
        margin: 20px;
    }

    .footer-column button {
        background: linear-gradient(135deg, #ff1c1c, #b30000);
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        font-size: 1em;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
        border-radius: 5px;
        margin-top: 10px;
    }

    .footer-column button:hover {
        background: linear-gradient(135deg, #b30000, #ff0000);
    }

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000; /* Поверх остальных элементов */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный тёмный фон */
}

.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 20px 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalShow 0.3s;
}

/* Анимация появления */
@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка закрытия модального окна */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

/* Заголовок модального окна */
.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

/* Поле ввода */
#loginInput {
    width: 91%;
    padding: 12px 15px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Кнопки */
.modal-content button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #cc0000; /* Синий цвет по умолчанию */
    color: #fff;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #990000;
}

/* Кнопка "Оплатить" */
#loginPayButton {
    background-color: #28a745; /* Зелёный цвет */
}

#loginPayButton:hover {
    background-color: #218838;
}

/* Сообщение об ошибке или успехе */
#loginMessage {
    margin-top: 10px;
    font-size: 16px;
    color: #dc3545; /* Красный цвет для ошибок */
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 480px) {
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
}

/* Стили для модального окна сообщений */
#messageModal .modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 30px 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalShow 0.3s;
    text-align: center;
}

#messageModal .close-button-message {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

#messageModal .close-button-message:hover,
#messageModal .close-button-message:focus {
    color: #000;
    text-decoration: none;
}

#messageModal #messageContent {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

#messageModal #messageOkButton {
    margin-top: 30px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#messageModal #messageOkButton:hover {
    background-color: #990000;
}

#emailInput {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#emailInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Общие стили для крестиков закрытия */
.close-button-email,
.close-button-payment,
.close-button-message,
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px; /* Увеличенный размер */
    font-weight: bold; /* Жирный шрифт */
    color: #555; /* Цвет по умолчанию */
    cursor: pointer;
    transition: color 0.3s;
}

.close-button-email:hover,
.close-button-payment:hover,
.close-button-message:hover,
.close-button:hover {
    color: #000; /* Темнее при наведении */
}

.opisanie {
    color:#666666;
    font-size:12px;
    line-height: 1.2em;
    margin-top:3px;
}