/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@font-face {
    font-family: "Rum Raisin";
    src: url("./index_files/RumRaisin-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    /* Подключаем без unicode-range для поддержки кириллицы, если шрифт её содержит */
}

body {
    font-family: "Rum Raisin", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background-color: #050505;
    min-height: 100vh;
    position: relative;
}

/* Фиксированный затемнённый фон на всём сайте */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./index_files/bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.7);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта - фиксированная */
.header {
    position: fixed;
    top: 23px;
    display: flex;
    align-items: center;
    height: 74px;
    right: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 17px;
    backdrop-filter: blur(10px);
    background: linear-gradient(115.95deg, rgba(5, 5, 5, 0.2) 14.21%, rgba(5, 5, 5, 0.08) 99.69%);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    z-index: 1000;
    transition: width 0.3s ease-in-out;
}

/* Отступ для контента под фиксированной шапкой */
body {
    padding-top: 120px;
}

.header__menu-button {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
}

.header__logo {
    display: block;
    height: 46px;
    flex-shrink: 0;
}

.header__logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.header__logo-desktop {
    display: block;
}

.header__logo-mobile {
    display: none;
}

.header__promo {
    display: flex;
    align-items: center;
}

.header__promo-item {
    display: block;
}

.header__search {
    display: none;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Стили кнопки Вход */
.header__login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: "Rum Raisin", sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(transparent, transparent) padding-box, linear-gradient(180deg, #351579 28.85%, #581579 95.67%) border-box;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header__login:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* Стили кнопки Регистрация */
.header__register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: "Rum Raisin", sans-serif;
    font-size: 18px;
    line-height: 1;
    background: linear-gradient(180deg, #56db03 0%, #3b951f 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 10px rgba(86, 219, 3, 0.2);
}

.header__register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(86, 219, 3, 0.4);
    text-decoration: none;
    color: #fff;
}

/* Hero секция */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Rum Raisin", sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(180deg, #56db03 0%, #3b951f 100%);
    color: #fff;
    box-shadow: 0 -2.98px 0 0 rgba(0, 0, 0, 0.16) inset;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 219, 3, 0.4);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #56db03;
}

.btn-outline:hover {
    background: rgba(86, 219, 3, 0.1);
    color: #fff;
    text-decoration: none;
}

.hero__bonus-text {
    font-size: 1.5rem;
    color: #56db03;
}

/* Bonuses List - Исправленные стили */
.bonuses-list__wrap {
    position: relative;
    z-index: 1;
    transition-property: opacity, transform;
    transition-duration: 0.72s;
    transition-timing-function: ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 40px;
    margin-top: 20px;
}

.bonuses-list {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 1400px;
    
    /* Включаем скролл */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bonuses-list::-webkit-scrollbar {
    display: none;
}

.bonuses-list__bonus {
    position: relative;
    /* Размеры как в оригинале */
    flex: 0 0 335px;
    flex-shrink: 0;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(96, 220, 17, 0.96) 0%, rgba(59, 149, 31, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(120, 255, 66, 0.75) inset,
        0 4px 18px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(86, 219, 3, 0.18);
    transition: box-shadow 0.25s ease, filter 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
}

/* Убрали transform у самой карточки */
.bonuses-list__bonus:hover {
    box-shadow:
        0 0 0 1px rgba(120, 255, 66, 0.9) inset,
        0 8px 24px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(86, 219, 3, 0.28);
    text-decoration: none;
    color: #fff;
    z-index: 2;
}

/* Градиенты поверх фона */
.bonuses-list__bonus::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 12%, transparent 34%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0%, transparent 38%);
    pointer-events: none;
    z-index: 1;
}

.bonuses-list__bonus::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.26), transparent 18%),
        radial-gradient(circle at 95% 100%, rgba(0, 0, 0, 0.18), transparent 20%);
    pointer-events: none;
    z-index: 1;
}

.bonuses-list__bonus-title {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    right: 16px;
    z-index: 4;
    font-family: "Rum Raisin", sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    text-align: left;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    max-width: 55%;
}

.bonuses-list__bonus-image {
    position: absolute;
    right: 10px;
    bottom: 0;
    width: 45%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.3s ease; /* Плавная анимация подъема */
}

/* При наведении на карточку поднимаем ТОЛЬКО изображение */
.bonuses-list__bonus:hover .bonuses-list__bonus-image {
    transform: translateY(-8px);
}

.bonuses-list__bonus-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.bonuses-list__bonus-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 22%, transparent 78%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.bonuses-list__bonus-shine {
    position: absolute;
    top: -60%;
    left: -70%;
    width: 55%;
    height: 220%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(25deg);
    animation: shine 4s linear infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        transform: translateX(-120%) rotate(25deg);
    }
    100% {
        transform: translateX(280%) rotate(25deg);
    }
}

/* Games секция */
.games {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.game-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #fff;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(86, 219, 3, 0.2);
    text-decoration: none;
    color: #fff;
}

