:root {
  --m5-navy: #10223f;
  --m5-navy-deep: #09182e;
  --m5-ivory: #f7f4ee;
  --m5-paper: #fbfaf7;
  --m5-stone: #d8d1c5;
  --m5-ink: #172033;
  --m5-muted: #73746f;
  --m5-line: #e6e1d9;
  --m5-white: #fff;
}

.m5-reference {
  max-width: 100%;
  overflow-x: hidden;
  color: var(--m5-ink);
  background: var(--m5-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.m5-reference *,
.m5-reference *::before,
.m5-reference *::after {
  box-sizing: border-box;
}

.m5-reference a {
  transition: color 180ms ease, opacity 180ms ease, background 180ms ease;
}

.m5-reference .btn-primary,
.m5-reference .add_to_cart,
.m5-reference .product-thumb__add-to-cart {
  color: #fff !important;
  background: var(--m5-navy) !important;
  border-color: var(--m5-navy) !important;
}

.m5-reference .btn-primary:hover,
.m5-reference .add_to_cart:hover,
.m5-reference .product-thumb__add-to-cart:hover {
  background: var(--m5-navy-deep) !important;
  border-color: var(--m5-navy-deep) !important;
}

.m5-reference header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: var(--m5-navy);
}

.m5-reference .topstripe {
  min-height: 30px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: var(--m5-navy-deep) !important;
}

.m5-reference .topstripe__container-text {
  min-height: 30px !important;
  font-size: 11px !important;
  line-height: 30px !important;
}

.m5-reference header > #top,
.m5-reference header > .container,
.m5-reference header > #main-menu,
.m5-reference #fly-menu {
  display: none !important;
}

.m5-header {
  --m5-logo-size: 94px;
  position: relative;
  color: #fff;
  background: var(--m5-navy);
}

.m5-header__row {
  display: grid;
  grid-template-columns: 110px 100px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  width: min(calc(100% - 72px), 1810px);
  min-height: 108px;
  margin: 0 auto;
}

.m5-header__logo {
  display: block;
  width: var(--m5-logo-size) !important;
  height: var(--m5-logo-size) !important;
}

.m5-header__logo img {
  display: block;
  width: 94px !important;
  height: 94px !important;
  max-width: 94px !important;
  max-height: 94px !important;
  object-fit: contain;
}

