/* ============================================================
   CASINO TEMPLATE — styles.css
   Цвета приходят из content.json через PHP → CSS variables
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ── Переменные (подставляет PHP из content.json) ── */
:root {
    --primary-bg:   #1A1A1A;
    --secondary-bg: #2A2A2A;
    --accent:       #D8A53B;
    --header-footer:#2A2A2A;
    --text:         #FFFFFF;
    --menu-text:    #FFFFFF;

    /* Фиксированные токены геометрии */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.18);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.28);
    --transition: 0.22s ease;
    --max-width:  1080px;

    /* Типографика */
    --font-display: 'Rajdhani', sans-serif;
    --font-body:    'Nunito', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Base ── */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Wrapper / Layout ── */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background-color: var(--header-footer);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

header img {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Nav ссылки */
nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--menu-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

nav a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

/* Кнопки хедера (Login / Register) */
.cx-pcvk7 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cx-xbdyy,
.cx-wg5jc {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--accent);
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cx-xbdyy {
    background: transparent;
    color: var(--accent);
}

.cx-xbdyy:hover {
    background: var(--accent);
    color: var(--header-footer);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.cx-wg5jc {
    background: var(--accent);
    color: var(--header-footer);
}

.cx-wg5jc:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Бургер */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--menu-text);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    line-height: 1;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.08);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 2rem 0 1.5rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 600;
    margin: 2.2rem 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
    letter-spacing: 0.015em;
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    margin: 1.75rem 0 0.6rem;
    color: var(--text);
}

h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: var(--accent);
}

