/* ==========================================================================
   MSPB V3 DISTINCT DESIGN SYSTEM (матрасы-в-спб.рф)
   1. Breadcrumbs (no checkmarks!) & Subcategory Dot-Pills (centered dots!)
   2. Scandinavian Header + Light Architectural Category Rail + Frosted Mobile Bar
   3. Filter Restyling + ZERO Hover Preview Checkmark
   4. Homepage Hero: Compact Left Filter + Old #main-slider + SVG Solutions Grid
   5. Right-Side Slide-Over Full Filter Drawer (okmatras.ru pattern)
   6. Nordic 2-Tier Footer (mspb-site-footer)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BREADCRUMBS (NO CHECKMARKS) & SUBCATEGORY PILLS (PERFECTLY CENTERED DOTS)
   -------------------------------------------------------------------------- */
#main_container .headless-center-block .breadcrumbs-list li::before,
#main_container .headless-center-block .breadcrumbs-list li::after,
.breadcrumbs-list li::before,
.breadcrumbs-list li::after,
.breadcrumbs-list li a::before,
.breadcrumbs-list li a::after {
  display: none !important;
  content: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

.breadcrumbs-list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

.breadcrumbs-list li {
  position: static !important;
  padding-left: 0 !important;
  background: none !important;
}

.breadcrumbs-list li .arr,
.breadcrumbs-list li span.arr {
  background: none !important;
  color: #8ba6b0 !important;
  font-size: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 1px !important;
  padding: 0 !important;
}

.breadcrumbs-list li .arr::after,
.breadcrumbs-list li span.arr::after {
  content: "/" !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #94aeb8 !important;
  line-height: 1 !important;
}

.breadcrumbs-list li a {
  background: transparent !important;
  border: none !important;
  padding: 2px 4px !important;
  border-radius: 5px !important;
  color: #466874 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.breadcrumbs-list li a:hover {
  background: #eaf4f7 !important;
  color: #183640 !important;
}

.breadcrumbs-list li.active a,
.breadcrumbs-list li.active span.breadcrumb-h1 {
  background: #edf5f7 !important;
  color: #183640 !important;
  font-weight: 600 !important;
  padding: 2px 9px !important;
  border-radius: 6px !important;
}

/* Subcategory Cross-Links (ul.podkategorii): crisp centered dot inside each tag */
#main_container .content .headless-center-block ul.podkategorii > li::before,
#main_container .content .headless-center-block ul.podkategorii > li::after,
.headless-center-block ul.podkategorii li::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

#main_container .content .headless-center-block ul.podkategorii {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px 0 14px !important;
  padding: 0 !important;
}

#main_container .content .headless-center-block ul.podkategorii > li {
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#main_container .content .headless-center-block ul.podkategorii > li > a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 32px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  background: #f5fafb !important;
  border: 1px solid #cfe2e8 !important;
  color: #1e4450 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

#main_container .content .headless-center-block ul.podkategorii > li > a::before {
  content: "" !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #4a90a5 !important;
  flex: 0 0 6px !important;
  display: inline-block !important;
}

#main_container .content .headless-center-block ul.podkategorii > li > a:hover {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
  color: #ffffff !important;
}

#main_container .content .headless-center-block ul.podkategorii > li > a:hover::before {
  background: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. DISTINCT SCANDINAVIAN HEADER & LIGHT ARCHITECTURAL CATEGORY RAIL
   -------------------------------------------------------------------------- */
/* Top Utility Strip */
#header-menu.header-menu {
  background: #edf4f6 !important;
  border-bottom: 1px solid #d4e4ea !important;
}

/* Brand Emblem + Wordmark + .РФ Pill Badge */
.header-inner a.logo.is-topm-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}

.mspb-logo-emblem {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 6px rgba(58, 125, 145, 0.22));
}

.mspb-logo-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
}

.header-inner .topm-brand-logo__name {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #183640 !important;
  letter-spacing: -0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.mspb-logo-rf {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 5px !important;
  border-radius: 5px !important;
  background: #e85656 !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
}

.header-inner .topm-brand-logo__sub {
  font-size: 11px !important;
  color: #5b7984 !important;
  margin-top: 2px !important;
}

/* Squared-Rounded Architectural Search Box (10px, NOT 999px pill!) */
.header-wrapper-new .topm-desk-search-slot .title-search,
.header-wrapper-new .topm-desk-search-slot .search_form {
  border-radius: 10px !important;
}

.header-wrapper-new .topm-desk-search-slot .search_form {
  background: #f3f8fa !important;
  border: 1.5px solid #c6dce3 !important;
  height: 44px !important;
  padding: 3px 4px 3px 14px !important;
  box-shadow: inset 0 1px 2px rgba(24, 54, 64, 0.03) !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease !important;
}

.header-wrapper-new .topm-desk-search-slot .search_form:focus-within {
  background: #ffffff !important;
  border-color: #3a7d91 !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 165, 0.14) !important;
}

.header-wrapper-new .topm-desk-search-slot .header-search-submit input[type="submit"] {
  border-radius: 7px !important;
  background: #3a7d91 !important;
  height: 36px !important;
  padding: 0 18px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

.header-wrapper-new .topm-desk-search-slot .header-search-submit input[type="submit"]:hover {
  background: #285d6d !important;
}

/* Desktop Phone + Inline Dashed Callback + Visible Cart Pill */
@media (min-width: 768px) {
  .header-wrapper-new header.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 14px 0 !important;
  }

  .header-wrapper-new .header-information {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
  }

  .header-wrapper-new .btn-recall-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }

  body .header-wrapper-new header.header-inner a.btn-recall,
  body .header-wrapper-new a.btn-recall {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px dashed #4a90a5 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #316c7e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    display: inline-block !important;
  }

  body .header-wrapper-new header.header-inner a.btn-recall::before,
  body .header-wrapper-new a.btn-recall::before {
    display: none !important;
    content: none !important;
  }

  body .header-wrapper-new header.header-inner a.btn-recall:hover {
    color: #183640 !important;
    border-bottom-color: #183640 !important;
    background: transparent !important;
  }

  /* Suppress legacy .blind-link-two::before & legacy background-image duplicate cart icon */
  body .mspb-hdr-cart-btn.blind-link-two::before,
  body #td_shopping_cart_info .blind-link-two::before {
    display: none !important;
    content: none !important;
    background: none !important;
  }
  body #td_shopping_cart_info .mini_basket,
  body #td_shopping_cart_info .blind,
  body #td_shopping_cart_info a.blind-link-two.mspb-hdr-cart-btn {
    background-image: none !important;
    padding-left: 14px !important;
  }

  /* Show Desktop Cart Button cleanly in the right cluster */
  .header-wrapper-new header.header-inner > .header-inner-block:last-child {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .mspb-hdr-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    background: #eef6f8 !important;
    border: 1px solid #cbe0e7 !important;
    color: #183640 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    white-space: nowrap !important;
  }

  .mspb-hdr-cart-btn:hover {
    background: #dfeff4 !important;
    border-color: #4a90a5 !important;
    color: #183640 !important;
  }

  .mspb-hdr-cart-ic {
    color: #3a7d91 !important;
    display: inline-flex !important;
  }

  .mspb-hdr-cart-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    background: #e85656 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .mspb-hdr-cart-badge.is-zero {
    background: #d2e4ea !important;
    color: #2c5866 !important;
  }
}

/* Light Architectural Category Navigation Rail (replaces solid blue capsule!) */
.mspb-cat-rail.topm-main-menu-bar {
  background: #ffffff !important;
  border: 1px solid #d2e3e9 !important;
  border-bottom: 2.5px solid #3a7d91 !important;
  border-radius: 12px !important;
  padding: 6px 8px !important;
  box-shadow: 0 4px 16px rgba(24, 54, 64, 0.05) !important;
}

