html {
    scroll-behavior: smooth;
    font-size: 20px;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    margin: 0px;
    background: #0B0B0B;
    color: #FAF8FE;
    font-family: "Montserrat";
    /* font-family: "Unbounded"; */
    line-height: 1;
    z-index: -1000;
    position: relative;
    letter-spacing: -0.04rem;
    background-image: url("../images/subwindow-gradient.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-attachment: fixed;
    min-height: 100vh;
}

.top {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 2rem;
}

.logo span {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: 1.2rem;
}

.lang-select {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    margin-left: auto;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.4rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    min-width: 5rem;
}

.lang-trigger img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: cover;
}

.lang-code {
    font-weight: 600;
    display: none;
}

.arrow {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid #FAF8FE;
    transition: transform 0.2s;
}

.lang-select.open .arrow {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2D2D2D;
    border-radius: 0.4rem;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    display: none;
    width: 100%;
    z-index: 100;
}

.lang-options li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.lang-options li:hover {
    background: #333333;
}

.lang-options img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: cover;
}

.lang-select.open .lang-options {
    display: block;
}


.bottom {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    gap: 10px;
    font-size: 14px;
    color: #595959;
}

.bottom-links {
    display: flex;
    gap: 10px;
}

.bottom a {
    color: white;
    text-decoration: none;
}

.subpage-content {
    width: 90%;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    background: #0b0b0b9f;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.subpage-content a {
    color: #8042E4;
}

@media (max-width: 600px) {
    body {
        background-image: none;
    }

    .subpage-content {
        width: 100%;
        padding: 20px;
    }
}