/* =========================================================
   7ELEMENT — style komponentów uzupełniające theme.json.
   Wzorce nazewnictwa (el-*) przeniesione 1:1 z prototypu React
   (src/styles/*.css), zgodnie z 7ELEMENT_DESIGN_SYSTEM.md, żeby
   redaktor treści mógł dopisywać te same klasy w polu "Dodatkowe
   klasy CSS" bloku w edytorze Gutenberga.
   ========================================================= */

/* --- Reset: box-sizing (Sprint 9.5 część 2 — dogrywka)
   Port jedynej brakującej reguły z src/styles/reset.css prototypu
   Studio, która nigdy nie trafiła do tego motywu. Bez
   box-sizing:border-box każdy .el-container (width:100% +
   padding-inline) renderował się 44px szerzej niż rodzic na każdej
   szerokości < 1240px — potwierdzone empirycznie na stagingu:
   document.documentElement.scrollWidth(544) > clientWidth(500) przy
   oknie ~500px. Celowo NIE dodano tu generycznego resetu
   `ul[class]{list-style:none;margin:0;padding:0}` z prototypu —
   taki selektor (typ+atrybut) ma WYŻSZĄ specyficzność niż istniejące
   reguły pojedynczej klasy (np. .el-checklist), więc nadpisałby je
   niezależnie od kolejności w pliku. Zamiast tego lista/margines/
   padding naprawione punktowo, tylko na czterech klasach, które
   faktycznie tego potrzebują (patrz sections.css). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- Wysokosc naglowka: skrocenie na mobile (Sprint 9.6 Etap 1)
   Port z tokens.css Studio (media max-width:900px -> --el-header-h:64px),
   brakujace w theme.json (tam header-height jest stale 76px). */
@media (max-width: 900px) {
  :root {
    --wp--custom--header-height: 64px;
  }
}

/* --- Reset: obraz/przycisk/link (Sprint 9.6 Etap 3)
   Reszta src/styles/reset.css, która nigdy nie trafiła do motywu.
   Niska specyficzność (selektory elementów, nie klas) — nie nadpisuje
   żadnego istniejącego komponentu, który już ustawia własne wartości
   tych samych właściwości (np. .el-btn ma własny display/border). */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
}

/* --- Zaznaczenie tekstu (Sprint 9.6 Etap 3) --- */
::selection {
  background: var(--wp--preset--color--gold-wash);
  color: var(--wp--preset--color--ink);
}

/* --- Płynne przewijanie do kotwic (Sprint 9.6 Etap 3)
   scroll-padding-top zapobiega chowaniu się celu kotwicy pod sticky
   nagłówkiem. Wyłączone bazowo pod prefers-reduced-motion niżej. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--wp--custom--header-height) + 1.25rem);
}

/* --- Renderowanie tekstu (Sprint P1 — SPRINT P1 ODTWORZENIE LEKKOŚCI STUDIO)
   Port jedynej brakującej reguły z src/styles/base.css prototypu Studio
   (`body { text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; }`),
   która nigdy nie trafiła do tego motywu — potwierdzone forensycznie: na stagingu
   getComputedStyle(document.body/document.documentElement) zwracał
   text-rendering:"auto" / -webkit-font-smoothing:"auto" na każdym sprawdzonym
   elemencie Hero (eyebrow, H1, lead, CTA), mimo identycznego font-weight/
   font-size/letter-spacing/font-variation-settings co Studio. To, nie
   font-weight, było głównym źródłem optycznego "ciężaru" tekstu na stagingu:
   optimizeLegibility włącza precyzyjniejszy kerning, antialiased wymusza
   cieńszą, szarą antyaliasację glifów zamiast domyślnej (cięższej,
   subpikselowej) — różnica widoczna na całej stronie, bo reguła jest
   globalna (dziedziczona z body), a nie punktowa. */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- Skip link (dostępność, część 9 design systemu) --- */