.mspb-cat-rail .mspb-catalog-btn.topm-catalog-btn {
  background: #3a7d91 !important;
  border: 1px solid #326e80 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  height: 40px !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 6px rgba(58, 125, 145, 0.22) !important;
}

.mspb-cat-rail .mspb-catalog-btn.topm-catalog-btn:hover {
  background: #285c6c !important;
  border-color: #285c6c !important;
}

body .mspb-cat-rail .main-menu-item > .main-menu-link,
body .mspb-cat-rail #mm_menu .main-menu-link,
body .mspb-cat-rail #mm_menu > .main-menu-item > a,
body .mspb-cat-rail #mm_menu > .main-menu-item > div.main-menu-link {
  color: #183640 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  background: transparent !important;
  text-shadow: none !important;
}

body .mspb-cat-rail .main-menu-item > .main-menu-link .caret {
  border-top-color: #4a90a5 !important;
}

body .mspb-cat-rail .main-menu-item:hover > .main-menu-link,
body .mspb-cat-rail .main-menu-item.open > .main-menu-link {
  background: #edf6f9 !important;
  color: #2b687a !important;
}


/* Mobile White Frosted Sticky Header (distinct from top-matras dark bar!) */
@media (max-width: 767px) {
  .mobile-menu-wrap {
    background: #ffffff !important;
    border-bottom: 1px solid #d2e3e9 !important;
    box-shadow: 0 2px 10px rgba(24, 54, 64, 0.07) !important;
  }

  .mobile-menu-wrap .burger,
  .mobile-menu-wrap .burger::before,
  .mobile-menu-wrap .burger::after {
    background: #183640 !important;
  }

  .mobile-menu-wrap .topm-mobile-bar-catalog-btn {
    background: #3a7d91 !important;
    border-color: #3a7d91 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
  }

  .mobile-menu-wrap .mobile-menu-icons > div,
  .mobile-menu-wrap .mobile-menu-icons > a {
    color: #183640 !important;
  }

  .mobile-menu-wrap .custom-ic,
  .mobile-menu-wrap .mobile-menu-cart i {
    filter: brightness(0.22) saturate(1.2) !important;
  }

  #topm-mob-subbar .topm-mob-subbar__search {
    border-radius: 9px !important;
    background: #f3f8fa !important;
    border: 1.5px solid #c6dce3 !important;
  }

  #topm-mob-subbar .topm-mob-subbar__btn {
    border-radius: 6px !important;
    background: #3a7d91 !important;
  }
}

/* --------------------------------------------------------------------------
   3. FILTER RESTYLING + ZERO HOVER PREVIEW CHECKMARK
   -------------------------------------------------------------------------- */
/* Strictly suppress any phantom/preview checkmark when hovering unchecked rows! */
.filter_block_form .jq-checkbox:not(.checked) .jq-checkbox__div,
.filter_block_form .f_div_block .price-variety:hover .jq-checkbox:not(.checked) .jq-checkbox__div,
.filter_block_form .price-variety:not(.height-variety):hover .jq-checkbox:not(.checked) .jq-checkbox__div,
.filter_block_form label:hover .jq-checkbox:not(.checked) .jq-checkbox__div {
  display: none !important;
  opacity: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

.filter_block_form .jq-checkbox {
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  border: 1.5px solid #b8d0d8 !important;
  background: #ffffff !important;
  transition: border-color 0.14s ease, background-color 0.14s ease !important;
}

.filter_block_form .price-variety:hover .jq-checkbox:not(.checked) {
  border-color: #4a90a5 !important;
  background: #ffffff !important;
}

.filter_block_form .jq-checkbox.checked {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
}

.filter_block_form .jq-checkbox.checked .jq-checkbox__div {
  display: block !important;
  opacity: 1 !important;
  border-bottom-color: #ffffff !important;
  border-left-color: #ffffff !important;
}

/* Distinct Filter Card Header (light surface + left teal accent bar instead of solid cap) */
body .filter_block_form > .title,
body #main_container ._left .filter_block_form > .title,
body .mspb-hero-left .mspb-hf-form > .title.mspb-hf-header {
  background: #f2f8fa !important;
  color: #183640 !important;
  border-bottom: 1px solid #d5e5ea !important;
  border-left: 4px solid #3a7d91 !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 13px 16px !important;
  text-transform: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
}

.mspb-hf-header {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.mspb-hf-header__sub {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #607f8a !important;
}

/* Rectangular 7px Quick Preset Tags & Grip Slider Handles */
.filter_block_form .topm-sp-quick-btn,
.filter_block_form .topm-price-preset,
.filter_block_form .topm-height-preset,
.filter_block_form .topm-mvos-preset {
  border-radius: 7px !important;
  background: #f6fafb !important;
  border: 1px solid #cde0e6 !important;
}

.filter_block_form .topm-sp-quick-btn.is-active,
.filter_block_form .topm-price-preset.is-active,
.filter_block_form .topm-height-preset.is-active,
.filter_block_form .topm-mvos-preset.is-active {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
  color: #ffffff !important;
}

.filter_block_form .ui-slider .ui-slider-handle {
  width: 15px !important;
  height: 20px !important;
  border-radius: 5px !important;
  border: 2px solid #3a7d91 !important;
  background: #ffffff !important;
  top: -7px !important;
}

/* Filter Primary Submit Button (Baltic Teal instead of top-matras red!) */
.filter_block_form #pokazat.naideno-block,
.mspb-apd__submit {
  background: linear-gradient(135deg, #2d6c7f 0%, #3d879d 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(45, 108, 127, 0.25) !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease !important;
}

.filter_block_form #pokazat.naideno-block:hover,
.mspb-apd__submit:hover {
  filter: brightness(1.06) !important;
  box-shadow: 0 6px 16px rgba(45, 108, 127, 0.32) !important;
}

/* --------------------------------------------------------------------------
   4. HOMEPAGE HERO: COMPACT FILTER + RESTORED BANNERS + SVG SOLUTIONS
   -------------------------------------------------------------------------- */
.mspb-hero-section {
  margin-top: 14px !important;
  margin-bottom: 18px !important;
}

.mspb-hero-grid {
  display: grid !important;
  grid-template-columns: 350px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

@media (max-width: 1199px) {
  .mspb-hero-grid {
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 991px) {
  .mspb-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Ensure Compact Filter occupies 100% of its 350px left card (override legacy 3-col 33% rules!) */
body .mspb-hero-left,
body .mspb-hero-left.main-filter-wrapper,
body .mspb-hero-left .mspb-hf-card,
body .mspb-hero-left .mspb-hf-form,
body .mspb-hero-left .mspb-hf-form .mattrass-block,
body .mspb-hero-left .mspb-hf-inner,
body .mspb-hero-left .mspb-hf-compact-body,
body .mspb-hero-left .mspb-hf-primary-slot,
body .mspb-hero-left .mspb-hf-primary-fields,
body .mspb-hero-left .mspb-hf-sec,
body .mspb-hero-left .mspb-hf-sec .f_div_block,
body .mspb-hero-left .mspb-hf-actions {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body .mspb-hero-left .mspb-hf-form .mattrass-block {
  padding: 14px 16px 16px !important;
}

/* Keep right-side drawer 100% opaque white even while quick.min.js toggles .loading on form divs! */
body #mspb-all-params-drawer,
body #mspb-all-params-drawer.loading,
body #mspb-all-params-drawer div.loading {
  opacity: 1 !important;
}
body #mspb-all-params-drawer div.loading::before,
body #mspb-all-params-drawer div.loading::after {
  display: none !important;
}

.mspb-hf-card {
  background: #ffffff !important;
  border: 1px solid #d4e4ea !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(24, 54, 64, 0.05) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.mspb-hf-form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.mspb-hf-form .mattrass-block {
  padding: 12px 15px 15px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.mspb-hf-compact-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  height: 100% !important;
}

.mspb-hf-sec {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eaf2f5 !important;
}

.mspb-hf-sec:last-child {
  margin-bottom: 4px !important;
  border-bottom: none !important;
}

.mspb-hf-stiff-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px 8px !important;
}

.mspb-hf-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 6px !important;
}

.mspb-hf-submit {
  width: 100% !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.mspb-open-all-params-btn {
  width: 100% !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1.5px solid #bed7e0 !important;
  background: #f4f9fb !important;
  color: #1e4653 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.mspb-open-all-params-btn:hover {
  background: #e4f1f5 !important;
  border-color: #3a7d91 !important;
  color: #183640 !important;
}

.mspb-extra-params-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e85656;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
}

/* Right Hero Column: Restored Old Banners + SVG Solutions */
.mspb-hero-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-width: 0 !important;
}

.mspb-old-banners-card {
  position: relative !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #eef5f7 !important;
  border: 1px solid #d4e4ea !important;
  box-shadow: 0 6px 20px rgba(24, 54, 64, 0.06) !important;
}

#main-slider.mspb-main-slider,
#main-slider .item-owl,
#main-slider .item-owl a {
  display: block !important;
  width: 100% !important;
}

#main-slider .item-owl img {
  width: 100% !important;
  height: auto !important;
  max-height: 310px !important;
  object-fit: cover !important;
  display: block !important;
}

