*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0e27;
    --bg-card: #111638;
    --bg-header: #080c22;
    --bg-drawer: #0c1030;
    --gold: #c9a84c;
    --gold-hover: #dbbe62;
    --gold-dim: rgba(201, 168, 76, 0.12);
    --white: #f0ece4;
    --gray: #8888a8;
    --gray-dim: #5a5a78;
    --border: rgba(201, 168, 76, 0.1);
    --border-light: rgba(201, 168, 76, 0.2);
    --font: 'Montserrat', sans-serif;
    --header-h: 58px;
    --max-w: 1320px;
    --radius: 10px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1.5px solid transparent;
    letter-spacing: 0.3px;
}

.btn--gold {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    box-shadow: 0 0 18px rgba(201, 168, 76, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--border-light);
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn--full {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
}


/* ========== HEADER ========== */

.header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    color: var(--white);
    transition: background 0.2s;
    flex-shrink: 0;
}

.header__burger:hover {
    background: rgba(201, 168, 76, 0.1);
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

.header__nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    border-radius: 6px;
    transition: color 0.2s;
}

.header__nav a:hover {
    color: var(--white);
}

.header__nav a.is-active {
    color: var(--gold);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__lang {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    transition: border-color 0.2s;
}

.header__lang:hover {
    border-color: var(--gold);
}

.header__search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    color: var(--gray);
    transition: color 0.2s, border-color 0.2s;
}

.header__search:hover {
    color: var(--gold);
    border-color: var(--gold);
}


/* ========== DRAWER ========== */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer.is-open .drawer__backdrop {
    opacity: 1;
}

.drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 88vw;
    height: 100%;
    background: var(--bg-drawer);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.15) transparent;
}

.drawer.is-open .drawer__panel {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    flex-shrink: 0;
}

.drawer__logo img {
    max-height: 28px;
    width: auto;
}

.drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    transition: color 0.2s;
}

.drawer__close:hover {
    color: var(--gold);
}

.drawer__auth {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.drawer__nav {
    flex: 1;
    padding: 0 12px;
}

.drawer__nav ul {
    display: flex;
    flex-direction: column;
}

.drawer__nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.drawer__nav a:hover {
    color: var(--gold);
}

.drawer__nav a svg {
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.7;
}

.drawer__nav a:hover svg {
    opacity: 1;
}

.drawer__nav li:last-child a {
    border-bottom: none;
}


/* ========== PAGE CONTENT ========== */

.page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}


/* ========== HERO ========== */

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
}

.hero__main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.hero-slide__bg {
    position: relative;
}

.hero-slide__img {
    width: 100%;
    height: 320px;
    display: block;
}

.hero-slide__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    max-width: 500px;
    background: linear-gradient(90deg, rgba(10, 14, 39, 0.88) 0%, rgba(10, 14, 39, 0.5) 50%, transparent 100%);
}

.hero-slide__title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-slide__value {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 2px 16px rgba(201, 168, 76, 0.3);
}

.hero-slide__or {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-shadow: none;
}

.hero-slide__cta {
    align-self: flex-start;
}

.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s, width 0.3s;
}

.hero-dot.is-active {
    background: var(--white);
    width: 40px;
}

.hero__side {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero__side:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero__side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg-card);
}

.hero__side-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: var(--gold);
    color: var(--bg);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 6px;
    white-space: nowrap;
}


/* ========== CATEGORIES ========== */

.categories {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.categories__track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.categories__track::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.cat-chip:hover {
    border-color: var(--border-light);
    background: rgba(201, 168, 76, 0.05);
}

.cat-chip.is-active {
    border-color: var(--gold);
    background: var(--gold-dim);
}

.cat-chip__icon {
    font-size: 18px;
    line-height: 1;
}

.cat-chip__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}

.cat-chip.is-active .cat-chip__label {
    color: var(--gold);
}


/* ========== GAMES SECTIONS ========== */

.games-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.games-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.games-section__title {
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
}

.games-section__all {
    padding: 7px 18px;
    background: var(--gold);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    transition: background 0.2s;
}

.games-section__all:hover {
    background: var(--gold-hover);
}

.games-row-wrap {
    position: relative;
}

.games-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.games-row::-webkit-scrollbar {
    display: none;
}

.games-row__arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid var(--border-light);
    color: var(--white);
    z-index: 5;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.games-row__arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}

.game-card {
    flex-shrink: 0;
    width: 155px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.15);
}

.game-card__link {
    position: relative;
    display: block;
}

.game-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--bg-card);
}

.game-card__hover {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.25s;
}

.game-card:hover .game-card__hover {
    opacity: 1;
}

.game-card__play {
    padding: 10px 24px;
    background: var(--gold);
    color: var(--bg);
    font-size: 13px;
    font-weight: 800;
    border-radius: 6px;
}

.game-card__demo {
    padding: 6px 18px;
    background: rgba(240, 236, 228, 0.12);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
}


/* ========== CONTENT ========== */

.content {
    width: 100%;
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

.content h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 18px;
}

