/* ============================================================
   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:   #147FC2;
    --secondary-bg: #071458;
    --accent:       #0A99FF;
    --header-footer:#071458;
    --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-l1564 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cx-h1swy,
.cx-jtwz2 {
    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-h1swy {
    background: transparent;
    color: var(--accent);
}

.cx-h1swy:hover {
    background: var(--accent);
    color: var(--header-footer);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.cx-jtwz2 {
    background: var(--accent);
    color: var(--header-footer);
}

.cx-jtwz2: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-spnc6 {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.cx-spnc6 a {
    color: var(--accent);
}

.cx-spnc6 a:hover {
    opacity: 0.75;
}

/* ============================================================
   OFFER BLOCK
   ============================================================ */
.cx-xpwhm {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.cx-k31sz {
    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-k31sz:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cx-k31sz 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-yy5ty {
    flex-grow: 1;
    min-width: 0;
}

.cx-yy5ty strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cx-yy5ty span {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cx-wltry {
    flex-shrink: 0;
}

.cx-wltry a,
.cx-ascd0 {
    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-wltry a:hover,
.cx-ascd0: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-31kpq {
    margin: 2rem 0;
}

.cx-31kpq h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

.cx-upvqy,
[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-upvqy 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-upvqy 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-upvqy.open h3,
[data-faq-item].open h3 {
    background: rgba(255,255,255,0.04);
    border-bottom-color: rgba(255,255,255,0.07);
}

.cx-upvqy.open h3::after,
[data-faq-item].open h3::after {
    content: '×';
    opacity: 1;
    transform: rotate(0deg);
}

.cx-upvqy 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-upvqy.open p,
[data-faq-item].open p {
    max-height: 600px;
    padding: 1rem 1.25rem;
}

/* ============================================================
   SLOTS BLOCK
   ============================================================ */
.cx-41p0f {
    margin-bottom: 2rem;
}


.cx-jrjaw {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.cx-xjdnx {
    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-xjdnx:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-xjdnx img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Overlay при ховере */
.cx-xjdnx .cx-ffa67 {
    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-xjdnx:hover .cx-ffa67 {
    opacity: 1;
}

.cx-ffa67 .cx-w1ptr {
    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-q71xg {
    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-jrjaw {
        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-jrjaw::-webkit-scrollbar {
        display: none;
    }

    .cx-xjdnx {
        flex: 0 0 28vw;
        max-width: 120px;
        min-width: 90px;
    }
}


/* ============================================================
   HERO BANNER (CSS градиент, без картинки)
   ============================================================ */
.cx-iq0l8 {
    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-iq0l8::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-kr1zw {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.cx-mhevc {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cx-3zsfn {
    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-7h2be {
    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-xdvy9 {
    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-xdvy9:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 1;
}

.cx-z5b95 {
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .cx-kr1zw {
        padding: 2rem 1.25rem;
    }
    .cx-7h2be {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
    .cx-xdvy9 {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   INLINE PLAY BUTTON (вставляется перед каждым 3-м h2)
   ============================================================ */
.cx-bld2h {
    text-align: center;
    margin: 1.75rem 0 0.5rem;
}

.cx-bld2h .cx-ascd0 {
    display: inline-block;
    min-width: 220px;
}

/* ============================================================
   TOC — таблица содержания
   ============================================================ */
.cx-vjunf {
    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-jvl55 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    gap: 1rem;
}

.cx-l5309 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.cx-mefbm {
    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-mefbm:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.cx-rw4a7 {
    padding: 0.25rem 1rem 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.cx-jopsh {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.cx-elh61 {
    margin: 0;
    padding: 0;
}

.cx-elh61 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-elh61 a:hover {
    opacity: 1;
    color: var(--accent);
    text-decoration: none;
}

/* Иерархия отступами */
.cx-fnyvh a { padding-left: 0;      font-weight: 600; }
.cx-swscc a { padding-left: 1.25rem; font-weight: 400; opacity: 0.7; }
.cx-zytnx a { padding-left: 2.25rem; font-weight: 400; opacity: 0.6; font-size: 0.82rem; }

/* Разделитель между h2 пунктами */
.cx-fnyvh: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-cwov1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.1rem;
    margin-bottom: 1rem;
}

.cx-cwov1 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-cwov1 a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}

.cx-t25ih {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.cx-t25ih img {
    height: 36px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.cx-t25ih img:hover {
    opacity: 1;
}

.cx-zo4hr {
    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-zo4hr a,
.cx-zo4hr 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-zo4hr a:hover {
    opacity: 1;
    background: #ffffff;
}

.cx-zo4hr img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.cx-bokds {
    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-l1564 {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .cx-h1swy,
    .cx-jtwz2 {
        flex: 1;
        text-align: center;
    }

    h1 {
        margin: 1.5rem 0 1.1rem;
    }

    .content {
        padding: 1.25rem 1rem;
    }

    .cx-k31sz {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cx-yy5ty {
        width: 100%;
        text-align: center;
    }

    .cx-wltry {
        width: 100%;
    }

    .cx-wltry a {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Таблицы — скролл */
    .content table {
        font-size: 0.82rem;
    }

    .cx-cwov1 a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }


}