/* Jen opt-in náhled: žádná změna obchodních formulářů ani ostatního obsahu. */
@font-face {
  font-family: 'SRH Header Manrope';
  src: url('fonts/Manrope-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
.srh-header-preview #masthead[data-srh-brand-approved] {
  --srh-brand-accent-first: #568f80;
  --srh-brand-accent-second: #74b3ac;
  --srh-brand-dot: 8px;
  --srh-brand-dot-gap: 4px;
  --srh-brand-text-gap: 6px;
}
.srh-header-preview #masthead[data-srh-brand-approved] :is(.site-branding, .ast-site-title-wrap, .site-title, [data-section="title_tagline"]) {
  width: max-content;
  max-width: none !important;
  min-width: max-content;
  flex-shrink: 0;
}
/* Delší jednořádkový název využije mezeru mezi sloupci; položky menu se nemění. */
.srh-header-preview #masthead[data-srh-brand-approved] #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row {
  column-gap: 0;
}
.srh-header-preview #masthead .site-title a.srh-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--srh-brand-text-gap);
  color: #fff !important;
  font-family: 'SRH Header Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: none;
  transition: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.srh-header-preview #masthead .srh-brand__words {
  display: block;
  white-space: nowrap;
}
.srh-header-preview #masthead .srh-brand__dots {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--srh-brand-dot-gap);
}
.srh-header-preview #masthead .srh-brand__dots > span {
  display: block;
  flex: 0 0 var(--srh-brand-dot);
  width: var(--srh-brand-dot);
  height: var(--srh-brand-dot);
  border: 0;
  border-radius: 50%;
  background: var(--srh-brand-accent-first);
  box-shadow: none;
  filter: none;
}
.srh-header-preview #masthead .srh-brand__dots > span + span { background: var(--srh-brand-accent-second); }
.srh-header-preview.ast-header-break-point #masthead[data-srh-brand-approved] {
  --srh-brand-dot: 6px;
  --srh-brand-text-gap: 6px;
}
.srh-header-preview.ast-header-break-point #masthead .site-title a.srh-brand { font-size: clamp(12px, 3.5vw, 18px); }
.srh-header-preview #masthead {
  background: #062b28 !important;
  isolation: isolate;
}
.srh-header-compact #masthead {
  position: relative;
  min-height: 120px;
}
/* PelviMag keeps its H1 in the white Gutenberg content; extend only its backdrop. */
body.srh-header-preview.srh-content-pelvimag #masthead { min-height:150px; }
.srh-header-preview #masthead :is(.ast-primary-header-bar, .ast-above-header-bar, .ast-below-header-bar, .main-header-bar) {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 0;
  box-shadow: none;
}
.srh-header-preview #masthead > :is(#ast-desktop-header, #ast-mobile-header) {
  position: relative;
  z-index: 1;
}
.srh-header-preview #masthead :is(.menu-link, .menu-toggle, .ast-menu-toggle, .ast-cart-menu-wrap, .ast-cart-price, .ast-site-header-cart .cart-container, .site-title a) {
  color: #fffdf3 !important;
}
.srh-header-preview #masthead :is(.menu-link, .menu-toggle):focus-visible {
  outline: 2px solid #c6f0ed;
  outline-offset: 4px;
}
.srh-header-preview :is(#masthead .sub-menu, #masthead .ast-mobile-header-content, .ast-mobile-popup-inner) {
  background: #062b28 !important;
}
.srh-header-preview .ast-mobile-popup-inner :is(.menu-link, .ast-menu-toggle, .ast-mobile-popup-close) {
  color: #fffdf3 !important;
}
.srh-header-preview #masthead .ast-mobile-header-content :is(.main-navigation, .main-header-menu, .menu-item, .menu-link),
.srh-header-preview .ast-mobile-popup-inner :is(.main-navigation, .main-header-menu, .menu-item, .menu-link),
.srh-header-preview #masthead .sub-menu .menu-link {
  background: #062b28 !important;
}
#srh-global-surface[hidden] { display: none !important; }
.srh-header-preview #srh-global-surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #062b28;
}
.srh-header-preview #srh-global-surface .srh-motion[data-srh-motion] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
/* Na homepage se jediná vrstva přesune pod text HERO. Obsah Astry se nepřesouvá. */
.srh-header-shared.srh-header-ready #masthead { background: transparent !important; }
.srh-header-shared [data-srh-homepage] .srh-home__hero.srh-shared-hero {
  position: relative;
  isolation: isolate;
  height: calc(450px + var(--srh-header-clearance, 0px));
  padding-top: var(--srh-header-clearance, 0px);
  box-sizing: border-box;
}
.srh-header-shared [data-srh-homepage] .srh-home__hero.srh-shared-hero > #srh-global-surface {
  top: var(--srh-header-surface-top, 0px);
}
.srh-header-shared [data-srh-homepage] .srh-shared-hero > .srh-home__hero-copy {
  z-index: 1;
}
/* Odstraní pouze obrázek prvního ověřeného starého banneru, zachová jeho obsah. */
.srh-header-preview [data-srh-legacy-background] {
  background-image: none !important;
  background-color: #f5f4ed !important;
}
.srh-header-preview [data-srh-legacy-background]::before,
.srh-header-preview [data-srh-legacy-background] > .elementor-background-overlay {
  background-image: none !important;
}
.srh-header-preview [data-srh-legacy-background] :is(.elementor-heading-title, .elementor-heading-title span, .elementor-heading-title strong, .elementor-heading-title em, p) {
  color: #123c32 !important;
  text-shadow: none !important;
}
.srh-header-compact.ast-header-break-point #masthead { min-height: 88px; }

