/* ==========================================================================
   DTS – baza motywu: tokeny, typografia, przyciski, nagłówek, menu, menu mobilne, przycisk do góry.
   Ładowana na każdej stronie. Moduły stron są w blocks/<nazwa>/style.css.
   Źródło (prototyp): assets/css/style.css (bez modułów strony głównej)
   ========================================================================== */

:root {
  --navy: #234269;
  --navy-500: #294e7c;
  --navy-700: #1b3453;
  --navy-900: #162a43;
  --navy-100: #dde6f0;
  --navy-50: #f1f5f9;
  /* the one ground of every navy module in B (user, 2026-10-30): deep navy lit from the top-left
     corner; modules lay the constellation mesh (assets/img/siatka-granat.svg) over it */
  --navy-ground: radial-gradient(60% 90% at 0% 0%, rgba(41, 78, 124, .9), rgba(41, 78, 124, 0) 70%), linear-gradient(135deg, #1d375a 0%, var(--navy-900) 60%, #10213a 100%);

  --orange: #f87831;
  --orange-400: #f9884a;
  --orange-600: #ec6e28;
  --orange-100: #fde3d3;
  --orange-50: #fff4ec;
  /* the one highlighted word in a display heading (28px and up): 3.6:1 on white, 3.4:1 on paper-2 */
  --orange-ink: #e05f1a;

  --text: #2c3a49;
  --muted: #5a6a7b;
  --muted-2: #66758a;
  --line: #e2e8ef;
  --line-strong: #cbd5e0;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --footer: #2d2d2d;
  --footer-line: #3d3d3d;
  --error: #b3261e;

  --font-display: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui: "Rubik", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --radius-lg: 20px;
  --radius-xl: clamp(20px, 2.4vw, 32px);
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22, 42, 67, .06), 0 6px 18px -10px rgba(22, 42, 67, .18);
  --shadow-md: 0 2px 6px rgba(22, 42, 67, .06), 0 22px 44px -22px rgba(22, 42, 67, .32);
  --shadow-float: 0 1px 2px rgba(22, 42, 67, .06), 0 16px 36px -14px rgba(22, 42, 67, .28);
  --shadow-nav: 0 1px 2px rgba(22, 42, 67, .08), 0 18px 40px -18px rgba(22, 42, 67, .38);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
  --nav-overlap: 32px;
  --slide-dur: 6500ms;
  --thread-x: 18px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--navy) var(--navy-50);
  scroll-padding-top: calc(var(--nav-h) + 28px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--orange-100); color: var(--navy-900); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--navy-50); }
::-webkit-scrollbar-thumb { background: var(--navy); border: 3px solid var(--navy-50); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-700); }

img, picture, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

a {
  color: var(--navy);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: color .2s;
}
a:hover { color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--navy-900); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 2px; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy-900);
  margin: 0 0 .6em;
  letter-spacing: -.028em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; }

/* One highlighted word (or two) per display heading: the accent carries the heading's point.
   Display sizes only (28px and up), so the deeper orange ink clears 3:1. */
.hl { font-style: normal; color: var(--orange-ink); }
.process .hl, .band .hl, .mission .hl, .on-navy .hl { color: var(--orange-400); }

/* Section prefix: an orange dot carrying the section's icon, then a short label on a white pill.
   The dot is the ribbon's dot; the label names what the section holds.
   Doubled class: section rules such as `.qa__intro p` must not restyle it. */