#main-slider .owl-controls .owl-buttons div {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #183640 !important;
  font-size: 24px !important;
  line-height: 34px !important;
  text-align: center !important;
  opacity: 0.92 !important;
  box-shadow: 0 4px 12px rgba(24, 54, 64, 0.16) !important;
  margin: 0 !important;
  padding: 0 !important;
}

#main-slider .owl-controls .owl-buttons .owl-prev {
  left: 12px !important;
}

#main-slider .owl-controls .owl-buttons .owl-next {
  right: 12px !important;
}

#main-slider .owl-controls .owl-pagination {
  position: absolute !important;
  bottom: 10px !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
}

#main-slider .owl-controls .owl-page span {
  width: 8px !important;
  height: 8px !important;
  margin: 0 4px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  transition: width 0.18s ease, background-color 0.18s ease !important;
}

#main-slider .owl-controls .owl-page.active span {
  width: 22px !important;
  background: #3a7d91 !important;
}

/* Bespoke Duotone SVG "Готовые решения" Card & Grid */
.mspb-solutions-card {
  background: #ffffff !important;
  border: 1px solid #d4e4ea !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 6px 20px rgba(24, 54, 64, 0.04) !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.mspb-solutions-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.mspb-solutions-head__title {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #183640 !important;
  letter-spacing: -0.01em !important;
}

.mspb-solutions-head__all {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #3a7d91 !important;
  text-decoration: none !important;
}

.mspb-solutions-head__all:hover {
  color: #183640 !important;
  text-decoration: underline !important;
}

.mspb-solutions-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 639px) {
  .mspb-solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .mspb-sol-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 12px 8px !important;
  }
  .mspb-sol-item__icon {
    flex: 0 0 auto !important;
  }
  .mspb-mob-filter-cta .mspb-hf-form > .title.mspb-hf-header {
    background: #3a7d91 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 11px !important;
    justify-content: center !important;
  }
  .mspb-mob-filter-cta .mspb-hf-form > .title.mspb-hf-header a,
  .mspb-mob-filter-cta .mspb-hf-header__sub {
    color: #ffffff !important;
    text-decoration: none !important;
  }
}

.mspb-sol-item {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 11px 12px !important;
  border-radius: 11px !important;
  background: #f6fafb !important;
  border: 1px solid #dcebef !important;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease !important;
}

.mspb-sol-item:hover {
  background: #ffffff !important;
  border-color: #4a90a5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 14px rgba(58, 125, 145, 0.12) !important;
}

.mspb-sol-item__icon {
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mspb-sol-item__icon img {
  width: 54px !important;
  height: 40px !important;
  object-fit: contain !important;
}

.mspb-sol-item__body {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.mspb-sol-item__name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #183640 !important;
  line-height: 1.2 !important;
}

.mspb-sol-item__hint {
  font-size: 11.5px !important;
  color: #63828d !important;
  margin-top: 2px !important;
}

/* --------------------------------------------------------------------------
   5. RIGHT-SIDE SLIDE-OVER FULL FILTER DRAWER (okmatras.ru pattern)
   -------------------------------------------------------------------------- */
body.mspb-apd-lock {
  overflow: hidden !important;
}

/* Break any ancestor stacking context when right-side drawer is open so backdrop + drawer sit above header & banners! */
body.mspb-apd-lock #main_container,
body.mspb-apd-lock .mspb-hero-section,
body.mspb-apd-lock .mspb-hero-grid,
body.mspb-apd-lock .mspb-hero-left,
body.mspb-apd-lock .mspb-hf-card,
body.mspb-apd-lock .mspb-hf-form,
body.mspb-apd-lock .mspb-hf-form .mattrass-block,
body.mspb-apd-lock .mspb-hf-inner {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  overflow: visible !important;
  z-index: 10060 !important;
}

.mspb-apd-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 36, 44, 0.48) !important;
  backdrop-filter: blur(2px);
  z-index: 10060 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.22s ease, visibility 0.22s ease !important;
}

.mspb-apd-backdrop.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mspb-apd {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(500px, 100vw) !important;
  background: #ffffff !important;
  z-index: 10065 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -18px 0 48px rgba(15, 36, 44, 0.24) !important;
  transform: translate3d(104%, 0, 0) !important;
  visibility: hidden !important;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s ease !important;
}

.mspb-apd.is-open {
  transform: translate3d(0, 0, 0) !important;
  visibility: visible !important;
}

.mspb-apd__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 22px !important;
  background: #f2f8fa !important;
  border-bottom: 1px solid #d5e5ea !important;
  flex-shrink: 0 !important;
}

.mspb-apd__title-wrap {
  display: flex !important;
  flex-direction: column !important;
}

.mspb-apd__title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #183640 !important;
  line-height: 1.2 !important;
}

.mspb-apd__subtitle {
  font-size: 12px !important;
  color: #5a7984 !important;
  margin-top: 3px !important;
}

.mspb-apd__close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  border: 1px solid #c9dde4 !important;
  background: #ffffff !important;
  color: #183640 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mspb-apd__close:hover {
  background: #183640 !important;
  border-color: #183640 !important;
  color: #ffffff !important;
}

.mspb-apd__body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding: 18px 22px 24px !important;
}

.mspb-apd-sec,
.mspb-apd__body .mspb-hf-sec {
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e7f0f3 !important;
}

.mspb-apd-2col {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px 12px !important;
}

@media (max-width: 479px) {
  .mspb-apd-2col {
    grid-template-columns: 1fr !important;
  }
}

.mspb-apd__footer {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 22px !important;
  background: #ffffff !important;
  border-top: 1px solid #d5e5ea !important;
  box-shadow: 0 -6px 20px rgba(24, 54, 64, 0.06) !important;
  flex-shrink: 0 !important;
}

.mspb-apd__submit {
  flex: 1 1 auto !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.mspb-apd__reset {
  height: 46px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  border: 1px solid #c8dce3 !important;
  background: #f5fafb !important;
  color: #355864 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.mspb-apd__reset:hover {
  background: #e8f2f5 !important;
  color: #183640 !important;
}

/* --------------------------------------------------------------------------
   6. BESPOKE NORDIC 2-TIER FOOTER (mspb-site-footer)
   -------------------------------------------------------------------------- */
.mspb-promo-band {
  margin: 28px 0 0 !important;
}

.mspb-promo-band__box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 22px !important;
  border-radius: 14px !important;
  background: linear-gradient(90deg, #fdf5f4 0%, #f4fafc 100%) !important;
  border: 1px solid #ebd4d2 !important;
}

.mspb-promo-band__badge {
  padding: 5px 11px !important;
  border-radius: 7px !important;
  background: #e85656 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.mspb-promo-band__text {
  flex: 1 1 auto !important;
  font-size: 14px !important;
  color: #183640 !important;
}

.mspb-promo-band__btn {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #d4b8b6 !important;
  color: #c83e3e !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.mspb-promo-band__btn:hover {
  background: #e85656 !important;
  border-color: #e85656 !important;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .mspb-promo-band__box {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
  }
}

