/* ===============================
   CM-MHAC – HERO + 2 OBÁLKY
=============================== */

/* skrytí systémových prvků Shoptetu */
body:has(.cm-mhac) .breadcrumb,
body:has(.cm-mhac) .breadcrumbs,
body:has(.cm-mhac) .page-header,
body:has(.cm-mhac) .page-title,
body:has(.cm-mhac) #content h1:not(.cm-mhac-title){
  display:none !important;
}

/* vyčištění layoutu */
body:has(.cm-mhac) #content,
body:has(.cm-mhac) .content-wrapper,
body:has(.cm-mhac) .content,
body:has(.cm-mhac) .container,
body:has(.cm-mhac) .row{
  background:transparent !important;
  margin:0 !important;
  padding:0 !important;
}

#header{
  position:relative;
  z-index:50;
}

/* ===============================
   WRAPPER
=============================== */
.cm-mhac{
  --textMax: 720px;
  --book-gap: 400px; /* vzdálenost mezi knihami na PC */

  width:100vw;
  margin:0 calc(50% - 50vw);
  color:#fff;
}

/* ===============================
   HERO
=============================== */
.cm-mhac-hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:#000;
}

.cm-mhac-hero video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.cm-mhac-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1;
}

.cm-mhac-wrap{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:40px 18px 80px;
  text-align:center;
}

/* ===============================
   NADPIS – ICE / 3D
=============================== */
.cm-mhac-title{
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:clamp(30px, 5.2vw, 89px);
  line-height:1.05;
  margin:0 0 28px;
  white-space:normal;
  text-wrap:balance;

  color:transparent;
  background:linear-gradient(180deg,#fff 0%,#eaf3ff 30%,#b9d7ff 55%,#fff 85%);
  -webkit-background-clip:text;
  background-clip:text;

  text-shadow:
    0 2px 0 rgba(0,0,0,.45),
    0 6px 18px rgba(0,0,0,.55),
    0 18px 40px rgba(0,0,0,.65),
    0 0 18px rgba(150,200,255,.35),
    0 0 42px rgba(120,170,255,.22);
}

/* ===============================
   TEXT
=============================== */
.cm-mhac-text{
  max-width:var(--textMax);
  margin:0 auto;
}

.cm-mhac-text,
.cm-mhac-text p,
.cm-mhac-highlight{
  font-family:"Cinzel","Cormorant Garamond",Georgia,serif;
  font-size:17px;
  line-height:1.9;
  color:rgba(245,248,255,.88);
  text-shadow:0 6px 18px rgba(0,0,0,.65);
}

.cm-mhac-text p{ margin:0 0 18px; }

.cm-mhac-highlight{
  color:rgba(255,255,255,.95);
  margin-top:26px;
}

/* ===============================
   OBÁLKY – FLEX ŘEŠENÍ
=============================== */

/* kontejner pro knihy */
.cm-mhac-books{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:var(--book-gap);
  margin-top:34px;
}

/* jedna kniha */
.cm-mhac-book{
  width:250px;
  text-align:center;
}

.cm-mhac-book-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.cm-mhac-book-img{
  width:100%;
  transition:transform .3s ease, filter .3s ease;
  filter:drop-shadow(0 18px 42px rgba(0,0,0,.55));
}

.cm-mhac-book-link:hover .cm-mhac-book-img{
  transform:scale(1.06);
  filter:
    drop-shadow(0 26px 60px rgba(0,0,0,.65))
    drop-shadow(0 0 22px rgba(160,210,255,.45))
    drop-shadow(0 0 60px rgba(120,170,255,.25));
}

.cm-mhac-book-text{
  margin-top:10px;
  font-family:"Cinzel","Cormorant Garamond",Georgia,serif;
  font-size:15px;
  color:rgba(245,248,255,.85);
  text-shadow:0 8px 20px rgba(0,0,0,.75);
}

/* ===============================
   FOOTER – ČERNÝ
=============================== */
body:has(.cm-mhac) footer,
body:has(.cm-mhac) #footer{
  background:#000 !important;
  padding:6px 0 !important;
}

body:has(.cm-mhac) footer *,
body:has(.cm-mhac) #footer *{
  background:transparent !important;
  color:rgba(255,255,255,.75) !important;
  font-size:12px !important;
  line-height:1.15 !important;
}

/* ===============================
   MOBIL
=============================== */
@media (max-width:768px){

  .cm-mhac-books{
    flex-direction:column;
    gap:28px;
  }

  .cm-mhac-book{
    width:150px;
    margin:0 auto;
  }

  .cm-mhac-text,
  .cm-mhac-text p{
    font-size:16px;
    line-height:1.75;
  }

  .cm-mhac-wrap{
    padding:26px 14px 56px;
  }
}
/* ===============================
   CM-MHAC – KONEC STRÁNKY: pryč bílý pruh (footer/copyright/cookie)
=============================== */

/* footer + jeho vnitřní části (různé šablony) */
body:has(.cm-mhac) #footer,
body:has(.cm-mhac) footer,
body:has(.cm-mhac) .footer,
body:has(.cm-mhac) .footer-bottom,
body:has(.cm-mhac) .footer-top,
body:has(.cm-mhac) .footer-inner,
body:has(.cm-mhac) .copyright,
body:has(.cm-mhac) .copyright-wrapper,
body:has(.cm-mhac) .site-footer{
  background:#000 !important;
  margin:0 !important;
  padding:6px 0 !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
}

/* vše uvnitř – žádná bílá */
body:has(.cm-mhac) #footer *,
body:has(.cm-mhac) footer *,
body:has(.cm-mhac) .footer *,
body:has(.cm-mhac) .footer-bottom *,
body:has(.cm-mhac) .copyright *{
  background:transparent !important;
}

/* kontejnery často dělají bílý pruh přes padding */
body:has(.cm-mhac) #footer .container,
body:has(.cm-mhac) #footer .row,
body:has(.cm-mhac) footer .container,
body:has(.cm-mhac) footer .row,
body:has(.cm-mhac) .footer .container,
body:has(.cm-mhac) .footer .row{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}

/* text a linky – malé, kompaktní */
body:has(.cm-mhac) #footer,
body:has(.cm-mhac) #footer *,
body:has(.cm-mhac) footer,
body:has(.cm-mhac) footer *{
  color:rgba(255,255,255,.75) !important;
  font-size:12px !important;
  line-height:1.15 !important;
}
body:has(.cm-mhac) #footer a,
body:has(.cm-mhac) footer a{
  color:rgba(255,255,255,.9) !important;
  opacity:.85 !important;
  text-decoration:none !important;
}

/* cookie bar (někdy dělá bílou lištu úplně dole) */
body:has(.cm-mhac) .cookie-consent,
body:has(.cm-mhac) .cookies,
body:has(.cm-mhac) #cookies,
body:has(.cm-mhac) .cookie-bar{
  background:#000 !important;
  color:rgba(255,255,255,.8) !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
}
body:has(.cm-mhac) .cookie-consent * ,
body:has(.cm-mhac) .cookies * ,
body:has(.cm-mhac) #cookies * ,
body:has(.cm-mhac) .cookie-bar *{
  background:transparent !important;
  color:rgba(255,255,255,.8) !important;
}