.el-skip {
  position: absolute;
  top: 0;
  left: var(--wp--preset--spacing--gutter, 1.25rem);
  z-index: 200;
  transform: translateY(-140%);
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--wp--custom--radius--sm, 6px) var(--wp--custom--radius--sm, 6px);
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--wp--custom--duration--base, 240ms) var(--wp--custom--easing);
}
.el-skip:focus-visible {
  transform: translateY(0);
}

/* --- Focus visible: nigdy outline:none, kolor odwrócony na dark ---
   Sprint 9.6 Etap 3: outline-offset ujednolicony na 3px + border-radius
   (zgodnie z base.css Studio); selektor odwracający kolor rozszerzony
   o .el-section--dark (AiMento) i .el-footer — wcześniej AiMento nie
   było objęte tą regułą (obrys fokusu ciemny na ciemnym tle, ledwo
   widoczny). Reguła `.el-header` (bez :focus-visible) usunięta — była
   błędnym zamiarem: ustawiała outline-color na całym elemencie
   nagłówka bezwarunkowo, a nagłówek ma jasne tło i nigdy nie potrzebuje
   odwróconego (białego) obrysu fokusu w Studio. */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.el-section--dark :focus-visible,
.el-footer :focus-visible,
.is-style-el-dark :focus-visible,
footer.wp-block-template-part :focus-visible {
  outline-color: var(--wp--preset--color--white);
}

/* --- Eyebrow: mała złota etykieta wersalikowa nad nagłówkiem --- */
.el-eyebrow {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: var(--wp--preset--font-size--eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-text);
}
.is-style-el-dark .el-eyebrow {
  color: var(--wp--preset--color--gold);
}

/* --- Lead: zdanie wprowadzające pod H2 --- */
.el-lead {
  font-size: var(--wp--preset--font-size--lead);
  color: var(--wp--preset--color--muted);
  max-width: 62ch;
}
.is-style-el-dark .el-lead {
  color: #B3B2AB;
}

/* --- Przyciski: hierarchia primary/secondary/quiet, zawsze jeden primary na widok --- */
.el-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--wp--custom--radius--default, 10px);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--wp--custom--duration--base) var(--wp--custom--easing),
              border-color var(--wp--custom--duration--base) var(--wp--custom--easing),
              color var(--wp--custom--duration--base) var(--wp--custom--easing);
}
.is-style-el-secondary .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ink);
}
.is-style-el-quiet .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--ink);
  text-decoration: underline;
  min-height: 44px;
}
.el-btn__arrow {
  display: inline-block;
  transition: transform var(--wp--custom--duration--base) var(--wp--custom--easing);
}
.el-btn:hover .el-btn__arrow,
.wp-block-button__link:hover .el-btn__arrow {
  transform: translateX(3px);
}

/* Sprint 9.6 Etap 4 — warianty .el-btn--primary/--secondary/--quiet/--full.
   Odkryte podczas budowy CTA nagłówka (Etap 1) i przycisku Centrum Wiedzy
   (Etap 4): w CSS motywu istniała wyłącznie geometria bazowa `.el-btn`
   (rozmiar/padding/promień), a warianty kolorystyczne NIGDY nie zostały
   przeniesione z reset.css/components.css Studio — dotyczy to każdego
   dotychczasowego `.el-btn.el-btn--primary`/`--secondary` w treści stron
   (np. FinalCta, NextStep), nie tylko nowego nagłówka/stopki. Bez tej
   reguły każdy taki przycisk renderował się jako bezbarwny prostokąt
   (dziedziczący wyłącznie obramowanie/padding bazowe). Dodane jako osobne
   klasy modyfikatorów — nie dotyka `.wp-block-button__link`/`is-style-el-*`
   (osobny, już działający system dla natywnych bloków Gutenberga poza
   zakresem tej sesji). */