.mspb-site-footer {
  margin-top: 22px !important;
  padding: 32px 0 26px !important;
  background: #e9f1f4 !important;
  border-top: 1px solid #cfdfe5 !important;
  color: #244550 !important;
  font-size: 13.5px !important;
}

.mspb-ftr__contact-bar {
  display: grid !important;
  grid-template-columns: 1.25fr 1.25fr auto !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 22px 26px !important;
  border-radius: 16px !important;
  background: #1c3f4b !important;
  color: #eaf4f7 !important;
  margin-bottom: 28px !important;
  box-shadow: 0 10px 26px rgba(24, 54, 64, 0.12) !important;
}

@media (max-width: 991px) {
  .mspb-ftr__contact-bar {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 18px 20px !important;
  }
}

.mspb-ftr__wordmark {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: -0.02em !important;
}

.mspb-ftr__wordmark span {
  padding: 2px 6px !important;
  border-radius: 5px !important;
  background: #e85656 !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

.mspb-ftr__tagline {
  margin: 6px 0 0 !important;
  font-size: 12.5px !important;
  color: #b7d2db !important;
  line-height: 1.45 !important;
}

.mspb-ftr__visit-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #8ebbc9 !important;
}

.mspb-ftr__visit-val {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-top: 3px !important;
}

.mspb-ftr__visit-sub {
  font-size: 12.5px !important;
  color: #c2dce4 !important;
  margin-top: 3px !important;
}

.mspb-ftr__visit-sub a {
  color: #9ad2e3 !important;
  text-decoration: none !important;
}

.mspb-ftr__phone-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

@media (max-width: 991px) {
  .mspb-ftr__phone-col {
    align-items: flex-start !important;
  }
}

.mspb-ftr__phone {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.mspb-ftr__callback {
  padding: 7px 15px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.mspb-ftr__callback:hover {
  background: #4a90a5 !important;
  border-color: #4a90a5 !important;
}

.mspb-ftr__grid {
  display: grid !important;
  grid-template-columns: 1fr 1.1fr 1.15fr 1.2fr !important;
  gap: 26px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid #cfdfe5 !important;
}

@media (max-width: 991px) {
  .mspb-ftr__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575px) {
  .mspb-ftr__grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.mspb-ftr__heading {
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #183640 !important;
  margin-bottom: 12px !important;
}

.mspb-ftr__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.mspb-ftr__links li {
  margin: 0 !important;
  padding: 0 !important;
}

.mspb-ftr__links a {
  color: #2f5563 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  transition: color 0.14s ease !important;
}

.mspb-ftr__links a:hover {
  color: #3a7d91 !important;
  text-decoration: underline !important;
}

.mspb-ftr__size-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.mspb-ftr__size-chips a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 10px !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  border: 1px solid #c9dce3 !important;
  color: #1e4450 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.mspb-ftr__size-chips a:hover {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
  color: #ffffff !important;
}

.mspb-ftr__all-links {
  display: flex !important;
  gap: 14px !important;
  margin-top: 12px !important;
}

.mspb-ftr__all-links a {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #3a7d91 !important;
  text-decoration: none !important;
}

.mspb-ftr__req-box {
  background: #f5f9fb !important;
  border: 1px solid #d3e3e9 !important;
  border-radius: 11px !important;
  padding: 12px 14px !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #355864 !important;
}

.mspb-ftr__req-box p {
  margin: 0 0 5px !important;
}

.mspb-ftr__req-box p:last-child {
  margin-bottom: 0 !important;
}

.mspb-ftr__pay-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 10px !important;
}

.mspb-pay-pill {
  padding: 4px 9px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbdce2 !important;
  color: #234955 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

.mspb-ftr__bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding-top: 16px !important;
  font-size: 12.5px !important;
  color: #53727d !important;
}

.mspb-ftr__copy a,
.mspb-ftr__bottom-links a {
  color: #285665 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.mspb-ftr__bottom-links {
  display: flex !important;
  gap: 18px !important;
}

/* === MSPB V4 POLISH START === */

/* --------------------------------------------------------------------------
   V4.1 UNIFIED DESKTOP CONTAINER ALIGNMENT (1320px exact left/right rails!)
   Every top-level band (#header-menu, header, category rail, hero, consult,
   quick-links, bestsellers, main_container, footer) lines up to the 1px!
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  html body #header-menu > .container,
  html body .header-wrapper-new > .container,
  html body .mspb-cat-rail-wrap.container,
  html body .mspb-hero-section.container,
  html body .mspb-consult-section.container,
  html body .container-top.container.top-catalog,
  html body .mspb-oom-wrap.container,
  html body > .container,
  html body #main_container.container,
  html body footer.mspb-site-footer > .container {
    width: calc(100% - 48px) !important;
    max-width: 1320px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Neutralize nested Bootstrap .row/-15px & .col-15px & .topm-main-menu-bar -15px offsets */
  html body #header-menu > .container > .row,
  html body .mspb-cat-rail-wrap > .row,
  html body #main_container.container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body #header-menu #nav-collapse,
  html body .mspb-cat-rail-wrap > .row > .col-lg-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body .mspb-cat-rail.topm-main-menu-bar {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Strip outer white wrapper box & inner padding on .mspb-hero-section so left filter
     and right banners sit flush on the exact 1320px left & right guide rails! */
  html body .mspb-hero-section.container-filter-and-slider {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
  }

  /* Make Quick Size Links (.container-top.top-catalog) & Bestsellers (#oom-block)
     single flush 1320px cards without double nested boxes! */
  html body .container-top.top-catalog {
    background: #ffffff !important;
    border: 1px solid #d4e4ea !important;
    border-radius: 14px !important;
    padding: 18px 22px !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    box-shadow: 0 6px 20px rgba(24, 54, 64, 0.04) !important;
  }

  html body .container-top.top-catalog > .row {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body .mspb-oom-wrap.container {
    margin-bottom: 18px !important;
  }

  html body #oom-block.block-center {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  html body #main_container.topm-no-sidebar > .row > .content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Category / Catalog view: sidebar flush left (0), content flush right (1320px)! */
  html body #main_container:not(.topm-no-sidebar) > .row > .sidebar-left {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  html body #main_container:not(.topm-no-sidebar) > .row > .content {
    padding-right: 0 !important;
    margin-right: 0 !important;
  }
}

/* Distribute Category Rail items evenly now that ПОДОБРАТЬ МАТРАС is removed */
@media (min-width: 768px) {
  body .mspb-cat-rail #mm_menu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    flex: 1 1 auto !important;
  }
}

/* --------------------------------------------------------------------------
   V4.2 TOP UTILITY BAR: NO CITY + VISIBLE "Избранное (0)" & "Сравнение (0)"
   -------------------------------------------------------------------------- */
body #header-menu .domain-block,
body #header-menu .select-city,
body #topm-mob-subbar .topm-mob-subbar__city,
body #topm-mobile-city-sheet {
  display: none !important;
}

