/* MERIDA — MOBILE HEADER v1.2 | isolated preview */
@media (max-width: 767px) {
body { --merida-mobile-css-ready: 1; }
body.merida-mobile-layout #tpanel {
    display: none !important;
}

body.merida-mobile-layout #header {
    top: 0 !important;
    background: #fff !important;
    padding: 5px 0 10px !important;
    box-shadow: 0 3px 15px rgba(0,0,0,.045) !important;
}

body.merida-mobile-layout #header > .centering > .centeringin {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 44px 44px 44px;
    grid-template-rows: auto auto auto;
    column-gap: 4px;
    row-gap: 5px;
    align-items: center;
}

body.merida-mobile-layout #header > .centering > .centeringin::before,
body.merida-mobile-layout #header > .centering > .centeringin::after {
    display: none !important;
}

body.merida-mobile-layout #header .logo {
    grid-column: 1;
    grid-row: 1;
    width: auto !important;
    height: 48px !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.merida-mobile-layout #header .logo .column1inner {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    height: 48px !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.merida-mobile-layout #header .logo img {
    width: clamp(100px,35vw,135px) !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.merida-mobile-layout #header .contacts {
    grid-column: 2;
    grid-row: 1;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    float: none !important;
}

body.merida-mobile-layout #header .contacts .column1inner,
body.merida-mobile-layout #header .contacts a[href^="tel:"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.merida-mobile-layout #header .right-group {
    grid-column: 4;
    grid-row: 1;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    float: none !important;
}

body.merida-mobile-layout #header .right-group .basket,
body.merida-mobile-layout #header .basket .column1inner,
body.merida-mobile-layout #header .basketinhead {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.merida-mobile-layout #header .basketinhead > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
}

body.merida-mobile-layout #header .contacts a[href^="tel:"] > i.icon,
body.merida-mobile-layout #header .basketinhead > a > i.icon,
body.merida-mobile-layout #header .searchinhead .enter .icon,
body.merida-mobile-layout #header .searchinhead .zoom .icon,
body.merida-mobile-layout #header .catalogmenusmall > li.parent > a.parent .icon.menu {
    background: #083B78 !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

body.merida-mobile-layout #header .contacts a[href^="tel:"] > i.icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.9v3a2%202%200%200%201-2.2%202%20A19.8%2019.8%200%200%201%203.1%205.2%202%202%200%200%201%205.1%203h3%20a2%202%200%200%201%202%201.7l.8%203.1a2%202%200%200%201-.5%202.1%20l-1.3%201.3a16%2016%200%200%200%205.7%205.7l1.3-1.3%20a2%202%200%200%201%202.1-.5l3.1.8a2%202%200%200%201%201.7%201.9z%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.9v3a2%202%200%200%201-2.2%202%20A19.8%2019.8%200%200%201%203.1%205.2%202%202%200%200%201%205.1%203h3%20a2%202%200%200%201%202%201.7l.8%203.1a2%202%200%200%201-.5%202.1%20l-1.3%201.3a16%2016%200%200%200%205.7%205.7l1.3-1.3%20a2%202%200%200%201%202.1-.5l3.1.8a2%202%200%200%201%201.7%201.9z%22%2F%3E%3C%2Fsvg%3E");
    float: none !important;
    margin: 0 !important;
    -webkit-mask-size: 23px !important;
    mask-size: 23px !important;
}

body.merida-mobile-layout #header .basketinhead > a > i.icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2221%22%20r%3D%221%22%2F%3E%3Cpath%20d%3D%22M1%201h4l4%2015h11l3-11H6%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2221%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2221%22%20r%3D%221%22%2F%3E%3Cpath%20d%3D%22M1%201h4l4%2015h11l3-11H6%22%2F%3E%3C%2Fsvg%3E");
    float: none !important;
    margin: 0 !important;
    -webkit-mask-size: 26px !important;
    mask-size: 26px !important;
}

body.merida-mobile-layout #header .searchinhead .enter .icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.5%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.5%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E");
}

body.merida-mobile-layout #header .searchinhead .zoom .icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2012h16M14%206l6%206-6%206%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2012h16M14%206l6%206-6%206%22%2F%3E%3C%2Fsvg%3E");
    background: #fff !important;
}

