/* M367_SITE_FOUNDATION_V3 START
   Global geometry and shared footer. The shell size itself is owned by
   mitino367_shell_geometry_v1.css.
*/

:root {
    --m367-brand-orange: #ff5a00;
    --m367-brand-orange-hover: #e95100; /* T-3: узаконен из page_contract, пара к brand */
    --m367-brand-orange-rgb: 255, 90, 0;
    --m367-foundation-shell: var(--m367-shell-width, min(1320px, calc(100vw - 36px)));
    --m367-foundation-bg: #050505;
    --m367-foundation-surface: #101113;
    --m367-foundation-surface-raised: #151619;
    --m367-foundation-text: rgba(255, 255, 255, .94);
    --m367-foundation-muted: rgba(255, 255, 255, .66);
    --m367-foundation-accent: var(--m367-brand-orange);
    --m367-foundation-border: rgba(var(--m367-brand-orange-rgb), .28);
    --m367-foundation-border-soft: rgba(var(--m367-brand-orange-rgb), .18);
    --m367-foundation-radius: 8px;
}

.m367-shell-frame,
.m367-shell-content,
.m367-header-shell {
    width: var(--m367-foundation-shell) !important;
    max-width: var(--m367-foundation-shell) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.workarea > .container.bx-content-section {
    width: var(--m367-foundation-shell) !important;
    max-width: var(--m367-foundation-shell) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.m367-layout-managed .workarea > .container.bx-content-section {
    padding: 0 !important;
}

.m367-layout-managed .workarea > .container.bx-content-section > .row {
    display: block !important;
    margin: 0 !important;
}

.m367-layout-managed .workarea > .container.bx-content-section > .row > .bx-content.col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.m367-layout-managed .sidebar {
    display: none !important;
}

/* Footer */
.m367-site-footer {
    width: 100%;
    margin: 0;
    color: var(--m367-foundation-text);
    background: #070708;
    border-top: 1px solid var(--m367-foundation-border);
}

.m367-site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr;
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 34px;
}

.m367-site-footer__logo {
    display: inline-block;
    color: var(--m367-foundation-text);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.m367-site-footer__logo span,
.m367-site-footer h4 {
    color: var(--m367-foundation-accent);
}

.m367-site-footer__brand p {
    max-width: 330px;
    margin: 16px 0 0;
    color: var(--m367-foundation-muted);
    font-size: 14px;
    line-height: 1.5;
}

.m367-site-footer h4 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.m367-site-footer__subhead {
    margin-top: 22px !important;
}

.m367-site-footer__documents a {
    color: #fff !important;
    font-weight: 750;
}

.m367-site-footer__documents a:hover {
    color: var(--m367-foundation-accent) !important;
}

.m367-site-footer__col a,
.m367-site-footer__contacts a {
    display: block;
    margin-bottom: 9px;
    color: var(--m367-foundation-muted);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.m367-site-footer__col a:hover,
.m367-site-footer__contacts a:hover {
    color: var(--m367-foundation-accent);
}

.m367-site-footer__contacts p {
    margin: 14px 0 0;
    color: var(--m367-foundation-muted);
    font-size: 14px;
    line-height: 1.45;
}

.m367-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 22px;
    color: rgba(255, 255, 255, .54);
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
}

/* Cookie notice */
.m367-site-cookie {
    position: fixed;
    z-index: 99999;
    right: auto;
    bottom: 24px;
    left: 50%;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, calc(100vw - 36px));
    padding: 16px 18px;
    color: #fff;
    background: #111214;
    border: 1px solid var(--m367-foundation-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
    font-size: 13px;
    line-height: 1.5;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.m367-site-cookie.is-visible {
    display: flex;
}

.m367-site-cookie__text {
    max-width: 920px;
}

.m367-site-cookie a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.m367-site-cookie__button {
    flex: 0 0 auto;
    padding: 10px 18px;
    color: #fff;
    background: var(--m367-foundation-accent);
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .m367-site-footer__inner {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .m367-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 34px;
    }

    .m367-site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .m367-site-cookie {
        align-items: stretch;
        flex-direction: column;
        bottom: 12px;
    }
}

/* M367_SITE_FOUNDATION_V3 END */
