/* Mobile storefront, shared across the catalog and editorial pages. */
.osnastka { --os-mobile-gutter: 5px; }
.osnastka .main__container {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--os-mobile-gutter));
    max-width: none;
    margin-inline: auto;
}
.osnastka .body > :is(.container, .container-fluid) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
}
.osnastka .main__container > .os-page-layout {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
}
.osnastka .os-home-lead { grid-template-columns: minmax(0, 1fr); }
.osnastka .os-home-lead > .os-home-news { display: none; }
#mod-custom96 .tabs__caption .os-product-tab-label-full { display: none; }
#mod-custom96 .tabs__caption .os-product-tab-label-mobile { display: inline; }
.osnastka .itc-slider:has(> .itc-slider-btn) { padding-inline: 0; }
.osnastka .itc-slider > .itc-slider-btn:not(.carousel-control) {
    top: 50%;
    width: 28px;
    height: 36px;
    transform: translateY(-50%);
    border-radius: 7px;
    background: rgb(7 94 203 / 88%);
    box-shadow: 0 2px 6px #101b3524;
}
.osnastka .itc-slider > .itc-slider-btn-prev:not(.carousel-control) { left: 1px; right: auto; }
.osnastka .itc-slider > .itc-slider-btn-next:not(.carousel-control) { right: 1px; left: auto; }
.osnastka .itc-slider > .itc-slider-btn:not(.carousel-control)::before { width: 12px; height: 12px; }
body.site.osnastka .os-cart-recommendations h2 { padding-inline-end: 0; }
.osnastka .os-page-layout > :is(#content, #sidebar, #aside) {
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
}
.osnastka .main__container .os-page-layout > #sidebar { display: none; }
.osnastka :is(.os-account-login, .os-account-register, .os-account-edit, .myaccount_layout) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
}
.osnastka .myaccount_layout > * { min-width: 0; }
.osnastka :is(.os-account-login, .os-account-register, .os-account-edit) :is(input, select, textarea) {
    max-width: 100%;
}
.osnastka #cookie-banner {
    inset-inline: var(--os-mobile-gutter);
    bottom: calc(58px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: auto;
    max-width: 520px;
    margin-inline: auto;
    padding: 10px;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 10px;
}
.osnastka #cookie-banner p { max-width: none; flex: 1 1 100%; }
.osnastka #cookie-banner > div { display: flex; flex-wrap: wrap; gap: 6px; }
.osnastka #cookie-banner button { width: auto; min-height: 38px; margin: 0; }
.osnastka .os-site-footer .mobile__bottom__nav:has(.os-mobile-account-link) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.osnastka .mobile__bottom__nav :is(.os-mobile-account-link, .os-mobile-wishlist-link, .os-mobile-comparison-button) > .fa {
    color: #fff;
    font-size: 1.25rem;
}
.osnastka .mobile__bottom__nav :is(.os-mobile-wishlist-link, .os-mobile-comparison-button)[data-selected="true"] > .fa {
    color: #ffa00e;
}
.osnastka .mobile__bottom__nav .os-mobile-comparison-button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}
.osnastka .mobile__bottom__nav .os-mobile-account-link .os-header-customer__avatar {
    width: 26px;
    height: 26px;
    border: 1px solid #ffffff66;
    color: #fff;
}
.osnastka .mobile__bottom__nav .os-mobile-account-link .os-header-customer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The chat loader sizes its iframe in pixels while the launcher is closed. */
.osnastka #osnastka-chat-widget:is([style*="height: 64px"][style*="width: 64px"], [style*="height: 56px"][style*="width: 280px"]) {
    scale: .8;
    transform-origin: right bottom;
}
.osnastka #osnastka-chat-widget:is([style*="height: 64px"][style*="width: 64px"], [style*="height: 56px"][style*="width: 280px"]):is([style*="inset: auto"], [style*="bottom: 12px"], [style*="bottom: 0px"]) {
    bottom: calc(60px + env(safe-area-inset-bottom)) !important;
}
.osnastka #osnastka-chat-widget:is([style*="height: 64px"][style*="width: 64px"], [style*="height: 56px"][style*="width: 280px"]):is([style*="inset: auto auto"], [style*="left: 12px"], [style*="left: 0px"]) {
    transform-origin: left bottom;
}
.osnastka .os-header-bar__inner { gap: 3px 10px; padding-block: 5px; }
.osnastka .os-header-bar__inner a { min-height: 24px; align-content: center; }
.osnastka .os-header-city { min-width: 0; gap: 6px; }
.osnastka .os-header-city .mcs-app { position: static; }
.osnastka .os-header-city .mcs-module .current-location {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-inline: 3px;
}
.osnastka .os-header-links { gap: 2px 10px; }
.osnastka .os-header-links .os-header-service-link { display: none; }

