/* Mráz léčí – propojení s masérskou školou O masáži (omasazi.cz)
   Připraveno 22. 11. 2026. Nenasazovat bez souhlasu.
   !important je schválně: Twenty Twenty / Elementor jinak přepisuje nadpisy i obrázky. */

.ml-skola,
.ml-skola-pop {
  --ml-red: #F41C28;
  --ml-orange: #FF6729;
  --ml-grad: linear-gradient(135deg, #F41C28 0%, #FF6729 100%);
  --ml-ink: #0b0b0c;
  --ml-paper: #f4f1ec;
  --ml-muted: #c8c4bc;
  font-family: Barlow, Roboto, system-ui, sans-serif !important;
  box-sizing: border-box;
  color: #fff;
}
.ml-skola *,
.ml-skola *::before,
.ml-skola *::after,
.ml-skola-pop *,
.ml-skola-pop *::before,
.ml-skola-pop *::after { box-sizing: border-box; }

/* ----- typography shared ----- */
.ml-skola .ml-skola__eyebrow,
.ml-skola-pop .ml-skola__eyebrow {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-family: Barlow, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #FF6729 !important;
  line-height: 1.3 !important;
  max-width: none !important;
  text-align: left !important;
}
.ml-skola .ml-skola__title,
.ml-skola-pop .ml-skola__title {
  margin: 0 0 16px !important;
  padding: 0 !important;
  font-family: "Barlow Condensed", Barlow, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(42px, 5.4vw, 72px) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  max-width: none !important;
  text-align: left !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.ml-skola .ml-skola__lead,
.ml-skola-pop .ml-skola__lead {
  margin: 0 0 22px !important;
  padding: 0 !important;
  font-family: Roboto, Barlow, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #d8d4cc !important;
  max-width: 38em !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.ml-skola__chips {
  list-style: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px !important;
  padding: 0 !important;
}
.ml-skola__chips li {
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  color: #f3efe8 !important;
  background: rgba(255,255,255,.06);
  list-style: none !important;
}
.ml-skola__cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 14px 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ml-grad) !important;
  color: #fff !important;
  font-family: Barlow, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(244, 28, 40, 0.38);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ml-skola__cta:hover,
.ml-skola__cta:focus-visible {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(244, 28, 40, 0.5);
  outline: none;
}
.ml-skola__cta-arrow {
  font-size: 1.15em;
  transition: transform .2s ease;
}
.ml-skola__cta:hover .ml-skola__cta-arrow { transform: translateX(3px); }

/* ----- homepage cinematic section ----- */
.ml-skola--home {
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 !important;
  margin-left: calc(50% - 50vw);
  padding: 0 !important;
  background: #0b0b0c;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.ml-skola--home .ml-skola__inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) 1.18fr;
  min-height: 520px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: stretch;
}
.ml-skola--home .ml-skola__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px 56px 40px;
  background:
    linear-gradient(90deg, #0b0b0c 0%, #0b0b0c 78%, rgba(11,11,12,0) 100%);
}
.ml-skola--home .ml-skola__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 56px;
  bottom: 56px;
  width: 4px;
  background: var(--ml-grad);
  border-radius: 2px;
}
.ml-skola--home .ml-skola__media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.ml-skola--home .ml-skola__kenburns {
  position: absolute;
  inset: 0;
  animation: ml-skola-ken 22s ease-in-out infinite alternate;
  will-change: transform;
}
.ml-skola--home .ml-skola__kenburns picture,
.ml-skola--home .ml-skola__kenburns img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 58% 42% !important;
}
.ml-skola--home .ml-skola__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0b0b0c 0%, rgba(11,11,12,.35) 28%, transparent 55%);
}
@keyframes ml-skola-ken {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

/* ----- /masaze/ compact banner ----- */
.ml-skola--masaze {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 0;
  max-width: 1140px;
  margin: 28px auto 36px !important;
  padding: 0 !important;
  background: #0b0b0c;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
}
.ml-skola--masaze .ml-skola__masaze-media,
.ml-skola--masaze .ml-skola__masaze-media picture,
.ml-skola--masaze .ml-skola__masaze-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 180px;
  object-fit: cover !important;
  object-position: 55% 40% !important;
}
.ml-skola--masaze .ml-skola__copy {
  padding: 28px 32px;
}
.ml-skola--masaze .ml-skola__title {
  font-size: clamp(32px, 4vw, 44px) !important;
  margin-bottom: 10px !important;
}
.ml-skola--masaze .ml-skola__lead {
  font-size: 15px !important;
  margin-bottom: 18px !important;
}

