/* Gard House — menu mobilne V13.3 (≤ 1024 px). Panel z inc/mobile-menu.php + assets/mobile-menu.js. Zmienne kolorów z site.css. */
html body .gh-mnav,
	html body .gh-mnav-toggle { display: none; }

@media (max-width: 1024px) {
	/* zastąpiony przełącznik i wąski panel Premium — ukryte dopiero, gdy nasz panel jest gotowy (html.gh-mnav-on) */
	html.gh-mnav-on .elementor-location-header .premium-hamburger-toggle,
	html.gh-mnav-on .elementor-location-header .premium-mobile-menu-container,
	html.gh-mnav-on .elementor-location-header .premium-main-mobile-menu,
	html.gh-mnav-on .elementor-location-header .premium-mobile-menu-icon { display: none !important; }

	html body .gh-mnav-toggle {
		display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		min-height: 44px; min-width: 44px; padding: 0 16px; margin: 0;
		border: 1px solid var(--gh-line, #e1e6de); border-radius: 999px; background: #fff; color: var(--gh-ink, #1b211d);
		font: 600 15px/1 var(--gh-head-font, "Mukta", sans-serif); letter-spacing: .01em; cursor: pointer;
		-webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s;
	}
	html body .gh-mnav-toggle:hover { background: var(--gh-surface, #f4f6f2); }
	html body .gh-mnav-toggle:focus-visible,
	html body .gh-mnav__close:focus-visible,
	html body .gh-mnav__btn:focus-visible,
	html body .gh-mnav__link:focus-visible,
	html body .gh-mnav__sublink:focus-visible,
	html body .gh-mnav__call:focus-visible,
	html body .gh-mnav__quote:focus-visible,
	html body .gh-mnav__logo:focus-visible { outline: 3px solid var(--gh-green, #437c31); outline-offset: 2px; }
	html body .gh-mnav-toggle svg { flex: none; }
	html.gh-mnav-on .elementor-location-header .elementor-widget-premium-nav-menu { display: flex; justify-content: flex-end; align-items: center; }
	/* stała wysokość widgetu przed i po zbudowaniu panelu (przycisk Premium ≈ 47,75 px) — bez przesunięcia układu o ~4 px (CLS 0,04) */
	.elementor-location-header .elementor-widget-premium-nav-menu { min-height: 47.75px; }
	/* V13.6: przed inicjalizacją skryptów widget menu Premium ma 0 px szerokości (ukryty do startu JS), więc logo zajmowało jego miejsce i kurczyło się
	   o ~20 px po pojawieniu się przycisku „Menu” (≈104 px). Rezerwujemy szerokość przycisku od pierwszego malowania — logo ma stały rozmiar. */
	.elementor-location-header .elementor-widget-premium-nav-menu { min-width: 104px; }

	/* panel */
	html body .gh-mnav { display: block; position: fixed; inset: 0; z-index: 100000; visibility: hidden; transition: visibility 0s linear .3s; }
	html body .gh-mnav.is-open { visibility: visible; transition-delay: 0s; }
	html body .gh-mnav__backdrop { position: absolute; inset: 0; background: rgba(20, 28, 22, .5); opacity: 0; transition: opacity .28s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
	html body .gh-mnav.is-open .gh-mnav__backdrop { opacity: 1; }
	html body .gh-mnav__sheet {
		position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px); display: flex; flex-direction: column; background: #fff;
		box-shadow: -12px 0 40px rgba(20, 28, 22, .18); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
		height: 100vh; height: 100dvh; font-family: var(--gh-head-font, "Mukta", sans-serif); color: var(--gh-ink, #1b211d);
	}
	html body .gh-mnav.is-open .gh-mnav__sheet { transform: none; }
	html body .gh-mnav__head { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--gh-line, #e1e6de); }
	html body .gh-mnav__logo { display: inline-flex; align-items: center; border-radius: 8px; }
	html body .gh-mnav__logo img { display: block; height: 40px; width: auto; max-width: 180px; }
	html body .gh-mnav__close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--gh-surface, #f4f6f2); color: var(--gh-ink, #1b211d); cursor: pointer; }
	html body .gh-mnav__close:hover { background: var(--gh-tint, #e8f0e4); }

	html body .gh-mnav__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 0 16px; }
	html body .gh-mnav__list,
	html body .gh-mnav__sublist { list-style: none; margin: 0; padding: 0; }
	html body .gh-mnav__item { margin: 0; border-bottom: 1px solid var(--gh-line, #e1e6de); }
	html body .gh-mnav__btn,
	html body .gh-mnav__link {
		display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 0 20px; margin: 0;
		border: 0; background: transparent; color: var(--gh-ink, #1b211d); font: 600 19px/1.25 var(--gh-head-font, "Mukta", sans-serif); text-align: left; text-decoration: none; cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	html body .gh-mnav__btn:hover,
	html body .gh-mnav__link:hover { background: var(--gh-surface, #f4f6f2); color: var(--gh-ink, #1b211d); }
	html body .gh-mnav__btn-t { flex: 1; }
	html body .gh-mnav__chev { flex: none; color: var(--gh-green, #437c31); transition: transform .25s ease; }
	html body .gh-mnav__btn[aria-expanded="true"] .gh-mnav__chev { transform: rotate(180deg); }
	html body .gh-mnav__btn[aria-expanded="true"] { color: var(--gh-green-dark, #2f5e22); background: var(--gh-surface, #f4f6f2); }
	html body .gh-mnav__arrow { flex: none; color: var(--gh-green, #437c31); }
	html body .gh-mnav__link[aria-current="page"] { color: var(--gh-green-dark, #2f5e22); }

	/* rozwijana lista: animacja wysokości bez JS-owego pomiaru (grid 0fr → 1fr); zamknięta treść nie jest dostępna z klawiatury */
	html body .gh-mnav__sub { display: grid; grid-template-rows: 0fr; visibility: hidden; background: var(--gh-surface, #f4f6f2); transition: grid-template-rows .26s ease, visibility 0s linear .26s; }
	html body .gh-mnav__sub.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
	html body .gh-mnav__subin { overflow: hidden; min-height: 0; }
	html body .gh-mnav__sublist { padding: 4px 0 12px; }
	html body .gh-mnav__sublink {
		display: flex; align-items: center; min-height: 50px; padding: 8px 20px 8px 32px; color: var(--gh-text, #323232); font: 500 17px/1.3 var(--gh-head-font, "Mukta", sans-serif); text-decoration: none; position: relative;
	}
	html body .gh-mnav__sublink:hover { background: var(--gh-tint, #e8f0e4); color: var(--gh-ink, #1b211d); }
	html body .gh-mnav__sublink[aria-current="page"] { color: var(--gh-green-dark, #2f5e22); font-weight: 700; }
	html body .gh-mnav__sublink[aria-current="page"]::before { content: ""; position: absolute; left: 16px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--gh-green, #437c31); }
	html body .gh-mnav__subitem--all .gh-mnav__sublink { font-weight: 700; color: var(--gh-green-dark, #2f5e22); }

	/* stopka panelu: szybki kontakt zawsze widoczny */
	html body .gh-mnav__foot { flex: none; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gh-line, #e1e6de); background: #fff; box-shadow: 0 -8px 24px rgba(20, 28, 22, .06); }
	html body .gh-mnav__calls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
	html body .gh-mnav__call { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border: 1.5px solid var(--gh-green, #437c31); border-radius: 14px; color: var(--gh-green-dark, #2f5e22); text-decoration: none; background: #fff; }
	html body .gh-mnav__call svg { flex: none; color: var(--gh-green, #437c31); }
	html body .gh-mnav__call span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
	html body .gh-mnav__call small { font-size: 12px; font-weight: 500; color: var(--gh-muted, #566058); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	html body .gh-mnav__call strong { font-size: 16px; font-weight: 700; white-space: nowrap; }
	html body .gh-mnav__call:hover { background: var(--gh-tint, #e8f0e4); }
	html body .gh-mnav__quote { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--gh-green, #437c31); color: #fff; font: 700 17px/1 var(--gh-head-font, "Mukta", sans-serif); text-decoration: none; }
	html body .gh-mnav__quote:hover { background: var(--gh-green-dark, #2f5e22); color: #fff; }

	html.gh-mnav-open,
	html.gh-mnav-open body { overflow: hidden; }
}

@media (max-width: 380px) {
	html body .gh-mnav__calls { grid-template-columns: 1fr; }
	html body .gh-mnav-toggle__t { font-size: 14px; }
	html body .gh-mnav-toggle { padding: 0 12px; }
}
@media (max-width: 767px) {
	html body .gh-mnav__sheet { width: 100%; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
	html body .gh-mnav,
	html body .gh-mnav__backdrop,
	html body .gh-mnav__sheet,
	html body .gh-mnav__sub,
	html body .gh-mnav__chev { transition: none !important; }
}

/* odporność na globalne style przycisków/linków motywu (zielone pigułki, kolory linków) */
@media (max-width: 1024px) {
	html body .gh-mnav button, html body .gh-mnav a { text-transform: none; letter-spacing: normal; box-shadow: none; }
	html body .gh-mnav__btn, html body .gh-mnav__link { border-radius: 0; border: 0; background: transparent; color: var(--gh-ink, #1b211d); }
	html body .gh-mnav__btn[aria-expanded="true"] { background: var(--gh-surface, #f4f6f2); color: var(--gh-green-dark, #2f5e22); }
	html body .gh-mnav__btn:hover, html body .gh-mnav__link:hover { background: var(--gh-surface, #f4f6f2); color: var(--gh-ink, #1b211d); }
	html body .gh-mnav__close { border-radius: 50%; border: 0; background: var(--gh-surface, #f4f6f2); color: var(--gh-ink, #1b211d); padding: 0; }
	html body .gh-mnav__quote, html body .gh-mnav__quote:visited { color: #fff !important; background: var(--gh-green, #437c31); border: 0; }
	html body .gh-mnav__call, html body .gh-mnav__call:visited { color: var(--gh-green-dark, #2f5e22) !important; background: #fff; }
	html body .gh-mnav__call small { color: var(--gh-muted, #566058) !important; }
	html body .gh-mnav__sublink, html body .gh-mnav__sublink:visited { color: var(--gh-text, #323232); background: transparent; }
	html body .gh-mnav__sublink[aria-current="page"] { color: var(--gh-green-dark, #2f5e22); }
	html body .gh-mnav__subitem--all .gh-mnav__sublink { color: var(--gh-green-dark, #2f5e22); }
	html body .gh-mnav-toggle { background: #fff; color: var(--gh-ink, #1b211d); border: 1px solid var(--gh-line, #e1e6de); text-transform: none; box-shadow: none; padding: 0 16px; width: auto; max-width: none; }
	html body .gh-mnav-toggle:hover { background: var(--gh-surface, #f4f6f2); color: var(--gh-ink, #1b211d); }
	html body .gh-mnav-toggle__t { display: inline; color: inherit; white-space: nowrap; }
	/* kolumna z przyciskiem nie może być węższa niż przycisk (wcześniej obcinała etykietę „Menu”) */
	html body .elementor-location-header .elementor-element-4a660b1c { width: auto !important; flex: 0 0 auto; min-width: 0; }
	html body .elementor-location-header .elementor-element-4a660b1c .elementor-widget-wrap { padding: 0; }
}

@media (max-width: 1024px) {
	html body .gh-mnav__nav { scrollbar-width: thin; scrollbar-color: #c9d2c6 transparent; }
	html body .gh-mnav__nav::-webkit-scrollbar { width: 6px; }
	html body .gh-mnav__nav::-webkit-scrollbar-thumb { background: #c9d2c6; border-radius: 6px; }
}

/* V13.3: nawigacja awaryjna — tylko gdy panel menu się nie zbudował (brak JS lub błąd inicjalizacji); ukryta, gdy działa html.gh-mnav-on */
.gh-fbnav { display: none; }
@media (max-width: 1024px) {
  /* awaria skryptu: panel awaryjny jako nakładka (position:fixed) — NIE przesuwa układu strony (CLS); bez JS (<noscript>) jest w przepływie od pierwszego renderu */
  html.gh-mnav-fail:not(.gh-mnav-on) .gh-fbnav { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 100000; max-height: 70vh; overflow: auto; box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }
  html.gh-mnav-on .gh-fbnav { display: none !important; }
  .gh-fbnav { background: #f4f6f2; border-bottom: 1px solid #dfe5da; padding: 10px 16px; }
  .gh-fbnav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
  .gh-fbnav a { display: block; min-height: 44px; line-height: 44px; font: 600 15px/44px system-ui, sans-serif; color: #1d3a1a; text-decoration: none; }
  .gh-fbnav .gh-fbnav__tel a { color: #2e6b2a; }
}

/* V13.6: desktop — przed inicjalizacją skryptu Premium poziome menu ma 0 px wysokości (klasa premium-ham-dropdown), po starcie 60 px,
   więc nagłówek rósł z 68 do 70 px. Rezerwujemy wysokość menu od pierwszego malowania — nagłówek ma stałą wysokość. */
@media (min-width: 1025px) {
	.elementor-location-header .elementor-widget-premium-nav-menu { min-height: 60px; }
}
