/* ==========================================================================
   1. CUSTOM PROPERTIES & RESET
   ========================================================================== */
:root {
    /* Colors */
    --bg-main: #0a0a0c;
    --bg-accent: #121216;
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.3);
    --secondary: #ff007f;
    --secondary-glow: rgba(255, 0, 127, 0.3);
    --text-main: #f5f5f7;
    --text-muted: white;
    
    /* Glassmorphism */
    --glass-bg: rgba(18, 18, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);

    /* Radii */
    --radius-lg: clamp(1.25rem, 2vw, 2rem);
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-padding-top: 100px; 
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==========================================================================
   2. REUSABLE COMPONENTS (BUTTONS, GLASS)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.btn--primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary);
}

.btn--secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.btn--secondary:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.1rem 2.2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.text-glow {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================================================
   3. HEADER & CHARACTER BUTTONS
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.header__container {
    max-width: 1800px;
    margin: 0 auto;
    padding: clamp(1rem, 2vh, 1.5rem) clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 900;
    color: #00bfff; /* Основная часть синяя */
}

.header__logo span {
    color: #ff8c00; /* Вторая часть оранжевая */
}

.header__nav {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    margin-left: auto; /* Прижимает навигацию вправо */
}

.btn--char {
    color: #000 !important;
    font-size: clamp(0.75rem, 0.9vw + 0.3rem, 0.95rem);
    padding: 0.6rem 1.2rem;
}

.btn--1win {
    background: #00bfff;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}
.btn--1win:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #00bfff;
}

.btn--mostbet {
    background: #ff8c00;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}
.btn--mostbet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #ff8c00;
}

.btn--jetton {
    background: #39ff14;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}
.btn--jetton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #39ff14;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px clamp(1rem, 5vw, 4rem) 60px;
    background-image: linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.6)), url('static/1.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero__container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.hero__card {
    width: 100%;
    max-width: 800px;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero__title {
    font-size: clamp(2rem, 5vw + 0.5rem, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.2vw + 0.2rem, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* PROMO & BONUS SINGLE WINDOW */
.promo-window {
    display: inline-flex;
    flex-direction: column;
    min-width: 280px;
    background: rgba(255, 0, 127, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.promo-window:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 127, 0.4);
}

.promo-window__row {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.promo-window__row--top {
    background: rgba(18, 18, 22, 0.5);
    border-bottom: 1px dashed var(--glass-border);
}

.promo-window__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.promo-window__code {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 800;
}

.promo-window__row--bottom {
    background: rgba(255, 0, 127, 0.05);
    box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.1);
}

.promo-window__bonus {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    font-weight: 800;
    font-size: 1.1rem;
}

.promo-window__note {
    font-size: 0.8rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ==========================================================================
   5. SIMILAR GAMES SECTION (4 COLUMNS / ADAPTIVE)
   ========================================================================== */
.similar-games {
    padding: 60px 0 20px;
}

.similar-games__container {
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: rgba(18, 18, 22, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #121216;
    overflow: hidden;
}

.game-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card__image {
    transform: scale(1.05);
}

.game-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.game-card__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

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

.btn--game {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    color: #000 !important;
}

/* КАРТОЧКИ: ЦВЕТОВОЙ НЕОН */
.game-card--purple:hover { border-color: #9400d3; box-shadow: 0 10px 30px rgba(148, 0, 211, 0.2); }
.game-card--purple .game-card__title { color: #bf55ec; }
.game-card--purple .btn--game { background: #9400d3; box-shadow: 0 4px 15px rgba(148, 0, 211, 0.4); }
.game-card--purple .btn--game:hover { background: #b026ff; box-shadow: 0 6px 20px rgba(176, 38, 255, 0.6); }

.game-card--cyan:hover { border-color: #00e5ff; box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2); }
.game-card--cyan .game-card__title { color: #00e5ff; }
.game-card--cyan .btn--game { background: #00e5ff; box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4); }
.game-card--cyan .btn--game:hover { background: #64ffda; box-shadow: 0 6px 20px rgba(100, 255, 218, 0.6); }

.game-card--pink:hover { border-color: #ff007f; box-shadow: 0 10px 30px rgba(255, 0, 127, 0.2); }
.game-card--pink .game-card__title { color: #ff007f; }
.game-card--pink .btn--game { background: #ff007f; box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4); }
.game-card--pink .btn--game:hover { background: #ff409f; box-shadow: 0 6px 20px rgba(255, 64, 159, 0.6); }

.game-card--blue:hover { border-color: #0055ff; box-shadow: 0 10px 30px rgba(0, 85, 255, 0.2); }
.game-card--blue .game-card__title { color: #3b82f6; }
.game-card--blue .btn--game { background: #0055ff; box-shadow: 0 4px 15px rgba(0, 85, 255, 0.4); }
.game-card--blue .btn--game:hover { background: #3377ff; box-shadow: 0 6px 20px rgba(51, 119, 255, 0.6); }

/* ==========================================================================
   6. NAVIGATION SECTION (SINGLE ACCORDION)
   ========================================================================== */
.navigation-section {
    padding: 40px 0 20px;
}

.navigation-section__container {
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

.accordion {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    text-align: left;
    color: var(--text-main);
}

.accordion__title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 700;
}

.accordion__icon {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.accordion__icon::before,
.accordion__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 2px;
    background-color: var(--text-main);
}

.accordion__icon::before { left: 2px; transform: rotate(45deg); }
.accordion__icon::after { right: 2px; transform: rotate(-45deg); }

.accordion__trigger[aria-expanded="true"] .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.accordion__inner {
    padding: 0 clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem);
}

.content-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-menu__link {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    transition: all 0.2s ease;
}

.content-menu__link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-left-color: var(--primary);
    transform: translateX(5px);
}

/* ==========================================================================
   7. TEXT BLOCKS FOR CONTENT
   ========================================================================== */
.text-blocks-container {
    width: 100%;
    max-width: 95vw; 
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem) 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem; 
}

.text-block {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.text-block__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.text-block__body {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
}

.text-block__body p {
    margin-bottom: 1rem;
}

.text-block__body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-accent);
}

.footer__container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 3vw, 2rem);
    text-align: center;
}

.footer__copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   9. RESPONSIVE QUERIES & MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }
    .header__nav {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    /* 2 ИГРЫ В РЯД, БЕЗ ОПИСАНИЯ НА СМАРТФОНАХ */
    .similar-games__container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .game-card__content { padding: 0.75rem; }
    .game-card__title { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .game-card__desc { display: none !important; } /* Скрываем описание */
    .btn--game { padding: 0.6rem 0.5rem; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero__actions .btn, .promo-window {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: -1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: scroll !important;
        scroll-behavior: auto !important;
        transition-duration: -1ms !important;
    }
}