/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #000;
    font-family: Arial, sans-serif;
    color: white;
    font-family: 'Unbounded', sans-serif;
}

.container {
    position: relative;
    width: 100%;
    height: 140vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Логотипы */
.logo-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 15%; /* Примерный размер, подгоните по макету */
    z-index: 10;
}

.logo-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 15%; /* Примерный размер, подгоните по макету */
    z-index: 10;
}

/* Основной контент (текст) */
.content {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    width: 80%;
}

.content h1 {
    font-size: 3.5vw;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.content .subtitle {
    font-size: 1.2vw;
    max-width: 60%;
    margin: 0 auto 20px auto;
    line-height: 1.4;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.content .cta {
    font-size: 1.8vw;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Персонажи и элементы */
.character, .coins-left, .coins-right {
    position: absolute;
    z-index: 5;
    transform: translateY(var(--y, 0));
    transition: transform 0.3s ease-out;
}

.zeus {
    left: 0%;
    bottom: 0%;
    width: 20%;
    z-index: 10;
}

.jester {
    left: 13%;
    bottom: 0%;
    width: 18%;
}

.coins-left {
    left: 0;
    bottom: 7%;
    width: 15%;
}

.aviator {
    right: 28%;
    bottom: 0%;
    width: 12%;
    z-index: 10;
}

.athlete {
    right: 0%;
    bottom: 0%;
    width: 15%;
    z-index: 8;
}

.minotaur {
    right: 15%;
    bottom: 0%;
    width: 15%;
    z-index: 9;
}

.chicken {
    right: 30%;
    bottom: 5%;
    width: 10%;
    z-index: 15;
}

.coins-right {
    right: 15%;
    bottom: 8%;
    width: 15%;
}


/* Колесо фортуны */
.wheel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 30vw;
    min-width: 350px;
    min-height: 350px;
    max-width: 500px;
    max-height: 500px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wheel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    background: #e6a93c;
    transform-origin: 100% 100%;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-segment:nth-child(even) {
    background: #d89c2c;
}

/* Размещение сегментов */
.wheel-segment:nth-child(1) { transform: rotate(0deg) skew(30deg); }
.wheel-segment:nth-child(2) { transform: rotate(60deg) skew(30deg); }
.wheel-segment:nth-child(3) { transform: rotate(120deg) skew(30deg); }
.wheel-segment:nth-child(4) { transform: rotate(180deg) skew(30deg); }
.wheel-segment:nth-child(5) { transform: rotate(240deg) skew(30deg); }
.wheel-segment:nth-child(6) { transform: rotate(300deg) skew(30deg); }

.wheel-segment span {
    display: block;
    transform: skew(-30deg) rotate(-30deg) translateY(-20%);
    font-size: 0.8vw;
    font-weight: bold;
    color: #4d3417;
    width: 80%;
    text-align: center;
    line-height: 1.1;
}

.wheel-pointer {
    position: absolute;
    top: -10%;
    width: 15%;
    z-index: 25;
}
.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 0.8vw;
    left: -1.2vw;
    width: 2.4vw;
    height: 2.4vw;
    background: #c98e22;
    border-radius: 50%;
}

.wheel-stopper {
    position: absolute;
    top: -10%; /* Немного поднимем, чтобы он был над колесом */
    left: 50%;
    transform: translateX(-50%); /* Центрируем по горизонтали */
    width: 30%; /* Подбираем размер */
    z-index: 10;
}


.spin-button {
    position: absolute;
    width: 25%;
    cursor: pointer;
    z-index: 21;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

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

.spin-button:active {
    transform: scale(0.95);
}

/* Футер */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8%;
    background: #000000;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer span {
    font-size: 1.2vw;
    font-weight: bold;
}

.footer-logo {
    height: 60%;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .content h1 { font-size: 4vw; }
    .content .subtitle { font-size: 1.5vw; }
    .content .cta { font-size: 2.2vw; }
    .footer span { font-size: 1.5vw; }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 20px;
        gap: 100px;
    }
    
    .text-content {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 90% !important;
        margin-left: 5% !important;
        margin-top: 20% !important;
        text-align: left !important;
        z-index: 9999 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .cta-container {
        position: absolute;
        top: 26% !important;
        right: 30% !important;
        z-index: 10;
    }
    
    .main-title {
        font-size: 40px !important;
        line-height: 1.05 !important;
        color: #FFD700 !important;
        font-weight: 800 !important;
        margin: 0 0 10px 0 !important;
    }
    
    .subtitle {
        font-size: 15px !important;
        line-height: 1.2 !important;
        color: #FFFFFF !important;
        margin: 6px 0 0 0 !important;
    }
    
    .features {
        gap: 12px !important;
        margin-top: 16px !important;
    }
    
    .features-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .feature-box {
        font-size: 3.8vw !important;
        padding: 10px 16px !important;
    }
    
    .feature-box.content-width {
        align-self: flex-start !important;
    }
    
    .content { 
        top: 15%; /* Сдвигаем выше */
        margin-bottom: 40px;
    }
    
    .content h1 { 
        font-size: 6vw; 
        margin-bottom: 30px; /* Увеличиваем отступ */
    }
    
    .content .subtitle { 
        font-size: 2.5vw; 
        max-width: 90%; 
        margin-bottom: 30px; /* Увеличиваем отступ */
    }
    
    .content .cta { 
        font-size: 4vw; 
        margin-bottom: 40px; /* Увеличиваем отступ */
    }
    
    .wheel-section {
        margin: 60px 0; /* Увеличиваем отступы сверху и снизу */
    }
    
    .wheel-container { 
        top: 60%; 
        width: 90vw; 
        height: 90vw; 
        min-width: 0; 
        min-height: 0;
        transform: translate(-50%, -50%);
        z-index: 150;
    }
    
    .spin-button { 
        font-size: 3vw; 
    }
    
    .footer { 
        display: flex;
        flex-direction: column;
        height: 10%;
        margin-top: 40px;
    }

    /* Больше высота секции на мобильных, чтобы влез текст */
    .container,
    .main-content {
        height: 200vh !important;
    }
    
    .footer-left, .footer-right { 
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .footer span { 
        font-size: 2.5vw; 
    }

    .aviator {
        position: absolute;
        top: 30%;
        left: 25%;
        z-index: 7;
    }

    .aviator img {
        width: 278px !important;
        height: auto !important;
        max-width: 278px !important;
    }
    
    
    .chicken {
        position: absolute;
        top: 45%;
        left: 25%;
        z-index: 7;

    }
    .chicken img {
        width: 100px !important;
        height: auto !important;
        max-width: 100px !important;
    }
    
    .athlete {
        position: absolute;
        bottom: 0%;
        right: 0%;
    }
    
    .zeus {
        position: absolute;
        bottom: 10%;
        left: 0%;
    }
    
    .zeus img {
        width: 190px !important;
        height: auto !important;
        max-width: 190px !important;
    }
    
    .jester {
        position: absolute;
        bottom: 5%;
        left: 25%;
        z-index: 10;
    }
    
    .jester img {
        width: 190px !important;
        height: auto !important;
        max-width: 190px !important;
    }
    
    .minotaur {
        position: absolute;
        bottom: 10%;
        right: 35%;
    }
    
    .minotaur img {
        width: 190px !important;
        height: auto !important;
        max-width: 190px !important;
    }
    
    .athlete {
        position: absolute;
        bottom: 10%;
        right: 10%;
    }
    
    .athlete img {
        width: 140px !important;
        height: auto !important;
        max-width: 140px !important;
    }

    .logo-left {
        left: 0% !important;
        top: 5% !important;
    }

        
    .logo-left img {
        width: 150px !important;
        height: auto !important;
    }
}

.main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 140vh;
}

.text-content {
    position: absolute;
    top: 5%;
    left: 35%;
    transform: translateX(-50%);
    z-index: 26;
    color: white;
    width: 40%;
}

.main-title {
    font-size: 2.5vw;
    font-weight: bold;
    margin: 0;
}

.subtitle {
    font-size: 1.8vw;
    font-weight: normal;
    margin: 10px 0;
}

.features {
    display: flex;
    flex-direction: column; /* Располагаем элементы в столбец */
    gap: 10px;
    margin-top: 20px;
}

.features-row {
    display: flex;
    gap: 10px; /* Сохраняем отступ между первыми двумя элементами */
}

.feature-box {
    background: #FFD700;
    color: #000;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1vw;
    white-space: nowrap; /* Предотвращает перенос текста */
    display: inline-block; /* Ширина по содержимому */
}

.feature-box.content-width {
    width: fit-content; /* Ширина по содержимому */
    align-self: flex-start; /* Выравнивание по левому краю */
}

.cta-container {
    position: absolute;
    top: 10%;
    right: 15%;
    z-index: 10;
    background: linear-gradient(90deg, rgba(247, 254, 4, 0.6) 0%, rgba(204, 137, 0, 0.6) 100%) !important;
    color: white !important;
    border-radius: 50px;
    padding: 20px;
    width: 35%;
    text-align: center;
}
.cta-text {
    font-size: 2vw;
    font-weight: bold;
    margin: 0;
}

.social-icons, .contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    filter: brightness(0) invert(1); /* Делаем иконки белыми */
}

.icon:hover {
    transform: scale(1.2);
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    filter: brightness(1) invert(0); /* Возвращаем оригинальные цвета при hover */
}

.icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #dc2743;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.5);
}

.icon.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
}

.contact-info span:last-child {
    color: #FFD700;
    font-weight: bold;
    font-family: 'Unbounded', sans-serif;
}