/* ----- popup ----- */
.ml-skola-pop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ml-skola-pop[hidden] { display: none !important; }
.ml-skola-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  cursor: pointer;
}
.ml-skola-pop__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #111112;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  animation: ml-skola-in .35s ease both;
}
@keyframes ml-skola-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.ml-skola-pop__media,
.ml-skola-pop__media picture,
.ml-skola-pop__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 280px;
  object-fit: cover !important;
  object-position: 50% 30% !important;
}
.ml-skola-pop__copy {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ml-skola-pop .ml-skola__title {
  font-size: clamp(32px, 4vw, 44px) !important;
}
.ml-skola-pop .ml-skola__lead {
  font-size: 15px !important;
}
.ml-skola-pop__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ml-skola-pop__close:hover,
.ml-skola-pop__close:focus-visible {
  background: #F41C28;
  outline: none;
}

/* ----- menu accent ----- */
.ml-skola-menu-item > .elementor-item::after,
li.ml-skola-menu-item > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: #FF6729;
  vertical-align: middle;
}

/* ----- mobile ----- */
@media (max-width: 800px) {
  .ml-skola--home .ml-skola__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ml-skola--home .ml-skola__media {
    min-height: 320px;
    order: -1;
  }
  .ml-skola--home .ml-skola__media::after {
    background: linear-gradient(180deg, transparent 50%, #0b0b0c 100%);
  }
  .ml-skola--home .ml-skola__copy {
    padding: 28px 22px 40px;
    background: #0b0b0c;
  }
  .ml-skola--home .ml-skola__copy::before {
    top: 28px; bottom: auto; left: 22px; right: auto;
    width: 56px; height: 4px;
  }
  .ml-skola--home .ml-skola__title { font-size: 42px !important; }
  .ml-skola--home .ml-skola__lead { font-size: 16px !important; }

  .ml-skola--masaze {
    grid-template-columns: 1fr;
    margin: 20px 16px 28px !important;
  }
  .ml-skola--masaze .ml-skola__masaze-media { min-height: 160px; max-height: 180px; }
  .ml-skola--masaze .ml-skola__copy { padding: 20px 20px 24px; }

  .ml-skola-pop {
    align-items: flex-end;
    padding: 0;
  }
  .ml-skola-pop__panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: min(86vh, 640px);
    border-radius: 20px 20px 0 0;
    animation: ml-skola-up .35s ease both;
    overflow: auto;
  }
  .ml-skola-pop__media { min-height: 180px; max-height: 220px; }
  .ml-skola-pop__copy { padding: 20px 20px 28px; }
  .ml-skola-pop .ml-skola__title { font-size: 34px !important; }
}
@keyframes ml-skola-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-skola--home .ml-skola__kenburns,
  .ml-skola-pop__panel,
  .ml-skola__cta,
  .ml-skola__cta-arrow { animation: none !important; transition: none !important; }
}

body.ml-skola-pop-open { overflow: hidden; }

/* Tightened so „Masérská škola“ se vejde vedle stávajících položek. */
@media (min-width: 1025px) {
  #custom-header .elementor-element.elementor-element-3782278 .elementor-nav-menu .elementor-item {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
  }
}
