/* ============================================================
   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:   #0D121A;
    --secondary-bg: #222538;
    --accent:       #60E193;
    --header-footer:#222538;
    --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-r4phy {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cx-utalv,
.cx-cljjb {
    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-utalv {
    background: transparent;
    color: var(--accent);
}

.cx-utalv:hover {
    background: var(--accent);
    color: var(--header-footer);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.cx-cljjb {
    background: var(--accent);
    color: var(--header-footer);
}

.cx-cljjb: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-77gyu {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.cx-77gyu a {
    color: var(--accent);
}

.cx-77gyu a:hover {
    opacity: 0.75;
}

/* ============================================================
   OFFER BLOCK
   ============================================================ */
.cx-2yohd {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.cx-w66c1 {
    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-w66c1:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cx-w66c1 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-n87l2 {
    flex-grow: 1;
    min-width: 0;
}

.cx-n87l2 strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cx-n87l2 span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cx-wb76v {
    flex-shrink: 0;
}

.cx-wb76v a,
.cx-eyjxz {
    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-wb76v a:hover,
.cx-eyjxz: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-ihgd1 {
    margin: 2rem 0;
}

.cx-ihgd1 h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.cx-p9lcw,
[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-p9lcw 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-p9lcw 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-p9lcw.open h3,
[data-faq-item].open h3 {
    background: rgba(255,255,255,0.04);
    border-bottom-color: rgba(255,255,255,0.07);
}

.cx-p9lcw.open h3::after,
[data-faq-item].open h3::after {
    content: '×';
    opacity: 1;
    transform: rotate(0deg);
}

.cx-p9lcw 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-p9lcw.open p,
[data-faq-item].open p {
    max-height: 600px;
    padding: 1rem 1.25rem;
}

/* ============================================================
   SLOTS BLOCK
   ============================================================ */
.cx-pvvbc {
    margin-bottom: 2rem;
}


.cx-8h9b0 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.cx-n7uh8 {
    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-n7uh8:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-n7uh8 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Overlay при ховере */
.cx-n7uh8 .cx-ujv0c {
    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-n7uh8:hover .cx-ujv0c {
    opacity: 1;
}

.cx-ujv0c .cx-87y6j {
    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-4ptx6 {
    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-8h9b0 {
        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-8h9b0::-webkit-scrollbar {
        display: none;
    }

    .cx-n7uh8 {
        flex: 0 0 28vw;
        max-width: 120px;
        min-width: 90px;
    }
}


/* ============================================================
   HERO BANNER (CSS градиент, без картинки)
   ============================================================ */
.cx-t5gnx {
    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-t5gnx::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-bqwoe {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.cx-yg881 {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cx-v4ymk {
    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-j2zm7 {
    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-mpowp {
    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-mpowp:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 1;
}

.cx-5utsq {
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .cx-bqwoe {
        padding: 2rem 1.25rem;
    }
    .cx-j2zm7 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .cx-mpowp {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   INLINE PLAY BUTTON (вставляется перед каждым 3-м h2)
   ============================================================ */
.cx-6nzd7 {
    text-align: center;
    margin: 1.75rem 0 0.5rem;
}

.cx-6nzd7 .cx-eyjxz {
    display: inline-block;
    min-width: 220px;
}

/* ============================================================
   TOC — таблица содержания
   ============================================================ */
.cx-tv3ln {
    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-5534c {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    gap: 1rem;
}

.cx-fmqvi {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.cx-omm0a {
    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-omm0a:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.cx-931ga {
    padding: 0.25rem 1rem 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.cx-lgscb {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.cx-w7mp1 {
    margin: 0;
    padding: 0;
}

.cx-w7mp1 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-w7mp1 a:hover {
    opacity: 1;
    color: var(--accent);
    text-decoration: none;
}

/* Иерархия отступами */
.cx-v38e1 a { padding-left: 0;      font-weight: 600; }
.cx-4x6im a { padding-left: 1.25rem; font-weight: 400; opacity: 0.7; }
.cx-99r54 a { padding-left: 2.25rem; font-weight: 400; opacity: 0.6; font-size: 0.82rem; }

/* Разделитель между h2 пунктами */
.cx-v38e1: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-h3tzv {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.1rem;
    margin-bottom: 1rem;
}

.cx-h3tzv 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-h3tzv a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-emmbb {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.cx-emmbb img {
    height: 36px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.cx-emmbb img:hover {
    opacity: 1;
}

.cx-h0cem {
    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-h0cem a,
.cx-h0cem 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-h0cem a:hover {
    opacity: 1;
    background: #ffffff;
}

.cx-h0cem img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.cx-tslm4 {
    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-r4phy {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .cx-utalv,
    .cx-cljjb {
        flex: 1;
        text-align: center;
    }

    h1 {
        margin: 1.5rem 0 1.1rem;
    }

    .content {
        padding: 1.25rem 1rem;
    }

    .cx-w66c1 {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cx-n87l2 {
        width: 100%;
        text-align: center;
    }

    .cx-wb76v {
        width: 100%;
    }

    .cx-wb76v a {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Таблицы — скролл */
    .content table {
        font-size: 0.82rem;
    }

    .cx-h3tzv a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }


}