.m5-header__catalog,
.m5-header__action,
.m5-search-panel__submit,
.m5-search-panel__close,
.m5-catalog__close {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.m5-header__catalog {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 450;
  background: transparent;
}

.m5-header__catalog svg {
  display: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.m5-header__catalog:hover,
.m5-header__catalog.is-open {
  color: #cfd7e4;
}

.m5-header__nav {
  display: flex;
  gap: clamp(18px, 2.1vw, 44px);
  align-items: center;
  min-width: 0;
}

.m5-header__nav-link {
  flex: 0 1 auto;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.m5-header__nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.m5-header__actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.m5-header__action {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 8px;
  color: #fff;
  background: transparent;
  place-items: center;
}

.m5-header__action:hover {
  color: #cfd7e4;
}

.m5-header__action svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.m5-header__count {
  position: absolute;
  top: 0;
  right: -1px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: var(--m5-navy);
  font-size: 10px;
  font-weight: 700;
  background: var(--m5-ivory);
  border-radius: 50%;
  place-items: center;
}

.m5-search-panel {
  position: absolute;
  z-index: 12;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(calc(100% - 72px), 1810px);
  min-height: 82px;
  margin: 0 auto;
  padding: 14px 0;
  visibility: hidden;
  opacity: 0;
  background: var(--m5-navy);
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.m5-search-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.m5-search-panel__input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  color: #fff;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  outline: none;
}

.m5-search-panel__input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.m5-search-panel__input:focus {
  border-color: rgba(255, 255, 255, 0.72);
}

.m5-search-panel__submit {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  color: var(--m5-navy);
  font-size: 14px;
  background: var(--m5-ivory);
}

.m5-search-panel__submit svg,
.m5-search-panel__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.m5-search-panel__close {
  display: grid;
  width: 52px;
  height: 52px;
  color: #fff;
  background: transparent;
  place-items: center;
}

.m5-cart-panel {
  position: absolute;
  z-index: 14;
  top: calc(100% + 1px);
  right: max(36px, calc((100% - 1810px) / 2));
  display: none;
  width: min(360px, calc(100% - 36px));
  max-height: 440px;
  overflow-y: auto;
  color: var(--m5-ink);
  background: var(--m5-white);
  border: 1px solid var(--m5-line);
  box-shadow: 0 18px 42px rgba(9, 24, 46, 0.16);
}

.m5-cart-panel.is-open {
  display: block;
}

.m5-cart-panel .header-cart__empty {
  padding: 26px;
  color: var(--m5-muted);
  text-align: center;
}

.m5-cart-panel .header-cart__item {
  padding: 14px;
  border-bottom: 1px solid var(--m5-line);
}

.m5-catalog {
  position: fixed;
  z-index: 10;
  inset: 108px 0 0;
  visibility: hidden;
  overflow-y: auto;
  opacity: 0;
  background: rgba(9, 24, 46, 0.48);
  transition: opacity 180ms ease, visibility 180ms;
}

.m5-catalog.is-open {
  visibility: visible;
  opacity: 1;
}

.m5-catalog__inner {
  width: min(calc(100% - 72px), 1810px);
  margin: 0 auto;
  padding: 28px 32px 34px;
  color: var(--m5-ink);
  background: var(--m5-paper);
  transform: translateY(-18px);
  transition: transform 210ms ease;
}

.m5-catalog.is-open .m5-catalog__inner {
  transform: translateY(0);
}

.m5-catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.m5-catalog__title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.m5-catalog__close {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--m5-navy);
  background: transparent;
  place-items: center;
}

.m5-catalog__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.m5-catalog__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--m5-line);
  border-left: 1px solid var(--m5-line);
}

.m5-catalog__item {
  position: relative;
  display: grid;
  grid-template-rows: 128px auto;
  min-width: 0;
  color: var(--m5-ink);
  background: var(--m5-white);
  border-right: 1px solid var(--m5-line);
  border-bottom: 1px solid var(--m5-line);
  text-decoration: none;
}

.m5-catalog__image {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.m5-catalog__label {
  padding: 16px 42px 16px 16px;
  font-size: 14px;
  line-height: 1.25;
}

.m5-catalog__item > svg {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--m5-navy);
  stroke-width: 1.6;
}

.m5-reference main > .container,
.m5-reference .home-page.container {
  width: min(calc(100% - 72px), 1810px) !important;
  max-width: 1810px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
}

.m5-home main > .container,
.m5-home .home-page.container {
  width: 100% !important;
  max-width: none !important;
}

.m5-home main {
  padding-top: 0 !important;
}

.m5-home .home-page > .row {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.m5-home #column-left {
  display: none !important;
}

.m5-home #content {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

.m5-source-hero,
.m5-source-category,
.m5-source-products {
  display: none !important;
}

.m5-hero {
  position: relative;
  width: 100%;
  height: clamp(430px, 31.5vw, 600px);
  overflow: hidden;
  background: var(--m5-navy);
}

.m5-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.m5-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 17, 34, 0.3) 0%,
    rgba(5, 17, 34, 0.08) 49%,
    rgba(5, 17, 34, 0) 72%
  );
  pointer-events: none;
}

.m5-hero__motif {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: clamp(38px, 3vw, 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92px;
  padding: 82px 0 60px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--m5-navy);
}

.m5-hero__branch {
  margin-bottom: 24px;
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 300;
  transform: rotate(-26deg);
}

.m5-hero__vertical {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.m5-hero__line {
  width: 1px;
  height: 84px;
  margin-top: 27px;
  background: rgba(255, 255, 255, 0.55);
}

.m5-hero__copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(220px, 15.8vw, 320px);
  width: min(560px, 39vw);
  transform: translateY(-35%);
}