.eyebrow.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; width: fit-content;
  margin: 0 0 1.25rem; padding: .3rem .95rem .3rem .3rem;
  font-family: var(--font-ui); font-size: .8125rem; font-weight: 500; line-height: 1.2; letter-spacing: .01em;
  color: var(--navy-900); background: #fff; border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px -12px rgba(22, 42, 67, .3);
  text-wrap: balance; max-width: none;
}
.eyebrow__icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; /* white icon on the orange dot (user, 2026-10-30) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.eyebrow__icon .icon { width: .875rem; height: .875rem; stroke-width: 2; }
:is(.process, .band, .mission, .on-navy) .eyebrow.eyebrow {
  color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
:is(.offer__head, .process__head, .partners__head, .eco__head, .shead, .free__grid) > .eyebrow.eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
sub { font-size: .7em; line-height: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius); font-family: var(--font-ui); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-ui); font-weight: 500; font-size: .9375rem; line-height: 1;
  letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  padding: .95em 1.6em; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; }
/* Trailing badge: a deep-navy disc with the arrow, the pill's one moving part on hover */
.btn__badge {
  flex: none; width: 2em; height: 2em; margin: -.55em -1.05em -.55em .2em; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-900); color: #fff;
}
.btn__badge .icon { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.btn:hover .btn__badge .icon { transform: translateX(2px); }
/* Call button (phone from Ustawienia DTS): the phone in the badge stays put */
.btn__badge--call .icon, .btn:hover .btn__badge--call .icon { transform: none; }
.btn--navy .btn__badge { background: var(--orange); color: #fff; }
.btn--primary .btn__badge { background: #fff; color: var(--orange-ink); text-shadow: none; box-shadow: 0 2px 6px -2px rgba(150, 52, 8, .45); }
/* Primary: an orange pill lit from below.
   ::before is the face (a soft vertical gradient + a narrow band of scanner light that sweeps across),
   ::after is the glow (soft orange light spilling onto the surface under the pill).
   The element itself stays transparent; isolation keeps both layers under its label. */
/* White label on the orange pill (user decision 2026-10-30): the face darkens towards the
   bottom and the label is 600 with a soft burnt shadow, so the white reads on the brand orange. */
.btn--primary {
  position: relative; isolation: isolate;
  background: transparent; color: #fff; font-weight: 600;
  text-shadow: 0 1px 1px rgba(150, 52, 8, .35);
  transition: color .2s, transform .45s var(--ease);
}
.btn--primary::before,
.btn--primary::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.btn--primary::before {
  inset: -1.5px; z-index: -1;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 59%) no-repeat,
    linear-gradient(180deg, #fa8746 0%, #f2711f 52%, #e35e16 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 110% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(22, 42, 67, .16), 0 10px 22px -12px rgba(236, 110, 40, .9);
  transition: background-position 0s, box-shadow .45s var(--ease);
}
.btn--primary::after {
  inset: 35% 8% -14px; z-index: -2;
  background: radial-gradient(closest-side, rgba(248, 120, 49, .55), rgba(248, 120, 49, 0));
  opacity: .6; transform: translateY(2px) scaleX(.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); }
.btn--primary:hover::before, .btn--primary:focus-visible::before {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(22, 42, 67, .16), 0 16px 28px -12px rgba(236, 110, 40, .95);
}
.btn--primary:hover::before { background-position: -10% 0, 0 0; transition: background-position .9s cubic-bezier(.4, 0, .2, 1), box-shadow .45s var(--ease); }
.btn--primary:hover::after, .btn--primary:focus-visible::after { opacity: 1; transform: translateY(6px) scaleX(1.02); }
.btn--primary:active { transform: translateY(0); transition-duration: .12s; }
.btn--primary:active::after { opacity: .6; transform: translateY(1px) scaleX(.94); transition-duration: .12s; }
.btn--primary[disabled]::after { opacity: .2; }
.btn--primary[disabled]:hover::before { background-position: 110% 0, 0 0; transition: none; }
.btn--sm.btn--primary::after { inset: 40% 10% -10px; }

/* The glint: the same band of light passes once when the pill arrives (hero: after the slide's text;
   elsewhere: when the button is fully in view, main.js adds .is-glint). Fill "backwards" only,
   so hover can sweep again afterwards. */
@keyframes btn-glint {
  from { background-position: 110% 0, 0 0; }
  to { background-position: -10% 0, 0 0; }
}
.hero__slide.is-active .btn--primary::before { animation: btn-glint 1.1s cubic-bezier(.4, 0, .2, 1) 1.05s 1 backwards; }
.btn--primary.is-glint::before { animation: btn-glint 1.1s cubic-bezier(.4, 0, .2, 1) .2s 1 backwards; }
/* Secondary: a white pill with a hairline, lifted a touch; hover inverts to deep navy */
.btn--ghost {
  color: var(--navy-900); background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 2px 4px -2px rgba(22, 42, 67, .14);
}
.btn--ghost:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--navy-900), 0 10px 18px -10px rgba(22, 42, 67, .6); }
.btn--ghost:active { transform: translateY(0); transition-duration: .12s; }
.btn--navy {
  color: #fff;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 59%) no-repeat,
    linear-gradient(180deg, #213d60 0%, var(--navy-900) 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 110% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 22px -12px rgba(22, 42, 67, .8);
  transition: color .2s, box-shadow .45s var(--ease), transform .45s var(--ease);
}
.btn--navy:hover {
  color: #fff; transform: translateY(-2px);
  background-position: -10% 0, 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 28px -12px rgba(22, 42, 67, .85);
  transition: background-position .9s cubic-bezier(.4, 0, .2, 1), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.btn--navy:active { transform: translateY(0); transition-duration: .12s; }
.cta__card.is-inview .btn--navy { animation: btn-glint 1.1s cubic-bezier(.4, 0, .2, 1) 1s 1 backwards; }
.btn--ghost-navy { border-color: var(--navy-900); color: var(--navy-900); background: rgba(255, 255, 255, .22); }
.btn--ghost-navy:hover { background: var(--navy-900); color: #fff; }
.btn--lg { font-size: 1rem; padding: 1.1em 1.8em; }
.btn--sm { font-size: .875rem; padding: .8em 1.25em; }

.link-more {
  font-family: var(--font-ui); font-size: .9375rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .5em;
  text-decoration: none; color: var(--navy);
}
.link-more .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.link-more:hover { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.link-more:hover .icon { transform: translateX(4px); }
.link-more--light { color: #fff; }
.link-more--light:hover { color: #fff; text-decoration-color: var(--orange); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header { background: var(--paper); position: relative; z-index: 30; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.25rem 0 calc(1.25rem + var(--nav-overlap));
}
.brand img { width: clamp(150px, 18vw, 220px); height: auto; }

.header-contacts { display: flex; margin-left: auto; }
.header-contact {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto;
  column-gap: .9rem; row-gap: .1rem; align-items: center; align-content: center;
  padding: 0 1.75rem; font-family: var(--font-ui);
}
.header-contact + .header-contact { border-left: 1px solid var(--line); }
.header-contact:last-child { padding-right: 0; }
.header-contact__icon {
  grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange-50); color: var(--orange-600); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--orange-100);
}
.header-contact__icon .icon { width: 1.2rem; height: 1.2rem; }
.header-contact small {
  grid-column: 2; font-size: .75rem; letter-spacing: .01em;
  color: var(--muted-2); font-weight: 400; line-height: 1.2;
}
.header-contact__phone {
  grid-column: 2; font-size: 1.125rem; font-weight: 600; color: var(--navy-900);
  text-decoration: none; letter-spacing: -.01em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.header-contact__phone:hover { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }
.header-contact__mail { grid-column: 2; font-size: .8125rem; color: var(--muted); text-decoration: none; line-height: 1.3; }
.header-contact__mail:hover { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }
/* --------------------------------------------------------------------------
   Main navigation: a white pill floating over the seam between header and hero.
   It sticks 12px below the viewport top; once stuck the logo slides into its left end.
   -------------------------------------------------------------------------- */

.nav-sentinel { height: 1px; margin-top: -1px; position: relative; top: calc(-1 * var(--nav-overlap)); }
.main-nav {
  position: sticky; top: .75rem; z-index: 40; margin-top: calc(-1 * var(--nav-overlap));
  pointer-events: none;
}
.main-nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: .5rem;
  height: var(--nav-h);
  padding: 0 .55rem 0 .65rem;
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px rgba(22, 42, 67, .07), var(--shadow-nav);
  transition: box-shadow .35s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .main-nav__bar { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); }
}
.main-nav.is-stuck .main-nav__bar { box-shadow: inset 0 0 0 1px rgba(22, 42, 67, .07), 0 2px 4px rgba(22, 42, 67, .06), 0 22px 44px -18px rgba(22, 42, 67, .45); }
.main-nav__brand {
  display: flex; align-items: center; flex: none; width: 0; height: 100%; overflow: hidden;
  opacity: 0; visibility: hidden; margin-left: 0;
  transition: width .5s var(--ease), opacity .3s, margin .5s var(--ease), visibility 0s .5s;
}
.main-nav__brand img { width: 104px; max-width: none; height: auto; }
.main-nav.is-stuck .main-nav__brand { width: 104px; margin: 0 .6rem 0 .75rem; opacity: 1; visibility: visible; transition-delay: 0s; }
.main-nav__cta { margin-left: auto; flex: none; }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  background: none; border: 0; color: var(--navy-900); cursor: pointer;
  height: 46px; padding: 0 1.1rem 0 .9rem; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: .9375rem; font-weight: 500;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--navy-50); }
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .125rem; height: 100%; }
.menu__item {
  position: relative; display: flex; align-items: center; height: 44px;
  border-radius: var(--radius-pill); transition: background-color .2s;
}
.menu__item:hover, .menu__item:focus-within, .menu__item.is-open { background: var(--navy-50); }
.menu__link {
  display: inline-flex; align-items: center; height: 100%; padding: 0 1rem;
  font-family: var(--font-ui); font-size: .9375rem; font-weight: 500; letter-spacing: 0;
  color: var(--navy); text-decoration: none; position: relative; border-radius: inherit; transition: color .2s;
}
.menu__link:hover, .menu__item:focus-within > .menu__link, .menu__item:hover > .menu__link { color: var(--navy-900); }
.menu__link[aria-current] { color: var(--navy-900); }
.menu__link[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--orange);
}
.has-sub .menu__link { padding-right: .25rem; }
.has-sub .menu__link[aria-current]::after { margin-left: calc(-2.5px + .375rem); }
.menu__toggle {
  appearance: none; background: none; border: 0; color: var(--navy);
  width: 1.7rem; height: 1.7rem; margin-right: .5rem; display: grid; place-items: center;
  cursor: pointer; border-radius: 50%;
}
.menu__toggle .icon { width: .85rem; height: .85rem; transition: transform .3s var(--ease); }
.menu__toggle:hover { color: var(--navy-900); background: #fff; }
.menu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.menu__toggle:focus-visible { outline-offset: 0; }

.submenu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 300px;
  background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  list-style: none; margin: 0; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
/* a bridge over the gap, so the pointer can travel from the item to the panel */
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu__item.is-open > .submenu, .menu__item:hover > .submenu, .no-js .menu__item:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.submenu a {
  display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: 12px;
  font-family: var(--font-ui); font-size: .9375rem; color: var(--navy-900); text-decoration: none;
  transition: background-color .2s;
}
.submenu a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: none; transition: background-color .2s, transform .3s var(--ease); }
.submenu a:hover { background: var(--navy-50); color: var(--navy-900); }
.submenu a:hover::before, .submenu a[aria-current]::before { background: var(--orange); transform: scale(1.3); }