.game-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-card__title {
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* Features секция */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(86, 219, 3, 0.15);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card__text {
    opacity: 0.8;
    line-height: 1.6;
}

/* Payments секция */
.payments {
    padding: 60px 0;
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    gap: 10px;
    transition: transform 0.3s, background 0.3s;
}

.payment-method:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.payment-method img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.payment-method span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Content секция */
.content {
    --primary-green: #56db03;
    --primary-green-dark: #3b951f;
    --bg-dark: #050505;
    --bg-card: #272727;
    --bg-purple: #351579;
    --text-white: #FEFEDE;
    --text-gray: #adadad;
    --text-muted: #6e6e6e;
    font-family: "Rum Raisin", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    margin: 0px;
    background: linear-gradient(rgba(53, 21, 121, 0.2) 0%, rgb(5, 5, 5) 100%);
    padding: 60px 0px;
}

.textSeo {
    --primary-green: #56db03;
    --primary-green-dark: #3b951f;
    --bg-dark: #050505;
    --bg-card: #272727;
    --bg-purple: #351579;
    --text-white: #FEFEDE;
    --text-gray: #adadad;
    --text-muted: #6e6e6e;
    font-family: "Rum Raisin", sans-serif;
    font-size: 18px; /* Как в оригинале */
    line-height: 1;
    font-weight: 400;
    color: rgb(255, 255, 255);
    box-sizing: border-box;
    max-width: 1360px;
    margin: 0px auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 40px;
}

.textSeo nav {
    margin-bottom: 40px;
}

.textSeo nav h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.textSeo nav ul {
    list-style: none;
    padding-left: 0;
}

.textSeo nav li {
    margin-bottom: 10px;
}

.textSeo nav a {
    color: #56db03;
    text-decoration: none;
    transition: color 0.2s;
}

.textSeo nav a:hover {
    color: #7aff33;
    text-decoration: underline;
}

.textSeo header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.textSeo header p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.9;
}

.textSeo main section {
    margin-bottom: 40px;
}

.textSeo main h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #56db03;
}

.textSeo main h3 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
}

.textSeo main p {
    margin-bottom: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

.textSeo main ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.textSeo main li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Bonus таблица */
.bonus-table,
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.bonus-table th,
.bonus-table td,
.payment-table th,
.payment-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bonus-table th,
.payment-table th {
    background: rgba(86, 219, 3, 0.2);
    font-weight: 600;
    color: #56db03;
}

.bonus-table tr:last-child td,
.payment-table tr:last-child td {
    border-bottom: none;
}

.bonus-table tr:hover,
.payment-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Адаптивность */
@media (max-width: 992px) {
    .header {
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }

    body {
        padding-top: 100px;
    }

    .header__nav {
        display: none;
    }

    .header__menu-button {
        display: block;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .bonuses-list__bonus-title {
        font-size: 16px;
    }
    
    /* Фикс для таблиц в адаптиве */
    .textSeo table {
        overflow-x: auto;
        max-width: 100%;
    }
    
    .bonus-table,
    .payment-table {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .header__logo-desktop {
        display: none;
    }

    .header__logo-mobile {
        display: block;
    }

    .header__search.desktop {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .textSeo {
        padding: 20px;
    }

    .textSeo header h1 {
        font-size: 1.75rem;
    }

    .textSeo main h2 {
        font-size: 1.5rem;
    }

    .bonuses-list {
        gap: 10px;
        padding: 0 12px;
    }

    .bonuses-list__bonus {
        flex: 0 0 280px;
        height: 110px;
    }

    .bonuses-list__bonus-title {
        font-size: 15px;
        left: 12px;
    }

    .bonuses-list__bonus-image {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 10px 14px;
        height: 60px;
    }

    body {
        padding-top: 90px;
    }

    .header__logo {
        height: 36px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .bonuses-list {
        gap: 8px;
        padding: 0 10px;
    }

    .bonuses-list__bonus {
        flex: 0 0 260px;
        height: 100px;
    }

    .bonuses-list__bonus-title {
        font-size: 14px;
        top: 50%;
        transform: translateY(-50%);
        left: 10px;
        max-width: 50%;
    }

    .bonuses-list__bonus-image {
        width: 45%;
        right: 5px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .payments-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .header__login, 
    .header__register {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* Footer стили */
.footer {
    padding: 60px 0 30px;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 60px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #56db03;
}

.footer__links {
    list-style: none;
    padding: 0;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.footer__links a:hover {
    opacity: 1;
    color: #56db03;
    text-decoration: none;
}

.footer__providers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
}

.footer__providers img {
    height: 32px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer__providers img:hover {
    opacity: 1;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Фикс для таблиц в адаптиве */
.textSeo table {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.bonus-table,
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    min-width: 500px;
}

.bonus-table th,
.bonus-table td,
.payment-table th,
.payment-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    white-space: nowrap;
}

.bonus-table th,
.payment-table th {
    background: rgba(86, 219, 3, 0.2);
    font-weight: 600;
    color: #56db03;
}

.bonus-table tr:last-child td,
.payment-table tr:last-child td {
    border-bottom: none;
}

.bonus-table tr:hover,
.payment-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Адаптивность для footer */
@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer__providers {
        gap: 15px;
    }
    
    .footer__providers img {
        height: 28px;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}