/* Подключение кастомных шрифтов */
@font-face {
    font-family: 'FontAwesomeCustom';
    src: url('../fonts/FontAwesome.otf') format('opentype'); /* Путь к шрифту FontAwesome */
}

@font-face {
    font-family: 'NeonFont';
    src: url('../fonts/font.ttf') format('truetype'); /* Путь к шрифту font.ttf */
}

/* Основные стили */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Устанавливаем высоту 100% для html и body */
    margin: 0;
    overflow-x: hidden; /* Убираем горизонтальный скролл, но оставляем вертикальный */
}

body {
    font-family: 'FontAwesomeCustom', sans-serif; /* Использование шрифта FontAwesome для остального текста */
    background-color: #0a0a0a; /* Черный фон */
    color: #ffffff; /* Белый текст */
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирование контента по вертикали */
    padding: 20px;
    position: relative; /* Для размещения canvas за контентом */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Современные браузеры */
}

/* Canvas */
canvas {
    position: absolute; /* Абсолютное позиционирование */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Помещаем canvas за остальным содержимым */
}

/* Заголовок с нежным неоновым эффектом */
.neon-title {
    position: relative;
    display: inline-block;
    font-size: 3rem; /* можно настроить размер */
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff7300, 0 0 40px #fffb00;
    animation: neon-border 3s infinite alternate;
}

@keyframes neon-border {
    0% {
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff7300, 0 0 30px #fffb00, 0 0 40px #00ff00;
    }
    50% {
        box-shadow: 0 0 10px #00ffd5, 0 0 20px #002bff, 0 0 30px #7a00ff, 0 0 40px #ff00c8;
    }
    100% {
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff7300, 0 0 30px #fffb00, 0 0 40px #48ff00;
    }
}

.white-text {
    color: #ffffff; /* Белый цвет для части заголовка */
}

.red-text {
    color: #ff0033; /* Красный цвет для части заголовка */
}

.lime-text {
    color: lime; /* Красный цвет для части заголовка */
}

.yellow-text {
    color: yellow; /* Красный цвет для части заголовка */
}
/* Подзаголовки с нежным неоновым эффектом */
.neon-subtitle {
    font-size: 1.8rem; /* Небольшое уменьшение подзаголовков */
    color: #ffffff;
    margin: 15px 0;  /* Уменьшение отступов */
    text-shadow: 
        0 0 6px rgba(255, 0, 51, 0.8),   /* Мягкий красный свет */
        0 0 15px rgba(255, 0, 51, 0.6);
}

.neon-subtitle a {
    color: #ff0033;
    text-decoration: none;
    transition: color 0.3s ease;
}

.neon-subtitle a:hover {
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8), /* Белый неон при наведении */
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

/* Продукты */
.products {
    display: flex;
    justify-content: center;
    gap: 40px; /* Немного уменьшено расстояние между иконками */
    margin-top: 50px; /* Уменьшение верхнего отступа */
}

.products2 {
    display: flex;
    justify-content: center;
    gap: 40px; /* Немного уменьшено расстояние между иконками */
    margin-top: 20px; /* Уменьшение верхнего отступа */
}

.products a img {
    width: 280px;  /* Небольшое уменьшение размера иконок */
    height: 280px; /* Небольшое уменьшение размера иконок */
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products a img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px 5px #ff0033; /* Красная неоновая подсветка */
}

/* Подвал */
footer {
    margin-top: 60px; /* Уменьшение отступа сверху */
    font-size: 1.1rem; /* Небольшое уменьшение размера текста подвала */
}

footer p {
    margin-bottom: 10px;
}

footer a {
    font-size: 1.8rem; /* Небольшое уменьшение подзаголовков */
    color: #ff0033;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 
        0 0 6px rgba(255, 0, 51, 0.8),   /* Мягкий красный свет */
        0 0 15px rgba(255, 0, 51, 0.6);
}

footer a:hover {
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8), /* Белый неон при наведении */
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
}