@media (min-width: 768px) {
  html body #header-menu,
  html body #header-menu * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  }

  html body #header-menu #nav-collapse {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body #header-menu ul.header-nav-menu-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body #header-menu .mspb-hours-only-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 6px 0 0 !important;
    padding: 0 8px 0 0 !important;
    border-right: 1px solid #d4e4ea !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
  }

  html body #header-menu .mspb-hours-only-item .topm-top-hours {
    display: inline-block !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #496b77 !important;
    background: #e1eef2 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  html body #header-menu ul.header-nav-menu-wrapper > li:not(.header-nav-item-ic):not(.topm-top-sale-item) > a.header-nav-link {
    padding: 0 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  html body #header-menu .topm-top-sale-item {
    margin-left: auto !important;
    margin-right: 4px !important;
    flex: 0 0 auto !important;
  }

  html body #header-menu .topm-top-sale-item > a {
    padding: 0 10px !important;
    height: 26px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  html body #header-menu li.header-nav-item-ic {
    margin-left: 4px !important;
    flex: 0 0 auto !important;
  }

  html body #header-menu li.header-nav-item-ic > a.header-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    border: 1px solid #cde0e7 !important;
    color: #183640 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    height: 26px !important;
    white-space: nowrap !important;
  }

  html body #header-menu li.header-nav-item-ic > a.header-nav-link:hover {
    border-color: #3a7d91 !important;
    background: #f3f9fb !important;
    color: #183640 !important;
  }

  /* Crisp 14x14 Heart SVG icon inside Избранное (no blank sprite box!) */
  html body #header-menu .js-header-nav-item-fav .custom-ic-heart {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e85656' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17.2s-6.5-4.1-6.5-8.8A3.8 3.8 0 0 1 10 5.7a3.8 3.8 0 0 1 6.5 2.7c0 4.7-6.5 8.8-6.5 8.8z'/%3E%3C/svg%3E") !important;
  }

  html body #header-menu .js-header-nav-item-fav .custom-ic-heart::before {
    display: none !important;
    content: none !important;
  }

  html body #header-menu .js-header-nav-item-comp .custom-ic-copy {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin: 0 !important;
    background-size: 14px 14px !important;
  }

  html body #header-menu .mspb-top-ic-label {
    display: inline !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #183640 !important;
    padding: 0 !important;
  }

  @media (max-width: 1279px) {
    html body #header-menu .mspb-hours-only-item {
      display: none !important;
    }
    html body #header-menu ul.header-nav-menu-wrapper > li:not(.header-nav-item-ic):not(.topm-top-sale-item) > a.header-nav-link {
      padding: 0 4px !important;
      font-size: 11.5px !important;
    }
  }
}

/* --------------------------------------------------------------------------
   V4.3 CRISP TWO-COLOR PHONE (+7 (812) #183640 + 988-67-88 #e85656, ZERO SHADOW!)
   -------------------------------------------------------------------------- */
html body .header-wrapper-new header.header-inner .header-information-phone a,
html body .header-wrapper-new header.header-inner .header-information-phone .contact-number,
html body .header-wrapper-new header.header-inner .header-information-phone .contact-number-large,
html body .mspb-mob-tel,
html body .mspb-consult-card__phone {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-decoration: none !important;
}

html body .header-wrapper-new header.header-inner .header-information-phone a {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  line-height: 1.15 !important;
}

html body .header-wrapper-new header.header-inner .header-information-phone .contact-number,
html body .mspb-tel-code {
  color: #183640 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-shadow: none !important;
}

html body .header-wrapper-new header.header-inner .header-information-phone .contact-number-large,
html body .mspb-tel-num {
  color: #e85656 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-shadow: none !important;
}

@media (max-width: 767px) {
  body #topm-mob-subbar .mspb-mob-tel .mspb-tel-code {
    font-size: 13.5px !important;
  }
  body #topm-mob-subbar .mspb-mob-tel .mspb-tel-num {
    font-size: 14.5px !important;
  }
}

/* --------------------------------------------------------------------------
   V4.4 BESPOKE CONSULTATION PANEL (.mspb-consult-card) — DISTINCT FROM TOPM
   -------------------------------------------------------------------------- */
.mspb-consult-section {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

.mspb-consult-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 22px !important;
  align-items: center !important;
  padding: 20px 26px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8fa 100%) !important;
  border: 1px solid #cde0e7 !important;
  border-left: 4px solid #3a7d91 !important;
  box-shadow: 0 6px 20px rgba(24, 54, 64, 0.05) !important;
}

.mspb-consult-card__visual {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mspb-consult-card__visual img {
  width: 108px !important;
  height: auto !important;
  display: block !important;
}

.mspb-consult-card__eyebrow {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #3a7d91 !important;
  margin-bottom: 4px !important;
}

.mspb-consult-card__title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #183640 !important;
  line-height: 1.25 !important;
  margin-bottom: 6px !important;
}

.mspb-consult-card__desc {
  margin: 0 0 10px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #42616c !important;
}

.mspb-consult-card__chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.mspb-consult-card__chips span {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cfe1e7 !important;
  color: #234955 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.mspb-consult-card__cta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #d5e5eb !important;
  gap: 5px !important;
}

.mspb-consult-card__hours {
  font-size: 11.5px !important;
  color: #62808b !important;
  margin-bottom: 4px !important;
}

.mspb-consult-card__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  background: #3a7d91 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease !important;
}