/* --------------------------------------------------------------------------
   Off-canvas menu (mobile)
   -------------------------------------------------------------------------- */

.offcanvas { position: fixed; inset: 0; z-index: 100; }
.offcanvas[hidden] { display: none; }
.offcanvas__backdrop {
  position: absolute; inset: 0; background: rgba(22, 42, 67, .5);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s;
}
.offcanvas.is-open .offcanvas__backdrop { opacity: 1; }
.offcanvas__panel {
  position: absolute; top: .5rem; right: .5rem; bottom: .5rem; width: min(calc(100vw - 1rem), 400px);
  background: url("../img/siatka-granat.svg") center / cover no-repeat, var(--navy-ground);
  color: #fff; padding: 1.25rem 1.5rem 2rem; overflow-y: auto; border-radius: 24px;
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .5);
  transform: translateX(calc(100% + 1rem)); transition: transform .45s var(--ease);
  display: grid; align-content: start; gap: 1.75rem;
}
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__head { display: flex; align-items: center; justify-content: space-between; }
.offcanvas__head img { width: 150px; }
.offcanvas__close {
  background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 44px; height: 44px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s;
}
.offcanvas__close .icon { width: 1.3rem; height: 1.3rem; }
.offcanvas__close:hover { background: var(--orange); color: var(--navy-900); }

