/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #161616;
    --bg-card-hover: #1e1e1e;
    --bg-input: #1c1c1c;

    --orange-primary: #D4522A;
    --orange-hover: #E8734A;
    --orange-light: #F09060;
    --orange-glow: rgba(212, 82, 42, 0.35);
    --orange-subtle: rgba(212, 82, 42, 0.12);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --border-color: #2a2a2a;
    --border-hover: #3a3a3a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 24px;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: var(--orange-primary);
    color: #fff;
    border: 2px solid transparent;
}

.btn--primary:hover {
    background: var(--orange-hover);
    box-shadow: 0 4px 20px var(--orange-glow);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn--outline:hover {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.btn--sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn--lg {
    padding: 10px 22px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__right .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.burger-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.burger-btn.active {
    background: var(--bg-tertiary);
    color: var(--orange-primary);
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 16px;
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu__item {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}

.dropdown-menu__item:hover {
    background: var(--bg-tertiary);
    color: var(--orange-primary);
}

/* ========== LOGO ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo__icon {
    display: flex;
    align-items: center;
}

.logo__text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo__casino {
    color: var(--orange-primary);
    font-weight: 700;
}

/* ========== SAFE BTN ========== */
.safe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--orange-subtle);
    border: 1px solid rgba(212, 82, 42, 0.25);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--orange-primary);
    transition: all var(--transition);
}

.safe-btn:hover {
    background: rgba(212, 82, 42, 0.2);
    border-color: var(--orange-primary);
    box-shadow: 0 0 20px var(--orange-glow);
}

/* ========== LANG SELECTOR ========== */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
}

.lang-selector:hover {
    color: var(--text-primary);
}

/* ========== HERO ========== */
.hero {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero__banner {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

.hero__banner-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
    flex-shrink: 0;
}

.hero__banner-visual {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.hero__banner-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 40px rgba(212, 82, 42, 0.2));
}

.hero__title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ========== GAMES SECTION ========== */
.games-section {
    padding: 40px 0 60px;
}

/* ========== FILTERS ========== */
.filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filters__categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: all var(--transition);
    min-width: 80px;
}

.filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background: var(--orange-primary);
    color: #fff;
    border-color: var(--orange-primary);
    box-shadow: 0 4px 15px var(--orange-glow);
}

.filter-btn svg {
    flex-shrink: 0;
}

.filters__search {
    display: flex;
    gap: 12px;
    align-items: center;
}

.provider-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.provider-select:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition);
    min-width: 180px;
}

.search-input:hover {
    border-color: var(--border-hover);
}

.search-input__placeholder {
    color: var(--text-muted);
}

.search-input svg {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ========== GAMES GRID ========== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

.game-card--large {
    grid-row: span 2;
}

.game-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--bg-tertiary);
}

.game-card--large .game-card__image {
    aspect-ratio: auto;
    height: calc(100% - 38px);
}

.game-card--large {
    grid-row: span 2;
}

.game-card--large .game-card__image img {
    object-fit: cover;
    object-position: center;
}

.game-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    background: var(--orange-primary);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 2;
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 3;
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.game-card__title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__provider {
    font-size: 10px;
    color: var(--text-muted);
}

/* ========== SHOW MORE ========== */
.show-more {
    text-align: center;
    margin-top: 40px;
}

/* ========== PROVIDERS ========== */
.providers {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.providers__track {
    display: flex;
    gap: 48px;
    align-items: center;
    animation: providerScroll 20s linear infinite;
}

.provider-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.provider-logo:hover {
    color: var(--orange-primary);
}

@keyframes providerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== REVIEW SECTION ========== */
.review-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border-color);
}

.review {
    max-width: 900px;
}

.review__heading {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    scroll-margin-top: 100px;
}

.review__subheading {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
    scroll-margin-top: 100px;
}

.review p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.review__list {
    margin: 16px 0 20px 20px;
}

.review__list li {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 8px;
}

.review__list li::marker {
    color: var(--orange-primary);
}

.review__list li strong {
    color: var(--text-primary);
}

.review__table-wrap {
    margin: 20px 0 24px;
    overflow-x: auto;
}

.review__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.review__table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    color: var(--orange-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--orange-primary);
}

.review__table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.review__table tr:hover td {
    background: var(--bg-tertiary);
}