body.merida-mobile-layout #header .catalogmenusmall > li.parent > a.parent .icon.menu {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M3%2012h18M3%2018h18%22%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M3%2012h18M3%2018h18%22%2F%3E%3C%2Fsvg%3E");
    background: #fff !important;
    width: 18px !important;
    height: 18px !important;
}

body.merida-mobile-layout .merida-mobile-account {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    width: 44px;
    height: 44px;
    z-index: 20;
}

body.merida-mobile-layout .merida-mobile-account summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #083B78;
    cursor: pointer;
    list-style: none;
}

body.merida-mobile-layout .merida-mobile-account summary::-webkit-details-marker {
    display: none;
}

body.merida-mobile-layout .merida-mobile-account summary:focus-visible {
    outline: 2px solid #083B78; outline-offset: -2px; border-radius: 50%;
}

body.merida-mobile-layout .merida-mobile-account[open] {
    z-index: 1500 !important;
}

body.merida-mobile-layout .merida-mobile-account[open] summary {
    background: #EDF2F8; border-radius: 50%;
}

body.merida-mobile-layout .merida-mobile-account-panel {
    position: absolute;
    top: 48px;
    right: -44px;
    z-index: 1501 !important;
    width: 220px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E1E7EE;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    box-sizing: border-box;
    text-align: left !important;
}

body.merida-mobile-layout .merida-mobile-account-panel::before {
    content: 'Личный кабинет';
    display: block;
    color: #083B78;
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #E6EBF0;
}

body.merida-mobile-layout .merida-mobile-account-panel .authinhead,
body.merida-mobile-layout .merida-mobile-account-panel .authinheadinner {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    text-align: left !important;
    color: #083B78 !important;
}

body.merida-mobile-layout .merida-mobile-account-panel .authinheadinner {
    font-size: 0 !important; line-height: 0 !important;
}

body.merida-mobile-layout .merida-mobile-account-panel a {
    position: static !important;
    display: flex !important;
    align-items: center;
    float: none !important;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    text-align: left !important;
    color: #083B78 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

body.merida-mobile-layout .merida-mobile-account-panel a + a {
    border-top: 1px solid #E6EBF0;
}

body.merida-mobile-layout .merida-mobile-account-panel .icon {
    display: none !important;
}

body.merida-mobile-layout #header .catalogmenucolumn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

body.merida-mobile-layout #header .catalogmenusmall {
    width: 100% !important; margin: 0 !important;
}

body.merida-mobile-layout #header .catalogmenusmall > li.parent > a.parent {
    background: #083B78 !important;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 500;
}

body.merida-mobile-layout #header .searchinhead {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid #083B78 !important;
    border-radius: 4px;
}

body.merida-mobile-layout #header #title-search-input {
    background: transparent !important;
    color: #083B78 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 16px !important;
}

body.merida-mobile-layout #header #title-search-input::placeholder {
    color: #8493A2; font-size: 13px;
}

body.merida-mobile-layout #header .searchinhead:focus-within {
    border-color: #083B78 !important; box-shadow: 0 0 0 1px #083B78 !important;
}

body.merida-mobile-layout #header .searchinhead .aroundtext {
    border: 0 !important; outline: none !important; box-shadow: none !important;
}

body.merida-mobile-layout #header .searchinhead .enter {
    background: transparent !important;
}

body.merida-mobile-layout #header .searchinhead .zoom {
    background: #083B78 !important; border-radius: 0 3px 3px 0;
}

body.merida-mobile-layout > .body { padding-top: var(--merida-mobile-header-height,160px) !important; }

body.merida-mobile-layout .merida-mobile-account[open] .merida-mobile-account-panel {
    animation: meridaAccountReveal .2s ease both;
}
}
@keyframes meridaAccountReveal { from {opacity:0;transform:translateY(-5px)} to {opacity:1;transform:translateY(0)} }
@media (prefers-reduced-motion: reduce) { body.merida-mobile-layout .merida-mobile-account-panel {animation:none !important;} }