.mmenu { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.mmenu > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mmenu__row { display: flex; align-items: center; justify-content: space-between; }
.mmenu__row > a {
  flex: 1; display: block; padding: .95rem 0;
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em;
  color: #fff; text-decoration: none;
}
.mmenu__row > a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.mmenu__sub-toggle {
  background: rgba(255, 255, 255, .08); border: 0; color: #fff; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer; border-radius: 50%;
}
.mmenu__sub-toggle .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.mmenu__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mmenu__sub { list-style: none; margin: 0; padding: 0 0 .75rem; }
.mmenu__sub[hidden] { display: none; }
.mmenu__sub a {
  display: block; padding: .55rem 0 .55rem 1rem; color: #d8e1ec; text-decoration: none;
  font-family: var(--font-ui); font-size: .9375rem;
  border-left: 1px solid rgba(255, 255, 255, .18);
}
.mmenu__sub a:hover { color: #fff; border-left-color: var(--orange); }

.offcanvas__contacts { display: grid; gap: 1rem; }
.offcanvas__contacts p { margin: 0; display: grid; gap: .35rem; font-family: var(--font-ui); }
.offcanvas__contacts small { font-size: .75rem; letter-spacing: .01em; color: #c3cfdd; }
.offcanvas__contacts a { display: inline-flex; align-items: center; gap: .5em; color: #fff; text-decoration: none; font-size: 1.0625rem; }
.offcanvas__contacts a .icon { color: var(--orange-400); }
.offcanvas__contacts a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .25em; }

.nowrap { white-space: nowrap; }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--navy-900); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity .3s, transform .45s var(--ease), background .2s, color .2s, visibility 0s .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.to-top:hover { background: var(--orange); color: var(--navy-900); }
.to-top .icon { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------------------------
   Responsive (nagłówek, menu, przycisk do góry)
   -------------------------------------------------------------------------- */

@media (max-width: 1239px) {
  .main-nav.is-stuck .main-nav__brand { width: 0; margin: 0; opacity: 0; visibility: hidden; }
}

@media (max-width: 1180px) {
  .menu__link { padding: 0 .75rem; font-size: .875rem; }
  .has-sub .menu__link { padding-right: .2rem; }
  .menu__toggle { margin-right: .35rem; }
}

@media (max-width: 1024px) {
  .menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.is-stuck .main-nav__brand { width: 92px; margin: 0 .35rem 0 .75rem; opacity: 1; visibility: visible; }
  .main-nav__brand img { width: 92px; }
  .no-js .nav-toggle { display: none; }
  .no-js .menu { display: flex; flex-wrap: wrap; height: auto; }
  .no-js .main-nav__bar { height: auto; flex-wrap: wrap; border-radius: 24px; padding: .5rem; }
  .header-contact--serwis { display: none; }
}

@media (max-width: 767px) {
  .site-header__inner { padding: 1rem 0 calc(1rem + var(--nav-overlap)); gap: 1rem; }
  .header-contact { padding: 0; column-gap: .6rem; }
  .header-contact small, .header-contact__mail { display: none; }
  .header-contact { grid-template-rows: auto; }
  .header-contact__icon { grid-row: 1; }
  .header-contact__icon { width: 38px; height: 38px; }
  .header-contact__icon .icon { width: 1.1rem; height: 1.1rem; }
  .header-contact__phone { font-size: 1rem; }
  :root { --nav-h: 58px; }
  .main-nav__bar { padding: 0 .4rem 0 .35rem; }
  .nav-toggle { padding: 0 .9rem 0 .75rem; height: 44px; }
}

@media (max-width: 560px) {
  .main-nav.is-stuck .main-nav__brand { width: 80px; margin: 0 .1rem 0 .6rem; }
  .main-nav__brand img { width: 80px; }
  .main-nav.is-stuck .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .main-nav.is-stuck .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .to-top { right: 1rem; bottom: 1rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .btn--primary::before, .btn--navy { animation: none !important; }
  .btn--primary:hover, .btn--navy:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   WordPress: pasek admina, klasy rdzenia, strony bez bloku nagłówka, tekst z edytora
   (dodane w motywie; prototyp tych elementów nie miał)
   -------------------------------------------------------------------------- */

/* pigułka menu przykleja się pod paskiem admina zalogowanego redaktora */
.admin-bar .main-nav { top: calc(.75rem + 32px); }
@media (max-width: 782px) { .admin-bar .main-nav { top: calc(.75rem + 46px); } }
@media (max-width: 600px) { .admin-bar .main-nav { top: .75rem; } }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* prosty nagłówek strony bez bloku nagłówka (strony tekstowe, wpisy) */
.page-intro {
  background: var(--paper-2);
  padding: calc(var(--nav-overlap) + clamp(1.25rem, 2.2vw, 1.75rem)) 0 clamp(2rem, 4vw, 3rem);
}
.page-intro h1 { margin: 0; max-width: 22ch; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); }

/* tekst z edytora (akapity, nagłówki, listy, tabele) między blokami DTS */
.prose { padding-block: clamp(2.5rem, 5vw, 4rem); max-width: min(100% - 2 * var(--gutter), 800px); }
.site-main > .prose:first-child { padding-top: calc(var(--nav-overlap) + clamp(2.5rem, 5vw, 4rem)); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { font-size: 1.0625rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--navy); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-ui); font-weight: 500; color: var(--navy-900); border-bottom-color: var(--line-strong); }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.5rem 0; }
.prose .wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.entry + .entry { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.entry h2 { margin: 0 0 .35rem; }
.entry h2 a { text-decoration: none; color: var(--navy-900); }
.entry__meta { font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); }

/* 404 bez wskazanej strony: granatowy nagłówek wypełnia ekran do stopki */
.e404 { min-height: 60vh; display: grid; align-items: center; padding-bottom: calc(var(--nav-overlap) + 6rem); }
.e404 + * { margin-top: 0; }
