:root {
    --primary-red: #ff4d4d;
    --accent-yellow: #ffcc00; /* Цвет для кнопки регистрации */
    --bg-black: #000000;
    --card-black: #0d0d0d;
    --text-white: #ffffff;
    --text-muted: #bcbcbc;
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Центрированное меню на десктопе */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Переключатель языков */
.lang-switcher {
    display: flex;
    gap: 8px;
    background: #1a1a1a;
    padding: 5px;
    border-radius: 8px;
    z-index: 10;
}

.lang-btn {
    text-decoration: none;
    color: #fff;
    padding: 10px 18px;
    font-weight: 900;
    font-size: 14px;
    border-radius: 6px;
}

.lang-btn.active { background: var(--primary-red); }

/* Бургер-иконка */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav-toggle span {
    width: 35px;
    height: 4px;
    background: #fff;
    transition: 0.3s;
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
}

/* Логотип отделен от заголовка */
.logo-container {
    display: block;
    margin: 0 auto 40px; 
}

.logo-img {
    max-width: 180px;
    height: auto;
}

/* ОРИГИНАЛЬНЫЙ ДЕСКТОПНЫЙ H1 */
h1 {
    font-size: clamp(2rem, 7vw, 4.3rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.accent { color: var(--primary-red); }

/* --- КНОПКИ --- */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.btn {
    padding: 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
    text-align: center;
}

.btn-filled { background-color: var(--primary-red); color: white; }

/* ЖЕЛТАЯ КНОПКА */
.btn-yellow { 
    background-color: var(--accent-yellow); 
    color: #000; 
}
.btn-yellow:hover {
    background-color: #e6b800;
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.4);
    transform: translateY(-3px);
}

/* --- КОНТЕНТ --- */
.section-padding { padding: 80px 0; }
.info-card { background: var(--card-black); padding: 50px; border-radius: 12px; border-left: 4px solid var(--primary-red); }
.title-red { margin-bottom: 25px; font-weight: 700; text-transform: uppercase; }
p { color: var(--text-muted); font-size: 1.1rem; }
strong, b { color: var(--text-white); font-weight: 700; }
.info-card strong, .info-card b { color: var(--primary-red); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 20px 0; }
.card { background: var(--card-black); padding: 40px; border-radius: 12px; }
h3 { margin-bottom: 30px; font-weight: 700; font-size: 1.2rem; text-transform: uppercase; }

.custom-ul li { position: relative; padding-left: 28px; margin-bottom: 18px; color: var(--text-muted); list-style: none; }
.custom-ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background-color: var(--primary-red); border-radius: 50%; }

.table-box { background: var(--card-black); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 22px; text-align: left; border-bottom: 1px solid #1a1a1a; }
th { color: var(--primary-red); text-transform: uppercase; font-size: 0.8rem; background: #080808; }

/* --- СТИЛЬНЫЙ БЛОК ПРИЗЫВА К ДЕЙСТВИЮ (CTA BLOCK) --- */
.cta-block {
    background: linear-gradient(145deg, #111111 0%, #050505 100%);
    border: 1px solid rgba(255, 77, 77, 0.15); /* Едва заметная красная рамка */
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    margin: 50px 0; /* Отступы сверху и снизу, чтобы отделить от текста */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.cta-block h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-block p {
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.cta-block-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Позволяет кнопкам переноситься, если экран узкий */
}

/* Переопределяем ширину кнопок специально для этого блока */
.cta-block-buttons .btn {
    padding: 18px 30px;
    min-width: 240px;
}

/* --- СТИЛЬНЫЙ БЛОК ДЛЯ КАРТИНОК --- */
.image-block {
    margin: 50px auto; /* Отступы сверху и снизу */
    text-align: center;
    max-width: 100%; /* Чтобы блок не вылезал за края контейнера */
}

.image-block img {
    width: 100%;
    max-width: 800px; /* Ограничиваем максимальную ширину картинки */
    height: auto;
    border-radius: 12px; /* Скругление в стиле сайта */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Мягкая тень */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Едва заметная рамка */
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Легкое увеличение при наведении (по желанию, можно удалить) */
.image-block img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #050505; /* Чуть темнее основного фона для контраста */
    border-top: 1px solid #1a1a1a;
    padding: 60px 0 40px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-info {
    max-width: 600px;
    margin: 0 auto;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-info .copyright {
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 20px;
}

.responsible-gambling {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.responsible-gambling a {
    color: var(--text-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.responsible-gambling a:hover {
    color: var(--primary-red);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

/* Мобильная адаптация футера (вставь этот кусочек ВНУТРЬ твоего @media (max-width: 850px) в самый низ) */
@media (max-width: 850px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-black);
    border-radius: 8px;
    overflow: hidden;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-left-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 22px 30px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 700;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-red);
}

.faq-icon {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-red);
    transition: transform 0.4s ease;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Превращаем плюс в крестик */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
    max-height: 300px; /* Достаточно для текста ответа */
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
}


/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@media (max-width: 850px) {
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.98); flex-direction: column; align-items: center; justify-content: center;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0); transform: none; left: auto; gap: 40px; z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 32px; font-weight: 900; letter-spacing: 3px; }

    .mobile-nav-toggle { display: flex; z-index: 1001; }
    .mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .hero { height: 100dvh; padding-top: 120px; }
    .logo-container { margin-bottom: 25px; }
    .logo-img { max-width: 140px; }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        line-height: 1.2;
        letter-spacing: 0.02em;
        margin-bottom: 30px;
    }

    .grid-2 { grid-template-columns: 1fr; }
    .info-card { padding: 30px; }

    /* Мобильная адаптация кнопок в CTA-блоке */
    .cta-block {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .cta-block-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-block-buttons .btn {
        width: 100%;
    }

    /* Мобильная адаптация картинок */
    .image-block {
        margin: 35px 0;
    }

    

/* --- АДАПТАЦИЯ ВСЕХ ТАБЛИЦ ДЛЯ МОБИЛЬНЫХ --- */
    .table-box thead {
        display: none;
    }

    .table-box table, 
    .table-box tbody, 
    .table-box tr, 
    .table-box td {
        display: block;
        width: 100%;
    }

    .table-box tr {
        margin-bottom: 15px;
        border-bottom: 2px solid var(--primary-red);
    }

 .table-box td {
        display: flex;
        justify-content: space-between; /* Расталкиваем заголовок и текст по краям */
        align-items: center; /* Выравниваем по центру по вертикали */
        gap: 20px; /* МАГИЯ ЗДЕСЬ: Защитный интервал, чтобы тексты никогда не наезжали друг на друга */
        padding: 15px 20px;
        border-bottom: 1px solid #1a1a1a;
        min-height: 45px;
        text-align: right; /* Правый текст выравнивается по правому краю */
        word-break: break-word; /* Позволяет длинным словам или ссылкам переноситься */
    }

    /* Берем заголовок из атрибута, который создал наш скрипт */
    .table-box td::before {
        content: attr(data-label);
        position: static; /* УБРАЛИ ABSOLUTE */
        flex-shrink: 0; /* Запрещаем красному заголовку сжиматься */
        max-width: 45%; /* Красный заголовок занимает не больше 45% ширины */
        text-align: left;
        font-weight: 700;
        color: var(--primary-red);
        text-transform: uppercase;
        font-size: 0.75rem;
        line-height: 1.3;
    }
}