/* Подключаем шрифт Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600&display=swap');

/* Основные стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: url('../img/bg.webp') no-repeat center center fixed;
    background-size: cover;
    color: #FFFFFF;
    height: 100%;
}

.wrapper {
    padding: 0 100px;
    min-height: calc(100vh - 80px); /* Чтобы контент занимал всю высоту страницы, кроме футера */
    box-sizing: border-box;
    transition: 1s;
}

/* Хедер */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 10; /* Хедер теперь выше баннера */
}

.logo img, .game-logo img {
    max-height: 80px;
}

.header-btn button {
    background-color: #FF7C1E;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: #FFFFFF;
    font-size: 16px;
    height: 48px;
    min-width: 160px;
    font-weight: 600;
    cursor: pointer;
}

.header-btn button:hover {
    background-color: #e66a14;
    z-index: 5;
}

/* Баннер */
.banner-container {
    display: flex;
    justify-content: center;
    margin-top: -50px;
    position: relative;
    z-index: 1; /* Баннер находится ниже хедера по z-index */
}


/* Контент */
.content {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    gap:50px
}

.content::before {
    content: '';
    position: absolute;
    bottom: -190px;
    right: 95px;
    width: 390px; /* Укажите нужный размер */
    height: 240px;
    background: url('../img/plane.png') no-repeat;
    background-size: contain; /* Чтобы изображение сохраняло свои пропорции */
    z-index: 0; /* Убедитесь, что оно не перекрывает основной контент */
}

.game-frame {
    width: 100%;
}

.game-frame iframe {
    width: 100%;
    height: 75vh;
    aspect-ratio: 16 / 9;
    border: 2px solid #353D4E; /* Обводка */
    border-radius: 20px; /* Скругленные углы */
    box-sizing: border-box;
}

.registration-forms {
    width: 450px;
    /* Добавьте сюда стили вашей универсальной формы */
}

/* Футер */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #79849B;
    font-size: 13px;
    padding: 20px 100px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-logo img {
    max-height: 80px;
}

@media (max-width: 1500px) {
    .wrapper {
        padding: 0 50px;
        min-height: calc(100vh - 80px);
        box-sizing: border-box;
        transition: 1s;
    }
    .footer {
        padding: 20px 50px;
    }  
}
.banners {
    width: 89vw;
}

@media (max-width: 1240px) {
    .content::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 340px; /* Укажите нужный размер */
        height: 340px;
        background: url('../img/avi.png') no-repeat;
        background-size: contain; /* Чтобы изображение сохраняло свои пропорции */
        z-index: 0; /* Убедитесь, что оно не перекрывает основной контент */
    }
    .content {
        position: relative; /* Для корректного отображения псевдоэлемента */
    }
    .wrapper {
        padding: 0 40px;
    }
    .content {
        display: flex;
        justify-content: space-between;
        margin: 40px 0;
        gap: 50px;
        flex-direction: column;
        align-items: flex-end;
    }
    .banner-container {
        margin-top: -40px;  
    }
    .banners {
        display: flex;
        width: 96vw;
        margin-left: -27px;
        content: url('../img/bunner_tab.webp');
        justify-content: center;
    }
    .content {
        margin: 0px 0;   
    }
    .footer {
        padding: 20px 40px;
    }  
}

@media (max-width: 768px) {
    .content::before {
        display: none;
    }
    body, html {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        background: url('../img/mob.webp') no-repeat center center fixed;
        background-size: cover; /* Обеспечивает растягивание фона */
        overflow-x: hidden; /* Убирает возможный скролл */
        box-sizing: border-box; /* Гарантирует правильные размеры */
    }
    .content {
        display: flex;
        justify-content: space-between;
        margin: 10px 0;
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }
    .wrapper {
        padding: 0 24px;
    }
    .logo img {
        max-height: 28px;
    }
    .game-logo img {
        max-height: 38px;
    }
    .banners {
        width: 90vw;
        margin-left: -24px;
    }
    .banner-container {
        margin-top: -25px;
    }
    .footer {
        padding: 20px 24px;
    }  
}