
/* ============================================================
   V69 — FINAL UNIFIED HERO STANDARD
   Fixes V68 specificity conflict with older V32/V39/camera rules.
   Applies to every user-facing route.
   ============================================================ */

:root{
  --mp-v69-hero-top:28px;
  --mp-v69-hero-bottom:28px;
  --mp-v69-hero-gap:28px;
  --mp-v69-hero-size:500px;
  --mp-v69-hero-min:420px;
  --mp-v69-radius:18px;
  --mp-v69-line:#dce2e8;
  --mp-v69-bg:#f4f6f8;
  --mp-v69-shadow:0 16px 40px rgba(23,30,39,.08);
}

/* ---------- ONE DESKTOP GRID FOR EVERY TOP-LEVEL HERO ---------- */

body.mp-hero-standard-v69.home-page main>.home-hero,
body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5,
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid,
body.mp-hero-standard-v69.mp-category-ten main>.ten-hero,
body.mp-hero-standard-v69.mp-category-components main>.components-hero,
body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero,
body.mp-hero-standard-v69.about-page main>.about-hero,
body.mp-hero-standard-v69.project-page main>.project-hero,
body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(var(--mp-v69-hero-min),var(--mp-v69-hero-size))!important;
  gap:var(--mp-v69-hero-gap)!important;
  align-items:center!important;
  padding-top:var(--mp-v69-hero-top)!important;
  padding-bottom:var(--mp-v69-hero-bottom)!important;
}

/* Outer wrappers that previously added their own top/bottom padding. */
body.mp-hero-standard-v69.mp-category-avtomatika main>.auto-hero,
body.mp-hero-standard-v69.info-page main>.info-hero{
  padding-top:0!important;
  padding-bottom:0!important;
}

/* ---------- ONE 1:1 MEDIA/CARD GEOMETRY ---------- */

body.mp-hero-standard-v69.home-page main>.home-hero>.home-media,
body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5>.hero-media,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5>.hero-media,
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid>.auto-hero-media,
body.mp-hero-standard-v69.mp-category-ten main>.ten-hero>.ten-media,
body.mp-hero-standard-v69.mp-category-components main>.components-hero>.components-media,
body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero>.bundle-page-visual,
body.mp-hero-standard-v69.about-page main>.about-hero>.about-founder-card,
body.mp-hero-standard-v69.project-page main>.project-hero>.project-hero-media,
body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid>.info-hero-card{
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:var(--mp-v69-hero-size)!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  align-self:center!important;
  justify-self:end!important;
  border:1px solid var(--mp-v69-line)!important;
  border-radius:var(--mp-v69-radius)!important;
  overflow:hidden!important;
  background:var(--mp-v69-bg)!important;
  box-shadow:var(--mp-v69-shadow)!important;
}

/* Explicitly neutralize old camera V14/V15/V39 rules. */
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5>.hero-media{
  aspect-ratio:1 / 1!important;
  min-height:0!important;
  max-height:none!important;
  width:100%!important;
  max-width:var(--mp-v69-hero-size)!important;
  justify-self:end!important;
}

/* Explicitly neutralize old Automation V32 / avtomatika.css ratios. */
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid>.auto-hero-media{
  aspect-ratio:1 / 1!important;
  min-height:0!important;
  max-height:none!important;
  width:100%!important;
  max-width:var(--mp-v69-hero-size)!important;
  justify-self:end!important;
}

/* ---------- IMAGE BEHAVIOUR ---------- */

/* Marketing portrait / lifestyle visual — fill square. */
body.mp-hero-standard-v69.home-page .home-hero>.home-media>img,
body.mp-hero-standard-v69.about-page .about-hero>.about-founder-card>.about-founder-photo{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
}

/* Equipment hero visuals — keep the equipment fully visible. */
body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5>.hero-media>img,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5>.hero-media>img,
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid>.auto-hero-media>img,
body.mp-hero-standard-v69.mp-category-ten main>.ten-hero>.ten-media>img,
body.mp-hero-standard-v69.project-page main>.project-hero>.project-hero-media>img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  margin:0!important;
  padding:14px!important;
  background:var(--mp-v69-bg)!important;
}

body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5>.hero-media>img,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5>.hero-media>img{
  padding:0!important;
  object-fit:cover!important;
}

body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid>.auto-hero-media>img{
  padding:8px!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Components hero remains a 2x2 layout inside a true square. */
body.mp-hero-standard-v69.mp-category-components main>.components-hero>.components-media{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  grid-template-rows:1fr 1fr!important;
  gap:8px!important;
  padding:8px!important;
}
body.mp-hero-standard-v69.mp-category-components .components-media figure{
  min-width:0!important;
  min-height:0!important;
}
body.mp-hero-standard-v69.mp-category-components .components-media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}

/* Bundle: both products fit inside one 1:1 visual. */
body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero>.bundle-page-visual{
  display:grid!important;
  grid-template-columns:1fr 52px 1fr!important;
  align-items:center!important;
  gap:8px!important;
  padding:14px!important;
}
body.mp-hero-standard-v69.bundle-page .bundle-page-visual img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
}

/* About portrait must fill the square regardless of older fixed 500px heights. */
body.mp-hero-standard-v69.about-page main>.about-hero>.about-founder-card,
body.mp-hero-standard-v69.about-page main>.about-hero>.about-founder-card>.about-founder-photo{
  min-height:0!important;
  height:auto!important;
  aspect-ratio:1/1!important;
}
body.mp-hero-standard-v69.about-page main>.about-hero>.about-founder-card>.about-founder-photo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Info / legal hero card: same square as every visual hero. */
body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid>.info-hero-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding:28px!important;
}