.el-btn--primary {
  background: var(--wp--preset--color--ink);
  border-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--white);
}
.el-btn--primary:hover {
  background: #34352E;
  border-color: #34352E;
}
.el-btn--secondary {
  background: transparent;
  border-color: var(--wp--preset--color--line);
  color: var(--wp--preset--color--ink);
}
.el-btn--secondary:hover {
  border-color: #B9B4A8;
  background: rgba(32, 33, 31, 0.03);
}
.el-btn--secondary .wp-block-button__link {
  background: transparent;
  border-color: var(--wp--preset--color--line);
  color: var(--wp--preset--color--ink);
}
.el-btn--secondary .wp-block-button__link:hover {
  border-color: #B9B4A8;
  background: rgba(32, 33, 31, 0.03);
}
.el-btn--quiet {
  min-height: 44px;
  padding: 0.5rem 0;
  color: var(--wp--preset--color--ink);
}
.el-btn--quiet:hover {
  color: var(--wp--preset--color--gold-text);
}
.el-btn--full {
  width: 100%;
}
.el-section--dark .el-btn--primary,
.el-footer .el-btn--primary {
  background: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--ink);
}
.el-section--dark .el-btn--primary:hover,
.el-footer .el-btn--primary:hover {
  background: #E6E4DD;
  border-color: #E6E4DD;
}
.el-section--dark .el-btn--secondary {
  border-color: var(--wp--preset--color--line-dark);
  color: var(--wp--preset--color--white);
}
.el-section--dark .el-btn--secondary:hover {
  border-color: #5A5B55;
  background: rgba(255, 255, 255, 0.05);
}
.el-section--dark .el-btn--quiet {
  color: var(--wp--preset--color--white);
}
.el-section--dark .el-btn--quiet:hover {
  color: var(--wp--preset--color--gold);
}

/* --- Karta (el-card): skorupa siatek, foot zawsze na dole --- */
.el-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--default, 10px);
  background: var(--wp--preset--color--white);
  padding: var(--wp--preset--spacing--6, 2rem);
}
.el-card--interactive:hover {
  border-color: var(--wp--preset--color--gold-text);
  box-shadow: var(--wp--custom--shadow-soft);
}
.el-card__foot {
  margin-top: auto;
}

/* --- Checklist vs Tags: nie mieszać ról (część 5 design systemu) --- */
.el-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.el-checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--wp--preset--color--muted);
}
.el-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--wp--preset--color--gold-text);
}

.el-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.el-tags li {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
}

/* --- Accordion (Program 12 tygodni / FAQ): prawdziwy <button> + aria-expanded,
   zgodnie z Program.tsx / FaqAndCta.tsx (Sprint 9.3 — poprzednia wersja uzywala
   natywnego <details>/<summary> bez aria-expanded i bez numeracji tygodni;
   zastapiona, zeby zachowanie 1:1 odpowiadalo Studio). Animacja wysokosci:
   grid-template-rows 0fr -> 1fr + overflow:hidden na wnetrzu, bez JS do
   mierzenia wysokosci. JS (assets/js/accordion.js) przelacza wylacznie
   aria-expanded/data-open — cala prezentacja zostaje w CSS. */
.el-weeks,
.el-faq {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-week,
.el-faq__item {
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.el-week:first-child,
.el-faq__item:first-child {
  border-top: 1px solid var(--wp--preset--color--line);
}

.el-week__heading,
.el-faq__heading {
  margin: 0;
}

.el-week__trigger,
.el-faq__trigger {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--4);
  width: 100%;
  min-height: 44px;
  padding-block: var(--wp--preset--spacing--4);
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: var(--wp--preset--color--ink);
  cursor: pointer;
}

.el-week__num {
  flex: 0 0 auto;
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.125rem;
  color: var(--wp--preset--color--gold-text);
}

.el-week__title,
.el-faq__trigger span:first-child {
  flex: 1 1 auto;
  font-weight: 600;
}

.el-week__icon,
.el-faq__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  position: relative;
}