/* Добавьте этот стиль для позиционирования изображений */
.star {
    position: absolute;
    width: 20px; /* Размер изображения */
    height: 20px;
    background-size: cover;
}

.payment-widget {
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    box-shadow: 0 0 10px GOLD;
    animation: animate-shadow 3s linear infinite; /* Добавляем анимацию */
}

/* Анимация для box-shadow */
@keyframes animate-shadow {
    0% {
        box-shadow: 0 0 10px GOLD;
    }
    25% {
        box-shadow: -5px 0 15px #ff0000, 5px 0 15px #ff7300;
    }
    50% {
        box-shadow: -5px 0 15px #fffb00, 5px 0 15px #48ff00;
    }
    75% {
        box-shadow: -5px 0 15px #00ffd5, 5px 0 15px #002bff;
    }
    100% {
        box-shadow: 0 0 10px GOLD;
    }
}

.payment-widget form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label,
.form-group input,
.form-group select {
    color: #ffffff;
    background-color: black;
    width: 100%;
    padding: 8px;
    font-size: 13px;
}

button {
    background-color: black;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px GOLD;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    animation: animate-button-shadow 3s linear infinite; /* Добавляем анимацию */
}

/* Анимация для box-shadow кнопки */
@keyframes animate-button-shadow {
    0% {
        box-shadow: 0 0 10px GOLD;
    }
    25% {
        box-shadow: -5px 0 15px #ff0000, 5px 0 15px #ff7300;
    }
    50% {
        box-shadow: -5px 0 15px #fffb00, 5px 0 15px #48ff00;
    }
    75% {
        box-shadow: -5px 0 15px #00ffd5, 5px 0 15px #002bff;
    }
    100% {
        box-shadow: 0 0 10px GOLD;
    }
}

button:hover {
    background-color: #00ff00;
    animation: none; /* Отключаем анимацию при наведении */
    box-shadow: 0 0 20px GOLD; /* Можно оставить статический box-shadow при наведении */
}

input[type='number'] {
    -moz-appearance: textfield;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    /* Основные стили для мобильных устройств */
    body {
        font-size: 14px; /* Уменьшаем общий размер текста */
        padding: 10px;   /* Уменьшаем общий отступ */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Контент сдвигается вверх */
        align-items: center; /* Центрируем контент */
        text-align: center;
    }

    .neon-title {
        font-size: 2rem; /* Уменьшаем размер заголовка */
        padding: 5px;
        text-align: center;
        max-width: 100%;
    }

    .neon-subtitle {
        font-size: 1.2rem; /* Уменьшаем размер подзаголовков */
        margin: 10px 0;
    }

    .products {
        flex-direction: column; /* Элементы вертикально */
        gap: 20px; /* Уменьшаем расстояние между элементами */
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .products a img {
        width: 90%; /* Изображения занимают 90% ширины экрана */
        height: auto; /* Сохраняем пропорции */
        border-radius: 5px;
    }

    footer {
        font-size: 1rem; /* Уменьшаем размер шрифта в подвале */
        margin-top: 20px;
        text-align: center;
    }

    button {
        width: 100%; /* Кнопки на всю ширину экрана */
        padding: 12px; /* Увеличиваем отступы внутри кнопок для удобства */
        font-size: 1rem; /* Увеличиваем текст на кнопке для удобства */
        margin: 5px 0;
    }

    .payment-widget {
        padding: 15px; /* Уменьшаем отступы */
        font-size: 1rem;
    }

    .form-group label,
    .form-group input,
    .form-group select {
        font-size: 1rem; /* Увеличиваем текст в формах */
        padding: 10px; /* Увеличиваем отступы */
    }
    
    canvas {
        display: none; /* Отключаем Canvas на мобильных устройствах */
    }

    footer a {
        font-size: 1rem; /* Уменьшаем размер ссылки в подвале */
    }

    .neon-subtitle a {
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 15px;
    }
}