/* ---------- PRODUCT PAGES: MAIN MEDIA MUST ALSO BE 1:1 ---------- */

/* Ovens */
body.mp-hero-standard-v69 .product-main-photo{
  width:100%!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
body.mp-hero-standard-v69 .product-main-photo>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Cameras */
body.mp-hero-standard-v69 main.product-page .product-photo{
  width:100%!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
body.mp-hero-standard-v69 main.product-page .product-photo>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Automation */
body.mp-hero-standard-v69 main.auto-detail .auto-product-photo{
  width:100%!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
body.mp-hero-standard-v69 main.auto-detail .auto-product-photo>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* TEN / sensors / accessories */
body.mp-hero-standard-v69 main.ten-detail .ten-product-photo{
  width:100%!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
body.mp-hero-standard-v69 main.ten-detail .ten-product-photo>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* ---------- TABLET ---------- */

@media(max-width:980px){
  body.mp-hero-standard-v69.home-page main>.home-hero,
  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid,
  body.mp-hero-standard-v69.mp-category-ten main>.ten-hero,
  body.mp-hero-standard-v69.mp-category-components main>.components-hero,
  body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero,
  body.mp-hero-standard-v69.about-page main>.about-hero,
  body.mp-hero-standard-v69.project-page main>.project-hero,
  body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid{
    grid-template-columns:1fr!important;
    gap:18px!important;
    padding-top:22px!important;
    padding-bottom:24px!important;
  }

  body.mp-hero-standard-v69.home-page main>.home-hero>.home-media,
  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5>.hero-media,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5>.hero-media,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid>.auto-hero-media,
  body.mp-hero-standard-v69.mp-category-ten main>.ten-hero>.ten-media,
  body.mp-hero-standard-v69.mp-category-components main>.components-hero>.components-media,
  body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero>.bundle-page-visual,
  body.mp-hero-standard-v69.about-page main>.about-hero>.about-founder-card,
  body.mp-hero-standard-v69.project-page main>.project-hero>.project-hero-media,
  body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid>.info-hero-card{
    width:min(100%,560px)!important;
    max-width:560px!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    justify-self:center!important;
  }
}

/* ---------- MOBILE ---------- */

@media(max-width:767px){
  body.mp-hero-standard-v69.home-page main>.home-hero,
  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid,
  body.mp-hero-standard-v69.mp-category-ten main>.ten-hero,
  body.mp-hero-standard-v69.mp-category-components main>.components-hero,
  body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero,
  body.mp-hero-standard-v69.about-page main>.about-hero,
  body.mp-hero-standard-v69.project-page main>.project-hero,
  body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
    padding-top:16px!important;
    padding-bottom:20px!important;
  }

  body.mp-hero-standard-v69.home-page main>.home-hero>.home-media,
  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5>.hero-media,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5>.hero-media,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid>.auto-hero-media,
  body.mp-hero-standard-v69.mp-category-ten main>.ten-hero>.ten-media,
  body.mp-hero-standard-v69.mp-category-components main>.components-hero>.components-media,
  body.mp-hero-standard-v69.bundle-page main>.bundle-page-hero>.bundle-page-visual,
  body.mp-hero-standard-v69.about-page main>.about-hero>.about-founder-card,
  body.mp-hero-standard-v69.project-page main>.project-hero>.project-hero-media,
  body.mp-hero-standard-v69.info-page main>.info-hero>.info-wrap>.info-hero-grid>.info-hero-card{
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    border-radius:14px!important;
    justify-self:stretch!important;
  }

  body.mp-hero-standard-v69.info-page .info-hero-card{
    padding:22px!important;
  }

  body.mp-hero-standard-v69.bundle-page .bundle-page-visual{
    grid-template-columns:1fr 42px 1fr!important;
  }
}

/* ===== V85 — keep visible hero fact cards in one row ===== */
@media(min-width:768px){
  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5 .hero-facts,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5 .hero-facts,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid .auto-facts{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-top:14px!important;
    padding-top:0!important;
    border-top:0!important;
    flex-wrap:nowrap!important;
  }

  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5 .hero-fact,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5 .hero-fact,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid .auto-fact{
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}

@media(max-width:767px){
  body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5 .hero-facts,
  body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5 .hero-facts,
  body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid .auto-facts{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    padding-top:0!important;
    border-top:0!important;
  }
}

/* V85.1 — reassert card visuals after legacy V14/V32 fact-strip rules. */
body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5 .hero-fact,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5 .hero-fact,
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid .auto-fact{
  display:block!important;
  min-width:0!important;
  width:auto!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:10px!important;
  border:1px solid #dfe5ea!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#171a1f!important;
  box-shadow:0 2px 8px rgba(22,28,38,.025)!important;
}
body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5 .hero-fact b,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5 .hero-fact b,
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid .auto-fact b{
  display:block!important;
  margin:0!important;
  color:#171a1f!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.mp-hero-standard-v69.mp-category-pechi main>.hero-v5 .hero-fact span,
body.mp-hero-standard-v69.mp-category-kamery main>.camera-hero.hero-v5 .hero-fact span,
body.mp-hero-standard-v69.mp-category-avtomatika .auto-hero>.auto-hero-grid .auto-fact span{
  display:block!important;
  margin-top:3px!important;
  color:#7a8490!important;
  font-size:10px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
