/* ============================================================
   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:   #1E2026;
    --secondary-bg: #000000;
    --accent:       #FCEE21;
    --header-footer:#000000;
    --text:         #F5F5F5;
    --menu-text:    #F5F5F5;

    /* Фиксированные токены геометрии */
    --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-h853c {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cx-ugeur,
.cx-qk9hc {
    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-ugeur {
    background: transparent;
    color: var(--accent);
}

.cx-ugeur:hover {
    background: var(--accent);
    color: var(--header-footer);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.cx-qk9hc {
    background: var(--accent);
    color: var(--header-footer);
}

.cx-qk9hc: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-fo11m {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.cx-fo11m a {
    color: var(--accent);
}

.cx-fo11m a:hover {
    opacity: 0.75;
}

/* ============================================================
   OFFER BLOCK
   ============================================================ */
.cx-gfpha {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.cx-6517y {
    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-6517y:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cx-6517y 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-mkssn {
    flex-grow: 1;
    min-width: 0;
}

.cx-mkssn strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cx-mkssn span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cx-o4bgz {
    flex-shrink: 0;
}

.cx-o4bgz a,
.cx-gmcjo {
    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-o4bgz a:hover,
.cx-gmcjo: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-52qlj {
    margin: 2rem 0;
}

.cx-52qlj h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.cx-xzu27,
[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-xzu27 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-xzu27 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-xzu27.open h3,
[data-faq-item].open h3 {
    background: rgba(255,255,255,0.04);
    border-bottom-color: rgba(255,255,255,0.07);
}

.cx-xzu27.open h3::after,
[data-faq-item].open h3::after {
    content: '×';
    opacity: 1;
    transform: rotate(0deg);
}

.cx-xzu27 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-xzu27.open p,
[data-faq-item].open p {
    max-height: 600px;
    padding: 1rem 1.25rem;
}

/* ============================================================
   SLOTS BLOCK
   ============================================================ */
.cx-z9geu {
    margin-bottom: 2rem;
}


.cx-18c3s {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.cx-0fgys {
    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-0fgys:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-0fgys img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Overlay при ховере */
.cx-0fgys .cx-7tuqm {
    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-0fgys:hover .cx-7tuqm {
    opacity: 1;
}

.cx-7tuqm .cx-h5syd {
    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-w5or8 {
    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-18c3s {
        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-18c3s::-webkit-scrollbar {
        display: none;
    }

    .cx-0fgys {
        flex: 0 0 28vw;
        max-width: 120px;
        min-width: 90px;
    }
}


/* ============================================================
   HERO BANNER (CSS градиент, без картинки)
   ============================================================ */
.cx-nmc3u {
    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-nmc3u::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-bsguv {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.cx-ahilw {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cx-u9ph8 {
    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-pikqv {
    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-lnjmc {
    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-lnjmc:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 1;
}

.cx-0xzfg {
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .cx-bsguv {
        padding: 2rem 1.25rem;
    }
    .cx-pikqv {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .cx-lnjmc {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   INLINE PLAY BUTTON (вставляется перед каждым 3-м h2)
   ============================================================ */
.cx-7hesa {
    text-align: center;
    margin: 1.75rem 0 0.5rem;
}

.cx-7hesa .cx-gmcjo {
    display: inline-block;
    min-width: 220px;
}

/* ============================================================
   TOC — таблица содержания
   ============================================================ */
.cx-utikz {
    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-vmwqv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    gap: 1rem;
}

.cx-5jm7r {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.cx-5neko {
    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-5neko:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.cx-vux33 {
    padding: 0.25rem 1rem 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.cx-xtiog {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.cx-h8s5y {
    margin: 0;
    padding: 0;
}

.cx-h8s5y 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-h8s5y a:hover {
    opacity: 1;
    color: var(--accent);
    text-decoration: none;
}

/* Иерархия отступами */
.cx-sa7d3 a { padding-left: 0;      font-weight: 600; }
.cx-c1c0i a { padding-left: 1.25rem; font-weight: 400; opacity: 0.7; }
.cx-x6kqg a { padding-left: 2.25rem; font-weight: 400; opacity: 0.6; font-size: 0.82rem; }

/* Разделитель между h2 пунктами */
.cx-sa7d3: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-nw1gt {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.1rem;
    margin-bottom: 1rem;
}

.cx-nw1gt 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-nw1gt a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-oj4gm {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.cx-oj4gm img {
    height: 36px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.cx-oj4gm img:hover {
    opacity: 1;
}

.cx-74ggm {
    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-74ggm a,
.cx-74ggm 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-74ggm a:hover {
    opacity: 1;
    background: #ffffff;
}

.cx-74ggm img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.cx-jobuw {
    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-h853c {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .cx-ugeur,
    .cx-qk9hc {
        flex: 1;
        text-align: center;
    }

    h1 {
        margin: 1.5rem 0 1.1rem;
    }

    .content {
        padding: 1.25rem 1rem;
    }

    .cx-6517y {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cx-mkssn {
        width: 100%;
        text-align: center;
    }

    .cx-o4bgz {
        width: 100%;
    }

    .cx-o4bgz a {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Таблицы — скролл */
    .content table {
        font-size: 0.82rem;
    }

    .cx-nw1gt a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }


}