.el-week__icon::before,
.el-week__icon::after,
.el-faq__icon::before,
.el-faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--wp--preset--color--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--wp--custom--duration--base) var(--wp--custom--easing);
}

.el-week__icon::before,
.el-faq__icon::before {
  width: 12px;
  height: 1px;
}

.el-week__icon::after,
.el-faq__icon::after {
  width: 1px;
  height: 12px;
}

.el-week__trigger[aria-expanded='true'] .el-week__icon::after,
.el-faq__trigger[aria-expanded='true'] .el-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.el-week__panel,
.el-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--wp--custom--duration--base) var(--wp--custom--easing);
}

.el-week__panel[data-open='true'],
.el-faq__panel[data-open='true'] {
  grid-template-rows: 1fr;
}

.el-week__panel-inner,
.el-faq__panel-inner {
  overflow: hidden;
}

.el-week__panel-inner {
  padding-bottom: var(--wp--preset--spacing--5);
  padding-left: calc(1.125rem + var(--wp--preset--spacing--4));
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--2);
  max-width: 62ch;
}

.el-faq__panel-inner {
  padding-bottom: var(--wp--preset--spacing--5);
  max-width: 62ch;
}

.el-week__practice {
  color: var(--wp--preset--color--muted);
}

.el-week__safety {
  padding: var(--wp--preset--spacing--3);
  background: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--sm);
  color: var(--wp--preset--color--muted);
}

/* --- Utility tekstu, uzywane w panelach akordeonu (odpowiednik el-text/
   el-small z src/styles/base.css) --- */
.el-text {
  color: var(--wp--preset--color--muted);
  max-width: 62ch;
}

.el-small {
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.55;
  color: var(--wp--preset--color--muted);
}


/* --- Header sticky --- */
.el-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wp--preset--color--bg);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

/* --- Sekcja "dark": jeden mocny akcent, używany oszczędnie --- */
.is-style-el-dark {
  background-color: var(--wp--preset--color--dark);
  color: var(--wp--preset--color--white);
}
.is-style-el-dark .wp-block-button__link.is-style-el-secondary,
.is-style-el-dark .wp-block-button__link {
  border-color: var(--wp--preset--color--white);
}

/* --- Breadcrumb: widoczna ścieżka nawigacyjna (server-side, inc/breadcrumb.php) --- */
.el-breadcrumb {
  padding: var(--wp--preset--spacing--4, 1rem) var(--wp--preset--spacing--gutter, 1.5rem) 0;
  max-width: var(--wp--style--global--content-size, 1240px);
  margin: 0 auto;
}
.el-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
  margin: 0;
  padding: 0;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
}
.el-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.el-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--wp--preset--color--line);
}
.el-breadcrumb a {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
}
.el-breadcrumb a:hover,
.el-breadcrumb a:focus-visible {
  color: var(--wp--preset--color--ink);
  text-decoration: underline;
}
.el-breadcrumb li[aria-current="page"] {
  color: var(--wp--preset--color--ink);
  font-weight: 600;
}

/* =========================================================
   Sprint 9.6 Etap 1 — Nagłówek, nawigacja, menu mobilne, stopka.
   Port 1:1 z src/styles/components.css Studio (sekcje „Nagłówek
   strony" / „Panel menu mobilnego" / „Stopka"), wcześniej całkowicie
   nieobecny w tym motywie (potwierdzone w ROZNICE_STUDIO_VS_WORDPRESS.md
   — zero wystąpień klas .el-header__*/.el-nav*/.el-burger/.el-menu*/
   .el-footer__* w CSS). Markup w parts/header.html i parts/footer.html
   zamieniony z natywnych bloków Gutenberga na `wp:html` z tymi samymi
   klasami/strukturą co Header.tsx/Footer.tsx; interakcje (burger,
   dropdown, scroll-lock, focus-trap) w assets/js/header.js.
   ========================================================= */

