* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #222;
}

a {
    color: inherit;
}

.app-header {
    min-height: 68px;
    padding: 12px 24px;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-header__brand-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.app-header__link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    opacity: 0.9;
}

.app-header__link:hover {
    opacity: 1;
    text-decoration: underline;
}

.app-page-content {
    padding: 24px;
}

.app-footer {
    padding: 16px 24px;
    background: #eee;
    color: #555;
    font-size: 13px;
}

.app-language {
    position: relative;
}

.app-language__button {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.app-language__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 120px;
    padding: 8px;
    background: #fff;
    color: #222;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.22);
    z-index: 1000;
}

.app-language.is-open .app-language__menu {
    display: block;
}

.app-language__item {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    text-decoration: none;
    color: #222;
    font-size: 13px;
}

.app-language__item:hover {
    background: #f1f1f1;
}

.app-language__item--active {
    font-weight: 700;
    background: #f1f1f1;
}

@media (max-width: 900px) {
    .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-header__nav {
        justify-content: flex-start;
    }
}

.ss-theme-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--fl-page-text-color, #ffffff);

    font-size: 18px;
    text-decoration: none;
    line-height: 1;

    transition: background 0.15s ease, transform 0.15s ease;
}

.ss-theme-toggle:hover {
    background: rgba(255,255,255,0.14);
    text-decoration: none;
    transform: translateY(-1px);
}