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

:root {
    --bg-dark: #070d14;
    --bg-card: #0f172a;
    --header-blue: #0f172a;
    --accent-blue: #2563eb;
    --accent-blue-hover: #3b82f6;
    --accent-green: #22c55e;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
}

header {
    background-color: var(--header-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    width: 100%;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.logo-img {
    height: 80px; /* Увеличил размер с 50px до 80px */
    width: auto;
    display: block;
}

.tg-button {
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tg-button:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative; /* Добавил позиционирование */
    overflow: hidden; /* Дополнительная защита от вылетов контента */
}

#hero-premium {
    text-align: center;
    margin-bottom: 4rem;
}

#hero-premium h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.user-content-main {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 2.5rem;
}

.user-content-main strong {
    color: var(--text-white);
}

.main-cta {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center; /* Добавил центрирование текста внутри кнопки */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    margin-bottom: 3rem;
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
        transform: scale(1);
    }
}

.slots-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid var(--border-color);
}

.slots-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.main-cta:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.content-text-section {
    margin-top: 4rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-text-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    border-left: 4px solid var(--accent-blue);
    padding-left: 1rem;
}

.content-text-section p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    transition: transform 0.2s ease;
}

.benefits-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

.benefits-list strong {
    color: var(--text-white);
}
.content-text-section strong {
    color: var(--text-white);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* FAQ Accordion */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.review-author {
    font-weight: 700;
    color: var(--accent-blue);
}

.review-rating {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-gray);
}

/* Pulse Button */
.pulse-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 3.5rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    animation: pulse 2s infinite;
    transition: transform 0.2s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pulse-button:hover {
    transform: scale(1.05);
}

.final-cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.05) 100%);
}

footer {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    width: 100%;
    overflow: hidden;
}

.footer-seo-keys {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1.5;
}

.footer-seo-keys p {
    margin-bottom: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    nav {
        padding: 0 1rem;
    }

    .logo-img {
        height: 60px; /* Немного меньше для мобилок */
    }

    .tg-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    main {
        padding: 1rem 1rem; /* Уменьшил верхний отступ с 1.5rem до 1rem */
    }

    #hero-premium {
        margin-bottom: 2rem; /* Уменьшил отступ снизу */
    }

    #hero-premium h1 {
        font-size: 1.6rem; /* Еще немного уменьшил заголовок */
        margin-bottom: 1rem;
    }

    .user-content-main {
        font-size: 0.95rem;
        margin-bottom: 1.5rem; /* Уменьшил отступ перед кнопкой */
    }

    .main-cta {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        display: block;
        box-sizing: border-box;
        white-space: normal;
        margin: 0 0 2rem 0; /* Уменьшил отступ снизу */
    }

    .slots-container {
        margin-left: -1rem;
        margin-right: -1rem;
        width: auto;
        border-radius: 0;
        max-width: none;
        border-left: none;
        border-right: none;
    }

    .content-text-section {
        padding: 1.2rem;
        margin-top: 1.5rem;
        border-radius: 12px;
    }

    .content-text-section h2 {
        font-size: 1.3rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pulse-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
}

/* Sticky Footer CTA */
.sticky-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent-blue);
    padding: 12px 20px;
    display: none; /* Show only on mobile and only for real users */
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.sticky-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.sticky-btn {
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    animation: sticky-pulse 2s infinite;
}

@keyframes sticky-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 768px) {
    html:not(.is-bot) .sticky-footer-cta {
        display: flex;
    }
    body {
        padding-bottom: 70px; /* Space for sticky footer */
    }
}

/* Trust Blocks */
.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
    opacity: 0.6;
    filter: grayscale(1);
}

.trust-logos img {
    height: 30px;
    width: auto;
}

/* Redirect Overlay */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 8, 13, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.redirect-loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(43, 125, 255, 0.1);
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(43, 125, 255, 0.2);
}

.redirect-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 15px rgba(43, 125, 255, 0.5);
}

.redirect-subtext {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Live Wins Styles */
.live-wins-section {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 16px;
    margin: 40px auto;
    padding: 20px;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.live-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.wins-container {
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.win-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease-out;
    font-size: 0.95rem;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.win-user { color: #94a3b8; font-weight: 600; }
.win-game { color: #fff; font-style: italic; }
.win-amount { color: #22c55e; font-weight: 800; }

/* Кнопка Вверх */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent-blue);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-5px);
}

#scrollToTopBtn.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    #scrollToTopBtn {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
        padding: 12px;
    }
}
