.module-armory {
    --bm-armory-surface: rgba(18, 26, 34, 0.64);
    --bm-armory-surface-strong: rgba(18, 26, 34, 0.82);
    --bm-armory-border: rgba(156, 231, 225, 0.08);
    --bm-armory-border-strong: rgba(156, 231, 225, 0.18);
    --bm-armory-text: rgba(191, 246, 242, 0.74);
    --bm-armory-text-soft: rgba(191, 246, 242, 0.48);
    --bm-armory-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

body.module-armory {
    min-height: 100vh;
    --bm-stack-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(156, 231, 225, 0.04), transparent 20%),
        linear-gradient(180deg, #0a0e14 0%, #080b0f 100%);
}

.module-armory .bm-nav {
    background: rgba(8, 11, 15, 0.74);
    border-bottom: 1px solid rgba(156, 231, 225, 0.1);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.module-armory .bm-nav.scrolled {
    background: rgba(8, 11, 15, 0.9);
}

.module-armory .section-content.bm-armory-page {
    position: relative;
    margin: 0 !important;
    padding: 0;
    display: block;
    flex-grow: 0;
    background: none;
    overflow: hidden;
    isolation: isolate;
}

.module-armory .section-content.bm-armory-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../../../themes/default/assets/images/graphics/armory-hero-strip.webp');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center top;
    filter: saturate(0.96);
    pointer-events: none;
    z-index: 0;
}

.module-armory .section-content.bm-armory-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 24%, rgba(101, 255, 136, 0.18), transparent 19%),
        radial-gradient(circle at 16% 78%, rgba(255, 187, 62, 0.12), transparent 18%),
        linear-gradient(90deg, rgba(8, 11, 15, 0.78) 0%, rgba(8, 11, 15, 0.42) 30%, rgba(8, 11, 15, 0.08) 55%, rgba(8, 11, 15, 0.06) 80%, rgba(8, 11, 15, 0.3) 100%),
        linear-gradient(180deg, rgba(8, 11, 15, 0.45) 0%, rgba(8, 11, 15, 0.05) 25%, rgba(8, 11, 15, 0.05) 75%, rgba(8, 11, 15, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.module-armory .bm-armory-stage {
    position: relative;
    min-height: calc(24.8vw + 60px); /* полоса 4:1 под меню */
    display: flex;
    align-items: center;
    padding: 80px 0 24px;
    background: transparent;
    overflow: hidden;
}

.module-armory .bm-armory-stage::before {
    content: none;
}

.module-armory .bm-armory-stage::after {
    content: none;
}

.module-armory .bm-armory-stage .container {
    position: relative;
    z-index: 1;
}

.module-armory .bm-armory-hero {
    position: relative;
    max-width: max(360px, 34vw); /* до капсул с прототипами */
    margin: 0;
    padding: 28px 0 18px;
    text-align: left;
}

.module-armory .bm-armory-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: min(74%, 500px);
    height: 1px;
    background: linear-gradient(90deg, rgba(156, 231, 225, 0.18), transparent);
}

.module-armory .bm-armory-hero__label {
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(156, 231, 225, 0.36);
    text-transform: uppercase;
}

.module-armory .bm-armory-hero__title {
    margin: 0 0 16px;
    font-family: var(--font-cormorant);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 600;
    font-style: italic;
    line-height: 0.95;
    color: #f1f8f7;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.54);
}

.module-armory .bm-armory-hero__desc {
    max-width: 640px;
    margin: 0 auto;
    font-family: var(--font-nunito);
    font-size: 16px;
    line-height: 1.8;
    color: rgba(191, 246, 242, 0.62);
}

.module-armory .bm-armory-content {
    position: relative;
    margin-top: -58px;
    padding: 88px 0 96px;
    background: none;
    z-index: 2;
}

.module-armory .bm-armory-content__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 15, 0.04) 0%, rgba(8, 11, 15, 0.18) 34%, rgba(8, 11, 15, 0.46) 72%, rgba(8, 11, 15, 0.76) 100%);
    pointer-events: none;
    z-index: 0;
}

.module-armory .bm-armory-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(156, 231, 225, 0.12), transparent);
    pointer-events: none;
    z-index: 2;
}

.module-armory .bm-armory-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(156, 231, 225, 0.22);
    border: 1px solid rgba(156, 231, 225, 0.34);
    box-shadow: 0 0 12px rgba(156, 231, 225, 0.18);
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
    z-index: 2;
}

.module-armory .bm-armory-content > :not(.bm-armory-content__overlay) {
    position: relative;
    z-index: 1;
}

.module-armory .section-pageheader {
    display: none !important;
}

