/* ==========================================================================
   Womix 2026 — „chrome”: nagłówek, menu, wyszukiwarka, stopka.
   Niezależne od frameworka: działa na stronie głównej (Bootstrap 5)
   i na starych podstronach CMS (Bootstrap 3 + womix.min.css).
   Wszystkie klasy z prefiksem wx- i reguły zawężone do .wx-header / .wx-footer,
   żeby nie kolidowały z BS3/BS5 ani ze starymi regułami womix.less
   (uwaga: nie używać w nazwach klas fragmentów "-ico" ani "box-").
   Ikony i logo: /img/2026/wx-sprite.svg
   ========================================================================== */

:root {
  --wx-red: #e60000;
  --wx-red-dark: #b80000;
  --wx-ink: #16191c;
  --wx-graphite: #1f2327;
  --wx-steel: #2b3036;
  --wx-text: #22262a;
  --wx-muted: #666d74;
  --wx-line: #dcdfe2;
  --wx-paper: #ffffff;
  --wx-paper-2: #f3f4f5;
  --wx-logo-grey: #4c4c4c;

  --wx-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wx-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;

  --wx-gutter: clamp(16px, 4vw, 56px);
  --wx-max: 1520px;
  --wx-header-h: 72px;
  --wx-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1200px) { :root { --wx-header-h: 100px; } }

.wx-wrap { width: 100%; max-width: var(--wx-max); margin: 0 auto; padding-left: var(--wx-gutter); padding-right: var(--wx-gutter); box-sizing: border-box; }
.wxi { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; fill: currentColor; }
.wx-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.wx-skip { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: #fff; color: var(--wx-ink); padding: .6rem 1rem; font: 600 1rem var(--wx-font); }
.wx-skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.wx-header {
  position: sticky; top: 0; z-index: 1030;
  background: #fff; color: var(--wx-text);
  font-family: var(--wx-font); font-size: 16px; line-height: 1.4; font-weight: 400;
  box-shadow: 0 1px 0 var(--wx-line), 0 10px 30px -22px rgba(0,0,0,.3);
  -webkit-font-smoothing: antialiased;
}
.wx-header *, .wx-header *::before, .wx-header *::after { box-sizing: border-box; }
.wx-header a, .wx-header a:hover, .wx-header a:focus, .wx-header a:active, .wx-header a:visited { color: inherit; text-decoration: none; }
.wx-header ul { list-style: none; margin: 0; padding: 0; }
.wx-header button { font: inherit; color: inherit; }
.wx-header :focus-visible { outline: 2px solid var(--wx-red) !important; outline-offset: 2px; }

/* wariant na stronę główną: przezroczysty nad filmem, biały po przewinięciu */
.wx-header--overlay { position: fixed; left: 0; right: 0; background: transparent; color: #fff; box-shadow: none;
  transition: background-color .35s var(--wx-ease), color .35s var(--wx-ease), box-shadow .35s var(--wx-ease); }
.wx-header--overlay::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,12,14,.55), rgba(10,12,14,0)); transition: opacity .35s;
}
.wx-header--overlay.is-solid, .wx-header--overlay.is-open { background: #fff; color: var(--wx-text); box-shadow: 0 1px 0 var(--wx-line), 0 10px 30px -22px rgba(0,0,0,.3); }
.wx-header--overlay.is-solid::before, .wx-header--overlay.is-open::before { opacity: 0; }

.wx-topbar { display: none; align-items: center; gap: 1.75rem; padding-top: .6rem; font-size: .875rem; }
.wx-topbar .wx-toplink { display: inline-flex; align-items: center; gap: .45rem; opacity: .8; transition: opacity .2s; }
.wx-topbar .wx-toplink:hover { opacity: 1; }
.wx-topbar .wx-lang { margin-left: auto; }

.wx-lang { display: inline-flex; gap: .15rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.wx-header .wx-lang a, .wx-footer .wx-lang a { opacity: .6; padding: .15rem .4rem; }
.wx-header .wx-lang a:hover, .wx-footer .wx-lang a:hover, .wx-lang a.is-active { opacity: 1; }
.wx-lang a.is-active { box-shadow: inset 0 -2px 0 var(--wx-red); }

.wx-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--wx-header-h); }
.wx-brand { display: block; flex: none; margin-right: auto; }
.wx-logo { display: block; width: 130px; height: auto; aspect-ratio: 649.5 / 193; color: var(--wx-logo-grey); transition: color .35s var(--wx-ease); }
.wx-header--overlay .wx-logo { color: #fff; }
.wx-header--overlay.is-solid .wx-logo, .wx-header--overlay.is-open .wx-logo { color: var(--wx-logo-grey); }

.wx-actions { display: flex; align-items: center; gap: .25rem; }
.wx-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; padding: 0; margin: 0; background: none; border-radius: 50%; cursor: pointer; }
.wx-iconbtn:hover { background: rgba(127,127,127,.15); }
.wx-iconbtn .wxi { width: 22px; height: 22px; }

/* menu — desktop */
.wx-menu { display: flex; flex-direction: column; }
.wx-menu a {
  display: block; position: relative;
  font-family: var(--wx-display); font-weight: 500; letter-spacing: .02em; line-height: 1.2;
}

