/* ==================================================
   SITE PATCH (mimo home)
   ================================================== */

/* Utility */
.nowrap{
  white-space: nowrap;
}

/* ===== TITULEK: vše uppercase, bez rozpalů ===== */
.ms-page-title h2.page-header{
  text-transform: uppercase;
  letter-spacing: 0;
}
.ms-page-title h2.page-header .page-header-top,
.ms-page-title h2.page-header .page-header-top .nowrap{
  color: #cdb079;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ===== FOOTER: desktop (jen patička) ===== */
.ms-container-foot h6{
  font-size: calc(20px + 16 * (100vw - 992px) / 1508);
  font-weight: 200;
  color: #ffffff;
  text-shadow: none;
  text-transform: none;
}

.ms-container-foot{
  padding-top: 20px;
  padding-bottom: 20px;
}

.ms-container-foot .ms-section__block{
  padding-top: 0;
  padding-bottom: 0;
}

.ms-container-foot .row{
  margin-bottom: 0;
}

.ms-container-foot .album-item{
  padding-top: 0;
  padding-bottom: 0;
}

.ms-container-foot h6{
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.3;
}

/* ===== MOBIL: odsazení + typografie + footer ===== */
@media (max-width: 805px){

  .ms-container{
    padding-top: 1px;
  }

  .ms-page-title h2.page-header,
  .ms-page-title h2.page-header .page-header-top,
  .ms-page-title h2.page-header .page-header-top .nowrap{
    letter-spacing: 0 !important;
    text-transform: uppercase;
  }

  .ms-container-foot h6{
    font-size: 24px;
    line-height: 1.4;
    font-weight: 200;
    color: #ffffff;
  }

  .ms-container-foot .ms-section__block.row{
    margin-bottom: 0;
  }

  .ms-container-foot .album-item{
    padding-top: 6px;
    padding-bottom: 10px;
    margin: 0;
  }

  .ms-container-foot h6{
    margin: 0;
    line-height: 1.7;
  }

  .ms-container .ms-section__block:last-of-type{
    margin-bottom: 7px;
    padding-bottom: 0;
  }
    /* MOBIL – zmenšit mezeru mezi hlavním nadpisem a blockquote */
  .ms-page-title{
    margin-bottom: 10px !important;
  }

  .ms-page-title h1,
  .ms-page-title h2.page-header{
    margin-bottom: -20px !important;
  }

  .ms-section__block blockquote{
    margin: 0 auto 12px !important; /* původně 30px */
  }

}

/* ===== STICKY FOOTER (desktop) ===== */
html, body{ height: 100%; }

body{
  min-height: 100vh;
  margin: 0;
}

.ms-main-container{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ms-main-container > .ms-container{
  flex: 1 0 auto;
}

.ms-main-container > .ms-container-foot{
  margin-top: auto;
  flex: 0 0 auto;
}

/* ===== HEADER: černý pruh nahoře (bez gradientu) ===== */
.ms-nav{
  border-top: 20px solid #000;
}
/* ==================================================
   FIX: podstránky – obsah vždy POD headerem (100% přesné)
   ================================================== */

/* header je referenční bod */
.ms-header{
  position: sticky;
  top: 0;
  z-index: 100;
}

/* výška headeru se propíše do CSS proměnné */
.ms-header{
  --header-h: 100%;
}
/* =========================================
   MINI FOOTER (černý dole) – základ (všechny šířky)
   ========================================= */

.ms-mini-footer{
  width: 100%;
  background: #000;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 0;
  box-sizing: border-box;
}

/* rem = nezávislé na font-size 13px */
.ms-mini-footer__inner{
  width: 85%;
  max-width: 88rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.ms-mini-footer__inner p{
  margin: 0;
}


/* =========================================
   MINI FOOTER – MOBIL OVERRIDE
   MUSÍ BÝT ZA ZÁKLADEM (a ideálně úplně na konci souboru)
   ========================================= */

@media (max-width: 805px){

  .ms-mini-footer{
    font-size: 11px !important;
    padding: 10px 0 !important;
  }

  .ms-mini-footer__inner{
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box;
  }
}
/* === FORCE MOBIL FOOTER SPACING (poslední override) === */
@media (max-width: 805px){
  .ms-main-container > .ms-container-foot{
    margin-top: 0 !important;
  }
  .ms-container-foot{
    padding-top: 15px !important;
    padding-bottom: 20px !important;
  }
  .ms-container-foot *{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
/* ==================================================
   FIX: černé probliknutí při page transition
   příčina: container jde na opacity:0 a prosvitne pozadí
   ================================================== */

html, body{
  background: #fff !important;   /* místo černé při fade */
}

.ms-main-container{
  background: #fff !important;   /* pojistka */
}

/* často problikne i preloader */
.ms-preloader{
  background: #fff !important;
}