.module-armory #page-page.pagebody {
    margin-top: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.module-armory #page-page > .container,
.module-armory #page-page > .container > .row,
.module-armory [data-mainbar] {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.armory-search-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.armory-search-panel,
.armory-search-results {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--bm-armory-border);
    background: var(--bm-armory-surface);
    box-shadow: var(--bm-armory-shadow);
    overflow: hidden;
}

.armory-search-panel::before,
.armory-search-results::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(156, 231, 225, 0.06), transparent 24%),
        radial-gradient(circle at bottom left, rgba(155, 27, 27, 0.08), transparent 28%);
    pointer-events: none;
}

.armory-search-panel {
    padding: 30px;
}

.armory-search-panel__intro,
.armory-search-form,
.armory-search-note,
.armory-search-results__head,
.armory-search-table {
    position: relative;
    z-index: 1;
}

.armory-search-panel__eyebrow,
.armory-search-results__eyebrow {
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(156, 231, 225, 0.36);
    text-transform: uppercase;
}

.armory-search-panel__title,
.armory-search-results__title {
    margin: 0 0 12px;
    font-family: var(--font-cormorant);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: #effbfa;
}

.armory-search-panel__desc,
.armory-search-results__hint {
    max-width: 720px;
    margin: 0;
    font-family: var(--font-nunito);
    font-size: 15px;
    line-height: 1.75;
    color: var(--bm-armory-text-soft);
}

.armory-search-form {
    margin-top: 24px;
}

.armory-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.armory-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.armory-field__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.4px;
    color: rgba(191, 246, 242, 0.54);
    text-transform: uppercase;
}

.armory-search-form .form-control,
.armory-search-form select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(156, 231, 225, 0.1);
    background: rgba(8, 11, 15, 0.52);
    color: #d6f9f6;
    font-family: var(--font-nunito);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.armory-search-form select {
    appearance: none;
    background-image:
        linear-gradient(180deg, rgba(8, 11, 15, 0), rgba(8, 11, 15, 0)),
        url('../../../themes/default/assets/images/graphics/select-arrow-01.png');
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, calc(100% - 14px) center;
    padding-right: 42px;
}

.armory-search-form .form-control::placeholder {
    color: rgba(156, 231, 225, 0.36);
    opacity: 1;
}

.armory-search-form .form-control:focus,
.armory-search-form select:focus {
    border-color: rgba(156, 231, 225, 0.22);
    box-shadow: 0 0 0 3px rgba(156, 231, 225, 0.08);
}

.armory-search-form option {
    background: #10171d;
    color: #d6f9f6;
}

.armory-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid rgba(156, 231, 225, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(155, 27, 27, 0.82), rgba(86, 18, 26, 0.9));
    color: #f4f9fb;
    font-family: var(--font-exo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(155, 27, 27, 0.28), 0 6px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.armory-search-button:hover {
    transform: translateY(-2px);
    border-color: rgba(156, 231, 225, 0.28);
    box-shadow: 0 0 28px rgba(155, 27, 27, 0.42), 0 10px 28px rgba(0, 0, 0, 0.34);
}

.armory-search-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-family: var(--font-nunito);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(191, 246, 242, 0.5);
}

.armory-search-note__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(156, 231, 225, 0.6);
    box-shadow: 0 0 10px rgba(156, 231, 225, 0.24);
    flex-shrink: 0;
}

#search_box {
    display: none;
}

.armory-search-results {
    padding: 28px 30px 30px;
}

.armory-search-results__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 20px;
}

.armory-search-results__title {
    margin-bottom: 0;
    font-size: clamp(26px, 3.4vw, 40px);
}

.armory-search-results__hint {
    max-width: 380px;
    text-align: right;
}

.armory-search-table {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(156, 231, 225, 0.08);
    background: rgba(8, 11, 15, 0.38);
}

.module-armory .nice_table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse;
    color: #d6f9f6;
    background: transparent;
}

.module-armory .nice_table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(156, 231, 225, 0.08);
    background: rgba(156, 231, 225, 0.04);
    color: rgba(191, 246, 242, 0.56);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.module-armory .nice_table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(156, 231, 225, 0.04);
    background: transparent;
    color: #d6f9f6;
    font-family: var(--font-nunito);
    font-size: 14px;
    vertical-align: middle;
}

.module-armory .nice_table tbody tr:hover td {
    background: rgba(156, 231, 225, 0.03);
}

.module-armory .nice_table td:first-child {
    font-weight: normal;
}

.module-armory #search_box a {
    color: #bff6f2 !important;
}

.module-armory #search_box a:hover {
    color: #e9fffd !important;
}