.review__proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 24px;
}

.review__pros, .review__cons {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.review__pros h4, .review__cons h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.review__pros h4 {
    color: #4ade80;
}

.review__cons h4 {
    color: #f87171;
}

.review__pros ul, .review__cons ul {
    margin-left: 16px;
}

.review__pros li, .review__cons li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.review__pros li::marker {
    color: #4ade80;
}

.review__cons li::marker {
    color: #f87171;
}

/* FAQ */
.review__faq {
    margin-top: 20px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.open {
    border-color: var(--orange-primary);
}

.faq-item__question {
    width: 100%;
    text-align: left;
    padding: 16px 48px 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.faq-item__question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--orange-primary);
    transition: transform var(--transition);
}

.faq-item.open .faq-item__question::after {
    content: '−';
}

.faq-item__question:hover {
    color: var(--orange-primary);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-item__answer {
    max-height: 300px;
}

.faq-item__answer p {
    padding: 0 20px 16px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .review__proscons {
        grid-template-columns: 1fr;
    }

    .review__heading {
        font-size: 22px;
    }

    .review__subheading {
        font-size: 18px;
    }
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 0 0;
    background: var(--bg-secondary);
}

.footer__top {
    display: flex;
    gap: 60px;
    padding-bottom: 40px;
}

.footer__brand {
    max-width: 400px;
    flex-shrink: 0;
}

.footer__contacts {
    display: flex;
    gap: 24px;
    margin: 20px 0;
}

.footer__contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer__contact-link:hover {
    color: var(--orange-primary);
}

.footer__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer__links {
    display: flex;
    gap: 48px;
    flex: 1;
}

.footer__col {
    min-width: 120px;
}

.footer__col-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul li a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer__col ul li a:hover {
    color: var(--orange-primary);
}

/* ========== FOOTER BADGES ========== */
.footer__badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.footer__age-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orange-primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 800;
    color: var(--orange-primary);
}

.footer__cert {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.footer__apps {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}

.app-badge:hover {
    border-color: var(--orange-primary);
    background: var(--orange-subtle);
}

/* ========== FOOTER BOTTOM ========== */
.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer__bottom p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-primary);
    border-radius: var(--radius-sm);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--orange-glow);
}

/* ========== CHAT WIDGET ========== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-primary);
    border-radius: 50%;
    color: #fff;
    z-index: 999;
    box-shadow: 0 4px 20px var(--orange-glow);
    transition: all var(--transition);
}

.chat-widget:hover {
    background: var(--orange-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--orange-glow);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-card--large {
        grid-row: span 2;
    }
}

@media (max-width: 1024px) {
    .footer__top {
        flex-direction: column;
    }

    .footer__brand {
        max-width: 100%;
    }

    .footer__links {
        flex-wrap: wrap;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__banner {
        padding: 0 40px;
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-card--large {
        grid-row: span 1;
    }

    .game-card--large .game-card__image {
        aspect-ratio: 1;
        height: auto;
    }

    .filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters__categories {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filters__categories::-webkit-scrollbar {
        display: none;
    }

    .filters__search {
        width: 100%;
    }

    .search-input input {
        width: 100%;
        flex: 1;
    }

    .search-input {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .header {
        padding: 0 12px;
    }

    .header__right .btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .safe-btn {
        display: none;
    }

    .hero__banner {
        flex-direction: column;
        min-height: auto;
        padding: 40px 20px 0;
        text-align: center;
    }

    .hero__banner-content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__banner-visual {
        min-height: 250px;
    }

    .hero__banner-img {
        max-height: 250px;
    }

    .footer__links {
        gap: 24px;
    }

    .footer__col {
        min-width: calc(50% - 12px);
    }

    .footer__badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__apps {
        margin-left: 0;
    }

    .filter-btn {
        min-width: 72px;
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }
.game-card:nth-child(7) { animation-delay: 0.35s; }
.game-card:nth-child(8) { animation-delay: 0.4s; }
.game-card:nth-child(9) { animation-delay: 0.45s; }
.game-card:nth-child(10) { animation-delay: 0.5s; }
.game-card:nth-child(11) { animation-delay: 0.55s; }
.game-card:nth-child(12) { animation-delay: 0.6s; }

/* ========== GLOW EFFECTS ========== */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 82, 42, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 115, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
