/* Эпичная цветовая палитра */
:root {
  --primary-dark: #0F1923;      /* Темно-синий */
  --primary: #1A2C42;           /* Глубокий синий */
  --secondary: #B91C1C;         /* Насыщенный красный */
  --secondary-hover: #DC2626;   /* Ярко-красный для эффектов наведения */
  --accent: #FFD700;            /* Золотой акцент */
  --accent-dark: #E0A800;       /* Темно-золотой */
  --text-light: #F3F4F6;        /* Светлый текст */
  --gray-dark: #1C1C1C;         /* Темно-серый фон */
  --gray-light: #939393;        /* Светло-серый для границ */
}

/* Основные стили */
* {
    box-sizing: border-box;
    transition: 0.4s ease all;
}

body {
    margin: 0;
    font-family: "Montserrat", serif;
    background: var(--primary-dark);
    color: var(--text-light);
    background-image: linear-gradient(to bottom, var(--primary-dark), var(--primary));
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bg {
    background: url("../img/bg.png") no-repeat center center;
    background-size: cover;
    position: relative;
}

.bg:after {
    content: '';
    position: absolute;
    top: 0;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(15, 25, 35, 0.6), rgba(15, 25, 35, 0.9));
    z-index: 1;
}

#choose {
    padding-bottom: 40px;
    position: relative;
    z-index: 9;
}

/* Навигация */
.navbar {
    top: 0;
    width: 100%;
    padding: 28px 0;
    background: var(--primary-dark);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.navbar a:hover {
    opacity: 1;
    color: var(--accent);
}

.navbar a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.navbar a:hover:after {
    width: 100%;
}

/* Кнопки */
.btn {
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.btn-red {
    background: var(--secondary);
    color: white;
}

.btn-red:hover {
    background: var(--secondary-hover);
}

.btn-white {
    background: white;
    color: var(--primary-dark);
}

.btn-white:hover {
    background: #f0f0f0;
}

.btn-blue {
    background: #1e40af;
    color: white;
}

.btn-blue:hover {
    background: #1e3a8a;
}

.btn-green {
    background: #4E9800;
    color: white;
}

.btn-green:hover {
    background: #3F7A00;
}

.btn-light-red {
    background: #ED2329;
    color: white;
}

.btn-light-red:hover {
    background: #d21115;
}

/* Секция казино */
.casino-wrapper {
    display: flex;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.casino-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(147, 147, 147, 0.2);
    background: var(--gray-dark);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.casino-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.casino-item:hover:before {
    transform: scaleX(1);
}

.casino-item h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.casino-item p {
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.casino img {
    max-height: 140px;
    transition: transform 0.3s ease;
}

.casino-item:hover img {
    transform: scale(1.05);
}

/* Заголовки */
h1 {
    font-size: 96px;
    margin: 0;
    padding-bottom: 40px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 35px;
    padding-bottom: 15px;
    margin: 0;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    bottom: 5px;
    left: 0;
}

.info h2:after {
    left: 0;
}

/* Футер */
footer {
    padding: 40px 70px;
    border: none;
    margin: 40px 0;
    background: var(--primary);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.logo-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-info img {
    width: auto;
    max-height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-info img:hover {
    opacity: 1;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    text-transform: uppercase;
}

.footer-age {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 21, 21, 0.7);
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    position: relative;
    padding-bottom: 5px;
}

.footer-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover:after {
    width: 100%;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 350px;
    position: relative;
    color: black;
    border: 2px solid var(--accent);
}

.modal .age-circle {
    background-color: var(--secondary);
    color: white;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(185, 28, 28, 0.4);
}

.modal h2 {
    font-size: 22px;
    padding-bottom: 15px;
    color: black;
    text-align: center;
}

.modal h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.modal button {
    background-color: var(--accent);
    border: none;
    color: black;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.modal button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media screen and (max-width: 1200px) {
    h1 {
        font-size: 72px;
    }

    h2 {
        font-size: 28px;
    }

    .btn {
        padding: 10px 25px;
    }
}

@media screen and (max-width: 830px) {
    h1 {
        font-size: 48px;
    }

    .casino-item {
        width: 100%;
        margin-bottom: 20px;
    }

    footer {
        padding: 30px 20px;
    }

    .footer-info,
    .footer-age {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media screen and (max-width: 540px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}