.osnastka .os-header-brand:has(> .os-header-search):has(> .os-header-tools) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
    align-items: center;
    gap: 9px 14px;
    padding-block: 8px 10px;
}
.os-header-brand .os-header-region { justify-self: end; }
.os-header-brand > .os-header-search,
.os-header-brand > .os-header-tools {
    grid-column: 1 / -1;
    grid-row: auto;
}
.osnastka:has(.mobile__bottom__nav .os-mobile-wishlist-link) .os-header-brand
    > .os-header-tools:not(:has(.os-header-cart-count, .os-header-chat)) {
    display: none;
}
.os-header-brand > .os-header-search { order: 1; }
.osnastka:has(.os-mobile-search:not([hidden])) .os-header-band .os-header-search { display: none; }
.os-header-brand > .os-header-tools {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.os-header-brand > .os-header-tools > :is(a, button) { min-height: 42px; justify-content: center; }
.os-header-search .os-search input[type="search"] { min-height: 44px; font-size: 16px; }
.os-header-search .os-search .os-search-submit { width: 44px; min-height: 44px; }
.os-header-search .os-search .os-search-results {
    inset-inline: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
}
.os-header-search .os-search-scroll-area { max-height: min(48dvh, 420px); }

.osnastka .navigation { margin-bottom: 14px; padding-block: 5px; }
.osnastka .navigation .navigation__grid__mobile {
    display: grid;
    grid-template-columns: 36px 44px auto minmax(36px, 1fr) max-content 40px 48px;
    align-items: center;
    gap: 6px;
}
.osnastka .navigation .navigation__grid__mobile .max__nav { display: none !important; }
.osnastka .navigation__grid__mobile .navbar { margin: 0; float: none; }
.osnastka .navigation__grid__mobile .os-mobile-menu-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    box-sizing: border-box;
    width: 44px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}
.osnastka .navigation__grid__mobile .os-mobile-menu-toggle .icon-bar {
    width: 18px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: #fff;
}
.os-mobile-menu-toggle[aria-expanded="true"] .icon-bar:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.os-mobile-menu-toggle[aria-expanded="true"] .icon-bar:nth-of-type(3) { opacity: 0; }
.os-mobile-menu-toggle[aria-expanded="true"] .icon-bar:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
    .os-mobile-menu-toggle .icon-bar { transition: transform .18s ease, opacity .18s ease; }
}
.os-mobile-catalog:not([hidden]), .os-mobile-search:not([hidden]) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    font: 650 .875rem/1.15 var(--os-font);
}
.os-mobile-catalog:not([hidden]) { min-height: 34px; padding-inline: 16px; background: #ffa00e; }
.os-mobile-catalog[aria-expanded="true"] { box-shadow: inset 0 0 0 2px #fff8; }
.navigation__grid__mobile .os-mobile-search:not([hidden]) {
    display: grid;
    place-items: center;
    place-self: center stretch;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}
.navigation__grid__mobile .os-mobile-search > .fa {
    display: block;
    margin: 0;
    line-height: 1;
    text-align: center;
}
.os-mobile-search[aria-expanded="true"] { background: #ffffff26; }
.os-mobile-search-panel:not([hidden]) {
    position: absolute;
    z-index: 3;
    inset: calc(100% + 5px) 0 auto;
    display: block;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--os-line);
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 10px 24px #101b3526;
}
.os-mobile-search-panel .os-header-search { padding: 0; }
@media (prefers-reduced-motion: no-preference) {
    .os-mobile-search-panel:not([hidden]) { animation: os-mobile-search-enter .18s ease-out; }
}
@keyframes os-mobile-search-enter {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.osnastka .mobile__nav__phone__count { padding: 0; min-width: 0; }
.osnastka .mobile__nav__phone__count > a {
    float: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 40px;
    min-width: 0;
    max-width: 100%;
    gap: 5px;
    color: #fff;
    white-space: nowrap;
}
.osnastka .mobile__nav__phone__count .nav__phone__link {
    margin: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: clamp(.72rem, 3.5vw, 1rem);
}
.osnastka .mobile__nav__phone__count .fa { display: none; }
.os-mobile-chat-slot:not([hidden]), .os-mobile-cart-slot:not([hidden]) { display: grid; }
.os-mobile-chat-slot > a,
.os-mobile-cart-slot > :is(a, button) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
}
.os-mobile-cart-slot .os-header-cart-label { display: none; }
.os-mobile-cart-slot .os-header-cart-count {
    min-width: 16px;
    min-height: 16px;
    padding-inline: 2px;
    font-size: .66rem;
}
.osnastka .navigation #osnastka-menu .os-catalog-menu-item { display: none; }
.osnastka .navigation #osnastka-menu.is-open {
    box-sizing: border-box;
    max-height: min(70dvh, 510px);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--os-line);
    box-shadow: 0 14px 30px #101b3524;
}
.osnastka .navigation #osnastka-menu .mod-menu { margin: 0; }
.osnastka .navigation__grid__mobile .os-mobile-menu-home { display: grid; place-items: center; min-height: 40px; }
.os-mobile-menu-home img { display: block; width: 26px; height: 26px; object-fit: contain; }
.osnastka .navigation #osnastka-menu .mod-menu > li > a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    color: var(--os-text);
    border-radius: 8px;
    font-size: .9rem;
    line-height: 1.25;
}
.osnastka .navigation #osnastka-menu .mod-menu > li > a[aria-current="page"] {
    color: var(--os-heading-accent);
    background: #edf5ff;
}

