/* Основные стили для страницы */
html {
    width: 100%;
    overflow-x: hidden; /* Отключаем горизонтальный скролл */
}
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #1E0844 0%, #0B0B0B 100%);
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Фоновая картинка */
.background-image {
    position: absolute;
    top: 200px;
    left: 0;
    width: 747px;
    height: 809px;
    background-image: url('../img/box.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center left;
    z-index: 1;
}

/* Контейнер для контента */
.content-container {
    max-width: 1128px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 20px;
    margin-bottom: 80px;
}

/* Хедер */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Лого */
.logo {
    width: 140px;
    height: auto;
}

/* Языковая панель */
.lang-select select {
    background-color: #333B4C;
    border: none;
    width: 80px;
    height: 48px;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
}

/* Контентная секция с двумя контейнерами */
.content-section {
    position: relative;
    background: 
        url('../img/pathern.png') no-repeat, /* Паттерн поверх */
        linear-gradient(244.13deg, #7621FE 0%, #4E08EA 100%), /* Градиент */
        linear-gradient(254.72deg, #1CF2C3 2.98%, #0BBFA2 78.54%);
    border: 8px solid #fed9be;
    border-radius: 40px;
    padding: 40px;
    height: auto;
    margin-top: 50px;
    z-index: 1;
    box-shadow: 0 0 30px rgb(250 120 26 / 80%), inset 0 0 25px rgba(250, 120, 26, 0.8);
    background-size: contain; /* Настройка отображения паттерна */
}

/* Декоративный мяч */
.decorative-ball {
    position: absolute;
    top: -30px;
    right: -160px;
    width: 249px;
    height: auto;
    z-index: 3;
}

/* Левый контейнер */
.content-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.left-container {
    max-width: 600px;
}

.left-container h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 62px;
    font-weight: 900;
    line-height: 62px;
    margin-top: 5px;
    text-align: left;
    color: white;
}

.left-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 33px;
    text-align: left;
    color: white;
    margin-top: 20px;
}

/* Преимущества */
.benefits {
    margin-top: 40px;
    max-width: 480px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.benefit-item img {
    width: 66px;
    height: 67px;
    margin-right: 15px;
}

.benefit-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    color: white;
}

/* Правый контейнер */
.right-container {
    width: 480px; /* Оставляем место для контента, который будет добавлен позже */
}

/* Общие стили для огоньков */
.lights {
    display: flex;
    z-index: 2;
    position: absolute;
}

.light {
    width: 80px;
    height: 80px;
    background-image: url('../img/light.png');
    background-size: contain;
    transition: opacity 0.5s ease;
}

/* Огоньки сверху */
.lights-top {
    top: -44px;
    left: 0;
    right: 0;
    justify-content: space-between;
}

/* Огоньки слева */
.lights-left {
    top: 0;
    left: -44px;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Огоньки справа */
.lights-right {
    top: 0;
    right: -44px;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Огоньки снизу */
.lights-bottom {
    bottom: -44px;
    left: 0;
    right: 0;
    justify-content: space-between;
}


/* Правый контейнер с колесом */
.right-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Колесо */
.wheel-container {
    position: relative;
    width: 470px;
    height: 470px;
    margin-bottom: 20px;
}

.wheel-image {
    width: 100%;
    height: 100%;
    transition: transform 4s ease-out;
}

/* Стрелка */
.wheel-arrow {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 31px;
    height: auto;
    z-index: 10;
}


.spin-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 36px;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FF7C1E 0%, #D85B00 100%);
    width: 284px;
    height: 82px;
    border: none;
    border-radius: 14px;
    color: white;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 0 40px rgba(255, 124, 30, 0.8), 0 0 40px rgba(216, 91, 0, 0.6);
}

.spin-button:hover {
    background: linear-gradient(90deg, #fe9449 0%, #fa7c34 100%);
}

.spin-button:active {
    background: #a53c00
}

/* Футер */
.footer {
    background-color: #160F24;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #F5F5F5;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #79849B;
}

@media (max-width: 1100px) {
    .content-section {
        padding: 40px;
    }
    .left-container h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: clamp(32px, 5vw, 60px); /* Минимум 32px, максимум 60px */
        font-weight: 900;
        line-height: 1.1; /* Относительная высота строки */
        margin-top: 5px;
        text-align: left;
        color: white;
    }
    .left-container h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 28px;
        text-align: left;
        color: white;
        margin-top: 20px;
    }
    .benefit-item p {
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 24px;
        color: white;
    }
    .wheel-container {
        position: relative;
        width: 330px;
        height: 330px;
        margin-bottom: 20px;
        margin-top: 40px;
    }
    .spin-button {
        width: 214px;
        height: 62px;
        border-radius: 14px;
    }
    .decorative-ball {
        position: absolute;
        top: -80px;
        right: 0px;
        width: 151px;
        height: auto;
        z-index: 3;
    }
    
}
@media (max-width: 900px) {
    .content-section {
        padding: 20px;
    }
    .background-image {
        position: absolute;
        top: 200px;
        left: -200px;
        width: 622px;
        height: 809px;
        background-image: url(../img/box.png);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center left;
        z-index: 1;
    }
}

/* Изменение порядка элементов для мобильных устройств */
@media (max-width: 768px) {

    .spin-button {
        margin-top: 15px
    }
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        margin-top: -25px;
    }

    .logo {
        width: 90px;
        height: auto;
    }

    .background-image{
    position: absolute;
    top: 200px;
    left: -118px;
    width: 283px;
    height: 809px;
    background-image: url('../img/box.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center left;
    z-index: 1;
    }
    .content-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mobile-wheel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px; /* Добавляем немного отступа снизу */
    }
    .wheel-container {
        position: relative;
        width: 330px;
        height: 330px;
        margin-bottom: 20px;
        margin-top: 5px;
    }
    .left-container h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: 38px;
        font-weight: 900;
        line-height: 38px;
        margin-top: 35px;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
        color: white;
    }
    .left-container h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 28px;
        text-align: center;
        color: white;
        margin-top: 20px;
    }
    .decorative-ball {
        position: absolute;
        top: 0px;
        right: -160px;
        width: 210px;
        height: auto;
        z-index: 3;
    }
    .left-container {
        display: flex;
        flex-direction: column;
    }

    .right-container {
        order: 1; /* Перемещаем блок с колесом выше заголовка H2 */
    }

    .left-container h1 {
        order: 0; /* Заголовок H1 остается на первом месте */
    }

    .left-container h2 {
        order: 2; /* Заголовок H2 отображается ниже блока с колесом */
    }

    .benefits {
        order: 3; /* Преимущества ниже H2 */
        margin-top: 20px;
    }
    .decorative-ball {
        content: url('../img/ballmob.png');
        top: 0px;
        right: -46px;
        width: 97px;
        height: auto;
        z-index: 3;
    }
    .wheel-arrow {
        position: absolute;
        top: 7px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: auto;
        z-index: 10;
    }
    .popup-container {
        position: relative;
        background: linear-gradient(244.13deg, #17181C 0%, #220D50 100%), #D9D9D9;
        border-radius: 40px;
        width: 640px;
        max-width: 90%;
        padding: 40px;
        box-shadow: 0 0 30px rgb(96 0 218 / 80%), inset 0 0 25px rgba(96, 0, 218, 0.8);
        border: 8px solid #d1b4f5;
        z-index: 2000;
        margin-left: 30px;
        margin-right: 30px;
    }
    .footer {
        background-color: #160F24;
        height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .content-container {
        max-width: 1128px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        padding: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 440px) {
    .wheel-container {
        position: relative;
        width: 270px;
        height: 270px;
        margin-bottom: 20px;
        margin-top: 5px;
    }
    .wheel-arrow {
        position: absolute;
        top: 7px;
        left: 50%;
        transform: translateX(-50%);
        width: 17px;
        height: auto;
        z-index: 10;
    }
}

@media screen and (min-height: 1360px) {
    .footer {
        background-color: #160F24;
        height: 55vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
}