.m5-hero__title {
  max-width: 560px;
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(40px, 3.3vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(5, 17, 34, 0.26);
}

.m5-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  color: #fff;
  font-size: 16px;
  font-weight: 450;
  background: var(--m5-navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  text-decoration: none;
}

.m5-hero__cta:hover {
  color: #fff;
  background: var(--m5-navy-deep);
  text-decoration: none;
}

.m5-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  width: min(calc(100% - 104px), 1810px);
  margin: 0 auto;
  padding: 34px 0 30px;
}

.m5-category {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--m5-ink);
  text-align: center;
  text-decoration: none;
}

.m5-category__image {
  display: block;
  width: 100%;
  height: 126px;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.94);
  transition: filter 220ms ease, transform 220ms ease;
}

.m5-category:hover .m5-category__image {
  filter: saturate(0.9) contrast(1);
  transform: translateY(-2px);
}

.m5-category__label {
  min-height: 38px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.m5-products {
  width: min(calc(100% - 104px), 1810px);
  margin: 0 auto;
  padding: 0 0 58px;
}

.m5-products__title {
  margin: 0 0 22px;
  color: var(--m5-ink);
  font-size: 34px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.m5-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.m5-product {
  min-width: 0;
  background: var(--m5-white);
}

.m5-product .product-thumb {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  min-height: 245px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--m5-white);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.m5-product .product-thumb__image {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100% !important;
  height: 245px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--m5-ivory);
}

.m5-product .product-thumb__image > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.m5-product .product-thumb__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
}

.m5-product .product-thumb__addit,
.m5-product .sticker,
.m5-product .product-thumb__attribute,
.m5-product .product-thumb__description,
.m5-product .product-thumb__option,
.m5-product .product-thumb__quick-order,
.m5-product .product-thumb__compare,
.m5-product .qty-indicator,
.m5-product .qty-switch {
  display: none !important;
}

.m5-product .product-thumb__caption {
  position: relative;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  min-height: 245px;
  padding: 20px 16px 16px !important;
  color: var(--m5-ink);
  text-align: left !important;
  background: var(--m5-white);
}