.module-armory .dataTables_wrapper {
    padding: 0;
    color: var(--bm-armory-text);
}

.module-armory .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.module-armory .dataTables_wrapper .col-sm-12 {
    padding-left: 0;
    padding-right: 0;
}

.module-armory .dataTables_processing {
    border: 1px solid rgba(156, 231, 225, 0.12) !important;
    border-radius: 12px !important;
    background: rgba(8, 11, 15, 0.82) !important;
    color: #d6f9f6 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.module-armory .dataTables_info,
.module-armory .dataTables_paginate {
    padding: 16px !important;
    color: rgba(191, 246, 242, 0.44) !important;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.module-armory .dataTables_paginate .paginate_button,
.module-armory .dataTables_paginate .paginate_button.current,
.module-armory .dataTables_paginate .paginate_button.disabled {
    margin-left: 6px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(156, 231, 225, 0.1) !important;
    background: rgba(156, 231, 225, 0.04) !important;
    color: rgba(191, 246, 242, 0.54) !important;
}

.module-armory .dataTables_paginate .paginate_button.current,
.module-armory .dataTables_paginate .paginate_button:hover {
    border-color: rgba(156, 231, 225, 0.22) !important;
    background: rgba(156, 231, 225, 0.08) !important;
    color: #effbfa !important;
}

.module-armory .dataTables_paginate .paginate_button.disabled,
.module-armory .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.42;
    box-shadow: none !important;
}

.char_avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(156, 231, 225, 0.12);
    background: rgba(8, 11, 15, 0.4);
}

.faction-1,
.faction-2 {
    width: 45px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
}

.faction-1 {
    background-image: url(../../../images/factions/1.png);
}

.faction-2 {
    background-image: url(../../../images/factions/2.png);
}

.module-armory .footer {
    position: relative;
    margin-top: -34px !important;
    padding-top: 64px;
    background: linear-gradient(180deg, rgba(8, 11, 15, 0) 0%, rgba(8, 11, 15, 0.52) 22%, rgba(8, 11, 15, 0.84) 60%, rgba(8, 11, 15, 0.96) 100%);
    overflow: hidden;
}

.module-armory .footer::before {
    content: none;
}

.module-armory .footer .container-fluid {
    position: relative;
    z-index: 1;
    padding: 0;
}

.module-armory .footer .container-fluid::before {
    content: '';
    position: absolute;
    top: -26px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(156, 231, 225, 0.26), transparent);
}

.module-armory .footer .container-fluid::after {
    content: '';
    position: absolute;
    top: -31px;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(156, 231, 225, 0.34);
    background: rgba(156, 231, 225, 0.18);
    box-shadow: 0 0 14px rgba(156, 231, 225, 0.18);
    transform: translateX(-50%) rotate(45deg);
}

.module-armory .footer .row-1,
.module-armory .footer [data-line] {
    display: none !important;
}

.module-armory .footer .row {
    margin: 0;
}

.module-armory .footer .col-sm-12 {
    padding: 0;
}

