/* Mobile layout for the imported Masuria pages. Desktop rules are unchanged. */
@media screen and (max-width: 767px) {
  html.mi-document { --mi-gutter: 20px; scroll-padding-top: 16px; }
  html.mi-document body.mi-site.mi-elementor { font-size: 16px; line-height: 1.6; }
  html.mi-document body.mi-site.mi-elementor [id] { scroll-margin-top: 16px; }
  /* Elementor lazy containers must not reserve tall empty placeholders. */
  html.mi-document body.mi-site.mi-elementor .mi-layout-container {
    --height: auto; --min-height: 0; --container-widget-height: auto;
    content-visibility: visible !important; contain-intrinsic-size: none !important;
    min-height: 0; min-width: 0;
  }
  html.mi-document body.mi-site.mi-elementor .mi-native-widget,
  html.mi-document body.mi-site.mi-elementor .mi-native-widget > .elementor-widget-container {
    height: auto; min-height: 0; min-width: 0; max-width: 100%;
  }
  html.mi-document body.mi-site.mi-elementor .mi-masthead,
  html.mi-document body.mi-site.mi-elementor.admin-bar .mi-masthead,
  html.mi-document body.mi-site.mi-elementor .mi-masthead .mi-header {
    position: relative; top: auto; bottom: auto;
  }
  html.mi-document body.mi-site.mi-elementor .mi-header-inner { height: 60px; gap: 10px; }
  html.mi-document body.mi-site.mi-elementor .mi-producer-wordmark { font-size: 17px; }
  html.mi-document body.mi-site.mi-elementor .mi-header-actions { gap: 10px; }
  html.mi-document body.mi-site.mi-elementor .mi-language summary,
  html.mi-document body.mi-site.mi-elementor .mi-mobile-menu summary { min-height: 44px; font-size: 13px; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-inner.mi-mow-with-ole {
    display: grid; grid-template-columns: 80px 48px minmax(0,1fr);
    grid-template-rows: auto auto; gap: 0 10px; padding-block: 6px;
    align-items: center;
  }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-logo,
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-ole-logo {
    padding: 0; background: transparent; border: 0; min-height: 44px;
    justify-self: start; align-self: center; display: flex; align-items: center;
  }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-logo { grid-column: 1; grid-row: 1; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-ole-logo { grid-column: 2; grid-row: 1; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-logo img { width: 78px; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-ole-logo img { width: 46px; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-button {
    grid-column: 3; grid-row: 1; justify-self: end; align-self: center;
    min-height: 44px; width: auto; max-width: 100%; padding: 7px 10px;
    gap: 7px; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere;
  }
  html.mi-document body.mi-site.mi-elementor .mi-mow-button .mi-arrow { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-button-full,
  html.mi-document body.mi-site.mi-elementor .mi-mow-information { display: none; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-button-short { display: inline; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-detail { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-detail summary { justify-content: center; min-height: 32px; font-size: 11px; gap: 8px; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-detail > div { position: static; padding: 6px 0 10px; font-size: 13px; text-align: center; }
  html.mi-document body.mi-site.mi-elementor .mi-section { padding-block: 40px; }
  html.mi-document body.mi-site.mi-elementor h1 { font-size: clamp(28px,8vw,34px); line-height: 1.12; }
  html.mi-document body.mi-site.mi-elementor h2 { font-size: clamp(26px,7.6vw,30px); line-height: 1.16; }
  html.mi-document body.mi-site.mi-elementor h3 { font-size: 21px; line-height: 1.25; }
  html.mi-document body.mi-site.mi-elementor .mi-eyebrow { font-size: 11px; letter-spacing: .08em; margin-bottom: 12px !important; }
  html.mi-document body.mi-site.mi-elementor :is(p,address,.mi-link,.mi-text-button,.mi-button) { overflow-wrap: anywhere; }
  html.mi-document body.mi-site.mi-elementor .mi-section-heading { grid-template-columns: minmax(0,1fr); gap: 18px; margin-bottom: 22px; }
  html.mi-document body.mi-site.mi-elementor .mi-section-intro { font-size: 15px; line-height: 1.65; }
  html.mi-document body.mi-site.mi-elementor .mi-hero-ester { display: flex; flex-direction: column; padding: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-stage { aspect-ratio: 16 / 10; width: 100%; height: auto; min-height: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-stage > .mi-native-widget,
  html.mi-document body.mi-site.mi-elementor .mi-ester-stage > .mi-native-widget > .elementor-widget-container { height: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-intro { display: grid; grid-template-columns: minmax(0,1fr); padding-block: 24px; gap: 16px; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-copy h1 { font-size: clamp(28px,8vw,34px); max-width: none; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-copy p { font-size: 15px; line-height: 1.6; margin-top: 12px !important; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-identity .mi-brand-signatures { max-width: 245px; gap: 14px; margin-bottom: 6px; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-identity .mi-logo-panel { height: 30px; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-identity .mi-logo-panel img { max-height: 30px; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-identity .mi-eyebrow { font-size: 10px; margin: 0 !important; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-caption-row { gap: 6px; bottom: 12px; align-items: center; }
  html.mi-document body.mi-site.mi-elementor .mi-ester-credit { font-size: 10px; padding: 6px 8px; }
  html.mi-document body.mi-site.mi-elementor .mi-hero-ester .mi-ester-motion { font-size: 10px; min-height: 44px; padding: 8px; }
  html.mi-document body.mi-site.mi-elementor .mi-trust-strip { padding-block: 16px; gap: 8px 14px; font-size: 12px; }
  html.mi-document body.mi-site.mi-elementor :is(.mi-living-pair,.mi-wild-details,.mi-film-layout,.mi-producer-layout,.mi-partners,.mi-contact-layout,.mi-catalogue-editorial-grid) {
    display: grid; grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; align-items: start; gap: 24px;
  }
  html.mi-document body.mi-site.mi-elementor :is(.mi-living-main,.mi-wild-visual) { width: 100%; margin: 0; }
  html.mi-document body.mi-site.mi-elementor :is(.mi-living-main,.mi-wild-visual) img { width: 100%; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-living-pair { margin-top: 24px; }
  html.mi-document body.mi-site.mi-elementor .mi-living-pair .mi-figure { padding-top: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-brand-actions { margin-top: 24px; gap: 14px; flex-direction: column; align-items: stretch; }
  html.mi-document body.mi-site.mi-elementor .mi-brand-actions > .mi-layout-container { display: flex; flex-wrap: wrap; gap: 12px; }
  html.mi-document body.mi-site.mi-elementor .mi-wild-details { margin-top: 24px; }
  html.mi-document body.mi-site.mi-elementor .mi-wild-uses { grid-template-columns: minmax(0,1fr); gap: 16px; }
  html.mi-document body.mi-site.mi-elementor .mi-wild-uses > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 14px; }
  html.mi-document body.mi-site.mi-elementor .mi-wild-uses dt { font-size: 17px; }
  html.mi-document body.mi-site.mi-elementor .mi-wild-uses dd { margin: 0; font-size: 14px; }
  html.mi-document body.mi-site.mi-elementor .mi-film { margin-top: 32px; padding-block: 28px 0; }
  html.mi-document body.mi-site.mi-elementor .mi-film-layout { gap: 20px; }
  html.mi-document body.mi-site.mi-elementor .mi-film-intro h3 { font-size: 26px; }
  html.mi-document body.mi-site.mi-elementor .mi-producer-copy { display: block; grid-column: 1; grid-row: 1; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-production-pair { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; margin-top: 20px; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-production-pair .mi-figure { display: block; height: auto; min-height: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-production-pair img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  html.mi-document body.mi-site.mi-elementor .mi-production-pair .mi-caption { margin-top: 8px; font-size: 12px; }
  html.mi-document body.mi-site.mi-elementor .mi-producer-layout > .mi-founder { grid-column: 1; grid-row: auto; display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 20px; max-width: none; width: 100%; margin: 0 !important; }
  html.mi-document body.mi-site.mi-elementor .mi-founder img { max-height: 190px; width: 96px; object-fit: contain; }
  html.mi-document body.mi-site.mi-elementor .mi-founder .mi-caption { margin-top: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-producer-history { margin-top: 14px; }
  html.mi-document body.mi-site.mi-elementor .mi-history-timeline { margin-top: 20px; gap: 20px; padding: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-partners { gap: 0; margin-block: 20px; }
  html.mi-document body.mi-site.mi-elementor .mi-partner { padding: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-catalogue-editorial-grid { gap: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-catalogue-editorial { grid-template-columns: 88px minmax(0,1fr); gap: 18px; padding-block: 20px; }
  html.mi-document body.mi-site.mi-elementor .mi-catalogue-art { min-height: 120px; padding: 8px; }
  html.mi-document body.mi-site.mi-elementor .mi-catalogue-editorial h3 { font-size: 22px; }
  html.mi-document body.mi-site.mi-elementor .mi-collection-download { grid-template-columns: minmax(0,1fr); gap: 8px; }
  html.mi-document body.mi-site.mi-elementor .mi-breadcrumb { margin-block: 14px; font-size: 12px; line-height: 1.5; flex-wrap: wrap; gap: 8px; }
  html.mi-document body.mi-site.mi-elementor .mi-oem-hero { display: block; padding-block: 18px 32px; }
  html.mi-document body.mi-site.mi-elementor .mi-oem-hero h1 { font-size: clamp(28px,8vw,34px); }
  html.mi-document body.mi-site.mi-elementor .mi-oem-hero-visual { margin-block: 20px; width: 100%; min-height: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-oem-hero-visual img { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; object-fit: cover; }
  html.mi-document body.mi-site.mi-elementor .mi-oem-hero .mi-lead { font-size: 15px; line-height: 1.65; margin-top: 12px; }
  html.mi-document body.mi-site.mi-elementor :is(.mi-oem-capabilities,.mi-oem-process) { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 20px; }
  html.mi-document body.mi-site.mi-elementor .mi-oem-gallery { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; margin-block: 22px; }
  html.mi-document body.mi-site.mi-elementor .mi-oem-gallery img { width: 100%; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-disclosure { border-bottom: 1px solid var(--mi-line); }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 12px 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 18px; font-weight: 500; line-height: 1.4; text-align: left; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-toggle::after { content: '+'; flex: 0 0 18px; font-size: 24px; font-weight: 400; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-toggle[aria-expanded='true']::after { content: '−'; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-panel { padding-bottom: 18px; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-panel[hidden] { display: none !important; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-more { margin-block: 10px; font-size: 14px; min-height: 44px; }
  html.mi-document body.mi-site.mi-elementor .mi-mobile-summary { margin-top: 12px; font-size: 15px; line-height: 1.65; }
  html.mi-document body.mi-site.mi-elementor :is(.mi-form-grid,.mi-contact-grid,.mi-fields) { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
  html.mi-document body.mi-site.mi-elementor .mi-field { width: 100%; min-width: 0; grid-column: 1; }
  html.mi-document body.mi-site.mi-elementor .mi-field :is(input,select,textarea) { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; font-size: 16px; }
  html.mi-document body.mi-site.mi-elementor .mi-field :is(input,select) { min-height: 48px; height: auto; }
  html.mi-document body.mi-site.mi-elementor .mi-form-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  html.mi-document body.mi-site.mi-elementor .mi-team { border-left: 0; padding: 0; margin-top: 28px; width: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-person { padding-block: 20px; }
  html.mi-document body.mi-site.mi-elementor .mi-person :is(a,h3,h4) { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-footer { padding-block: 32px calc(76px + env(safe-area-inset-bottom,0px)); }
  html.mi-document body.mi-site.mi-elementor :is(.mi-footer-main,.mi-footer-bottom) { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; width: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-footer-main nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 20px; margin-top: 0; }
  html.mi-document body.mi-site.mi-elementor .mi-footer nav > .mi-native-widget { flex: 0 1 auto; min-width: 0; max-width: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-footer :is(a,button,address) { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
  html.mi-document body.mi-site.mi-elementor .mi-footer .elementor-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-align: left; }
  html.mi-document body.mi-site.mi-elementor .mi-footer-bottom { gap: 8px; margin-top: 24px; }
  html.mi-document body.mi-site.mi-elementor .mi-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; overflow-y: auto; }
}
@media screen and (max-width: 359px) {
  html.mi-document { --mi-gutter: 16px; }
  html.mi-document body.mi-site.mi-elementor .mi-producer-wordmark { font-size: 15px; }
  html.mi-document body.mi-site.mi-elementor .mi-header-actions { gap: 6px; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-inner.mi-mow-with-ole { grid-template-columns: 70px 42px minmax(0,1fr); column-gap: 7px; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-mow-logo img { width: 68px; }
  html.mi-document body.mi-site.mi-elementor .mi-mow-with-ole .mi-ole-logo img { width: 40px; }
}
