/**
 * [mn_header] — bazowy styl nagłówka. Kolory z palety Breakdance, cień = --mn-shadow.
 * Logo wordmark w foncie Lora (fallback serif, dopóki Lora nie jest wgrana w YABE).
 * Hamburger na mobile bez JS (checkbox). Breakpoint zwinięcia: 1119px (Breakdance).
 */
.mn-header {
  background: var(--bde-background-color, #fff);   /* to samo tło co sekcje poniżej */
  /* bez kreski oddzielającej */
}
.mn-header--sticky { position: sticky; top: 0; z-index: 100; }

/* tło headera pełnej szerokości (.mn-header), a treść ograniczona do STANDARDOWEJ
   szerokości sekcji Breakdance = 1340px (wartość --bde-section-width; użyta wprost, bo sekcja
   szablonu Header lokalnie nadpisuje tę zmienną na 100%). Boczny padding jak w sekcjach. */
.mn-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* lewa | wyśrodkowane logo | prawa */
  align-items: center;
  gap: 24px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 14px var(--bde-section-horizontal-padding, 40px);
  box-sizing: border-box;
}
/* zamiana stron: akcje (search/PL-EN/FB) po LEWEJ, menu po PRAWEJ — wszystko w JEDNYM wierszu */
.mn-header__left  { display: flex; align-items: center; justify-self: end;   grid-column: 3; grid-row: 1; min-width: 0; }  /* menu -> prawa */
.mn-header__right { display: flex; align-items: center; gap: 16px; justify-self: start; grid-column: 1; grid-row: 1; }     /* akcje -> lewa */

/* Logo — wordmark Lora */
/* .mn-header a... — wyższa specyficzność niż .breakdance a, żeby czarny wygrał */
.mn-header a.mn-header__logo,
.mn-header a.mn-header__logo:hover {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  font-family: var(--bde-heading-font-family, 'Lora', Georgia, serif);   /* heading font = Lora */
  font-size: clamp(34px, 5vw, 56px);     /* jak stara strona — max 56px */
  line-height: 1.1;
  font-weight: 400;                      /* Lora 400, nie bold */
  letter-spacing: normal;                /* jak stara strona — bez dodatkowego odstępu */
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

/* Menu */
.mn-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.mn-menu li { position: relative; }
.mn-menu a,
.mn-menu__parent {
  color: var(--bde-headings-color, #363636);
  font-weight: 500;
  transition: color .15s ease;
}
.mn-menu a:hover,
.mn-menu .current-menu-item > a,
.mn-menu .current-menu-parent > a,
.mn-menu li:hover > .mn-menu__parent { color: var(--bde-brand-primary-color, #367a3e); }

/* Rodzic dropdownu — nie-link, ze strzałką ▾ */
.mn-menu__parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: default;
  color: var(--bde-brand-primary-color, #367a3e);   /* zielony, żeby pasował do reszty menu */
}
.mn-menu__parent::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* Podmenu (dropdown) */
.mn-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);          /* dropdown trochę niżej */
  left: 0;
  display: none;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  text-align: left;                /* linki do lewej */
  background: var(--bde-palette-color-12, #fff);
  border: var(--mn-border);        /* 1px szara ramka zamiast cienia */
  border-radius: 0;                /* ostre rogi dropdownu */
  z-index: 20;
}
/* „mostek" wypełniający lukę między linkiem a dropdownem — hover nie gaśnie przy zjeżdżaniu myszką */
.mn-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -12px;
  height: 12px;
}
.mn-menu li:hover > .sub-menu { display: block; }
.mn-menu .sub-menu a { display: block; padding: 8px 18px; text-align: left; white-space: nowrap; }

/* Akcje w prawej kolumnie — styl w .mn-header__right (wyżej) */

/* Wyszukiwarka — aeon-style: sama ikona, klik rozwija pole */
.mn-header__search { display: flex; align-items: center; }
.mn-search-cb { display: none; }
.mn-search-form { display: flex; align-items: center; }
.mn-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  color: var(--bde-headings-color, #363636);
  transition: width .25s ease, opacity .2s ease, padding .2s ease, border-color .2s ease;
}
.mn-search-input:focus { outline: none; }
.mn-search-cb:checked ~ .mn-search-form .mn-search-input {
  width: 130px;
  opacity: 1;
  padding: 6px 8px;
  border-bottom-color: var(--bde-headings-color, #363636);
}
.mn-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  cursor: pointer;
  color: var(--bde-headings-color, #363636);
}
.mn-search-btn svg { width: 18px; height: 18px; }

/* Przełącznik języka (placeholder PL/EN — logikę podepnie programista) */
.mn-header__lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.mn-header__lang-item { color: rgba(0, 0, 0, .4); cursor: default; }
.mn-header__lang-item.is-active { color: var(--bde-brand-primary-color, #367a3e); }
.mn-header__lang-sep { color: rgba(0, 0, 0, .25); }

/* Facebook */
.mn-header__fb { color: var(--bde-headings-color, #363636); display: inline-flex; transition: color .15s ease; }
.mn-header__fb:hover { color: var(--bde-brand-primary-color, #367a3e); }
.mn-header__fb svg { height: 18px; width: auto; fill: currentColor; }

/* Hamburger — ukryty na desktopie */
.mn-header__toggle-cb { display: none; }
.mn-header__toggle { display: none; }

/* Mobile: hamburger (lewo) + wyśrodkowane logo; nav i akcje w rozwijanym panelu */
@media (max-width: 1119px) {
  .mn-header__toggle {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    cursor: pointer;
  }
  .mn-header__toggle span {
    width: 22px; height: 2px;
    background: var(--bde-headings-color, #363636);
    transition: transform .2s ease, opacity .2s ease;
  }
  .mn-header__logo { grid-column: 2; }

  .mn-header__left,
  .mn-header__right { display: none; }
  .mn-header__toggle-cb:checked ~ .mn-header__left,
  .mn-header__toggle-cb:checked ~ .mn-header__right {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mn-header__nav { width: 100%; }
  .mn-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 8px 0 4px; }
  .mn-menu a { display: block; padding: 12px 4px; }
  .mn-menu .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 0 16px; }
  .mn-header__search { display: flex; width: 100%; }
  .mn-search-form { width: 100%; }
  .mn-search-input { width: 100%; opacity: 1; padding: 8px 10px; border: var(--mn-border); border-bottom-color: #e3e3e3; }

  /* animacja hamburgera w „x" */
  .mn-header__toggle-cb:checked ~ .mn-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mn-header__toggle-cb:checked ~ .mn-header__toggle span:nth-child(2) { opacity: 0; }
  .mn-header__toggle-cb:checked ~ .mn-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