/* --- Nagłówek strony --- */
.el-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wp--preset--color--bg);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.el-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--5);
  min-height: var(--wp--custom--header-height);
}
.el-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  text-decoration: none;
}
.el-header__logo {
  width: auto;
  height: 28px;
}
.el-header__wordmark {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--ink);
}
@media (max-width: 640px) {
  .el-header__wordmark {
    display: none;
  }
}
.el-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.1rem + 1.2vw, 1.75rem);
}
.el-nav__link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  white-space: nowrap;
}
.el-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--wp--preset--color--gold-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--wp--custom--duration--base) var(--wp--custom--easing);
}
.el-nav__link:hover::after,
.el-nav__link[aria-current='true']::after {
  transform: scaleX(1);
}
.el-nav__group {
  position: relative;
}
.el-nav__group-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  white-space: nowrap;
  cursor: pointer;
}
.el-nav__group-trigger[aria-current='true'] {
  color: var(--wp--preset--color--gold-text);
}
/* Ta sama zasada co przy .el-menu[hidden] powyzej — atrybut "hidden"
   przelaczany przez header.js musi wygrac z domyslnym "display: flex". */
.el-nav__dropdown[hidden] {
  display: none;
}
.el-nav__dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 248px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--default);
  box-shadow: var(--wp--custom--shadow-soft);
}
.el-nav__dropdown-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--wp--custom--radius--sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}
.el-nav__dropdown-link:hover,
.el-nav__dropdown-link[aria-current='true'] {
  background: var(--wp--preset--color--beige);
  color: var(--wp--preset--color--gold-text);
}
.el-icon-chevron {
  transition: transform var(--wp--custom--duration--fast) var(--wp--custom--easing);
}
.el-nav__group-trigger[aria-expanded='true'] .el-icon-chevron,
.el-menu__group-trigger[aria-expanded='true'] .el-icon-chevron {
  transform: rotate(180deg);
}
.el-header__actions {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--3);
  flex: 0 0 auto;
}
.el-burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--sm);
  color: var(--wp--preset--color--ink);
}
.el-burger:hover {
  border-color: #B9B4A8;
}
.el-icon-menu__open {
  display: none;
}
.el-burger[aria-expanded='true'] .el-icon-menu__closed {
  display: none;
}
.el-burger[aria-expanded='true'] .el-icon-menu__open {
  display: block;
}
@media (max-width: 1120px) {
  .el-header__nav-desktop {
    display: none;
  }
  .el-burger {
    display: inline-flex;
  }
}
@media (max-width: 400px) {
  .el-header__cta-desktop {
    display: none;
  }
}

/* --- Panel menu mobilnego --- */
/* Panel jest w DOM zawsze (atrybut "hidden" przełącza header.js), więc
   ".el-menu[hidden]" MUSI wygrać z ".el-menu" (ta sama specyficznosc
   (0,1,0) — bez tej reguly atrybut "hidden" jest bezskuteczny, bo
   autorska klasa .el-menu nadpisuje domyslny styl UA "[hidden]{display:
   none}" niezaleznie od kolejnosci — znaleziono i naprawiono podczas
   weryfikacji powdrozeniowej Sprint 9.6, patrz CHANGELOG). */