.module-armory .footer .footer-text,
.module-armory .footer .footer-copyright {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.module-armory .footer .footer-text {
    padding: 4px 24px 10px !important;
    color: rgba(191, 246, 242, 0.44);
    font-size: 15px !important;
    line-height: 1.72 !important;
}

.module-armory .footer .footer-copyright {
    padding: 0 24px 16px !important;
    color: rgba(217, 248, 243, 0.7);
    font-size: 15px !important;
}

@media (max-width: 992px) {
    .module-armory .section-content.bm-armory-page::before {
        background-position: 58% 16%;
    }

    .module-armory .bm-armory-stage {
        padding: 140px 0 148px;
    }

    .module-armory .bm-armory-content {
        margin-top: -48px;
        padding: 76px 0 88px;
    }

    .armory-search-panel,
    .armory-search-results {
        padding-left: 24px;
        padding-right: 24px;
    }

    .armory-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .armory-field--query,
    .armory-search-button {
        grid-column: 1 / -1;
    }

    .armory-search-button {
        width: 100%;
    }

    .armory-search-results__head {
        flex-direction: column;
        align-items: start;
    }

    .armory-search-results__hint {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .module-armory .section-content.bm-armory-page::before {
        background-image: url('../../../themes/default/assets/images/graphics/armory-hero-strip-mobile.webp');
        background-position: center top;
        background-size: 100% auto;
        filter: saturate(0.94) brightness(0.76);
    }

    .module-armory .bm-armory-stage {
        padding: 128px 0 126px;
    }

    .module-armory .bm-armory-content {
        margin-top: -36px;
        padding: 64px 0 78px;
    }

    .module-armory .bm-armory-hero__desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .armory-search-panel,
    .armory-search-results {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .armory-search-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .armory-search-form .form-control,
    .armory-search-form select,
    .armory-search-button {
        min-height: 50px;
    }

    .module-armory .nice_table thead th,
    .module-armory .nice_table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .module-armory .footer {
        margin-top: -22px !important;
        padding-top: 54px;
    }
}

@media (max-width: 576px) {
    .module-armory .section-content.bm-armory-page::before {
        background-position: center 12%;
    }

    .module-armory .bm-armory-stage {
        padding: 120px 0 114px;
    }

    .module-armory .bm-armory-hero {
        padding-top: 18px;
    }

    .module-armory .bm-armory-hero__label {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .module-armory .bm-armory-hero__title {
        font-size: clamp(34px, 11vw, 50px);
    }

    .module-armory .bm-armory-hero__desc {
        font-size: 14px;
    }

    .module-armory .bm-armory-content {
        margin-top: -28px;
        padding: 56px 0 70px;
    }

    .module-armory .bm-armory-content::before {
        left: 8%;
        right: 8%;
    }

    .armory-search-panel__title,
    .armory-search-results__title {
        font-size: clamp(26px, 8vw, 36px);
    }

    .armory-search-panel__desc,
    .armory-search-note,
    .armory-search-results__hint {
        font-size: 14px;
    }

    .char_avatar {
        width: 36px;
        height: 36px;
    }

    .module-armory .footer {
        padding-top: 48px;
    }

    .module-armory .footer .container-fluid::before {
        left: 8%;
        right: 8%;
    }

    .module-armory .footer .footer-text {
        padding: 4px 16px 10px !important;
        font-size: 13px !important;
    }
}

/* hall-armory-fix (2026-10-01): низ картинки в размытую копию, заголовок слева, телефон — картинка сверху */
@media (min-width: 769px) {
    .module-armory .section-content.bm-armory-page::before {
        top: 60px;
        bottom: auto;
        height: 24.8vw;
    }

    .module-armory .bm-armory-hero {
        max-width: 36vw;
        padding: 0;
    }

    .module-armory .bm-armory-hero__title {
        font-size: clamp(34px, 3vw, 58px);
        margin-bottom: 10px;
    }

    .module-armory .bm-armory-hero__desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .module-armory .bm-armory-content {
        margin-top: 0;
    }

    .module-armory .bm-armory-hero__title,
    .module-armory .bm-armory-hero__desc {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 1500px) {
    .module-armory .bm-armory-hero__title {
        font-size: 3.4vw;
    }

    .module-armory .bm-armory-hero__desc {
        font-size: clamp(15px, 0.95vw, 22px);
    }
}

@media (max-width: 768px) {
    .module-armory .section-content.bm-armory-page::before {
        top: 60px;
        bottom: auto;
        height: 50vw;
    }

    .module-armory .section-content.bm-armory-page::after {
        background: linear-gradient(180deg, rgba(8, 11, 15, 0) calc(50vw + 20px), rgba(8, 11, 15, 0.94) calc(50vw + 70px), rgba(8, 11, 15, 0.94) 100%);
    }

    .module-armory .bm-armory-stage {
        min-height: 0;
        display: block;
        padding: calc(50vw + 30px) 0 40px;
    }

    .module-armory .bm-armory-hero {
        text-align: left;
        margin: 0;
        max-width: none;
    }

    .module-armory .bm-armory-hero__title,
    .module-armory .bm-armory-hero__desc {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
}

/* пол гоблинской мастерской под футером (2026-10-03): прежний футер модуля — прозрачный градиент с линией и ромбом — заменён;
   сверху растворяется в фоне страницы, к низу притемнён под мелкий текст */
.module-armory .footer {
	margin-top: 0 !important;
	padding-top: 72px;
	overflow: visible;
	background:
		linear-gradient(180deg, #080b0f 0%, rgba(8, 11, 15, 0.74) 16%, rgba(8, 7, 8, 0.38) 38%, rgba(8, 7, 8, 0.58) 66%, rgba(6, 5, 6, 0.93) 100%),
		url('../../../themes/default/assets/images/graphics/goblin-floor.webp') center top / cover no-repeat;
}

.module-armory .footer::before,
.module-armory .footer .container-fluid::before,
.module-armory .footer .container-fluid::after {
	content: none;
	display: none;
}

.module-armory .footer .footer-text {
	color: rgba(255, 233, 214, 0.58);
}

.module-armory .footer .footer-copyright {
	color: rgba(255, 240, 226, 0.78);
}
