* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

html, body
{
    height: 100%;
    margin: 0;
}

/* бургер скрыт на больших экранах */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #eaeaea;
    border-radius: 3px;
    transition: 0.3s;
}

/* мобильное меню (изначально скрыто) */
.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Фоновое изображение с затемнением через градиент */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), /* затемнение */
        url("../assets/background.png") center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Верхняя панель */
.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

/* Логотип + название игры */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* PNG логотип студии */
.studio-logo {
    height: 48px;
    width: 48px;
    object-fit: cover;
}

.rounded-logo {
    border-radius: 12%;
}

/* Золотое название игры */
.game-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #c9a54d, #fcefb4, #c9a54d);
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Меню */
.menu a {
    margin-left: 25px;
    text-decoration: none;
    color: #eaeaea;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

/* При наведении */
.menu a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Активный пункт страницы */
.menu a.active {
    background: rgba(255, 255, 255, 0.25);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0a0a0a; /* совпадает с фоном */
    transition: background-color 0.2s; /* плавный переход */
}

/* Центральный блок */
.hero {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 40px;
    min-height: calc(100vh - 140px - 80px); /* хедер + футер */
    z-index: 2;
    position: relative;
}

.overlay-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    width: 60%;
    border-radius: 8px;    
    box-shadow: 0 0 30px #000000cc;
    color: #f8f8f8;
    line-height: 1.7;
}

.overlay-box h1 {
    margin-bottom: 15px;
    font-size: 32px;
    text-align: center;
}

.overlay-box p {
    text-shadow: 0 0 3px rgba(0,0,0,0.7);
    line-height: 1.6;
    font-size: 18px;
    text-indent: 30px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.overlay-box ul {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 60px; /* отступ слева для маркеров */
    list-style-type: disc; /* стандартные маркеры */
}

.overlay-box li {
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 18px;
}

.overlay-box ol {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 60px; /* отступ слева для маркеров */
}

/* Футер */
.footer {
    width: 100%;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.95); /* чуть более плотное затемнение */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;

    position: relative;
    bottom: auto;
    z-index: 2;
    color: #f5f5f5; /* светлый текст футера */
}

.footer a {
    color: #cccccc;
    margin-left: 15px;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Языковой выпадающий список */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: none;
    border: none;
    color: #eaeaea;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 6px 0;
    min-width: 110px;
    z-index: 2000;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.lang-menu a {
    display: block;
    padding: 8px 16px;
    color: #eaeaea;
    text-decoration: none;
    transition: 0.2s;
}

.lang-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Показать меню */
.lang-dropdown.open .lang-menu {
    display: block;
}

@media (max-width: 1024px) {
    .overlay-box {
        width: 80%;
        padding: 30px;
        font-size: 17px;
    }

    .overlay-box h1 {
        font-size: 28px;
    }

    .menu a {
        margin-left: 18px;
        font-size: 15px;
    }

    .topbar {
        padding: 0 25px;
    }

    .hero {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: calc(100vh - 140px - 80px); /* хедер + футер */
        z-index: 2;
        position: relative;
    }
}

@media (max-width: 768px) {

    .burger {
        display: flex;
        margin-right: auto;
    }

    .topbar {
        height: 60px;
        padding: 0 16px;
    }

    .studio-logo {
        height: 38px;
        width: 38px;
    }

    .game-title {
        font-size: 22px;
    }

        /* меню становится выпадающим */
    .menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 75%;
        max-width: 250px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(4px);
        flex-direction: column;
        padding-top: 20px;
        gap: 10px;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 1100;
    }

    /* меню открыто */
    .menu.open {
        transform: translateX(0);
    }

    /* пункты */
    .menu a {
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        margin: 0;
    }

    /* иконка бургер → крестик */
    .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* центральный контейнер */
    .hero {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: calc(100vh - 140px - 80px); /* хедер + футер */
        z-index: 2;
        position: relative;
    }

    .overlay-box {
        width: 92%;
        padding: 22px;
        font-size: 16px;
    }

    .overlay-box p,
    .overlay-box li {
        font-size: 16px;
        line-height: 1.55;
        text-indent: 0;
    }

    .overlay-box ul {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {

    .burger{
        display: flex;
        margin-right: auto;
    }

    .topbar {
        padding: 0 10px;
    }

    .logo {
        gap: 8px;
    }

    .studio-logo {
        height: 32px;
        width: 32px;
    }

    .game-title {
        font-size: 18px;
        letter-spacing: 0;
    }

        /* меню становится выпадающим */
    .menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 70%;
        max-width: 175px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(4px);
        flex-direction: column;
        padding-top: 10px;
        gap: 10px;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 1100;
    }

    /* меню открыто */
    .menu.open {
        transform: translateX(0);
    }

    /* пункты */
    .menu a {
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        margin: 0;
    }

    /* иконка бургер → крестик */
    .burger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .overlay-box {
        width: 95%;
        padding: 18px;
        font-size: 15px;
    }

    .overlay-box h1 {
        font-size: 22px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 70px;
        padding-bottom: 40px;
        min-height: calc(100vh - 140px - 80px); /* хедер + футер */
        z-index: 2;
        position: relative;
    }
}
