.subpage-body {
    min-height: 100vh;
    margin: 0;
    color: #f4f9ff;
    background: #010205 url("../images/mighty-dark-background.webp") center / cover fixed no-repeat;
    overflow-x: hidden;
}

.subpage-background,
.subpage-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.subpage-background {
    z-index: 0;
    background: #010205 url("../images/mighty-dark-background.webp") center / cover no-repeat;
    transform: scale(1.01);
}

.subpage-overlay {
    z-index: 1;
    background:
        radial-gradient(circle at 50% 38%, rgba(8, 0, 0, 0.18), rgba(0, 0, 0, 0.58) 78%),
        linear-gradient(180deg, rgba(1, 3, 8, 0.88), rgba(1, 4, 10, 0.94));
    pointer-events: none;
}

.subpage-header {
    position: relative;
    z-index: 3;
    max-width: 1510px;
    min-height: 96px;
    margin: 0 auto;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.subpage-brand {
    flex: 0 0 auto;
    width: 315px;
    height: 62px;
}

.subpage-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.subpage-nav a {
    color: #d9e8f8;
    font-family: "OpenSans SemiBold", "Open Sans", sans-serif;
    font-size: 15px;
    line-height: 22px;
    text-transform: uppercase;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.subpage-nav a:hover,
.subpage-nav a.active {
    color: #d5b65f;
    text-shadow: 0 0 16px rgba(213, 182, 95, 0.32);
}

.subpage-main {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 160px);
    padding: 40px 32px 80px;
}

.subpage-main .block_title {
    color: #d8ba66;
    text-shadow: 0 2px 14px rgba(213, 182, 95, 0.12);
}

.subpage-main #system,
.subpage-main #galery {
    max-width: 1510px;
    margin: 0 auto;
    padding-top: 12px;
    background: transparent;
}

.subpage-main .all_titles,
.subpage-main .system_blocks {
    transform: none !important;
    opacity: 1 !important;
}

.subpage-main .system_blocks {
    margin-top: 48px;
}

.subpage-main .system_left,
.subpage-main .system_right {
    background: linear-gradient(145deg, rgba(32, 34, 38, 0.95), rgba(10, 11, 13, 0.96));
}

.subpage-main .galery {
    margin-top: 48px;
}

.subpage-footer {
    position: relative;
    z-index: 2;
    padding: 22px 32px 34px;
    color: #8ea3b8;
    text-align: center;
}

@media (max-width: 820px) {
    .subpage-header {
        padding: 22px 24px;
        flex-direction: column;
        gap: 20px;
    }

    .subpage-nav {
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .subpage-nav a {
        display: inline-flex;
        min-height: 40px;
        padding: 8px 4px;
        align-items: center;
    }

    .subpage-brand {
        width: 260px;
        height: 54px;
        background-size: contain !important;
    }

    .subpage-main {
        padding: 28px 18px 60px;
    }
}