.osnastka .os-mobile-filter-bar:has(.os-shop-filter-toggle:not([hidden])) {
    position: sticky;
    top: var(--os-shop-nav-height, 54px);
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0 calc(-1 * var(--os-mobile-gutter)) 10px;
    padding: 5px var(--os-mobile-gutter);
    background: #fff;
    border-block: 1px solid var(--os-line);
    box-shadow: 0 3px 10px #142a4510;
}
.os-mobile-filter-bar .os-category-view { margin-inline-start: auto; }
.osnastka.com_jshopping .os-mobile-filter-bar .os-shop-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #ffffff55;
    border-radius: 8px;
    color: #fff;
    background: #12366f;
    font: 650 .85rem/1.2 var(--os-font);
}
.os-mobile-filters[open] {
    position: fixed;
    inset: var(--os-filter-drawer-top, var(--os-shop-nav-height, 54px)) 0 auto;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(100%, 580px);
    max-width: 100%;
    max-height: min(86dvh, calc(100dvh - var(--os-filter-drawer-top, 54px) - 8px - env(safe-area-inset-bottom)));
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 14px 14px;
    background: #fff;
    color: var(--os-text);
    box-shadow: 0 8px 28px #10274838;
}
.os-mobile-filters::backdrop { background: #10274866; }
.os-mobile-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 13px;
    border-bottom: 1px solid var(--os-line);
}
.os-mobile-filters__close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eef5ff;
    color: var(--os-heading-accent);
    font-size: 23px;
}
.os-mobile-filters__body { overflow: auto; overscroll-behavior: contain; }
.osnastka .os-mobile-filters .jshop_filters { display: block; padding: 0; border: 0; }
.os-mobile-filters__body .os-filter-feedback:not([hidden]) { padding: 8px 12px; color: #963436; }
.osnastka .os-mobile-filters .jshopFilters { padding: 5px 13px 8px; }
.osnastka .os-mobile-filters .os-filter-header { display: none; }
.osnastka .os-mobile-filters .os-filter-group > summary { min-height: 38px; }
.osnastka .os-mobile-filters .os-filter-options label { min-height: 30px; align-items: center; }
.osnastka .os-mobile-filters .os-filter-options input { width: 17px; height: 17px; margin: 0; }
.osnastka .os-mobile-filters .os-filter-prices input { height: 40px; font-size: 16px; }
.os-mobile-filters__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 13px;
    border-bottom: 1px solid var(--os-line);
}
.os-mobile-filters__actions button {
    min-height: 44px;
    padding: 4px 6px;
    border: 1px solid #075ecb;
    border-radius: 8px;
    background: #075ecb;
    color: #fff;
    font: 650 .82rem/1.2 var(--os-font);
}
.os-mobile-filters__actions [data-filter-reset] {
    background: #eef5ff;
    color: #075ecb;
}
.osnastka .os-category-toolbar :is(.os-category-view button, .os-category-sort-direction) {
    min-width: 40px;
    min-height: 40px;
}
.osnastka .os-category-toolbar .box_products_sorting select { min-height: 42px; min-width: 0; max-width: 100%; }
.osnastka .os-shop-card__actions :is(a, button) { min-height: 38px; }
.osnastka .os-shop-card__prices > strong.os-shop-card__price-on-request {
    font-size: .75rem;
    line-height: 1.25;
}
.osnastka .os-shop-card__photo-tools :is(a, button, label) { min-width: 36px; min-height: 36px; }
.osnastka .os-cart-checkout :is(input:not([type="checkbox"]):not([type="hidden"]), textarea) {
    min-height: 44px;
    font-size: 16px;
}
.osnastka .os-cart-page .os-cart-order-submit { min-height: 48px; }
.osnastka .os-publications-filter label > :is(select, input) { min-height: 42px; max-width: 100%; }
.osnastka .os-publications-filter button { min-height: 42px; }