.mspb-consult-card__btn:hover {
  background: #285c6c !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media (max-width: 991px) {
  .mspb-consult-card {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }
  .mspb-consult-card__cta {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 575px) {
  .mspb-consult-card {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .mspb-consult-card__chips {
    justify-content: center !important;
  }
}

/* --------------------------------------------------------------------------
   V4.5 TEXTURED COARSE BACKGROUND ACROSS THE ENTIRE FOOTER
   Matches body's /images/core/background.png instead of flat grey #e9f1f4!
   -------------------------------------------------------------------------- */
body footer.mspb-site-footer {
  margin-top: 26px !important;
  padding: 30px 0 26px !important;
  background: #eae8e1 url(/images/core/background.png) repeat 0 0 !important;
  border-top: 1px solid #d2cfc4 !important;
  box-shadow: inset 0 3px 10px rgba(24, 54, 64, 0.04) !important;
}

body footer.mspb-site-footer > .container {
  background: transparent !important;
}

body footer.mspb-site-footer .mspb-ftr__grid {
  border-bottom: 1px solid #cfcBC0 !important;
}

body footer.mspb-site-footer .mspb-ftr__req-box {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid #d3d0c5 !important;
}

body footer.mspb-site-footer .mspb-ftr__size-chips a,
body footer.mspb-site-footer .mspb-pay-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #cecbc0 !important;
}

body footer.mspb-site-footer .mspb-ftr__size-chips a:hover {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   V4.6 LEGACY MSPB FIRMNESS BARS + TWO-SIDED HOVER TOOLTIP IN PRODUCT CARDS
   -------------------------------------------------------------------------- */
.mspb-brief-specs-tbl .help-link {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 0 4px 0 0 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

.mspb-brief-specs-tbl .help-link > img {
  display: block !important;
  width: 50px !important;
  height: 10px !important;
  margin: 0 !important;
  image-rendering: auto !important;
}

.mspb-brief-specs-tbl .mspb-stiff-max {
  font-size: 10.5px !important;
  color: #5b7680 !important;
  vertical-align: middle !important;
}

.mspb-brief-specs-tbl div.help-poop {
  display: none !important;
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  right: -12px !important;
  left: auto !important;
  width: 196px !important;
  padding: 10px 12px !important;
  background: #ffffff !important;
  border: 1px solid #c7dce3 !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 22px rgba(24, 54, 64, 0.18) !important;
  text-align: left !important;
  white-space: normal !important;
  z-index: 1200 !important;
}

.mspb-brief-specs-tbl .help-link:hover > div.help-poop {
  display: block !important;
}

.mspb-brief-specs-tbl div.help-poop p {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  color: #183640 !important;
}

.mspb-brief-specs-tbl div.help-poop p:last-of-type {
  margin-bottom: 0 !important;
}

.mspb-brief-specs-tbl div.help-poop p span {
  display: inline-block !important;
  min-width: 44px !important;
  color: #53717c !important;
}

.mspb-brief-specs-tbl div.help-poop p img {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 50px !important;
  height: 10px !important;
}

/* Ensure card containers allow tooltip overflow (beat #main_container .items-list.display-grid rules!) */
html body #main_container .items-list.display-grid .inner-item-cont,
html body #main_container .items-list.display-grid .item-box-fx,
html body #main_container .items-list.display-grid .item-box,
html body #main_container .items-list.display-grid .item-info-cont,
html body #main_container .items-list.display-grid .item-controls,
html body #oom-block .inner-item-cont,
html body #oom-block .item-box-fx,
html body #oom-block .item-box,
html body #oom-block .item-info-cont,
html body #oom-block .item-controls {
  overflow: visible !important;
}

/* === MSPB V4 POLISH END === */

/* === MSPB V5 PRECISION START === */

/* --------------------------------------------------------------------------
   V5.1 PURE TRANSPARENT .container WRAPPERS ON CONTENT CANVAS + ZERO HERO INDENT!
   - Keeps diamond pattern (/images/core/background.png) crisp on body sides
   - Strips custom_new.css semi-transparent grey rgba(246,246,246,0.5) on .container
   - Strips 20px left padding on .mspb-hero-left.main-filter-wrapper so "Подбор матраса"
     starts at the EXACT same x=300 left edge as every other block!
   -------------------------------------------------------------------------- */
html body .container:not(.top-catalog) {
  background-color: transparent !important;
}

html body .mspb-hero-left,
html body .mspb-hero-left.main-filter-wrapper {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   V5.2 LOGO WITHOUT ICON + TOP UTILITY BAR LEFT-EDGE LINKS & HOURS BY SALE
   -------------------------------------------------------------------------- */
html body .mspb-logo-emblem,
html body .header-inner a.logo:not(.is-topm-brand-logo) img {
  display: none !important;
}

html body .header-inner a.logo.is-topm-brand-logo {
  gap: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

@media (min-width: 768px) {
  /* First visible link ("О нас") starts flush at x=0 of container (exact match with logo!) */
  html body #header-menu ul.header-nav-menu-wrapper > li:not(.visible-xs):not(.visible-sm):first-of-type > a.header-nav-link,
  html body #header-menu ul.header-nav-menu-wrapper > li > a.header-nav-link[href="/o-nas/"] {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  /* Push Hours + % Распродажа + Избранное + Сравнение together to the right! */
  html body #header-menu .mspb-hours-only-item {
    margin-left: auto !important;
    margin-right: 8px !important;
    padding: 0 !important;
    border-right: none !important;
  }

  html body #header-menu .mspb-hours-only-item .topm-top-hours {
    background: transparent !important;
    color: #51707b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 4px !important;
  }

  html body #header-menu .topm-top-sale-item {
    margin-left: 0 !important;
    margin-right: 4px !important;
  }

  /* Last pill ("Сравнение (0)") ends flush at right edge of 1320px container! */
  html body #header-menu li.js-header-nav-item-comp {
    margin-right: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   V5.3 FULL-WIDTH 100% CATEGORY MENU STRIP (.mspb-cat-band)
   Stretches edge-to-edge across the entire viewport width!
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  html body .mspb-cat-band {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f9fb !important;
    border-top: 1px solid #d5e5ec !important;
    border-bottom: 2.5px solid #3a7d91 !important;
    box-shadow: 0 4px 14px rgba(24, 54, 64, 0.05) !important;
    position: relative !important;
    z-index: 120 !important;
  }

  html body .mspb-cat-band .mspb-cat-rail.topm-main-menu-bar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  html body .mspb-cat-band .mspb-cat-rail #mm_menu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
  }

  html body .mspb-cat-band .mspb-cat-rail #mm_menu > .main-menu-item:last-child > .main-menu-link {
    padding-right: 4px !important;
  }
}

/* --------------------------------------------------------------------------
   V5.4 FULL-WIDTH SOLID WHITE FOOTER (NO DIAMONDS, NO GREY, NO PATCHY ISLANDS!)
   -------------------------------------------------------------------------- */
html body footer.mspb-site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 28px !important;
  padding: 32px 0 26px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-top: 2px solid #d5e5eb !important;
  box-shadow: 0 -4px 18px rgba(24, 54, 64, 0.04) !important;
}

html body footer.mspb-site-footer > .container {
  background: transparent !important;
}

html body footer.mspb-site-footer .mspb-ftr__grid {
  border-bottom: 1px solid #e1edf1 !important;
}

html body footer.mspb-site-footer .mspb-ftr__req-box {
  background: #f4f9fb !important;
  border: 1px solid #d6e6ec !important;
}

html body footer.mspb-site-footer .mspb-ftr__size-chips a,
html body footer.mspb-site-footer .mspb-pay-pill {
  background: #f4f9fb !important;
  border: 1px solid #cfe1e8 !important;
}

html body footer.mspb-site-footer .mspb-ftr__size-chips a:hover {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   V5.5 TRUE SQUARE CHECKBOXES IN ALL FILTERS (16x16px, 2px corner!)
   Overrides catalog-home-v1.css 14x18px / 5px / 3.5px radius rules!
   -------------------------------------------------------------------------- */
html body .filter_block_form .jq-checkbox,
html body .main-filter-wrapper .filter_block_form .price-variety .jq-checkbox,
html body .mspb-hero-left .filter_block_form .price-variety .jq-checkbox,
html body #main_container ._left .filter_block_form .jq-checkbox,
html body .sidebar-left .nav_block2 .filter_block_form .price-variety .jq-checkbox,
html body .sidebar-left .nav_block2 .filter_block_form .jq-checkbox,
html body #mspb-all-params-drawer .price-variety .jq-checkbox,
html body #mspb-all-params-drawer .jq-checkbox {
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  border-radius: 2px !important;
  border: 1.5px solid #9ebbC5 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

html body .filter_block_form .jq-checkbox.checked,
html body .main-filter-wrapper .filter_block_form .price-variety .jq-checkbox.checked,
html body .mspb-hero-left .filter_block_form .price-variety .jq-checkbox.checked,
html body #main_container ._left .filter_block_form .jq-checkbox.checked,
html body .sidebar-left .nav_block2 .filter_block_form .price-variety .jq-checkbox.checked,
html body .sidebar-left .nav_block2 .filter_block_form .jq-checkbox.checked,
html body #mspb-all-params-drawer .price-variety .jq-checkbox.checked,
html body #mspb-all-params-drawer .jq-checkbox.checked {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
}

html body .filter_block_form .jq-checkbox.checked .jq-checkbox__div,
html body .mspb-hero-left .filter_block_form .price-variety .jq-checkbox.checked .jq-checkbox__div,
html body #mspb-all-params-drawer .price-variety .jq-checkbox.checked .jq-checkbox__div {
  display: block !important;
  opacity: 1 !important;
  border-bottom-color: #ffffff !important;
  border-left-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   V5.6 PRODUCT CARD "Жесткость:" SINGLE-ROW VERTICAL ALIGNMENT
   Overrides catalog-home-v1.css `tr:first-child { display: block }` so label
   and stiffness bars + max sit strictly opposite each other on ONE line!
   -------------------------------------------------------------------------- */
html body #main_container .item-controls table.mspb-brief-specs-tbl tr,
html body #oom-block .item-controls table.mspb-brief-specs-tbl tr,
html body .items-list .item-controls table.mspb-brief-specs-tbl tr {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 3px 0 !important;
  margin: 0 !important;
  border-bottom: 1px dotted #e2ecef !important;
}

html body #main_container .item-controls table.mspb-brief-specs-tbl tr:last-child,
html body #oom-block .item-controls table.mspb-brief-specs-tbl tr:last-child,
html body .items-list .item-controls table.mspb-brief-specs-tbl tr:last-child {
  border-bottom: none !important;
}

/* Hide legacy spacer row inside mspb-brief-specs-tbl since rows now have clean flex borders */
html body .item-controls table.mspb-brief-specs-tbl tr:has(td[colspan="2"]) {
  display: none !important;
}

