/* Основные цвета для темы "Чёрная гора" */
:root {
    --primary-dark: #000000;        /* Глубокий чёрный для фона */
    --secondary-dark: #0D0D0D;      /* Тёмно-серый для элементов */
    --accent-red: #BF0813;         /* Кроваво-красный для акцентов */
    --accent-purple: #3A1758;      /* Тёмно-фиолетовый для магии */
    --accent-gold: #C8A951;        /* Золотой для драконьих сокровищ */
    --text-light: #FFFFFF;         /* Светлый текст */
    --text-fire: #FF5E1A;          /* Огненный текст */
    --shadow-color: #000;          /* Тень */
    --dragon-red: #9E0B0F;         /* Цвет драконьей чешуи */
    --wizard-blue: #1F1E3D;        /* Оттенок для магии колдунов */
    --mountain-dark: #080808;      /* Цвет горных скал */
}

/* Основные элементы */
body {
    background: #050505;
    background: linear-gradient(to bottom, #000000, #06020A);
    color: var(--text-light);
}

/* Заголовки */
h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 94, 26, 0.5);
    letter-spacing: 2px;
}

h1 {
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(200, 169, 81, 0.7), 0 0 30px rgba(200, 169, 81, 0.4);
}

h2 {
    color: var(--text-fire);
    border-bottom: 2px solid var(--accent-purple);
}

h3 {
    color: var(--accent-gold);
}

/* Навигация */
.navbar {
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9), rgba(58, 23, 88, 0.7));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--accent-purple);
}

.menu-items li {
    position: relative;
}

.menu-items li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.menu-items li:hover::after {
    width: 100%;
}

.navbar a {
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.navbar a:hover {
    color: var(--accent-gold);
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: var(--accent-gold);
}

/* Кнопки */
.btn {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-red {
    background: linear-gradient(to right, var(--accent-red), #D62C36);
    color: white;
}

.btn-white {
    background: linear-gradient(to right, #E1E1E1, #FFFFFF);
    color: var(--primary-dark);
}

.btn-blue {
    background: linear-gradient(to right, #201C58, var(--accent-purple));
    color: white;
}

.btn-green {
    background: linear-gradient(to right, #2E5800, #4E9800);
    color: white;
}

.btn-light-red {
    background: linear-gradient(to right, #BF0813, #ED2329);
    color: white;
}

.casino-item {
    background: linear-gradient(145deg, #0D0D0D, #060606);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), inset 0 0 5px rgba(200, 169, 81, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.casino-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.1), transparent 30%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(191, 8, 19, 0.5);
}

.casino-item:hover::before {
    opacity: 1;
}

.casino-item h4 {
    color: var(--accent-gold);
}

.casino-item p {
    color: #BBBBBB;
    font-style: italic;
}

/* Футер */
footer {
    background: linear-gradient(to bottom, rgba(25, 25, 25, 0.7), rgba(10, 10, 10, 0.9));
    border: none;
    border-top: 1px solid var(--accent-purple);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
}

.footer-info {
    border-bottom: 1px solid rgba(58, 23, 88, 0.5);
}

.footer-age {
    background: linear-gradient(to right, rgba(25, 25, 25, 0.7), rgba(58, 23, 88, 0.3));
}

.footer-links a {
    color: var(--text-light);
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Модальное окно */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(5px);
}

.modal-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at center, rgba(58, 23, 88, 0.2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.modal {
    background: linear-gradient(145deg, #0D0D0D, #060606);
    color: var(--text-light);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(191, 8, 19, 0.5), 0 0 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, rgba(200, 169, 81, 0.08), transparent 30%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.modal .age-circle {
    background: linear-gradient(145deg, var(--accent-red), #D62C36);
    box-shadow: 0 0 15px rgba(191, 8, 19, 0.7);
}

.modal h2 {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.modal button {
    background: linear-gradient(to right, var(--accent-gold), #DDBC67);
    color: var(--primary-dark);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modal button:hover {
    background: linear-gradient(to right, #DDBC67, var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

/* Секции */
section {
    position: relative;
}


/* Колонки и контейнеры */
.container {
    position: relative;
}

.flex-cont {
    position: relative;
}

.col, .col-2, .col-3 {
    position: relative;
}

/* Эффект свечения при наведении на изображения */
img {
    transition: all 0.5s ease;
    filter: brightness(0.9) saturate(1.1);
}

img:hover {
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 0 25px rgba(200, 169, 81, 0.3);
}

/* Инфо-блок */
.info {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.9), rgba(5, 5, 5, 0.95));
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 5px 5px 0;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(58, 23, 88, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M30,30 L70,30 L70,70 L30,70 Z' fill='none' stroke='%233A1758' stroke-width='0.5' stroke-dasharray='2,1' stroke-opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Анимация для лого */
.logo img {
    filter: drop-shadow(0 0 8px rgba(200, 169, 81, 0.5));
}

/* Дополнительные элементы для сайта о Чёрной горе */
/* Главный герой/баннер */
#choose {
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

#choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(58, 23, 88, 0.1) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

#choose::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97l-1.414 1.414L0 36.485v-2.83zm0 5.657L8.485 47.8l-1.414 1.414L0 42.142v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.343 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.414 1.414L60 36.485v-2.83zm0 5.657L51.515 47.8l1.414 1.414L60 42.142v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413L30 11.8l7.07 7.07z' fill='%23440F7F' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Элементы для драконов и колдунов */
.casino img {
    filter: drop-shadow(0 0 10px rgba(158, 11, 15, 0.4));
    transition: all 0.5s ease;
}

.casino img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(158, 11, 15, 0.7));
}

/* Волшебный свиток/карта */
.request {
    position: relative;
    background: linear-gradient(145deg, #0D0D0D, #0A0A0A);
    border: 1px solid var(--accent-gold);
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(200, 169, 81, 0.1);
    border-radius: 5px;
    z-index: 1;
}

.request::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%23C8A951' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.request p {
    color: var(--text-light);
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}


/* Эффект огненной тени для драконов */
.img-responsive {
    position: relative;
}

.img-responsive::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(191, 8, 19, 0.5), transparent 70%);
    filter: blur(5px);
    opacity: 0.7;
    pointer-events: none;
}

/* Стилизация для контейнера с контентом */
.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20L0 20z' fill='%23440F7F' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}