.mm-home { background: #fff; }

.mm-home-hero {
  position: relative;
  display: grid;
  min-height: 302px;
  grid-template-columns: 50.5% 49.5%;
  overflow: hidden;
  border-radius: 9px;
  background: #f2f3f8;
  margin-top: 12px;
}
.mm-home-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--mm-navy-strong);
  color: #fff;
  padding: 38px 48px;
}
.mm-home-hero__copy::after {
  position: absolute;
  z-index: -1;
  inset: 0 -145px 0 auto;
  width: 170px;
  background: var(--mm-navy-strong);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: '';
}
.mm-home-hero h1 { margin: 0; max-width: 640px; color: #fff; font-size: clamp(2rem, 3.15vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.07; }
.mm-home-hero h1 span { color: var(--mm-orange); }
.mm-home-hero__copy p { margin: 14px 0 0; color: rgba(255,255,255,.92); font-size: .98rem; }
.mm-home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mm-home-hero__actions .mm-btn { min-width: 150px; }
.mm-home-hero__visual { position: relative; min-width: 0; overflow: hidden; background: linear-gradient(130deg,#f7f7fb,#e9ebf2); }
.mm-home-hero__banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.mm-home-hero__cover { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mm-home-hero__visual::after { position: absolute; right: -6%; bottom: -55%; width: 54%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.82); content: ''; }
.mm-home-hero__products { position: relative; z-index: 2; width: 100%; height: 100%; }
.mm-home-hero__product { position: absolute; display: grid; place-items: center; }
.mm-home-hero__product img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(7,27,73,.18)); }
.mm-home-hero__product--1 { z-index: 4; left: 1%; bottom: -4%; width: 28%; height: 82%; }
.mm-home-hero__product--2 { z-index: 3; left: 21%; top: 4%; width: 32%; height: 70%; }
.mm-home-hero__product--3 { z-index: 2; left: 45%; bottom: 2%; width: 27%; height: 76%; }
.mm-home-hero__product--4 { z-index: 3; right: 4%; top: 4%; width: 27%; height: 68%; }
.mm-home-hero__product--5 { z-index: 4; right: -2%; bottom: -5%; width: 19%; height: 53%; }
.mm-home-hero__empty { display: grid; height: 100%; place-items: center; align-content: center; gap: 12px; color: #7f899b; text-align: center; }
.mm-home-hero__empty i { font-size: 4rem; }

.mm-home-categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-block: 12px 6px; }
.mm-home-category { display: grid; min-width: 0; min-height: 88px; grid-template-columns: 1fr 42%; align-items: center; overflow: hidden; border: 1px solid var(--mm-border); border-radius: var(--radius-lg); background: #fff; padding-left: 15px; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); }
.mm-home-category:hover { transform: translateY(-2px); border-color: var(--mm-border-strong); box-shadow: var(--shadow-sm); }
.mm-home-category span { min-width: 0; }
.mm-home-category strong { display: block; overflow: hidden; color: var(--mm-navy); font-size: .77rem; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
.mm-home-category small { display: block; margin-top: 14px; color: var(--mm-navy); font-size: .61rem; font-weight: 650; }
.mm-home-category img { width: 100%; height: 80px; object-fit: contain; padding: 7px; }
.mm-home-category__fallback { justify-self: center; color: #8fa1c4; font-size: 2.35rem; }
.mm-home-section-head { display: flex; align-items: end; justify-content: center; gap: 22px; margin-bottom: 10px; }
.mm-home-section-head a { display: none; color: var(--mm-orange); font-size: .75rem; font-weight: 700; }
.mm-home-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mm-home-products .mm-product-card { display: grid; min-height: 160px; grid-template-columns: 46% 54%; }
.mm-home-products .mm-product-card__image { grid-row: 1; height: 100%; aspect-ratio: auto; padding: 12px 6px; }
.mm-home-products .mm-product-card__body { grid-column: 2; grid-row: 1; padding: 15px 12px 11px; }
.mm-home-products .mm-product-card__title { min-height: 36px; }
.mm-home-products .mm-product-card__footer .mm-btn { font-size: .68rem; }
.mm-home-empty { grid-column: 1 / -1; border: 1px dashed var(--mm-border-strong); border-radius: var(--radius-lg); padding: 36px; color: var(--mm-muted); text-align: center; }

@media (max-width: 1100px) {
  .mm-home-hero { min-height: 290px; grid-template-columns: 53% 47%; }
  .mm-home-hero__copy { padding-inline: 36px; }
  .mm-home-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .mm-home-hero { min-height: 560px; grid-template-columns: 1fr; grid-template-rows: auto 250px; }
  .mm-home-hero__copy { padding: 30px 24px 28px; }
  .mm-home-hero__copy::after { display: none; }
  .mm-home-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .mm-home-hero__copy p { font-size: .88rem; line-height: 1.55; }
  .mm-home-hero__actions { display: grid; grid-template-columns: 1fr; }
  .mm-home-hero__actions .mm-btn { width: 100%; }
  .mm-home-hero__cover { object-fit: contain; }
  .mm-home-categories { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .mm-home-category { min-width: 215px; scroll-snap-align: start; }
  .mm-home-section-head { justify-content: space-between; }
  .mm-home-section-head a { display: inline-flex; align-items: center; gap: 6px; }
  .mm-home-products .mm-product-card { display: flex; min-height: 0; }
  .mm-home-products .mm-product-card__image { height: auto; aspect-ratio: 1 / 1; }
}

@media (max-width: 430px) {
  .mm-home-hero { width: 100%; min-height: 540px; border-radius: 0; margin-top: 0; grid-template-rows: auto 220px; }
  .mm-home-hero__copy { padding: 27px 18px 25px; }
  .mm-home-categories { width: calc(100% - 20px); }
  .mm-home-category { min-width: 190px; }
  .mm-home-products { gap: 8px; }
  .mm-home-section-head { align-items: center; }
  .mm-home-section-head a { font-size: .65rem; }
}