.m5-product .product-thumb__name {
  display: block;
  min-height: 72px;
  margin: 0 0 12px !important;
  overflow: hidden;
  color: var(--m5-ink) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.m5-product .product-thumb__price {
  margin: auto 0 16px !important;
  color: var(--m5-ink) !important;
  font-size: 22px !important;
  font-weight: 450 !important;
  line-height: 1.2 !important;
}

.m5-product .product-thumb__cart {
  position: static !important;
  display: flex !important;
  align-items: center;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 !important;
}

.m5-product .product-thumb__add-to-cart {
  display: inline-flex !important;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  flex: 0 0 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: var(--m5-navy) !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.m5-product .product-thumb__add-to-cart i {
  display: block !important;
  color: #fff !important;
  font-size: 14px !important;
}

.m5-product .product-thumb__add-to-cart span {
  display: none !important;
}

.m5-product .product-thumb__cart::after {
  color: var(--m5-ink);
  font-size: 14px;
  content: "В корзину";
}

.m5-product .product-thumb__wishlist {
  position: absolute !important;
  z-index: 4;
  top: 12px !important;
  right: 12px !important;
  display: none !important;
}

.m5-home .content-top > .heading,
.m5-home .content-top > .html-module,
.m5-home .content-top > .home-banner {
  width: min(calc(100% - 104px), 1810px);
  margin-right: auto !important;
  margin-left: auto !important;
}

.m5-home .content-top > .heading {
  margin-top: 26px !important;
  color: var(--m5-ink);
}

.m5-home .content-top > .html-module {
  color: var(--m5-muted);
  background: var(--m5-ivory);
  border: 0;
}

.m5-reference .content-bottom {
  width: min(calc(100% - 104px), 1810px);
  margin-right: auto;
  margin-left: auto;
}

.m5-reference .heading {
  color: var(--m5-ink);
}

.m5-reference .nav-tabs > li.active > a,
.m5-reference .nav-tabs > li.active > a:hover {
  color: var(--m5-navy);
  border-bottom-color: var(--m5-navy);
}

.m5-reference footer {
  margin-top: 60px;
  background: var(--m5-navy-deep);
}

@media (max-width: 1450px) {
  .m5-header {
    --m5-logo-size: 80px;
  }

  .m5-header__row {
    grid-template-columns: 88px 84px minmax(0, 1fr) auto;
    gap: 20px;
    width: min(calc(100% - 40px), 1810px);
    min-height: 98px;
  }

  .m5-header__logo,
  .m5-header__logo img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
  }

  .m5-header__nav {
    gap: 22px;
  }

  .m5-header__nav-link {
    font-size: 13px;
  }

  .m5-catalog {
    inset: 98px 0 0;
  }

  .m5-hero {
    height: 430px;
  }

  .m5-hero__copy {
    left: 214px;
    width: 480px;
  }

  .m5-hero__title {
    font-size: 48px;
  }

  .m5-categories,
  .m5-products {
    width: calc(100% - 72px);
  }

  .m5-category__image {
    height: 112px;
  }

  .m5-products__grid {
    gap: 18px;
  }

  .m5-product .product-thumb {
    grid-template-columns: 51% 49%;
    min-height: 222px;
  }

  .m5-product .product-thumb__image,
  .m5-product .product-thumb__caption {
    height: 222px !important;
    min-height: 222px;
  }

  .m5-product .product-thumb__caption {
    padding: 17px 13px 13px !important;
  }

  .m5-product .product-thumb__name {
    min-height: 66px;
    font-size: 12.5px !important;
  }
}

@media (max-width: 1180px) {
  .m5-header__nav-link:nth-child(4),
  .m5-header__nav-link:nth-child(5) {
    display: none;
  }

  .m5-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .m5-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .m5-header {
    --m5-logo-size: 62px;
  }

  .m5-reference header {
    min-height: 78px;
  }

  .m5-header__row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    width: calc(100% - 28px);
    min-height: 78px;
  }

  .m5-header__logo,
  .m5-header__logo img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
  }

  .m5-header__catalog {
    grid-column: 2;
    justify-self: start;
  }

  .m5-header__catalog svg {
    display: block;
  }

  .m5-header__nav {
    display: none;
  }

  .m5-header__actions {
    grid-column: 3;
    gap: 4px;
  }

  .m5-header__action {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .m5-header__action svg {
    width: 24px;
    height: 24px;
  }

  .m5-search-panel {
    width: calc(100% - 28px);
  }

  .m5-search-panel__submit span {
    display: none;
  }

  .m5-search-panel__submit {
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .m5-cart-panel {
    right: 14px;
  }

  .m5-catalog {
    inset: 78px 0 0;
  }

  .m5-catalog__inner {
    width: 100%;
    min-height: 100%;
    padding: 22px 18px 30px;
  }

  .m5-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m5-catalog__item {
    grid-template-rows: 108px auto;
  }

  .m5-catalog__image {
    height: 108px;
  }

  .m5-reference main > .container,
  .m5-reference .home-page.container {
    width: calc(100% - 28px) !important;
  }

  .m5-home main > .container,
  .m5-home .home-page.container {
    width: 100% !important;
  }

  .m5-hero {
    height: 390px;
  }

  .m5-hero__image {
    object-position: 57% center;
  }

  .m5-hero__motif {
    left: 18px;
    width: 58px;
    padding: 62px 0 44px;
  }

  .m5-hero__branch {
    font-size: 31px;
  }

  .m5-hero__vertical {
    font-size: 13px;
  }

  .m5-hero__copy {
    left: 96px;
    width: min(460px, calc(100% - 116px));
    transform: translateY(-34%);
  }

  .m5-hero__title {
    font-size: clamp(34px, 6.4vw, 48px);
  }

  .m5-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: calc(100% - 36px);
  }

  .m5-products {
    width: calc(100% - 36px);
  }

  .m5-home .content-top > .heading,
  .m5-home .content-top > .html-module,
  .m5-home .content-top > .home-banner,
  .m5-reference .content-bottom {
    width: calc(100% - 36px);
  }
}