/* MERIDA — MOBILE HERO v1.2 | only when the mobile module is active */
@media (max-width: 767px) {
    body.merida-mobile-layout #content { margin-top: 0 !important; }
    body.merida-mobile-layout .merida-mobile-hero-active {
        position: relative !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 calc(50% - 50vw) 16px !important;
        --mobile-hero-height: max(420px, 111.111vw);
        --mobile-dots-color: #083B78;
    }
    body.merida-mobile-layout .merida-mobile-hero-active.merida-mobile-dots-light {
        --mobile-dots-color: #FFFFFF;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-list {
        height: var(--mobile-hero-height) !important;
        touch-action: pan-y;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .main-banners__item {
        position: relative;
        height: var(--mobile-hero-height) !important;
        background: #FFFFFF;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .main-banners__item > a {
        display: block;
        height: 100%;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .desk-banner {
        display: none !important;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .mobile-banner {
        display: block !important;
        width: 100% !important;
        height: var(--mobile-hero-height) !important;
        object-fit: contain;
        object-position: center;
    }
    body.merida-mobile-layout .merida-mobile-hero-active [data-hero-layout="hero"] .mobile-banner {
        object-fit: cover;
        object-position: center top;
    }
    body.merida-mobile-layout .merida-mobile-hero-active [data-text-theme="dark"] {
        --mobile-hero-ink: #083B78;
        --mobile-hero-button-bg: #083B78;
        --mobile-hero-button-ink: #FFFFFF;
    }
    body.merida-mobile-layout .merida-mobile-hero-active [data-text-theme="light"] {
        --mobile-hero-ink: #FFFFFF;
        --mobile-hero-button-bg: #FFFFFF;
        --mobile-hero-button-ink: #083B78;
    }
    body.merida-mobile-layout .merida-mobile-hero-active [data-hero-layout="hero"] .merida-hero-overlay {
        display: flex !important;
        position: absolute;
        inset: auto 0 38px;
        align-items: flex-end;
        pointer-events: none;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-inner {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 24px;
        box-sizing: border-box;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-copy {
        width: 100% !important;
        color: var(--mobile-hero-ink, #083B78);
        text-align: left !important;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-title {
        color: var(--mobile-hero-ink, #083B78) !important;
        font-size: clamp(26px, 7.7vw, 30px) !important;
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: -.5px;
        margin: 0 0 10px !important;
        text-align: left !important;
        overflow-wrap: break-word;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-subtitle {
        color: var(--mobile-hero-ink, #083B78) !important;
        font-size: 15px !important;
        font-weight: 400;
        line-height: 1.45;
        margin: 0 0 18px !important;
        text-align: left !important;
        overflow-wrap: break-word;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-button {
        display: inline-flex !important;
        align-items: center;
        gap: 14px;
        max-width: 100%;
        min-height: 44px;
        padding: 12px 20px;
        box-sizing: border-box;
        background: var(--mobile-hero-button-bg, #083B78) !important;
        color: var(--mobile-hero-button-ink, #FFFFFF) !important;
        border: 0;
        border-radius: 0 !important;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .8px;
        text-transform: uppercase;
        text-decoration: none !important;
        pointer-events: auto;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-button::after {
        content: '→'; font-size: 19px; line-height: 1; flex-shrink: 0;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .merida-hero-button:focus-visible {
        outline: 2px solid currentColor; outline-offset: -4px;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-arrow { display: none !important; }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots {
        position: absolute !important;
        bottom: 5px !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 5;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li {
        width: 24px !important; height: 24px !important;
        padding: 0 !important; margin: 0 !important;
        background: transparent !important;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li button,
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li div {
        position: relative !important;
        width: 24px !important; height: 24px !important;
        padding: 0 !important; background: transparent !important;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li button::before,
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li div::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important; left: 50% !important;
        transform: translate(-50%, -50%);
        width: 6px !important; height: 6px !important;
        border-radius: 50% !important;
        background: var(--mobile-dots-color) !important;
        opacity: .4 !important;
        transition: background-color .3s ease, opacity .3s ease;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li.slick-active button::before,
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li.slick-active div::before { opacity: 1 !important; }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li button:focus-visible {
        outline: 1px solid var(--mobile-dots-color) !important;
    }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    body.merida-mobile-layout .merida-mobile-hero-active .slick-current .merida-hero-title {
        animation: meridaMobileReveal .65s cubic-bezier(.22,1,.36,1) .1s both;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-current .merida-hero-subtitle {
        animation: meridaMobileReveal .65s cubic-bezier(.22,1,.36,1) .2s both;
    }
    body.merida-mobile-layout .merida-mobile-hero-active .slick-current .merida-hero-button {
        animation: meridaMobileReveal .65s cubic-bezier(.22,1,.36,1) .3s both;
    }
}
@keyframes meridaMobileReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li button::before,
    body.merida-mobile-layout .merida-mobile-hero-active .slick-dots li div::before { transition: none !important; }
}