/* Pilot vnitřních stránek: původní H1 i jeho pořadí v dokumentu zůstávají. */
.srh-header-preview #srh-inner-slot[hidden] { display: none !important; }
.srh-header-preview .srh-empty-title-container { display: none !important; }
.srh-header-preview .srh-header-generated-title,
.srh-header-preview [data-srh-title-source="woo"] .srh-inner-title,
.srh-header-preview [data-srh-title-source="block"] .srh-inner-title {
  font: 700 35px/42px 'SRH Header Manrope', sans-serif;
  text-transform: uppercase;
  padding: 0 !important;
}
.srh-header-preview.srh-header-inner.srh-inner-ready #masthead {
  background: transparent !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero] {
  --srh-inner-total-height: var(--srh-inner-desktop-height, 220px);
  --min-height: 0px;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: var(--srh-inner-viewport-width, 100%) !important;
  max-width: none !important;
  min-height: max(72px, calc(var(--srh-inner-total-height) - var(--srh-inner-occupied, 120px))) !important;
  height: auto !important;
  margin: 0 !important;
  margin-left: var(--srh-inner-offset, 0px) !important;
  padding: 12px 24px !important;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  background: #062b28 !important;
  border: 0 !important;
  overflow: visible !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero]::before,
.srh-header-preview.srh-header-inner [data-srh-inner-hero] > .elementor-background-overlay {
  background: none !important;
  opacity: 0 !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero] > .srh-inner-title-layer {
  /* Grid přes celou zelenou plochu. Polovina 24% paddingu posune střed na 62 %. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  position: absolute;
  inset: calc(-1 * var(--srh-inner-occupied, 120px)) 0 0;
  box-sizing: border-box;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: calc(var(--srh-inner-total-height) * 0.24) 24px 0 !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none;
}
.srh-header-preview.srh-header-inner #masthead .ast-site-header-cart :is(.cart-container, .ast-addon-cart-wrap, .astra-icon) {
  white-space: nowrap;
}
/* Rozbalené menu a vysoký nadpis mají přednost před pevnou výškou. */
.srh-header-preview.srh-header-inner.srh-inner-flow [data-srh-inner-hero] > .srh-inner-title-layer {
  position: relative;
  inset: auto;
  min-height: 48px !important;
  padding: 0 24px !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero] [data-widget_type="heading.default"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero] [data-widget_type="heading.default"] > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero] .srh-inner-title,
.srh-header-preview.srh-header-inner [data-srh-inner-hero] .srh-inner-title :is(span, strong, em) {
  position: static;
  transform: none;
  z-index: 1;
  color: #fff !important;
  text-align: center !important;
  text-shadow: none !important;
  margin: 0 !important;
}
.srh-header-preview.srh-header-inner [data-srh-inner-hero] > #srh-global-surface {
  top: var(--srh-inner-surface-top, -120px);
}
.srh-header-preview.srh-header-inner.ast-header-break-point [data-srh-inner-hero] {
  --srh-inner-total-height: var(--srh-inner-mobile-height, 160px);
}
.srh-header-preview.srh-header-inner.ast-header-break-point .srh-header-generated-title,
.srh-header-preview.srh-header-inner.ast-header-break-point [data-srh-title-source="woo"] .srh-inner-title,
.srh-header-preview.srh-header-inner.ast-header-break-point [data-srh-title-source="block"] .srh-inner-title {
  font-size: 25px;
  line-height: 30px;
}
/* Long existing titles keep their wording and fit the compact mobile header. */
.srh-header-preview.srh-header-inner.ast-header-break-point .srh-inner-long-title .srh-inner-title {
  font-size: clamp(18px, 5.8vw, 22px) !important;
  line-height: 1.2 !important;
}
.srh-header-preview.srh-header-inner.ast-header-break-point .srh-inner-very-long-title .srh-inner-title {
  font-size: clamp(16px, 4.6vw, 18px) !important;
}