/* ---------- menu mobilne (szuflada) ---------- */
@media (max-width: 1199.98px) {
  .wx-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1045;
    width: min(360px, 88vw); background: #fff; color: var(--wx-text);
    display: flex; flex-direction: column; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--wx-ease), visibility 0s linear .3s;
    box-shadow: -20px 0 40px -20px rgba(0,0,0,.3);
  }
  .wx-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--wx-ease); }
  .wx-nav-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem .75rem 1.5rem; border-bottom: 1px solid var(--wx-line); }
  .wx-nav-title { font-family: var(--wx-display); font-weight: 600; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .1em; }
  .wx-header .wx-menu { padding: .5rem 1.5rem; }
  .wx-menu a { font-size: 1.5rem; padding: .6rem 0; border-bottom: 1px solid var(--wx-line); }
  .wx-menu a.is-active { color: var(--wx-red) !important; }
  .wx-nav-extra { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; margin-top: auto; }
  .wx-nav-extra .wx-lang { margin-top: .75rem; }
  .wx-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(10,12,14,.5); opacity: 0; transition: opacity .3s; }
  .wx-backdrop.is-open { opacity: 1; }
}

/* ---------- menu desktop ---------- */
@media (min-width: 1200px) {
  .wx-topbar { display: flex; }
  .wx-logo { width: 150px; }
  .wx-bar { min-height: 64px; }
  .wx-brand { margin-right: 2rem; }
  .wx-nav { margin-left: auto; }
  .wx-nav-head, .wx-nav-extra, .wx-burger { display: none !important; }
  .wx-menu { flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; }
  .wx-menu a { font-size: 1.0625rem; padding: .5rem .55rem; white-space: nowrap; }
  .wx-menu a::after {
    content: ""; position: absolute; left: .55rem; right: .55rem; bottom: .2rem; height: 2px;
    background: var(--wx-red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--wx-ease);
  }
  .wx-menu a:hover::after, .wx-menu a.is-active::after { transform: scaleX(1); }
  .wx-backdrop { display: none !important; }
}
@media (min-width: 1400px) {
  .wx-menu a { font-size: 1.125rem; padding: .5rem .8rem; }
  .wx-menu a::after { left: .8rem; right: .8rem; }
}

/* ---------- wyszukiwarka ---------- */
.wx-search { background: #fff; color: var(--wx-text); border-top: 1px solid var(--wx-line); }
.wx-search[hidden] { display: none; }
.wx-search form { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; margin: 0; }
.wx-search form > .wxi { width: 24px; height: 24px; color: var(--wx-muted); }
.wx-search input:focus-visible { outline: none !important; }
.wx-search form:focus-within { box-shadow: inset 0 -2px 0 var(--wx-red); }
.wx-search input[type="search"], .wx-search input[type="text"] {
  flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; padding: .25rem 0; height: auto;
  font: 400 1.25rem var(--wx-font); background: transparent; color: inherit;
}

/* ---------- przyciski komponentu ---------- */
.wx-btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.4rem;
  font: 600 1rem/1.2 var(--wx-font); letter-spacing: .01em; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.wx-btn--red, a.wx-btn--red, a.wx-btn--red:hover, a.wx-btn--red:visited { background: var(--wx-red); border-color: var(--wx-red); color: #fff; }
.wx-btn--red:hover { background: var(--wx-red-dark); border-color: var(--wx-red-dark); }

/* ---------- Footer ---------- */
.wx-footer {
  background: var(--wx-ink); color: rgba(255,255,255,.7);
  font-family: var(--wx-font); font-size: .9375rem; line-height: 1.6; font-weight: 400;
  padding: 5rem 0 2rem; -webkit-font-smoothing: antialiased;
}
.wx-footer *, .wx-footer *::before, .wx-footer *::after { box-sizing: border-box; }
.wx-footer a, .wx-footer a:visited, .wx-footer a:focus, .wx-footer a:active { color: rgba(255,255,255,.7); text-decoration: none; }
.wx-footer a:hover { color: #fff; }
.wx-footer ul { list-style: none; margin: 0; padding: 0; font-size: inherit; }
.wx-footer li { padding: .22rem 0; }
.wx-footer :focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
.wx-footer-grid { display: grid; gap: 3rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .wx-footer-grid { grid-template-columns: 1fr 3fr; } .wx-footer-brand { grid-column: 1 / -1; } }
@media (min-width: 992px) { .wx-footer-grid { grid-template-columns: 3fr 2fr 7fr; } .wx-footer-brand { grid-column: auto; } }
.wx-footer-logo { display: block; width: 150px; height: auto; aspect-ratio: 649.5 / 193; color: #fff; margin-bottom: 1.25rem; }
.wx-footer-claim { color: rgba(255,255,255,.55); max-width: 22ch; margin: 0 0 1rem; }
.wx-footer .wx-footer-contact a { color: #fff; font-weight: 500; }
.wx-footer-contact { margin: 0 0 1rem; }
.wx-footer .wx-footer-social { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.wx-footer .wx-footer-social:hover { border-color: #fff; }
.wx-footer-h { font-family: var(--wx-display); font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1.25rem; }
@media (min-width: 576px) { .wx-footer-cols { columns: 2; column-gap: 2rem; } .wx-footer-cols li { break-inside: avoid; } }
.wx-footer-bottom {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; font-size: .8125rem;
}
.wx-footer-bottom .wx-lang { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .wx-header *, .wx-header, .wx-nav, .wx-backdrop { transition: none !important; }
}