html body #main_container .item-controls table.mspb-brief-specs-tbl tr > td,
html body #oom-block .item-controls table.mspb-brief-specs-tbl tr > td,
html body .items-list .item-controls table.mspb-brief-specs-tbl tr > td {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  background: transparent !important;
}

html body .mspb-brief-specs-tbl tr.mspb-stiff-row > td:last-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

html body .mspb-brief-specs-tbl .help-link {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

html body .mspb-brief-specs-tbl .mspb-stiff-max {
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 10.5px !important;
  color: #5b7680 !important;
}

/* === MSPB V5 PRECISION END === */

/* === MSPB V6 POLISH START === */

/* --------------------------------------------------------------------------
   V6.1 INNER HORIZONTAL PADDING ON "Детские размеры / Односпальные..." CARD
   Beats `html body .container-top.container.top-catalog { padding-left: 0 }`!
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  html body div.container-top.container.top-catalog {
    padding: 20px 26px !important;
  }

  html body div.container-top.container.top-catalog > .row > [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  html body div.container-top.container.top-catalog > .row > [class*="col-"]:first-child {
    padding-left: 0 !important;
  }

  html body div.container-top.container.top-catalog > .row > [class*="col-"]:last-child {
    padding-right: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   V6.2 HEADER CART BUTTON: CLEAN BREATHING SPACE BETWEEN ICON, TEXT & BADGE
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  html body #td_shopping_cart_info a.blind-link-two.mspb-hdr-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 16px !important;
    height: 44px !important;
  }

  html body #td_shopping_cart_info .mspb-hdr-cart-ic {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  html body #td_shopping_cart_info .mspb-hdr-cart-txt {
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  html body #td_shopping_cart_info .mspb-hdr-cart-badge {
    margin: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   V6.3 CATEGORY MENU BAND: EXACT VERTICAL CENTERING INSIDE FULL-WIDTH STRIP
   Removes legacy bottom margin so top & bottom gaps match to the 1px!
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  html body .mspb-cat-band .container.container-main-menu.mspb-cat-rail-wrap,
  html body .mspb-cat-band .mspb-cat-rail-wrap > .row,
  html body .mspb-cat-band .mspb-cat-rail-wrap > .row > .col-lg-12 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .mspb-cat-band .mspb-cat-rail.topm-main-menu-bar {
    padding: 9px 0 9px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  html body .mspb-cat-band .mspb-catalog-btn.topm-catalog-btn,
  html body .mspb-cat-band #mm_menu,
  html body .mspb-cat-band #mm_menu > .main-menu-item,
  html body .mspb-cat-band #mm_menu > .main-menu-item > .main-menu-link {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   V6.4 SUBCATEGORY QUICK LINKS (ul.podkategorii): REFINED HOVER WITHOUT BIG WHITE DOT
   -------------------------------------------------------------------------- */
html body #main_container .content .headless-center-block ul.podkategorii > li > a:hover {
  background: #e3f1f5 !important;
  border-color: #3a7d91 !important;
  color: #14313b !important;
}

html body #main_container .content .headless-center-block ul.podkategorii > li > a::before,
html body #main_container .content .headless-center-block ul.podkategorii > li > a:hover::before {
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  max-width: 6px !important;
  min-height: 6px !important;
  max-height: 6px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

html body #main_container .content .headless-center-block ul.podkategorii > li > a:hover::before {
  background: #e85656 !important;
}

/* --------------------------------------------------------------------------
   V6.5 QUICK-VIEW MODAL ("Состав матраса") — CLEAN 3-COLUMN GRID & VIEWPORT FIT
   Fixes Bootstrap ::before/::after pseudo-items wrapping column 3 to Row 2
   and caps height inside 92vh so title & close button never clip above screen!
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  html body #fancybox-wrap.fancybox1100,
  html body #fancybox-wrap:has(.product_qv_info) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(1100px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 36px) !important;
    margin: 0 !important;
    z-index: 1000010 !important;
  }

  html body #fancybox-overlay {
    z-index: 1000000 !important;
  }

  html body #fancybox-wrap.fancybox1100 #fancybox-outer {
    max-height: calc(100vh - 36px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  html body #fancybox-wrap.fancybox1100 #fancybox-content {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 36px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper::before,
  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper::after,
  html body .product_qv_info .item-single .row-columns-wrapper::before,
  html body .product_qv_info .item-single .row-columns-wrapper::after {
    display: none !important;
    content: none !important;
  }

  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper,
  html body .product_qv_info .item-single .row-columns-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.95fr) !important;
    gap: 16px 20px !important;
    align-items: start !important;
    padding: 20px 22px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-photo {
    grid-column: 1 !important;
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-composition {
    grid-column: 2 !important;
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    padding: 0 18px !important;
    margin: 0 !important;
    border-left: 1px solid #e6f0f3 !important;
    border-right: 1px solid #e6f0f3 !important;
  }

  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > .column-information {
    grid-column: 3 !important;
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  html body #fancybox-wrap .product_qv_info .item-single .row-columns-wrapper > :not(.column-photo):not(.column-information):not(.column-composition) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   V6.6 SIDEBAR "Новости и акции" (.news_block1) — MATCHES "Подобрать матрас"!
   + Clean /news/ page container spacing
   -------------------------------------------------------------------------- */