@media (max-width: 620px) {
  .m5-reference .topstripe,
  .m5-reference .topstripe__container-text {
    min-height: 38px !important;
  }

  .m5-reference .topstripe__container-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 26px !important;
    padding-left: 12px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-align: center;
  }

  .m5-reference .topstripe__text {
    white-space: normal !important;
  }

  .m5-header {
    --m5-logo-size: 56px;
  }

  .m5-header__catalog span {
    display: none;
  }

  .m5-header__row {
    grid-template-columns: 58px 42px minmax(0, 1fr);
  }

  .m5-header__actions {
    justify-self: end;
  }

  .m5-header__logo,
  .m5-header__logo img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }

  .m5-hero {
    height: 360px;
  }

  .m5-hero__image {
    object-position: 61% center;
  }

  .m5-hero__veil {
    background: linear-gradient(
      90deg,
      rgba(5, 17, 34, 0.55) 0%,
      rgba(5, 17, 34, 0.23) 68%,
      rgba(5, 17, 34, 0.04) 100%
    );
  }

  .m5-hero__motif {
    left: 0;
    width: 50px;
    padding-top: 48px;
  }

  .m5-hero__copy {
    left: 70px;
    width: calc(100% - 90px);
  }

  .m5-hero__title {
    margin-bottom: 24px;
    font-size: 35px;
  }

  .m5-hero__cta {
    min-height: 50px;
    padding: 0 19px;
    font-size: 14px;
  }

  .m5-categories {
    display: flex;
    gap: 14px;
    width: 100%;
    padding: 22px 18px 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .m5-category {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }

  .m5-category__image {
    height: 136px;
  }

  .m5-products {
    width: calc(100% - 28px);
    padding-bottom: 40px;
  }

  .m5-products__title {
    margin-bottom: 16px;
    font-size: 29px;
  }

  .m5-products__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .m5-product .product-thumb {
    grid-template-columns: 48% 52%;
    min-height: 210px;
  }

  .m5-product .product-thumb__image,
  .m5-product .product-thumb__caption {
    height: 210px !important;
    min-height: 210px;
  }

  .m5-product .product-thumb__name {
    min-height: 60px;
    font-size: 12.5px !important;
  }

  .m5-home .content-top > .heading,
  .m5-home .content-top > .html-module,
  .m5-home .content-top > .home-banner,
  .m5-reference .content-bottom {
    width: calc(100% - 28px);
  }
}

/* Mobile adaptation — compact controls and resilient product layouts. */
@media (max-width: 620px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.m5-reference {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.m5-reference > .topstripe ~ .topstripe,
  .m5-reference .tab-pane .topstripe,
  .m5-reference .tab-pane header {
    display: none !important;
  }

  .m5-header__action,
  .m5-header__catalog {
    min-width: 42px;
    min-height: 42px;
  }

  .m5-hero {
    height: 340px;
  }

  .m5-hero__copy {
    top: 52%;
  }

  .m5-hero__title {
    font-size: clamp(30px, 9vw, 35px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .m5-category {
    flex-basis: min(78vw, 292px);
  }

  .m5-category__image {
    height: 128px;
  }

  .m5-product .product-thumb {
    grid-template-columns: 45% 55%;
  }

  .m5-product .product-thumb__caption {
    padding: 14px 11px 11px !important;
  }

  .m5-product .product-thumb__price {
    font-size: 20px !important;
  }

  .m5-reference .breadcrumb {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .m5-reference .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .m5-reference h1 {
    font-size: clamp(22px, 6vw, 27px);
    line-height: 1.18;
    text-wrap: balance;
  }

  .m5-reference .product-page img,
  .m5-reference .product-image img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 370px) {
  .m5-header__row {
    gap: 8px;
    width: calc(100% - 20px);
  }

  .m5-header__actions {
    gap: 2px;
  }

  .m5-hero {
    height: 320px;
  }

  .m5-hero__copy {
    left: 62px;
    width: calc(100% - 76px);
  }

  .m5-hero__title {
    margin-bottom: 20px;
    font-size: 29px;
  }

  .m5-hero__cta {
    min-height: 46px;
    padding: 0 16px;
    font-size: 13px;
  }

  .m5-products {
    width: calc(100% - 20px);
  }

  .m5-product .product-thumb {
    grid-template-columns: 43% 57%;
  }

  .m5-product .product-thumb__name {
    font-size: 12px !important;
  }
}