p {
    margin-bottom: 1rem;
    font-size: 0.975rem;
    line-height: 1.75;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

strong, b {
    font-weight: 700;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

li {
    margin-bottom: 0.4rem;
    font-size: 0.975rem;
    line-height: 1.65;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.cx-6ya6e {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.cx-6ya6e a {
    color: var(--accent);
}

.cx-6ya6e a:hover {
    opacity: 0.75;
}

/* ============================================================
   OFFER BLOCK
   ============================================================ */
.cx-oitlm {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.cx-xdzhl {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow var(--transition), transform var(--transition);
}

.cx-xdzhl:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cx-xdzhl img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    padding: 4px;
    flex-shrink: 0;
}

.cx-dnlq4 {
    flex-grow: 1;
    min-width: 0;
}

.cx-dnlq4 strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cx-dnlq4 span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cx-l9ou8 {
    flex-shrink: 0;
}

.cx-l9ou8 a,
.cx-1pfux {
    display: inline-block;
    background: var(--accent);
    color: var(--header-footer);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: none;
}

.cx-l9ou8 a:hover,
.cx-1pfux:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    text-decoration: none;
    opacity: 1;
}

/* ============================================================
   CONTENT BLOCK
   ============================================================ */
.content {
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.content > h2:first-child,
.content > h3:first-child {
    margin-top: 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.content table,
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Горизонтальный скролл на мобиле */
.content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.content table th {
    white-space: nowrap;
    min-width: 80px;
}

.content table td {
    min-width: 80px;
}

.content .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.content .table-wrap table {
    margin-bottom: 0;
    min-width: 480px;
}

.content table th {
    background: var(--accent);
    color: var(--header-footer);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    letter-spacing: 0.03em;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.content table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
    vertical-align: top;
    white-space: normal;
}

.content table tr:last-child td {
    border-bottom: none;
}

.content table tr:nth-child(even) td {
    background: rgba(255,255,255,0.03);
}

.content table tr:hover td {
    background: rgba(255,255,255,0.06);
    transition: background var(--transition);
}

/* ============================================================
   FAQ — аккордеон
   ============================================================ */
.cx-bhcx5 {
    margin: 2rem 0;
}

.cx-bhcx5 h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.cx-7awlm,
[data-faq-item] {
    background: var(--secondary-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    margin-bottom: 0.6rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cx-7awlm h3,
[data-faq-item] h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background var(--transition);
    user-select: none;
    border-bottom: 1px solid transparent;
}

.cx-7awlm h3::after,
[data-faq-item] h3::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
    opacity: 0.7;
    transition: transform var(--transition), opacity var(--transition);
}

.cx-7awlm.open h3,
[data-faq-item].open h3 {
    background: rgba(255,255,255,0.04);
    border-bottom-color: rgba(255,255,255,0.07);
}

.cx-7awlm.open h3::after,
[data-faq-item].open h3::after {
    content: '×';
    opacity: 1;
    transform: rotate(0deg);
}

.cx-7awlm p,
[data-faq-item] p {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    margin: 0;
    font-size: 0.935rem;
    line-height: 1.7;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.cx-7awlm.open p,
[data-faq-item].open p {
    max-height: 600px;
    padding: 1rem 1.25rem;
}

/* ============================================================
   SLOTS BLOCK
   ============================================================ */
.cx-2diu8 {
    margin-bottom: 2rem;
}


.cx-mposo {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.cx-igeb2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--secondary-bg);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    position: relative;
}

.cx-igeb2:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-igeb2 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Overlay при ховере */
.cx-igeb2 .cx-gjr3i {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-md);
}

.cx-igeb2:hover .cx-gjr3i {
    opacity: 1;
}

.cx-gjr3i .cx-y4z32 {
    background: var(--accent);
    color: var(--header-footer);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
}

.cx-91m1f {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    padding: 0.3rem 0.4rem 0.4rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

/* Мобайл — горизонтальный скролл в один ряд */
@media (max-width: 768px) {
    .cx-mposo {
        grid-template-columns: none;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .cx-mposo::-webkit-scrollbar {
        display: none;
    }

    .cx-igeb2 {
        flex: 0 0 28vw;
        max-width: 120px;
        min-width: 90px;
    }
}


/* ============================================================
   HERO BANNER (CSS градиент, без картинки)
   ============================================================ */
.cx-lf1yq {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg,
        var(--header-footer) 0%,
        var(--primary-bg) 40%,
        color-mix(in srgb, var(--accent) 25%, var(--primary-bg)) 100%
    );
    overflow: hidden;
}

.cx-lf1yq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.cx-yqd24 {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.cx-3nqqe {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cx-zchei {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.cx-fjrq9 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.cx-0fdko {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.85rem 2.5rem;
    background: var(--accent);
    color: var(--header-footer);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-lg);
    text-decoration: none;
    align-self: flex-start;
    transition: filter var(--transition), transform var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cx-0fdko:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 1;
}

.cx-c7jef {
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .cx-yqd24 {
        padding: 2rem 1.25rem;
    }
    .cx-fjrq9 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .cx-0fdko {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   INLINE PLAY BUTTON (вставляется перед каждым 3-м h2)
   ============================================================ */
.cx-i26nm {
    text-align: center;
    margin: 1.75rem 0 0.5rem;
}

.cx-i26nm .cx-1pfux {
    display: inline-block;
    min-width: 220px;
}

/* ============================================================
   TOC — таблица содержания
   ============================================================ */
.cx-tx7bm {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    margin: 1.25rem 0 1.5rem;
    overflow: hidden;
}

.cx-na1sf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    gap: 1rem;
}

.cx-vbgue {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.cx-8fnxn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.cx-8fnxn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.cx-lafnc {
    padding: 0.25rem 1rem 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.cx-zsz7f {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.cx-j88ta {
    margin: 0;
    padding: 0;
}

.cx-j88ta a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition), color var(--transition);
    line-height: 1.4;
}

.cx-j88ta a:hover {
    opacity: 1;
    color: var(--accent);
    text-decoration: none;
}

/* Иерархия отступами */
.cx-obp1b a { padding-left: 0;      font-weight: 600; }
.cx-s50l1 a { padding-left: 1.25rem; font-weight: 400; opacity: 0.7; }
.cx-xk1ud a { padding-left: 2.25rem; font-weight: 400; opacity: 0.6; font-size: 0.82rem; }

/* Разделитель между h2 пунктами */
.cx-obp1b:not(:first-child) {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.2rem;
    padding-top: 0.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--header-footer);
    color: var(--menu-text);
    padding: 1.5rem 1.5rem 1.25rem;
    margin-top: auto;
}

.cx-gowbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.1rem;
    margin-bottom: 1rem;
}

.cx-gowbs a {
    color: var(--menu-text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.cx-gowbs a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-eouvg {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.cx-eouvg img {
    height: 36px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.cx-eouvg img:hover {
    opacity: 1;
}

.cx-haz8p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cx-haz8p a,
.cx-haz8p span {
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity var(--transition);
    text-decoration: none;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}

.cx-haz8p a:hover {
    opacity: 1;
    background: #ffffff;
}

.cx-haz8p img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.cx-gmof4 {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.55;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   STICKY HEADER (заменяет sticky banner)
   ============================================================ */
/* sticky header уже реализован через position:sticky на header */
/*
*/



/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 0.65rem 1rem;
        position: sticky;
        top: 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
        gap: 0.15rem;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }

    .cx-pcvk7 {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .cx-xbdyy,
    .cx-wg5jc {
        flex: 1;
        text-align: center;
    }

    h1 {
        margin: 1.5rem 0 1.1rem;
    }

    .content {
        padding: 1.25rem 1rem;
    }

    .cx-xdzhl {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cx-dnlq4 {
        width: 100%;
        text-align: center;
    }

    .cx-l9ou8 {
        width: 100%;
    }

    .cx-l9ou8 a {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Таблицы — скролл */
    .content table {
        font-size: 0.82rem;
    }

    .cx-gowbs a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }


}