/*
 * Promotional materials production and EU delivery background.
 * The component is isolated for future page-type-specific visual systems.
 */

body.maksoftbg-theme {
    background: #eceff1 !important;
    background-image: none !important;
}

.mk-promotional-materials-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
    perspective: 1400px;
    background: radial-gradient(circle at 51% 48%, rgba(255,255,255,.96) 0 16%, rgba(245,247,248,.76) 48%, rgba(225,229,232,.9) 100%), #eceff1;
}

.mk-pm-layer {
    position: absolute;
    inset: -5%;
    z-index: 1;
    width: 110%;
    height: 110%;
    object-fit: cover;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    filter: saturate(.48) contrast(.92) brightness(1.03);
    transform-origin: 50% 50%;
}

.mk-pm-layer-americas {
    opacity: 1;
    transform: scale(1.02);
}

.mk-pm-layer-china,
.mk-pm-layer-india,
.mk-pm-layer-balkans,
.mk-pm-layer-eu-borders,
.mk-pm-layer-eu-blue {
    transform: scale(1.05);
}

.mk-pm-layer-ground {
    transform: scale(1.08) translate3d(0, 2%, 0);
}

.mk-pm-render-source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mk-pm-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mk-pm-paper-grain {
    position: absolute;
    inset: -20%;
    z-index: 0;
    opacity: .22;
    background-image: repeating-linear-gradient(108deg, rgba(38,44,49,.018) 0 1px, transparent 1px 8px);
    transform: rotate(.001deg);
}

.mk-pm-rotation-shade {
    position: absolute;
    top: -18%;
    bottom: -18%;
    left: -32%;
    z-index: 2;
    width: 46%;
    opacity: 0;
    pointer-events: none;
    filter: blur(22px);
    will-change: transform, opacity;
    background: linear-gradient(90deg, transparent 0, rgba(35,48,58,.19) 35%, rgba(255,255,255,.46) 58%, transparent 100%);
    transform: translate3d(0, 0, 0) skewX(-5deg);
}

.mk-pm-transition-light {
    position: absolute;
    inset: -20%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    background: radial-gradient(circle at 57% 49%, rgba(255,255,255,.88) 0 4%, rgba(244,247,248,.42) 19%, transparent 48%);
    mix-blend-mode: screen;
}

.mk-pm-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(238,241,243,.5), transparent 24%, transparent 79%, rgba(232,235,237,.34)), linear-gradient(180deg, rgba(255,255,255,.35), transparent 22%, transparent 78%, rgba(214,218,221,.3));
}

.mk-pm-accessible-description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.maksoftbg-theme > main,
body.maksoftbg-theme > .mk-footer,
body.maksoftbg-theme > footer {
    position: relative;
    z-index: 1;
}

body.maksoftbg-theme > .mk-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

body.maksoftbg-theme .mk-header {
    --mk-header-map: none;
    background-color: rgba(247,248,249,.88);
}

body.maksoftbg-theme main > section,
body.maksoftbg-theme main > .mk-wrap {
    background-color: rgba(255,255,255,.82);
}

/* Keep the shared promotional materials background visible below subpages. */
body.maksoftbg-theme .mk-subpages-section.bg-light {
    background-color: rgba(248,249,250,.56) !important;
}

body.maksoftbg-theme .mk-subpages-section .mk-subpage-card,
body.maksoftbg-theme .mk-subpages-section .mk-product-tile {
    background-color: rgba(255,255,255,.64);
}

body.maksoftbg-theme .mk-subpages-section .mk-subpage-card__image,
body.maksoftbg-theme .mk-subpages-section .mk-subpage-card__body,
body.maksoftbg-theme .mk-subpages-section .mk-product-tile__image {
    background-color: rgba(247,248,250,.24);
}

body.maksoftbg-theme .mk-footer-cta {
    background: rgba(25,28,31,.46) !important;
    backdrop-filter: blur(1.5px);
}

body.maksoftbg-theme .mk-footer-cta,
body.maksoftbg-theme .mk-footer-cta a,
body.maksoftbg-theme .mk-footer-cta .mk-contact-form {
    text-shadow: 0 1px 3px rgba(0,0,0,.78);
}

body.maksoftbg-theme .mk-footer-cta .form-control,
body.maksoftbg-theme .mk-footer-cta button {
    text-shadow: none;
}

/* Remove the former standalone footer image and reveal the fixed page scene. */
body.maksoftbg-theme .mk-footer-cta:before,
body.maksoftbg-theme .mk-footer-cta:after {
    content: none;
    display: none;
}

/* The lower footer stays light while retaining a restrained background trace. */
body.maksoftbg-theme .mk-footer.bg-white {
    background-color: rgba(255,255,255,.86) !important;
}

body.maksoftbg-theme .mk-footer > .mk-wrap {
    background-color: transparent !important;
}

/* Anchor desktop submenus below their clickable first-level navigation links. */
@media (min-width: 992px) {
    body.maksoftbg-theme .mk-mainnav-bar {
        z-index: 1040;
    }

    body.maksoftbg-theme .mk-primary-menu .nav-item.dropdown {
        z-index: 1050;
    }

    body.maksoftbg-theme .mk-primary-menu .nav-item.dropdown > .dropdown-menu {
        top: 100%;
        right: auto;
        bottom: auto;
        left: 0;
        z-index: 1060;
        transform: none;
    }
}

.mk-promotional-materials-noscript {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    padding: 1.25rem;
    color: #25292d;
    background: rgba(255,255,255,.9);
}

.mk-promotional-materials-noscript h2 {
    margin: 0 0 .65rem;
    font-size: 1.25rem;
}

.mk-promotional-materials-noscript p {
    margin: .4rem 0;
}

@media (max-width: 700px) {
    .mk-pm-layer {
        inset: -12%;
        width: 124%;
        height: 124%;
    }

    .mk-pm-layer-americas { object-position: 50% center; }
    .mk-pm-layer-china { object-position: 58% center; }
    .mk-pm-layer-india { object-position: 55% center; }
    .mk-pm-layer-balkans,
    .mk-pm-layer-eu-borders,
    .mk-pm-layer-eu-blue { object-position: 53% center; }
    .mk-pm-layer-ground { object-position: 50% center; }
    .mk-pm-rotation-shade { width: 64%; }
}

@media (prefers-reduced-motion: reduce) {
    .mk-pm-rotation-shade,
    .mk-pm-transition-light,
    .mk-pm-canvas {
        display: none;
    }

    .mk-pm-layer {
        opacity: 0 !important;
        transform: none !important;
        filter: saturate(.35) contrast(.9) brightness(1.08) !important;
    }

    .mk-pm-layer-ground {
        opacity: .62 !important;
    }
}
