/* ==========================================================================
   PaloStop – arkusz stylów
   Kolory i typografia wg karty zmian: czerwień i czerń. Czcionki z rodziny Red Hat (licencja OFL):
   Display – nagłówki, Text – treść, Mono – dane techniczne (klasy EI, numery, etykiety sekcji).
   ========================================================================== */

@font-face {
  font-family: "Red Hat Display";
  src: url("/assets/fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("/assets/fonts/red-hat-display-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/assets/fonts/red-hat-text-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/assets/fonts/red-hat-text-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/assets/fonts/red-hat-mono-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Mono";
  src: url("/assets/fonts/red-hat-mono-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #B5291E;
  --red-dark: #971F15;
  --red-bright: #E0433A;   /* czerwień na ciemnym tle */
  --red-soft: #F9DAD7;
  --ink: #181818;
  --text: #363636;
  --muted: #666;
  --bg: #fff;
  --bg-alt: #F5F5F5;
  --header-bg: #F0F0F0;
  --footer-bg: #262626;
  --line: #E3E3E3;
  --font-head: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);  /* jedna krzywa ruchu dla całej strony */
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .07);
}
@media (min-width: 1100px) {
  :root { --header-h: 84px; }
}

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 16.5px/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; }
h1, h2, h3, h4, p, ul, ol, figure { margin-top: 0; }
p { text-wrap: pretty; }
strong { font-weight: 600; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.rounded { border-radius: var(--radius-lg); }

/* ---------- przyciski i linki ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 2px solid transparent; border-radius: 999px;
  font: 700 13px/1.1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 16px; height: 16px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12.5px/1.2 var(--font-head); letter-spacing: .07em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--back:hover .icon { transform: translateX(-3px); }

/* ---------- nagłówek i menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid #e0e0e0; transition: box-shadow .2s, background-color .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: 158px; }
.logo .logo-light { display: none; }
@media (min-width: 1100px) { .logo img { width: 200px; } }

/* przycisk menu: trzy kreski płynnie zamieniające się w „X” */
.nav-toggle {
  position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer;
  transition: background-color .3s, transform .15s;
}
.nav-toggle:active { transform: scale(.94); }
.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: top .3s ease, transform .3s ease, opacity .2s ease, width .3s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; width: 70%; }
.burger span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle { background: var(--red); }
.nav-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; width: 0; }
.nav-open .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.menu { list-style: none; margin: 0; padding: 0; }
.menu-item > a {
  display: block; text-decoration: none; color: var(--ink);
  font: 700 13px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}