@media (max-width: 760px) {
    .osnastka .myaccount_layout { grid-template-columns: minmax(0, 1fr); }
    .osnastka.com_jshopping .os-product-grid { gap: 12px; }
    .osnastka.com_jshopping .os-product-grid > .os-product-information { display: contents; }
    .osnastka.com_jshopping .os-product-information > .os-product-title { order: -3; margin: 0; }
    .osnastka.com_jshopping .os-product-information > .os-product-identifiers { order: -2; margin: 0; }
    .osnastka.com_jshopping .os-product-gallery,
    .osnastka.com_jshopping .os-product-gallery:not(:has(.image_thumb_list a, .image_thumb_list button, .image_thumb_list img)) {
        grid-template-columns: minmax(0, 1fr);
    }
    .osnastka.com_jshopping .os-product-grid > .os-product-gallery { order: -1; }
    .osnastka.com_jshopping .os-product-gallery .image_thumb_list {
        grid-row: 2;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .osnastka.com_jshopping .os-product-gallery #list_product_image_thumb {
        display: flex;
        flex-direction: row;
        width: max-content;
        min-width: 100%;
        padding-block: 3px;
    }
    .os-product-thumb { flex: 0 0 54px; }
    .osnastka.com_jshopping .os-product-tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-padding-inline: 4px;
    }
    .osnastka.com_jshopping .os-product-tab-list button {
        flex: 0 0 auto;
        min-height: 44px;
        white-space: nowrap;
    }
    .osnastka .os-product-buy :is(.prod_buttons .btn-buy, .os-product-quick-order) { min-height: 44px; }
    .osnastka :is(.item-page, .os-product-tab-panel, .os-category-description) table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .os-header-brand > .os-header-region { display: none; }
    .os-header-brand > .os-header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 6px;
    }
    .os-header-brand > .os-header-contact {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 0;
    }
    .os-header-brand .os-header-contact a[href^="tel:"] {
        --os-header-contact-size: .83rem;
        padding: .3rem .35rem;
        border-radius: 7px;
    }
    .os-header-brand .os-header-contact .email {
        margin-block-start: .25rem !important;
        font-size: .72rem;
        overflow-wrap: anywhere;
    }
    .os-header-brand .os-header-company-links { gap: 3px 6px; }
    .os-header-brand .os-header-company-links > :not(a) { display: none; }
    .os-header-brand .os-header-company-links a { min-height: 24px; }
    .os-header-brand .os-header-logo { gap: 5px; font-size: .76rem; }
    .os-header-brand .os-header-logo img { width: 34px; }
    .os-header-brand .os-header-actions :is(a, button) { min-height: 36px; }
    .osnastka .os-checkout-contact-fields { grid-template-columns: minmax(0, 1fr); }
    .osnastka .os-category-toolbar .box_products_sorting { flex-wrap: wrap; }
    .osnastka .os-site-footer .mobile__bottom__nav a { min-height: 48px; }
}

@media (max-width: 480px) {
    .osnastka .navigation .navigation__grid__mobile {
        grid-template-columns: 26px 34px auto minmax(28px, 1fr) max-content 30px 37px;
        gap: 3px;
    }
    .osnastka .navigation__grid__mobile .os-mobile-menu-toggle { width: 34px; }
    .os-mobile-catalog:not([hidden]) { gap: 4px; padding-inline: 9px; font-size: .75rem; }
    .osnastka .mobile__nav__phone__count .nav__phone__link { font-size: clamp(.7rem, 3.25vw, .9rem); }
}

@media (max-width: 375px) {
    .osnastka .navigation .navigation__grid__mobile {
        grid-template-columns: 22px 32px auto minmax(24px, 1fr) max-content 25px 36px;
        gap: 1px;
    }
    .os-mobile-menu-home img { width: 22px; height: 22px; }
    .osnastka .navigation__grid__mobile .os-mobile-menu-toggle { width: 32px; }
    .os-mobile-catalog:not([hidden]) { padding-inline: 6px; }
    .osnastka .mobile__nav__phone__count .nav__phone__link {
        font-size: .6875rem;
        letter-spacing: -.12px;
    }
    .osnastka .os-category-toolbar .box_products_sorting { width: 100%; }
    .osnastka .form-horizontal .os-category-toolbar .box_products_sorting > .control-label {
        width: 100%;
        flex: 0 0 100%;
        white-space: normal;
    }
    .osnastka .os-category-toolbar .box_products_sorting .controls {
        width: 100%;
        min-width: 0;
        margin-inline: 0;
    }
    .osnastka.os-quick-view-enabled .os-shop-card__actions .os-shop-card__quick {
        min-width: 0;
        white-space: normal;
        line-height: 1.2;
    }
}