.content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-top: 28px;
    margin-bottom: 12px;
}

.content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-top: 22px;
    margin-bottom: 10px;
}

.content p {
    margin-bottom: 14px;
}

.content img {
    display: block;
    max-width: 100%;
    border-radius: var(--radius);
    margin: 0 auto;
    margin-bottom: 16px;
}

.content blockquote {
    border-left: 3px solid var(--gold);
    padding: 12px 20px;
    margin: 18px 0;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.content th,
.content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    white-space: nowrap;
}

.content th {
    font-weight: 700;
    color: var(--white);
    background: rgba(201, 168, 76, 0.06);
}

.content tbody tr:hover {
    background: rgba(201, 168, 76, 0.04);
}

.content ul {
    margin: 14px 0;
    padding-left: 22px;
    list-style: disc;
}

.content ul li {
    margin-bottom: 6px;
}

.content ol {
    margin: 14px 0;
    padding-left: 22px;
    list-style: decimal;
}

.content ol li {
    margin-bottom: 6px;
}

.content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover {
    color: var(--gold-hover);
}


/* ========== FOOTER ========== */

.footer {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer__features {
    display: flex;
    justify-content: space-around;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer__feature span {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
}

.footer__mid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    gap: 40px;
}

.footer__mid-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 12px;
}

.footer__pay-icons {
    display: flex;
    gap: 8px;
}

.pay-badge {
    padding: 6px 14px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
}

.footer__social-icons {
    display: flex;
    gap: 12px;
}

.footer__social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--white);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__social-icons a:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-dim);
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.footer__col-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__col a {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--gold);
}

.footer__legal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
}

.footer__legal-text {
    flex: 1;
}

.footer__legal-text p {
    font-size: 12px;
    color: var(--gray-dim);
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer__legal-text p:last-child {
    margin-bottom: 0;
}

.footer__legal-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.footer__age {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
}

.footer__copy {
    font-size: 12px;
    color: var(--gray-dim);
    text-align: center;
    padding-bottom: 14px;
}


/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__side {
        height: 120px;
    }

    .hero__side-img {
        height: 120px;
        object-fit: cover;
        object-position: center;
    }

    .header__nav a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .footer__columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__lang {
        display: none;
    }

    .header__inner {
        padding: 0 14px;
        height: 50px;
    }

    .header__left {
        gap: 10px;
    }

    .header__logo img {
        max-height: 22px;
    }

    .header__right .btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .header__right {
        gap: 6px;
    }

    .page-content {
        padding: 16px 14px 32px;
        gap: 24px;
    }

    .hero__side {
        height: 140px;
    }

    .hero__side::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(10, 14, 39, 0.4);
        z-index: 1;
    }

    .hero__side-label {
        z-index: 2;
    }

    .hero__side-img {
        height: 140px;
    }

    .hero-slider {
        min-height: 200px;
    }

    .hero-slide__bg {
        min-height: 200px;
    }

    .hero-slide__bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(10, 14, 39, 0.3);
        z-index: 1;
    }

    .hero-slide__img {
        min-height: 200px;
        object-fit: cover;
        object-position: 65% center;
    }

    .hero-slide[data-pos="left"] .hero-slide__img {
        object-position: 80% center;
    }

    .hero-slide__content {
        padding: 20px;
        max-width: 100%;
        z-index: 2;
    }

    .hero-slide__title {
        font-size: 14px;
    }

    .hero-slide__value {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .hero-slide__or {
        font-size: 14px;
    }

    .games-section__title {
        font-size: 18px;
    }

    .game-card {
        width: 130px;
    }

    .games-row__arrow {
        display: none;
        width: 30px;
        height: 30px;
    }

    .content h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 20px;
    }

    .content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-items: center;
    }

    .footer__mid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer__pay-icons {
        justify-content: center;
    }

    .footer__social-icons {
        justify-content: center;
    }

    .footer__columns {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer__legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header__logo img {
        max-height: 14px;
    }

    .header__search {
        width: 32px;
        height: 32px;
    }

    .header__search svg {
        width: 16px;
        height: 16px;
    }

    .hero-slide__content {
        padding: 16px;
    }

    .hero-slide__title {
        font-size: 12px;
    }

    .hero-slide__value {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .hero-slide__cta {
        padding: 7px 16px;
        font-size: 12px;
    }

    .hero-dots {
        bottom: 8px;
    }

    .hero-dot {
        width: 20px;
        height: 3px;
    }

    .hero-dot.is-active {
        width: 32px;
    }

    .game-card {
        width: 120px;
    }

    .cat-chip {
        padding: 8px 14px;
    }

    .cat-chip__label {
        font-size: 12px;
    }

    .footer__features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer__feature {
        flex-direction: row;
        gap: 12px;
        text-align: left;
    }

    .footer__columns {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
}

.games-row__arrow--prev {
    left: 0;
    right: auto;
}
    

.header__nav ul li:nth-last-child(-n+3) {
    display: none;
}

.drawer__nav ul li:nth-child(n+4):nth-child(-n+6) {
    display: none;
}