.menu-item.is-active > a, .menu-cta > a, .menu-item > a:hover { color: var(--red); }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font: 500 14.5px/1.3 var(--font-head); }
.submenu a .icon { width: 20px; height: 20px; color: var(--red); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg-alt); color: var(--red); }
.sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle .icon { transition: transform .25s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-extra { display: none; }

/* przełącznik języka: globus + PL/EN – na desktopie obok menu, na mobile w panelu menu */
.lang-switch { display: flex; align-items: center; }
.lang-list { display: flex; list-style: none; margin: 0; padding: 0; }
.lang-link { display: block; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }

/* menu mobilne: ciemny panel na całą wysokość, pozycje wysuwają się po kolei */
@media (max-width: 1099.98px) {
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: #141414; border-color: #141414; box-shadow: none; }
  .nav-open .logo .logo-dark { display: none; }
  .nav-open .logo .logo-light { display: block; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 28px;
    padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain; color: #fff;
    background:
      radial-gradient(120% 55% at 100% 105%, rgba(181, 41, 30, .55), transparent 62%),
      repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
      #141414;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility 0s .3s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transition: opacity .3s ease; }

  .menu-item, .lang-switch, .nav-extra {
    opacity: 0; transform: translateY(16px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
  }
  .nav-open .menu-item, .nav-open .lang-switch, .nav-open .nav-extra {
    opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 45ms);
  }
  .menu-item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu-item > a {
    display: flex; align-items: center; gap: 12px; padding: 13px 0;
    color: #fff; font: 600 clamp(1.45rem, 6.6vw, 1.95rem)/1.15 var(--font-head); letter-spacing: -.01em; text-transform: none;
  }
  .menu-item > a:hover, .menu-item.is-active > a { color: #fff; }
  .menu-item.is-active > a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); }
  .menu-cta > a, .menu-cta > a:hover { color: var(--red-bright); }
  .sub-toggle { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; transition: background-color .2s, color .2s; }
  .sub-toggle[aria-expanded="true"] { background: #fff; color: var(--ink); }
  .submenu { grid-column: 1 / -1; display: none; gap: 2px; padding: 2px 0 16px; }
  .sub-open .submenu { display: grid; }
  .submenu a { padding: 10px 12px; border-radius: 8px; color: rgba(255, 255, 255, .86); font-size: 15px; }
  .submenu a .icon { color: var(--red-bright); }
  .submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255, 255, 255, .07); color: #fff; }

  .lang-switch { gap: 14px; margin-top: -8px; }
  .lang-icon { width: 22px; height: 22px; color: var(--red-bright); }
  .lang-list { gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; }
  .lang-link { padding: 10px 18px; color: rgba(255, 255, 255, .86); font: 600 15px/1 var(--font-head); }
  a.lang-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .lang-link.is-current { background: #fff; color: var(--ink); }
  .lang-code { display: none; }

  .nav-extra { display: grid; gap: 12px; margin-top: auto; }
  .nav-extra .btn { width: 100%; padding-block: 16px; }
  .nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-quick a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
    color: #fff; text-decoration: none; font: 600 14px/1 var(--font-head);
  }
  .nav-quick a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav-quick .icon { width: 18px; height: 18px; color: var(--red-bright); }
  .nav-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
  .nav-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .nav-meta .icon { width: 15px; height: 15px; }
  .main-nav :focus-visible { outline-color: #fff; }
}
/* menu desktopowe */
@media (min-width: 1100px) {
  .nav-toggle, .sub-toggle { display: none; }
  .main-nav { display: flex; align-items: center; }
  .menu { display: flex; align-items: center; }
  .menu-item { position: relative; }
  .menu-item + .menu-item { border-left: 1px solid #cfcfcf; }
  .menu-item > a { padding: 9px 12px; font-size: 12.5px; }
  .submenu {
    position: absolute; top: calc(100% + 18px); left: -8px; width: 340px; padding: 10px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }

  /* przełącznik języka na desktopie: globus + kod drugiego języka; klikalny cały (link rozciągnięty na globus) */
  .lang-switch { position: relative; gap: 7px; padding-left: 13px; border-left: 1px solid #cfcfcf; color: var(--muted); transition: color .2s; }
  .lang-switch:hover { color: var(--red); }
  .lang-icon { width: 17px; height: 17px; }
  .lang-link { padding: 9px 0; color: var(--ink); font: 700 12.5px/1 var(--font-head); letter-spacing: .12em; }
  .lang-link.is-current { display: none; }
  a.lang-link::after { content: ""; position: absolute; inset: 0; }
  a.lang-link:hover, .lang-switch:hover a.lang-link { color: var(--red); }
  .lang-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1239.98px) {
  .menu-item > a { padding-inline: 9px; letter-spacing: .09em; }
  .lang-switch { padding-left: 9px; }
  .lang-link { letter-spacing: .09em; }
}

/* ---------- baner strony głównej ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(480px, 74vh, 700px); background: #111; color: #fff; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, .86) 0%, rgba(10, 10, 10, .6) 48%, rgba(10, 10, 10, .28) 100%); }
.hero-inner { padding-block: 72px; }
.hero-title { margin: 0; color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -.01em; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .92); line-height: 1.3; }
.hero-kicker::before { content: ""; width: 32px; height: 3px; background: var(--red-bright); flex: none; }
.hero-line { display: block; }
.hero-line--red { color: var(--red-bright); }
.hero-lead { max-width: 580px; margin: 24px 0 32px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- pasek zaufania pod banerem: liczby + przewijane marki z certyfikatów ---------- */
.trust { background: #111; color: #cfcfcf; border-top: 3px solid var(--red); }
.trust-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.trust-stats li { display: grid; align-content: start; gap: 8px; padding: 26px 20px 24px 0; }
.trust-stats li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) {
  .trust-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-stats li { padding: 32px 28px 30px; border-left: 1px solid rgba(255, 255, 255, .1); }
  .trust-stats li:first-child { padding-left: 0; border-left: 0; }
  .trust-stats li:nth-child(even) { padding-left: 28px; }
}
.trust-stats strong { font: 600 clamp(1.8rem, 2.8vw, 2.4rem)/1 var(--font-mono); letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.trust-stats span { max-width: 30ch; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .66); }
.trust-brands { display: grid; gap: 12px 24px; align-items: center; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .trust-brands { grid-template-columns: auto minmax(0, 1fr) auto; } }
.trust-label { margin: 0; font: 500 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.trust-more { color: var(--red-bright); font: 500 13px/1.2 var(--font-mono); letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.trust-more:hover { color: #fff; }
.marquee--brands .marquee-track { animation-duration: 28s; }
.marquee--brands .marquee-track li { display: flex; align-items: center; gap: 9px; margin-right: clamp(28px, 4vw, 44px); white-space: nowrap; font: 700 15px/1 var(--font-head); color: rgba(255, 255, 255, .9); }
.marquee--brands .icon { width: 17px; height: 17px; color: var(--red-bright); }

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(44px, 5vw, 68px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 48px; } }
/* etykieta sekcji: czerwona kreska + numer + nazwa (jak nadtytuł w banerze) */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 500 12.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.kicker::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--red); }
.kicker b { font-weight: 600; color: var(--red); }
.section-title { margin: 0; font-size: clamp(2rem, 3.7vw, 3rem); font-weight: 700; line-height: 1.06; letter-spacing: -.024em; }
.section-title .accent { color: var(--red); }
.section-intro { margin: 0; max-width: 52ch; font-size: 1.06rem; color: #555; }
.section-intro--wide { max-width: 74ch; }
.section-more { margin: 44px 0 0; text-align: center; }

/* ---------- kafelki usług ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tiles { gap: 20px; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%;
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: #222; color: #fff; text-decoration: none;
}
@media (min-width: 640px) { .tile { aspect-ratio: 16 / 10; } }
@media (min-width: 1100px) { .tile { aspect-ratio: 3 / 4; } }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .3) 35%, rgba(0, 0, 0, .88) 100%); transition: background-color .3s; }
.tile-icon { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; color: #fff; }
.tile-icon .icon { width: 100%; height: 100%; stroke-width: 1.4; }
.tile-title { padding: 0 52px 18px 16px; font: 600 clamp(.95rem, 1.4vw, 1.08rem)/1.25 var(--font-head); color: #fff; text-wrap: balance; }
.tile-arrow { position: absolute; right: 12px; bottom: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255, 255, 255, .14); transition: background-color .2s; }
.tile-arrow .icon { width: 18px; height: 18px; }
.tile:hover { color: #fff; }
.tile:hover .tile-img { transform: scale(1.06); }
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow { background: var(--red); }
/* po najechaniu: czerwona linia u dołu i strzałka obrócona w prawo */
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { transform: none; }
.tile-arrow .icon { transition: transform .3s var(--ease); }
.tile:hover .tile-arrow .icon, .tile:focus-visible .tile-arrow .icon { transform: rotate(45deg); }
/* wąski kafelek (telefony): strzałka w prawym górnym rogu, żeby długie słowa nie wchodziły pod nią */
.tile { container-type: inline-size; }
@container (max-width: 200px) {
  .tile-title { padding: 0 14px 14px; hyphens: auto; }
  .tile-arrow { top: 12px; right: 12px; bottom: auto; width: 30px; height: 30px; }
}

/* ---------- współpraca: pasek logotypów ---------- */
.partners-title { margin: 0 0 30px; text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 32s linear infinite; }
.marquee-track li { margin-right: clamp(40px, 6vw, 72px); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner-logo { height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner-logo:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 28px 48px; padding-inline: var(--gutter); }
  .marquee-track li { margin: 0; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee--brands .marquee-track { justify-content: flex-start; gap: 10px 28px; padding-inline: 0; }
  .marquee--brands .marquee-track li { margin: 0; }
}

/* ---------- tekst + zdjęcie ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.2fr .8fr; }
  .split--media-first { grid-template-columns: .8fr 1.2fr; }
}
.split-media img { width: 100%; }
@media (max-width: 899.98px) {
  .split-media img { max-height: 420px; object-fit: cover; object-position: center 25%; }
}

.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose h2:not(.section-title) { margin: 1.9em 0 .6em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.2rem; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--ink); }
.split-text .section-title { margin-bottom: 24px; }
.tagline { padding-left: 14px; border-left: 3px solid var(--red); color: var(--ink); font: 600 1.1rem/1.4 var(--font-head); }

/* ---------- gdzie wykonujemy: karty typów obiektów ---------- */
.objs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.obj { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.obj-media { position: relative; background: #e9e9e9; }
.obj-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.obj-icon {
  position: absolute; left: 18px; bottom: -24px; display: grid; place-items: center; width: 50px; height: 50px;
  border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 0 0 4px #fff;
}
.obj-icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.obj-body { padding: 40px 20px 22px; }
.obj h3 { margin: 0 0 12px; font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.obj .dash-list li { margin-bottom: 4px; font-size: 15px; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { position: relative; margin-bottom: 6px; padding-left: 18px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 2px; background: var(--red); }

/* ---------- karty (realizacje, blog) ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 700px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section--alt .card { border-color: transparent; }
.card-media { display: block; background: #e9e9e9; }  /* szare tło, zanim wczyta się zdjęcie */
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 24px; }
.card-body p { margin: 0; }
.card-type { font: 700 11.5px/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.card-title { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-address { display: flex; gap: 8px; align-items: flex-start; margin-top: auto !important; font-size: 14px; color: var(--muted); }
.card-address .icon { margin-top: 2px; color: var(--red); width: 18px; height: 18px; }
.card-meta { font-size: 13px; color: var(--muted); }
.card--post .link-arrow { margin-top: auto; }

/* ---------- realizacje na stronie głównej: jedna wyróżniona + dwie mniejsze ---------- */
.feat { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) {
  .feat { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
  .feat-main { grid-row: 1 / 3; }
}
.feat-type { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.feat-title { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.feat-addr { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--muted); }
.feat-addr .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--red); }
.feat-main {
  position: relative; display: flex; align-items: flex-end; min-height: 460px; height: 100%;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: #222; color: #fff;
}
.feat-main img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.feat-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .86) 100%); }
.feat-main .feat-body { display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); }
.feat-main .feat-type { color: #FF8F87; }
.feat-main .feat-title { max-width: 34ch; font-size: clamp(1.3rem, 2.2vw, 1.65rem); color: #fff; }
.feat-main .feat-addr { color: rgba(255, 255, 255, .8); }
.feat-main .feat-addr .icon { color: var(--red-bright); }
.feat-side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; background: #fff; border-radius: var(--radius-lg); }
.feat-side img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; background: #e9e9e9; }
.feat-side .feat-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; }
.feat-side .feat-addr { margin-top: auto; }

/* ---------- standardy: pełny tekst w czytelnym układzie ---------- */
.std-meta { display: block; font: 500 12px/1.2 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
.std-lead { display: grid; gap: 0 48px; margin: 28px 0; }
@media (min-width: 900px) { .std-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.std-lead p { max-width: 62ch; margin: 0 0 1em; font-size: 17px; }
:is(.std-lead, .std-card) strong { color: var(--ink); }
.std-doc {
  display: grid; gap: 24px 56px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); color: #cfcfcf;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 10px),
    radial-gradient(120% 90% at 100% 0%, rgba(181, 41, 30, .38), transparent 60%),
    #151515;
}
.std-doc p { max-width: 60ch; margin: 14px 0 0; }
.std-doc-b p { margin-top: 0; }
.std-doc strong { color: #fff; }
.std-doc .std-meta { color: #FF8F87; }
/* kolejność w kodzie jak w tekście (zdanie → lista → zdanie); na szerokim ekranie lista w prawej kolumnie */
@media (min-width: 900px) {
  .std-doc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "a list" "b list"; align-items: start; }
  .std-doc-a { grid-area: a; align-self: end; }
  .std-doc-b { grid-area: b; }
  .std-doc .doc-list { grid-area: list; align-self: center; }
}
.doc-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.doc-list li {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .04);
  color: #fff; font: 600 16px/1.35 var(--font-head);
}
.doc-list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--red); color: #fff; stroke-width: 2.4; }
.std-cols { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .std-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.std-card { padding: clamp(24px, 3vw, 36px); background: var(--bg-alt); border-radius: var(--radius-lg); }
.std-card h3 { margin: 10px 0 16px; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.std-card p { margin: 0 0 1em; }
.std-card p:last-child { margin-bottom: 0; }
.std-card .dash-list { margin: 0 0 1em; }

/* ---------- O nas ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { display: flex; gap: 18px; padding: 26px 24px; background: #fff; border-radius: var(--radius); }
.feature-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 10px; background: var(--ink); color: #fff; }
.feature-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.feature h3 { margin: 10px 0 10px; font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin: 0 0 .7em; font-size: 15.5px; }
.feature p:last-child { margin-bottom: 0; }

.standards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 820px) { .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.standard { padding: 28px 26px; border-top: 3px solid var(--red); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius); }
.standard-num { display: block; margin-bottom: 10px; font: 800 2.4rem/1 var(--font-head); color: var(--red); }
.standard h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; }
.standard p { margin: 0; }

.objects { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.object { padding: 30px 24px; background: #fff; border-radius: var(--radius); }
.object-icon { width: 56px; height: 56px; margin-bottom: 18px; color: var(--ink); stroke-width: 1.2; }
.object h3 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 600; }

/* ---------- baner podstron ---------- */
.page-banner {
  position: relative; color: #fff; padding-block: clamp(48px, 7vw, 90px);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
    linear-gradient(110deg, #141414 0%, #1d1d1d 48%, #4a120d 74%, var(--red) 100%);
}
.page-banner h1 { max-width: 24ch; margin: 14px 0 0; color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
.page-lead { max-width: 62ch; margin: 16px 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .84); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.page-banner--post h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.post-meta { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.page-banner--error .error-code { margin: 0; font: 800 clamp(4rem, 12vw, 7rem)/1 var(--font-head); color: rgba(255, 255, 255, .2); }
.page-banner-inner { position: relative; z-index: 1; }
/* baner ze zdjęciem (podstrony usług): kreskowanie jak przekrój przegrody, zdjęcie z ukośną krawędzią */
.page-banner--media {
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 9px), #141414;
}
.page-banner--media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 4px; background: var(--red); }
.page-banner--media h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.025em; }
.page-banner-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; font: 500 12.5px/1.2 var(--font-mono); letter-spacing: .05em; color: #fff; text-decoration: none; }
.chip b { font-weight: 600; color: #FF8F87; }
a.chip:hover { border-color: #fff; color: #fff; }
.page-banner-media { margin: 32px 0 calc(-1 * clamp(48px, 7vw, 90px)); background: #222; }
.page-banner-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) {
  .page-banner--media .page-banner-text { max-width: min(580px, calc(56vw - var(--gutter) - 48px)); }
  .page-banner-media { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; margin: 0; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .page-banner-media img { height: 100%; aspect-ratio: auto; }
}

/* ---------- podstrona usługi ---------- */
.with-sidebar { display: grid; gap: 48px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1000px) {
  /* kolumna boczna na całą wysokość treści; przyklejona jest tylko ramka kontaktowa – cała kolumna
     jest wyższa niż ekran laptopa i jej dół (telefony) byłby niewidoczny */
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .sidebar .side-box--dark { position: sticky; top: calc(var(--header-h) + 24px); }
}
.side-box { padding: 22px; background: var(--bg-alt); border-radius: var(--radius); }
.side-title { margin: 0 0 12px; font: 700 1.05rem/1.3 var(--font-head); color: var(--ink); }
.side-text { margin: 0; font-size: 14.5px; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font: 500 14.5px/1.3 var(--font-head); }
.side-nav .icon { width: 20px; height: 20px; color: var(--red); }
.side-nav a:hover { background: #fff; color: var(--red); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.side-nav a[aria-current="page"] .icon { color: var(--red-bright); }
.side-nav--grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.side-nav--grid a { background: var(--bg-alt); }
.side-box--dark { background: var(--ink); color: #d6d6d6; }
.side-box--dark .side-title { color: #fff; }

/* godziny pracy + status na żywo */
.hours { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .06); }
.hours-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; }
.hours-icon .icon { width: 20px; height: 20px; }
.hours-days { display: block; font: 600 11.5px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hours-time { display: block; margin-top: 3px; font: 700 1.45rem/1.1 var(--font-head); letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }
.hours-status { display: grid; gap: 3px; margin: 12px 0 0; }
.hours-status[hidden] { display: none; }
.hours-status-label { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1.3 var(--font-head); color: #fff; }
.hours-status-label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9A9A9A; }
.hours-status.is-open .hours-status-label::before { background: #3CCB7F; box-shadow: 0 0 0 4px rgba(60, 203, 127, .22); }
.hours-status-note { padding-left: 16px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .68); }
.hours-status--light { justify-items: center; text-align: center; }
.hours-status--light .hours-status-label { color: var(--ink); }
.hours-status--light .hours-status-note { padding-left: 0; color: var(--muted); }
.side-people { display: grid; gap: 14px; list-style: none; margin: 16px 0 20px; padding: 0; }
.side-people li { display: grid; gap: 4px; }
.side-people strong { color: #fff; }
.side-people a { display: inline-flex; align-items: center; gap: 8px; color: #e5e5e5; text-decoration: none; font-size: 14.5px; }
.side-people a:hover { color: #fff; text-decoration: underline; }
.side-people .icon { width: 16px; height: 16px; color: var(--red-bright); }

/* ==========================================================================
   Infografika klasy EI – interaktywna symulacja badania (layout/partials/ei-diagram.php, skrypt w main.js).
   Ciemna karta jak piec badawczy. Stan rysunku ustawia skrypt zmiennymi na .eix:
   --tt (czas 0–1), --TT (temperatura / 1200 °C), --heat (0–1, rozgrzanie pieca), --cls (wybrana klasa, min).
   Bez skryptu zostają wartości z HTML – stan końcowy badania.
   ========================================================================== */
.eix {
  --eix-bg: #141414;
  --eix-line: rgba(255, 255, 255, .09);
  --eix-text: #EDEDED;
  --eix-dim: rgba(255, 255, 255, .64);
  --eix-faint: rgba(255, 255, 255, .44);
  --eix-hot: #FF6A4D;
  --eix-ok: #52C98E;
  /* widoczny fragment rysunku przekroju (jednostki viewBox 640 × 280) */
  --vx: 0; --vy: 0; --vw: 640; --vh: 280;
  container: eix / inline-size;
  position: relative;
  margin: 30px 0 34px;
  padding: clamp(14px, 3vw, 24px);
  border-radius: var(--radius-lg);
  background: radial-gradient(110% 60% at 0% 0%, rgba(224, 67, 58, .13), transparent 60%), var(--eix-bg);
  color: var(--eix-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 26px 50px -30px rgba(0, 0, 0, .6);
}
.eix p { margin: 0; }
.eix [hidden] { display: none !important; }
.eix :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* nagłówek: tytuł przekroju + wybór klasy */
.eix-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.eix-title { display: flex; align-items: center; gap: 9px; font: 600 11.5px/1.35 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--eix-dim); }
.eix-top .eix-title::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--eix-hot); box-shadow: 0 0 10px var(--eix-hot); }
.eix.is-playing .eix-top .eix-title::before { animation: eix-live .8s ease-in-out infinite alternate; }
@keyframes eix-live { to { opacity: .25; box-shadow: none; } }
.eix-classes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--eix-line); }
.eix-classes button {
  padding: 8px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--eix-dim);
  font: 600 12px/1 var(--font-mono); letter-spacing: .03em; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.eix-classes button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.eix-classes button[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(224, 67, 58, .9); }

/* ---------- przekrój ----------
   Napisy części rysunku (.eix-parts) leżą nad przekrojem; na wąskim ekranie schodzą pod niego jako lista z numerami. */
.eix-stage { position: relative; }
.eix-scene { position: relative; overflow: hidden; aspect-ratio: 640 / 280; border-radius: 10px; background: #171310; box-shadow: inset 0 0 0 1px var(--eix-line); }
.eix-scene-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.eix-labels, .eix-parts { position: absolute; inset: 0; pointer-events: none; }
.eix .eix-parts { margin: 0; padding: 0; list-style: none; }
.eix .eix-parts li { margin: 0; }
.eix-pin { display: none; }
.eix-l {
  position: absolute; left: calc((var(--x) - var(--vx)) / var(--vw) * 100%); top: calc((var(--y) - var(--vy)) / var(--vh) * 100%);
  transform: translateY(-50%); white-space: nowrap;
  font: 500 12.5px/1.25 var(--font-body); color: #EDEDED; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.eix-l--c { transform: translate(-50%, -50%); text-align: center; }
.eix-l--red { color: #FF8a7a; font-weight: 600; }
.eix-l--zone { transform: none; font: 700 10.5px/1.35 var(--font-head); letter-spacing: .12em; }
.eix-l--zone.eix-l--r { transform: translateX(-100%); text-align: right; }
.eix-l--fire { color: #FFB8A0; }
.eix-l--cool { color: #A8BACA; }
.eix-l small { display: block; margin-top: 3px; font: 600 10.5px/1.2 var(--font-mono); color: var(--eix-faint); transition: color .3s; }
.eix.is-ok .eix-l small { color: var(--eix-ok); }
.eix.is-ok .eix-l small::before { content: "✓\00a0"; }
.eix-l--wall { width: calc(90 / var(--vw) * 100%); transform: translate(-50%, -100%); white-space: normal; text-align: center; font: 700 10px/1.25 var(--font-head); letter-spacing: .12em; color: #514942; text-shadow: none; }

/* piec */
.eix-heat { opacity: var(--heat); }
.eix-glow { animation: eix-glow 2.6s ease-in-out infinite alternate; }
@keyframes eix-glow { from { opacity: .8; } to { opacity: 1; } }
.eix-fire { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(calc(.05 + .95 * var(--heat))); opacity: min(1, calc(var(--heat) * 2.5)); }
.eix-flick { transform-box: fill-box; transform-origin: 50% 100%; animation: eix-flick var(--fd) ease-in-out var(--fo) infinite; }
@keyframes eix-flick {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  22% { transform: scale(.95, 1.08) skewX(-2.5deg); }
  48% { transform: scale(1.04, .92) skewX(1.5deg); }
  74% { transform: scale(.97, 1.05) skewX(-1deg); }
}
.eix-sparks { opacity: min(1, calc(var(--heat) * 1.6)); }
.eix-sparks circle { fill: #FFD27A; transform-box: fill-box; animation: eix-spark var(--sd) linear var(--so) infinite; }
@keyframes eix-spark {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 1; }
  75% { opacity: .7; }
  100% { transform: translate(var(--dx), -200px); opacity: 0; }
}
.eix-flow { opacity: var(--heat); }
.eix-flow-move { fill: none; stroke: #FFC07A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: eix-flow 1.2s linear infinite; }
@keyframes eix-flow { to { transform: translateX(24px); } }

/* przegroda */
.eix-face { fill: none; stroke: #8F8780; stroke-width: 1; }
.eix-wallheat { opacity: min(1, calc(var(--heat) * 1.3)); pointer-events: none; }
.eix-char { fill: #1E0D0A; opacity: .9; }
.eix-sealheat { opacity: calc(var(--heat) * .5); }
.eix-pipeheat { opacity: var(--heat); }
.eix[data-variant="dylatacja"] .eix-wall-top { animation: eix-move 4.8s ease-in-out infinite; }
.eix[data-variant="dylatacja"] .eix-joint { transform-box: fill-box; transform-origin: 50% 100%; animation: eix-joint 4.8s ease-in-out infinite; }
@keyframes eix-move { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes eix-joint { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.107); } }
.eix-move { fill: none; stroke: #2B2622; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* pomiar temperatury i odnośniki */
.eix-probe-body { fill: #F6F6F4; stroke: #0E0E0E; stroke-width: 1.3; }
.eix-probe-dot { fill: #111; }
.eix-probe-pulse { fill: none; stroke: var(--eix-ok); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.eix.is-playing .eix-probe-pulse, .eix[data-focus="i"] .eix-probe-pulse { animation: eix-pulse 1.8s var(--ease) infinite; }
@keyframes eix-pulse { from { transform: scale(1); opacity: .95; } to { transform: scale(2.8); opacity: 0; } }
.eix-lead-halo { fill: none; stroke: rgba(12, 12, 12, .5); stroke-width: 3; stroke-linejoin: round; }
.eix-lead { fill: none; stroke: #F1F1F1; stroke-width: 1; stroke-linejoin: round; }
.eix-lead-dot { fill: #fff; stroke: rgba(12, 12, 12, .6); stroke-width: 1.2; }

/* ---------- odczyty i przycisk ---------- */
.eix-player { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 0 20px; }
.eix-play {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(224, 67, 58, .9);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.eix-play:hover { background: var(--red-bright); transform: scale(1.06); }
.eix-play:active { transform: scale(.96); }
.eix-play svg { width: 20px; height: 20px; fill: currentColor; }
.eix-play path { display: none; }
.eix-play[data-state="play"] .eix-i-play, .eix-play[data-state="pause"] .eix-i-pause, .eix-play[data-state="replay"] .eix-i-replay { display: block; }
.eix-ro { display: grid; gap: 4px; }
.eix-ro-l { font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--eix-faint); }
.eix-ro-v { font: 500 13px/1 var(--font-mono); color: var(--eix-dim); white-space: nowrap; }
.eix-ro-v b { font: 600 27px/1 var(--font-mono); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.eix-ro-v .z { color: rgba(255, 255, 255, .2); }
.eix-ro--hot .eix-ro-v b { color: color-mix(in srgb, #FF7A4D calc(var(--heat) * 100%), #fff); }
.eix-result {
  display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 6px 12px 6px 6px; border-radius: 8px;
  background: rgba(82, 201, 142, .1); box-shadow: inset 0 0 0 1px rgba(82, 201, 142, .35);
  font: 500 13px/1.2 var(--font-body); color: #C4EDD7;
}
.eix-result b { white-space: nowrap; padding: 6px 8px; border-radius: 5px; background: var(--eix-ok); color: #0D2A1B; font: 700 13px/1 var(--font-mono); }
.eix-result span::before { content: "✓\00a0"; font-weight: 700; color: var(--eix-ok); }
.eix-result.is-pop { animation: eix-pop .55s var(--ease) both; }
@keyframes eix-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }

/* ---------- wykres ---------- */
.eix-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; padding-top: 18px; border-top: 1px solid var(--eix-line); }
.eix-hint { display: inline-flex; align-items: center; gap: 7px; font: 500 11px/1.2 var(--font-mono); color: var(--eix-faint); }
.eix-hint::before { content: "↔"; font-size: 14px; color: var(--eix-hot); }
.eix-chart { position: relative; height: 236px; }
.eix-plot { position: absolute; inset: 34px 16px 36px 46px; }
.eix-axes, .eix-band, .eix-curve-svg { position: absolute; inset: 0; }
.eix-curve-svg { width: 100%; height: 100%; overflow: visible; }
.eix-gl { position: absolute; left: 0; right: 0; top: calc((1 - var(--v) / 1200) * 100%); border-top: 1px solid rgba(255, 255, 255, .07); }
.eix-gl--base { border-top-color: rgba(255, 255, 255, .26); }
.eix-gl i { position: absolute; right: calc(100% + 10px); top: 0; transform: translateY(-50%); font: 500 10.5px/1 var(--font-mono); font-style: normal; color: var(--eix-faint); }
.eix-unit-y { position: absolute; right: calc(100% + 10px); top: -26px; font: 500 10.5px/1 var(--font-mono); color: var(--eix-faint); }
.eix-xt { position: absolute; top: calc(100% + 9px); left: calc(var(--t) / 240 * 100%); transform: translateX(-50%); font: 500 10.5px/1 var(--font-mono); color: var(--eix-faint); }
.eix-unit-x { position: absolute; right: 0; top: calc(100% + 24px); font: 500 10.5px/1 var(--font-mono); color: rgba(255, 255, 255, .34); }
.eix-band { right: auto; width: calc(var(--cls) / 240 * 100%); background: linear-gradient(90deg, rgba(224, 67, 58, 0), rgba(224, 67, 58, .14)); border-right: 1px dashed rgba(255, 130, 100, .55); transition: width .7s var(--ease); }
.eix-ghost { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.eix-curve { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eix-curve-glow { fill: none; stroke: #FF5A3C; stroke-opacity: .2; stroke-width: 10; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* znaczniki klas: kropka na krzywej, linia do osi, napisy */
.eix-mark, .eix-drop { position: absolute; left: calc(var(--t) / 240 * 100%); top: calc((1 - var(--T) / 1200) * 100%); }
.eix-drop { bottom: 0; border-left: 1px dashed rgba(255, 130, 100, .55); opacity: 0; transition: opacity .4s var(--ease); }
.eix-drop.is-hit { opacity: 1; }
.eix-mark { width: 0; height: 0; }
.eix-mark i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; }
.eix-mark-dot { background: var(--eix-bg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background-color .3s, box-shadow .3s; }
.eix-mark.is-hit .eix-mark-dot { background: #FF5A3C; box-shadow: 0 0 0 2px var(--eix-bg), 0 0 14px rgba(255, 90, 60, .9); }
.eix-mark-ring { border: 2px solid #FF7A5C; opacity: 0; }
.eix-mark.is-burst .eix-mark-ring { animation: eix-burst .9s var(--ease); }
@keyframes eix-burst { from { transform: scale(1); opacity: 1; } to { transform: scale(4.5); opacity: 0; } }
.eix-mark-cls {
  position: absolute; z-index: 3; left: 0; bottom: 12px; transform: translateX(-50%); padding: 4px 6px; border-radius: 4px; background: rgba(20, 20, 20, .82);
  font: 700 12px/1 var(--font-mono); color: rgba(255, 255, 255, .38); white-space: nowrap; transition: color .3s, background-color .3s;
}
.eix-mark.is-hit .eix-mark-cls { color: #fff; }
.eix-mark.is-sel .eix-mark-cls { background: var(--red); color: #fff; }
.eix-mark-temp {
  position: absolute; left: 10px; top: 10px; font: 500 11px/1 var(--font-mono); color: #FFA88E; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.eix-mark.is-hit .eix-mark-temp { opacity: 1; transform: none; }
.eix-mark--end .eix-mark-cls { transform: translateX(calc(-100% + 8px)); }
.eix-mark--end .eix-mark-temp { left: auto; right: 10px; }

/* kursor czasu i suwak (cały wykres) */
.eix-cursor { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--tt) * 100%); width: 0; pointer-events: none; }
.eix-cursor::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; border-left: 1px solid rgba(255, 255, 255, .32); }
.eix-dot {
  position: absolute; left: -7px; top: calc((1 - var(--TT)) * 100% - 7px); width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px #FF5A3C, 0 0 24px 5px rgba(255, 110, 60, .7);
}
.eix-scrub { position: absolute; z-index: 4; inset: -34px -16px -36px -46px; cursor: ew-resize; touch-action: pan-y; border-radius: 8px; }
.eix-scrub:focus-visible { outline-offset: -2px; }

/* ---------- karty E / I / czas ---------- */
.eix-legend { display: grid; gap: 10px; margin: 20px 0 0; }
@container eix (min-width: 600px) { .eix-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eix-card {
  position: relative; padding: 16px 16px 18px; border-radius: 10px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--eix-line);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.eix-card dt { display: grid; justify-items: start; gap: 9px; margin: 0 0 7px; font: 700 15px/1.3 var(--font-head); color: #fff; }
.eix-letter { font: 800 1.9rem/.9 var(--font-head); letter-spacing: -.01em; color: #FF5A47; white-space: nowrap; }
.eix-card dd { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
/* stan kryterium w rogu karty: E i I – ile minut spełnione, czas – wybrana klasa */
.eix-card .eix-st {
  position: absolute; top: 15px; right: 14px; padding: 4px 8px; border-radius: 999px;
  background: rgba(82, 201, 142, .12); box-shadow: inset 0 0 0 1px rgba(82, 201, 142, .32);
  font: 500 11px/1.2 var(--font-mono); color: var(--eix-ok); white-space: nowrap; transition: opacity .3s var(--ease);
}
.eix-card .eix-st b { font-weight: 700; font-variant-numeric: tabular-nums; }
.eix-st:not(.eix-st--cls)::before { content: "✓\00a0"; font-weight: 700; }
.eix:not(.is-ok) .eix-st:not(.eix-st--cls) { opacity: 0; }
.eix-card .eix-st--cls { background: rgba(224, 67, 58, .16); box-shadow: inset 0 0 0 1px rgba(224, 67, 58, .5); color: #FFA28E; font-weight: 700; }
.eix figcaption { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .48); }

/* podświetlenie po najechaniu na kartę: w rysunku zostaje to, czego dotyczy kryterium */
.eix .k { transition: opacity .35s var(--ease); }
.eix[data-focus] .k { opacity: .2; }
.eix[data-focus="e"] .k-e, .eix[data-focus="i"] .k-i, .eix[data-focus="t"] .k-t { opacity: 1; }
.eix[data-focus="e"] .eix-joint { filter: drop-shadow(0 0 6px rgba(255, 90, 60, .95)); }
.eix[data-focus] .eix-card { opacity: .45; }
.eix[data-focus="e"] [data-k="e"], .eix[data-focus="i"] [data-k="i"], .eix[data-focus="t"] [data-k="t"] {
  opacity: 1; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 106, 77, .65);
}
.eix-card { cursor: default; }

/* poza ekranem animacje stoją */
.eix.is-off :is(.eix-glow, .eix-flick, .eix-sparks circle, .eix-flow-move, .eix-wall-top, .eix-joint, .eix-probe-pulse) { animation-play-state: paused; }

/* ---------- wąska karta (telefon): przekrój przycięty do środka, opisy pod rysunkiem ----------
   W rysunku zostają odnośniki, a na ich końcach (na ciemnym polu obok przegrody) numery z listy opisów. */
@container eix (max-width: 560px) {
  .eix-top { flex-direction: column; align-items: stretch; }
  .eix-classes { display: grid; grid-template-columns: repeat(3, 1fr); }
  .eix-scene { aspect-ratio: 340 / 280; --vx: 150; --vw: 340; }
  .eix-l--zone { left: calc((var(--cx, var(--x)) - var(--vx)) / var(--vw) * 100%); max-width: 9em; white-space: normal; font-size: 8.5px; }
  .eix-l--fire { max-width: 6.5em; }
  .eix-l--cool { max-width: none; }
  .eix-l--wall { font-size: 8.5px; letter-spacing: .08em; }
  .eix-flow { display: none; }
  .eix-pin {
    position: absolute; left: calc((var(--x) - var(--vx)) / var(--vw) * 100%); top: calc((var(--y) - var(--vy)) / var(--vh) * 100%);
    display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
    background: #fff; color: #141414; box-shadow: 0 2px 8px rgba(0, 0, 0, .55);
    font: 700 11px/1 var(--font-mono); font-style: normal;
  }
  .eix .eix-parts { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin-top: 12px; }
  .eix-parts .eix-l { position: static; display: flex; align-items: flex-start; gap: 8px; transform: none; white-space: normal; text-align: left; font-size: 12.5px; text-shadow: none; }
  .eix-parts .eix-l::before {
    content: attr(data-n); flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: -2px; border-radius: 50%;
    background: #fff; color: #141414; font: 700 11px/1 var(--font-mono);
  }
  .eix-parts br { display: none; }
  .eix-player { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px 14px; }
  .eix-ro-l { min-height: 2.4em; display: flex; align-items: flex-end; }
  .eix-ro-v b { font-size: 22px; }
  .eix-result { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
  .eix-chart { height: 214px; }
  .eix-plot { inset: 34px 12px 36px 38px; }
  .eix-scrub { inset: -34px -12px -36px -38px; }
  .eix-mark-temp { display: none; }  /* temperaturę pokazuje odczyt nad wykresem */
}

@media (prefers-reduced-motion: reduce) {
  .eix *, .eix *::before, .eix *::after { animation: none !important; transition: none !important; }
}

/* ---------- zdjęcia i galeria ---------- */
.photo-strip { margin-top: 48px; }
.photo-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 20px; margin-bottom: 16px; }
.photo-strip-head h2 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #e5e5e5; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo:hover img { transform: scale(1.05); }
.photo-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .2s; }
.photo-zoom .icon { width: 18px; height: 18px; }
.photo:hover .photo-zoom, .photo:focus-visible .photo-zoom { opacity: 1; }
@media (hover: none) { .photo-zoom { opacity: 1; } }

.gallery-filter {
  position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px;
  margin: -10px 0 36px; padding: 12px 0; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gallery-filter[hidden] { display: none; }
.gallery-filter button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px/1.2 var(--font-head); cursor: pointer; }
.gallery-filter button span { margin-left: 4px; color: var(--muted); font-weight: 500; }
.gallery-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-filter button[aria-pressed="true"] span { color: #bdbdbd; }
.gallery-zone[hidden] { display: none; }
.gallery-zone + .gallery-zone { margin-top: 64px; }
.gallery-zone-title { margin: 0 0 26px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.gallery-zone-title span { margin-left: 8px; font: 500 14px var(--font-body); color: var(--muted); }
.gallery-cat { scroll-margin-top: calc(var(--header-h) + 80px); }
.gallery-cat + .gallery-cat { margin-top: 44px; }
.gallery-cat-head { display: grid; gap: 6px; max-width: 80ch; margin-bottom: 16px; }
.gallery-cat-head h3 { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.gallery-cat-head p { margin: 0; color: var(--muted); }
.gallery-cat-head .link-arrow { justify-self: start; margin-top: 4px; }
@media (min-width: 1100px) { .gallery-cat .photo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- certyfikaty ---------- */
.certs-intro { margin-bottom: 40px; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cert { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cert--top { border-color: var(--red); box-shadow: inset 0 3px 0 var(--red); }
.cert-img { position: relative; display: block; aspect-ratio: 3 / 4; padding: 12px; background: #f4f4f4; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-body { display: grid; gap: 6px; padding: 14px 16px 18px; }
.cert-issuer { font: 700 15px var(--font-head); color: var(--ink); }
.cert-title { margin: 0; font-size: 13.5px; line-height: 1.45; }
.cert-date { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.cert-date .icon { width: 14px; height: 14px; color: var(--red); }

/* ---------- kontakt ---------- */
.contact-boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 820px) { .contact-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-box { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 34px 24px 30px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-box p { margin: 0; }
.contact-box h2 { margin: 12px 0 8px; font-size: 1.2rem; font-weight: 700; }
.contact-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.contact-icon .icon { width: 30px; height: 30px; }
/* wspólna hierarchia boksów: etykieta → duża wartość → dodatek */
.contact-eyebrow { font: 600 12px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-value { font: 700 1.5rem/1.2 var(--font-head); letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
a.contact-value:hover { color: var(--red); }
.contact-mail { font-size: 14.5px; color: var(--text); text-decoration: none; }
.contact-mail:hover { color: var(--red); text-decoration: underline; }
.contact-box .contact-extra { margin-top: 10px; }
.contact-person { display: grid; justify-items: center; gap: 3px; width: 100%; }
.contact-person + .contact-person { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* sekcja wyceny: kroki + ciemna karta formularza */
.quote-wrap { display: grid; gap: 44px; }
@media (min-width: 960px) { .quote-wrap { grid-template-columns: .85fr 1.15fr; align-items: start; gap: 64px; } }
.quote-intro .section-title { margin-bottom: 18px; }
.quote-lead { max-width: 46ch; margin: 0; font-size: 1.05rem; }
.quote-steps { display: grid; gap: 22px; list-style: none; margin: 32px 0; padding: 0; }
.quote-steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.quote-steps li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 50px; bottom: -18px; width: 2px; background: var(--red-soft); }
.quote-step-num { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--red); border-radius: 50%; background: var(--bg-alt); color: var(--red); font: 800 17px var(--font-head); }
.quote-steps h3 { margin: 10px 0 4px; font-size: 1.08rem; font-weight: 700; }
.quote-steps p { margin: 0; font-size: 15px; }
.quote-area { display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.quote-area .icon { color: var(--red); }

.quote-card {
  position: relative; overflow: hidden; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-lg); color: #d8d8d8;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(181, 41, 30, .38), transparent 58%),
    #161616;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
}
.contact-form { position: relative; display: grid; gap: 18px; }
.contact-form[hidden], .form-success[hidden] { display: none; }
.quote-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.quote-card-title { margin: 0; font: 700 1.3rem/1.2 var(--font-head); color: #fff; }
.quote-card-hint { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.quote-card { container-type: inline-size; }
.form-grid { display: grid; gap: 18px; }
@container (min-width: 460px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
/* wybór adresata: dwie karty z ukrytym polem radio */
.recipient { min-width: 0; margin: 0; padding: 0; border: 0; }
.recipient legend { margin-bottom: 8px; padding: 0; font: 600 12px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.recipient-options { display: grid; gap: 10px; }
@container (min-width: 420px) { .recipient-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.recipient-option { position: relative; display: block; cursor: pointer; }
.recipient-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.recipient-card { position: relative; display: grid; gap: 3px; height: 100%; padding: 13px 46px 13px 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(255, 255, 255, .04); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.recipient-name { font: 700 15px/1.25 var(--font-head); color: #fff; }
.recipient-meta { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .6); overflow-wrap: anywhere; }
.recipient-check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 50%; color: transparent; transition: background-color .2s, border-color .2s; }
.recipient-check .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.recipient-option:hover .recipient-card { border-color: rgba(255, 255, 255, .32); }
.recipient-option input:checked + .recipient-card { border-color: var(--red-bright); background: rgba(224, 67, 58, .1); }
.recipient-option input:checked + .recipient-card .recipient-check { border-color: var(--red-bright); background: var(--red-bright); color: #fff; }
.recipient-option input:focus-visible + .recipient-card { box-shadow: 0 0 0 3px rgba(224, 67, 58, .35); }
.form-success-to strong { color: #fff; }

.field { display: grid; gap: 7px; align-content: start; }
.field label { font: 600 12px/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.optional { font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .45); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(224, 67, 58, .28); background: rgba(255, 255, 255, .09); }
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #262626 inset; -webkit-text-fill-color: #fff; caret-color: #fff; }
.field [aria-invalid="true"] { border-color: var(--red-bright); background: rgba(224, 67, 58, .08); }
.field-error { margin: 0; font-size: 13.5px; color: #FF9E96; }
.form-foot { display: grid; gap: 18px; justify-items: start; padding-top: 4px; }
@container (min-width: 640px) { .form-foot { grid-template-columns: 1fr auto; align-items: center; gap: 28px; } }
.form-rodo { margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .5); }
.form-rodo a { color: rgba(255, 255, 255, .85); }
.form-rodo a:hover { color: #fff; }
.contact-form .btn { padding: 16px 28px; white-space: nowrap; }
.form-status { padding: 13px 16px; border-radius: 10px; font-size: 14.5px; background: rgba(255, 255, 255, .06); color: #fff; }
.form-status.is-error { background: rgba(224, 67, 58, .12); border: 1px solid rgba(224, 67, 58, .45); color: #FFD3CF; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: grid; justify-items: center; gap: 12px; padding: clamp(24px, 5vw, 48px) 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(60, 203, 127, .14); color: #3CCB7F; }
.form-success-icon .icon { width: 32px; height: 32px; stroke-width: 2.2; }
.form-success-title { margin: 6px 0 0; font: 700 1.45rem/1.2 var(--font-head); color: #fff; }
.form-success p { margin: 0; max-width: 42ch; }
.form-success a:not(.btn) { color: #fff; font-weight: 600; }
.form-success .btn { margin-top: 10px; }

/* ---------- blog ---------- */
.section--post { padding-block: 44px 80px; }
.post-image { margin: 0 0 36px; }
.post-image img { width: 100%; }
.post-body { max-width: none; font-size: 17px; }
.related { margin: 48px 0 32px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.related h2 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 600; }
.related-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.related-list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #fff; border-radius: 6px; color: var(--ink); text-decoration: none; font: 500 15px/1.3 var(--font-head); }
.related-list .icon { width: 20px; height: 20px; color: var(--red); }
.related-list .icon-end { margin-left: auto; color: var(--muted); }
.related-list a:hover { color: var(--red); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; color: var(--muted); }

/* ---------- zachęta do kontaktu ---------- */
.cta-band { padding-block: clamp(48px, 6vw, 76px); color: #d4d4d4; background: linear-gradient(110deg, #181818 52%, #34100c 78%, #7a1d15 100%); }
.cta-inner { display: grid; gap: 26px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }
.cta-title { margin: 0 0 8px; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; }
.cta-inner p { margin: 0; max-width: 62ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.15rem var(--font-head); white-space: nowrap; }
.cta-phone:hover { color: #fff; text-decoration: underline; }
.cta-phone .icon { color: var(--red-bright); }

/* ---------- stopka ---------- */
.site-footer { padding-top: clamp(52px, 6vw, 76px); background: var(--footer-bg); color: #c9c9c9; font-size: 15px; }
.footer-grid { display: grid; gap: 38px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.15fr 1.45fr .75fr 1.15fr; gap: 40px; } }
.footer-logo { display: inline-block; margin-bottom: 8px; }
.footer-logo img { width: 240px; }
.footer-meta { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: #bdbdbd; }
.footer-meta .icon { width: 18px; height: 18px; color: var(--red-bright); }
.footer-title { margin: 0 0 18px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer-links { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #c9c9c9; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-services { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.footer-services a { display: flex; align-items: flex-start; gap: 10px; color: #c9c9c9; text-decoration: none; line-height: 1.35; }
.footer-services .icon { width: 18px; height: 18px; color: var(--red-bright); }
.footer-services a:hover { color: #fff; }
.footer-people .role { font: 500 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #FF8F87; }
.footer-people { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-people li { display: grid; gap: 4px; }
.footer-people strong { color: #fff; }
.footer-people a { display: inline-flex; align-items: center; gap: 8px; color: #c9c9c9; text-decoration: none; }
.footer-people a:hover { color: #fff; text-decoration: underline; }
.footer-people .icon { width: 16px; height: 16px; color: var(--red-bright); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-block: 20px; font-size: 13.5px; color: #8e8e8e; }
/* linia nad prawami autorskimi wyrównana do treści (nie do krawędzi kontenera z marginesami) */
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #3a3a3a; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #8e8e8e; }
.footer-bottom a:hover { color: #fff; }
.site-footer :focus-visible, .page-banner :focus-visible, .cta-band :focus-visible, .hero :focus-visible { outline-color: #fff; }

/* ---------- strona błędu ---------- */
.error-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.error-sub { margin: 0 0 16px; font-size: 1.3rem; font-weight: 600; }

/* ---------- lightbox ---------- */
.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 64px 16px; background: rgba(8, 8, 8, .93); }
.lightbox[hidden] { display: none; }
.lightbox-figure { display: grid; justify-items: center; gap: 12px; max-width: min(1200px, 100%); margin: 0; }
.lightbox-figure img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 160px); border-radius: 4px; background: #222; }
.lightbox-figure figcaption { font-size: 14px; color: #e5e5e5; text-align: center; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox-btn:hover { background: var(--red); }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-count { position: absolute; top: 24px; left: 20px; margin: 0; font-size: 13px; color: #bbb; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- telefon: pasek szybkiego kontaktu (wysuwa się po przewinięciu banera) ---------- */
.mbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 8px;
  border-radius: 16px; background: rgba(20, 20, 20, .94); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 10px;
  color: #fff; text-decoration: none; font: 700 13px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.mbar .icon { width: 18px; height: 18px; }
.mbar-call { background: rgba(255, 255, 255, .1); }
.mbar-call .icon { color: var(--red-bright); }
.mbar-quote { background: var(--red); }
.mbar a:hover { color: #fff; }
.mbar :focus-visible { outline-color: #fff; }
.nav-open .mbar { display: none; }
@media (max-width: 1099.98px) { .mbar + .site-footer .footer-bottom { padding-bottom: 92px; } }
@media (min-width: 1100px) { .mbar { display: none; } }

/* ==========================================================================
   Animacje. Klasę .anim na <html> ustawia skrypt w <head> tylko wtedy, gdy system nie prosi
   o ograniczenie ruchu – bez JavaScriptu i przy „ograniczonym ruchu” cała treść jest widoczna od razu.
   Animowane są tylko transform i opacity: układ strony się nie przesuwa (CLS), a zdjęcie banera
   nie jest ukrywane (LCP). Elementy oznacza klasą .is-in skrypt (main.js) – lista selektorów jest tam taka sama.
   ========================================================================== */
@keyframes up { from { opacity: 0; transform: translateY(22px); } }
@keyframes line { from { transform: scaleX(0); } }
@keyframes zoom-out { from { transform: scale(1.08); } }
@keyframes wipe { from { clip-path: polygon(16% 0, 16% 0, 0 100%, 0 100%); } }

/* wejście banera strony głównej */
.anim .hero:not(.is-in) :is(.hero-kicker, .hero-line, .hero-lead, .hero-actions) { opacity: 0; }
.anim .hero.is-in .hero-img { animation: zoom-out 1.8s var(--ease) both; }
.anim .hero.is-in .hero-kicker { animation: up .7s .1s var(--ease) both; }
.anim .hero.is-in .hero-kicker::before { transform-origin: left; animation: line .6s .2s var(--ease) both; }
.anim .hero.is-in .hero-line { animation: up .8s .25s var(--ease) both; }
.anim .hero.is-in .hero-line--red { animation-delay: .4s; }
.anim .hero.is-in .hero-lead { animation: up .8s .6s var(--ease) both; }
.anim .hero.is-in .hero-actions { animation: up .8s .75s var(--ease) both; }

/* odsłanianie przy przewijaniu – elementy widoczne naraz wchodzą po kolei co 70 ms (--d ustawia skrypt) */
.anim :is(.section-head, .tiles > li, .objs > li, .feat > li, .std-lead > p, .std-doc, .std-cols > div, .features > li, .standards > li, .objects > li, .trust-stats > li, .split-text, .split-media, .cards > li, .section-more) {
  transition:
    opacity .7s var(--ease) calc(var(--d, 0) * 70ms),
    transform .7s var(--ease) calc(var(--d, 0) * 70ms),
    translate .35s var(--ease), box-shadow .35s var(--ease);
}
.anim :is(.section-head, .tiles > li, .objs > li, .feat > li, .std-lead > p, .std-doc, .std-cols > div, .features > li, .standards > li, .objects > li, .trust-stats > li, .split-text, .split-media, .cards > li, .section-more):not(.is-in) {
  opacity: 0; transform: translateY(18px);
}
/* kreska przy etykiecie sekcji rysuje się chwilę po tytule */
.anim :is(.section-head, .split-text) .kicker::before { transform-origin: left; transform: scaleX(0); transition: transform .6s .3s var(--ease); }
.anim :is(.section-head, .split-text).is-in .kicker::before { transform: none; }

/* reakcja na kursor: karty unoszą się, zdjęcia lekko przybliżają, strzałka w przyciskach przesuwa się */
:is(.obj, .feat-side, .feature, .card) { transition: translate .35s var(--ease), box-shadow .35s var(--ease); }
:is(.obj, .feat-side, .feature, .card):hover { translate: 0 -4px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .28); }
:is(.feat-main, .feat-side) img, .card-media img { transition: transform .7s var(--ease); }
:is(.feat-main, .feat-side):hover img, .card:hover .card-media img { transform: scale(1.04); }
.card-media { overflow: hidden; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* pasek kontaktu na telefonie */
.anim .mbar { transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease); }
.anim .mbar.is-on { transform: none; }

/* baner ze zdjęciem (podstrony usług): zdjęcie odsłania się od ukośnej krawędzi, potem tekst, na końcu czerwona kreska */
.anim .page-banner--media:not(.is-in) :is(.breadcrumbs, h1, .page-lead, .page-banner-chips) { opacity: 0; }
.anim .page-banner--media:not(.is-in)::after { transform: scaleX(0); }
.anim .page-banner--media.is-in :is(.breadcrumbs, h1, .page-lead, .page-banner-chips) { animation: up .8s var(--ease) both; }
.anim .page-banner--media.is-in h1 { animation-delay: .12s; }
.anim .page-banner--media.is-in .page-lead { animation-delay: .26s; }
.anim .page-banner--media.is-in .page-banner-chips { animation-delay: .4s; }
.anim .page-banner--media.is-in::after { transform-origin: left; animation: line .7s .7s var(--ease) both; }
@media (min-width: 900px) {
  .anim .page-banner--media:not(.is-in) .page-banner-media { clip-path: polygon(16% 0, 16% 0, 0 100%, 0 100%); }
  .anim .page-banner--media.is-in .page-banner-media { animation: wipe 1.1s .1s cubic-bezier(.7, 0, .2, 1) both; }
  .anim .page-banner--media.is-in .page-banner-media img { animation: zoom-out 1.6s .1s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .cta-band, .sidebar, .gallery-filter, .hero-actions, .mbar { display: none !important; }
  .anim * { opacity: 1 !important; transform: none !important; }
  .page-banner { background: none; color: #000; padding-block: 16px; }
  .page-banner h1 { color: #000; }
}