html body .sidebar-left .nav_block2 .news_block1,
html body .news_block1 {
  margin: 0 !important;
  padding: 0 0 14px 0 !important;
  background: #ffffff !important;
  border: none !important;
  border-top: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

html body .sidebar-left .nav_block2 .news_block1 > .title,
html body .news_block1 > .title {
  background: #f2f8fa !important;
  color: #183640 !important;
  border: none !important;
  border-left: 4px solid #3a7d91 !important;
  border-bottom: 1px solid #d5e5ea !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 13px 16px !important;
  margin: 0 0 12px 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
}

html body .sidebar-left .nav_block2 .news_block1 form[name="subscription_form"] {
  padding: 0 12px !important;
}

html body .sidebar-left .nav_block2 .news_block1 .more-item {
  background: #f7fbfc !important;
  border: 1px solid #ddebf0 !important;
  border-radius: 9px !important;
  padding: 10px 12px !important;
  margin: 0 0 8px 0 !important;
}

html body .sidebar-left .nav_block2 .news_block1 .all-news {
  margin: 4px 0 10px !important;
}

html body .sidebar-left .nav_block2 .news_block1 .all-news a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #f2f8fa !important;
  border: 1px solid #cde0e7 !important;
  color: #235363 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

html body .sidebar-left .nav_block2 .news_block1 .all-news a:hover {
  background: #3a7d91 !important;
  border-color: #3a7d91 !important;
  color: #ffffff !important;
}

html body .sidebar-left .nav_block2 .news_block1 .subscr_block,
html body .sidebar-left .nav_block2 .news_block1 td[style*="text-align: center"] > div {
  background: #f7fbfc !important;
  border: 1px solid #d8e7ec !important;
  border-radius: 10px !important;
  padding: 12px !important;
  text-align: left !important;
}

html body .sidebar-left .nav_block2 .news_block1 input[type="text"],
html body .sidebar-left .nav_block2 .news_block1 input[type="email"] {
  width: 100% !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  border: 1px solid #c6dce3 !important;
  background: #ffffff !important;
  font-size: 13px !important;
  margin: 6px 0 8px !important;
  box-sizing: border-box !important;
}

html body .sidebar-left .nav_block2 .news_block1 input[type="submit"],
html body .sidebar-left .nav_block2 .news_block1 button[type="submit"] {
  width: 100% !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #3a7d91 !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   V6.7 INNER PAGE TOP GAP BELOW MENU BAND + PDP FULL-WIDTH 1320px ALIGNMENT
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* Clean 16px breathing space between full-width category band and content on all inner pages */
  html body.topm-is-inner #main_container.container {
    margin-top: 16px !important;
  }

  /* PDP Top Hero Card 3-column grid (excludes .topm-pdp-lower!) */
  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower) {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, 0.92fr) !important;
    gap: 24px !important;
    align-items: start !important;
  }

  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower)::before,
  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower)::after {
    display: none !important;
    content: none !important;
  }

  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower) > .column-description,
  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower) > .column-photo,
  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower) > .column-composition,
  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper:not(.topm-pdp-lower) > .column-information {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* PDP Lower wrapper (.topm-pdp-lower): ZERO horizontal padding so .params-table & #prod-tabs
     align 100% flush with .topm-pdp-hero (exact 300..1620px / 1320px width!) */
  html body #main_container.topm-no-sidebar .item-single .row-columns-wrapper.topm-pdp-lower {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body #main_container.topm-no-sidebar .item-single .params-table,
  html body #main_container.topm-no-sidebar #prod-tabs {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* === MSPB V6 POLISH END === */

/* === MSPB V9 MOBILE & CATALOG POLISH START === */

/* 1. Product Cards (Catalog & Bestsellers): NO extra line above Stiffness and NO lines between spec rows */
html body #main_container .item-controls table.mspb-brief-specs-tbl,
html body #oom-block .item-controls table.mspb-brief-specs-tbl,
html body .items-list .item-controls table.mspb-brief-specs-tbl {
  width: 100% !important;
  border-top: none !important;
  padding-top: 2px !important;
  margin-top: 4px !important;
  border-collapse: separate !important;
}

html body #main_container .item-controls table.mspb-brief-specs-tbl tr,
html body #oom-block .item-controls table.mspb-brief-specs-tbl tr,
html body .items-list .item-controls table.mspb-brief-specs-tbl tr {
  border-bottom: none !important;
  padding: 2.5px 0 !important;
}

html body .item-controls table.mspb-brief-specs-tbl tr:not(:has(td)),
html body .item-controls table.mspb-brief-specs-tbl tr:has(> td:only-child:empty),
html body .item-controls table.mspb-brief-specs-tbl tr:has(td[colspan="2"]) {
  display: none !important;
}

/* 2. Mobile & Tablet (<= 991px): full-width "Подбор матраса" button & balanced footer side padding */
@media screen and (max-width: 991px) {
  html body .mspb-mob-filter-cta.main-filter-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body .mspb-mob-filter-cta.main-filter-wrapper > .left,
  html body .mspb-mob-filter-cta .mspb-hf-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body .mspb-mob-filter-cta .mspb-hf-form > .title.mspb-hf-header {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 11px !important;
    box-sizing: border-box !important;
  }

  html body .mspb-mob-filter-cta .mspb-hf-form > .title.mspb-hf-header a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

  html body footer.mspb-site-footer {
    padding: 24px 0 22px !important;
  }

  html body footer.mspb-site-footer > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

/* 3. Mobile (<= 767px):
      - Fix nested 2-col grid in #oom-block ("Лидеры продаж") & wrap all 5 tabs cleanly
      - Stop ul.podkategorii horizontal block dragging on touch (wrap cleanly in rows) */
@media screen and (max-width: 767px) {
  html body #main_container .content .headless-center-block ul.podkategorii {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: auto !important;
    gap: 6px !important;
    padding: 2px 0 4px !important;
    margin: 8px 0 10px 0 !important;
  }

  html body #main_container .content .headless-center-block ul.podkategorii > li,
  html body #main_container .content .headless-center-block ul.podkategorii > li > a,
  html body #main_container .content .headless-center-block ul.podkategorii > li > a:hover,
  html body #main_container .content .headless-center-block ul.podkategorii > li > a:active,
  html body #main_container .content .headless-center-block ul.podkategorii > li > a:focus {
    transform: none !important;
    will-change: auto !important;
  }

  /* Fix #oom-block ("Лидеры продаж") mobile tabs */
  html body #oom-block .tabs-g ul.tabs-header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html body #oom-block .tabs-g ul.tabs-header li {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  html body #oom-block .tabs-g ul.tabs-header li br {
    display: none !important;
  }

  /* Fix #oom-block nested grid bug: .owl-carousel & .owl-wrapper-outer must be 100% block,
     and ONLY .owl-wrapper is the 2-column grid! */
  html body #oom-block.block-center.spec .tabs-slider > .items-list > .owl-carousel,
  html body #oom-block.block-center.spec .tabs-slider > .items-list > div[id^="owl-demo-"],
  html body #oom-block.block-center.spec .tabs-slider .owl-wrapper-outer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html body #oom-block.block-center.spec .tabs-slider .owl-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  html body #oom-block.block-center.spec .tabs-slider .owl-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  html body #oom-block.block-center.spec .item-box {
    padding: 8px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body #oom-block.block-center.spec .item-info-cont,
  html body #oom-block.block-center.spec .item-controls,
  html body #oom-block.block-center.spec .item-useful-cont {
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body #oom-block.block-center.spec .item-name > a:first-child {
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  html body #oom-block.block-center.spec .item-controls table.mspb-brief-specs-tbl tr > td {
    font-size: 11px !important;
    white-space: normal !important;
  }

  html body #oom-block.block-center.spec .item-useful-cont form[name^="MainForm2_"] {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    padding-right: 0 !important;
    min-height: 0 !important;
  }

  html body #oom-block.block-center.spec .item-useful-cont form[name^="MainForm2_"] > div[style*="inline-block"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html body #oom-block.block-center.spec .item-useful-cont .item-price {
    position: static !important;
    display: inline-flex !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    z-index: 2 !important;
  }

  html body #oom-block.block-center.spec .item-useful-cont .item-buy {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    margin: 2px 0 0 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  html body #oom-block.block-center.spec .item-useful-cont .item-buy a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 32px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Mobile Burger Menu: hide city selector & keep region/phone on separate crisp single lines */
  html body .topm-mobnav-city-btn,
  html body #domain-block-mob {
    display: none !important;
  }

  html body .topm-mobnav-foot__region {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #53717c !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  html body .topm-mobnav-foot__phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  html body .topm-mobnav-foot__phone span {
    white-space: nowrap !important;
  }

  /* V11.1 Fix #oom-block ("Лидеры продаж") hidden tab blank gap (~1100px) on mobile */
  html body #oom-block.block-center.spec .tabs-slider.hidden,
  html body .block-center.spec .tabs-slider.hidden {
    display: none !important;
  }

  /* V11.2 Keep stiffness tooltip (.help-poop) strictly inside viewport for BOTH columns on mobile */
  html body .mspb-brief-specs-tbl div.help-poop {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(260px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    padding: 12px 14px !important;
    box-shadow: 0 12px 32px rgba(24, 54, 64, 0.28) !important;
    z-index: 99999 !important;
  }
}

/* V11.3 Never show duplicate "Вернуться к покупкам" inside #order_details_table on desktop or mobile */
html body .topm-cart-page #order_details_table .text_osnov_center1 {
  display: none !important;
}

/* V12 Out-of-stock ("Нет в наличии", in_stock < 0) clean commercial UI on cards & PDP */
html body .item-buy.item-buy--oos {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body .mspb-oos-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  background: #eff4f6 !important;
  border: 1px solid #cddce2 !important;
  color: #5b747e !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

html body .mspb-pdp-oos-card {
  margin: 10px 0 12px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: #f5f9fb !important;
  border: 1px solid #cfe0e6 !important;
  text-align: left !important;
}

html body .mspb-pdp-oos-card__badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: #e4eef2 !important;
  color: #2f5461 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 8px !important;
}

html body .mspb-pdp-oos-card__sub {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  color: #46636e !important;
}

html body .mspb-pdp-oos-card__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  border: none !important;
  background: #3a7d91 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

html body .mspb-pdp-oos-card__btn:hover {
  background: #2f697b !important;
}

html body .mspb-stock-out-txt {
  color: #788d96 !important;
  font-weight: 700 !important;
}

/* === MSPB V9 MOBILE & CATALOG POLISH END === */