.el-menu[hidden] {
  display: none;
}
.el-menu {
  position: fixed;
  inset: var(--wp--custom--header-height) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--bg);
  border-top: 1px solid var(--wp--preset--color--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: var(--wp--preset--spacing--5) var(--wp--preset--spacing--8);
  animation: el-menu-in var(--wp--custom--duration--base) var(--wp--custom--easing);
}
@keyframes el-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.el-menu__cta {
  margin-bottom: var(--wp--preset--spacing--5);
}
.el-menu__list {
  display: flex;
  flex-direction: column;
}
.el-menu__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--wp--preset--color--line);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
}
.el-menu__link[aria-current='true'] {
  color: var(--wp--preset--color--gold-text);
}
.el-menu__group {
  display: flex;
  flex-direction: column;
}
.el-menu__group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0.5rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--wp--preset--color--line);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--wp--preset--color--ink);
  text-align: left;
  cursor: pointer;
}
.el-menu__submenu[hidden] {
  display: none;
}
.el-menu__submenu {
  display: flex;
  flex-direction: column;
  padding-left: var(--wp--preset--spacing--4);
}
.el-menu__submenu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--wp--preset--color--line);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--wp--preset--color--muted);
}
.el-menu__submenu-link[aria-current='true'] {
  color: var(--wp--preset--color--gold-text);
}
.el-menu__foot {
  margin-top: var(--wp--preset--spacing--6);
}
html:has(.el-scroll-locked) {
  overflow: hidden;
}
.el-scroll-locked {
  overflow: hidden;
}

/* --- Stopka --- */
.el-footer {
  background: var(--wp--preset--color--dark);
  color: #B3B2AB;
  padding-block: var(--wp--preset--spacing--9) var(--wp--preset--spacing--6);
}
.el-footer a {
  color: inherit;
}
.el-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}
@media (max-width: 1000px) {
  .el-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .el-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.el-footer__logo {
  height: 28px;
  width: auto;
}
.el-footer__intro {
  margin-top: var(--wp--preset--spacing--4);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 34ch;
}
.el-footer__title {
  margin-bottom: var(--wp--preset--spacing--3);
  font-size: var(--wp--preset--font-size--eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold);
}
.el-footer__title--newsletter {
  margin-top: 1.75rem;
}
.el-footer__newsletter-desc {
  color: inherit;
}
.el-footer__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.el-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #D6D5CF;
  text-decoration: none;
  font-size: 0.9375rem;
}
.el-footer__link:hover {
  color: var(--wp--preset--color--white);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.el-footer__address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.el-footer__bottom {
  margin-top: var(--wp--preset--spacing--8);
  padding-top: var(--wp--preset--spacing--5);
  border-top: 1px solid var(--wp--preset--color--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--3) var(--wp--preset--spacing--5);
  justify-content: space-between;
  font-size: var(--wp--preset--font-size--small);
}
.el-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--3);
  margin-top: var(--wp--preset--spacing--4);
}
.el-form__field {
  flex: 1 1 200px;
  min-width: 0;
}
.el-input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wp--preset--color--line-dark);
  border-radius: var(--wp--custom--radius--sm);
  color: var(--wp--preset--color--white);
  font-size: 0.9375rem;
}
.el-input::placeholder {
  color: #94938C;
}
.el-input:hover {
  border-color: #4A4B45;
}
.el-form__note {
  flex: 1 1 100%;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #A3A29B;
}

/* --- Reduced motion: wyłącza wszystko naraz --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Wysoki kontrast wymuszony systemowo: przyciski nie mogą znikać --- */
@media (forced-colors: active) {
  .el-btn, .wp-block-button__link { outline: 1px solid transparent; }
}

/* --- Newsletter: zgoda RODO, honeypot, komunikaty sukces/błąd (P0-B, 0.8.4) --- */
.el-form__consent {
  flex: 1 1 100%;
}
.el-form__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #A3A29B;
  cursor: pointer;
}
.el-form__consent-label input[type="checkbox"] {
  margin-top: 0.2em;
  flex-shrink: 0;
}
.el-form__consent-label a {
  color: inherit;
  text-decoration: underline;
}
.el7-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.el-form__message {
  flex: 1 1 100%;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0.5rem 0.75rem;
  border-radius: var(--wp--custom--radius--sm);
}
.el-form__message--success {
  background: rgba(173, 135, 68, 0.15);
  color: var(--wp--preset--color--gold-text);
}
.el-form__message--error {
  background: rgba(197, 60, 53, 0.12);
  color: #C53C35;
}
