/* =========================================================================
   COSystem – arkusz stylów
   Motyw: rura z logo – od zimnego błękitu do gorącej czerwieni.
   ========================================================================= */

@font-face {
    font-family: "Bricolage";
    src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    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: "Bricolage";
    src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    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: "Inter";
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    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: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    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;
}

:root {
    /* Kolory marki (z logo: niebieski #0000ff i czerwony #ff1d25 – złagodzone do ekranu) */
    --blue: #3049ff;
    --blue-soft: #6b7dff;
    --red: #ff2433;
    --orange: #ff7a1a;
    --primary: #ef3a1c;
    --primary-hover: #ff4f2a;

    --navy-950: #050a1c;
    --navy-900: #0a1230;
    --navy-800: #101a42;
    --navy-700: #1b2760;

    --ink: #0b1130;
    --ink-soft: #2b3358;
    --muted: #5d6585;
    --line: #e3e6f0;
    --paper: #f4f5fa;
    --white: #ffffff;

    --heat: linear-gradient(100deg, var(--blue) 0%, #a32fd6 38%, var(--red) 62%, var(--orange) 100%);
    --heat-h: linear-gradient(90deg, var(--blue), var(--red) 60%, var(--orange));

    --font-display: "Bricolage", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 32px;
    --header-h: 84px;

    --shadow-sm: 0 2px 6px rgba(10, 18, 48, .06);
    --shadow: 0 18px 50px -20px rgba(10, 18, 48, .35);
    --shadow-lg: 0 40px 80px -30px rgba(10, 18, 48, .45);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
html.modal-open { overflow: hidden; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typografia ---------- */
.h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.6; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--heat-h);
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--red);
    box-shadow: 0 0 0 0 rgba(255, 36, 51, .6); animation: pulse 2.2s infinite;
}
.eyebrow:has(.dot)::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 36, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 36, 51, 0); } }

.text-heat {
    background: linear-gradient(95deg, #ff8a1f 0%, var(--red) 45%, #ff5a7a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: .05em;
}

/* SplitText – linie z maską */
.split-line { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.text-heat div { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Przyciski ---------- */
.btn {
    --btn-bg: var(--ink); --btn-fg: #fff;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    border-radius: 999px; border: 1px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
    overflow: hidden;
}
.btn .icon { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }

.btn--primary { --btn-bg: var(--primary); box-shadow: 0 10px 30px -10px rgba(239, 58, 28, .7); }
.btn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, var(--red), var(--orange));
    opacity: 0; transition: opacity .35s var(--ease);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(255, 90, 40, .85); }

.btn--glass { --btn-bg: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .16); }
.btn--ghost { --btn-bg: transparent; border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .1); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(11, 17, 48, .18); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--paper); }

.link-button { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Ikony ---------- */
.icon { width: 24px; height: 24px; }

/* =========================================================================
   NAGŁÓWEK
   ========================================================================= */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    color: #fff;
    transition: transform .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(8, 13, 36, .9);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
.site-header.is-solid::before { background: var(--navy-900); }
.anim .site-header { animation: header-in .9s var(--ease) .05s both; }
@keyframes header-in { from { translate: 0 -100%; opacity: 0; } }
.site-header.is-scrolled { --header-h: 72px; }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header__logo img { height: 52px; width: auto; transition: height .4s var(--ease); }
.site-header.is-scrolled .site-header__logo img { height: 46px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 999px;
    font-weight: 500; font-size: .98rem; color: rgba(255, 255, 255, .86);
    transition: color .25s, background-color .25s;
}
.nav__link:hover, .nav__link.is-current, .nav__item--mega:hover > .nav__link, .nav__item--mega:focus-within > .nav__link { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav__item--mega:hover .nav__caret { transform: translateY(1px) rotate(225deg); }

.mega {
    position: absolute; top: calc(100% + 14px); left: 50%;
    width: min(760px, 90vw);
    padding: 14px;
    background: rgba(10, 18, 48, .96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; transition: background-color .25s; }
.mega__item:hover, .mega__item.is-current { background: rgba(255, 255, 255, .07); }
.mega__item strong { display: block; font-weight: 600; font-size: .98rem; }
.mega__item small { display: block; color: rgba(255, 255, 255, .6); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.mega__icon {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(140deg, rgba(48, 73, 255, .35), rgba(255, 36, 51, .35));
    border: 1px solid rgba(255, 255, 255, .12);
}
.mega__icon .icon { width: 22px; height: 22px; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.header-phone__icon {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    transition: background-color .3s, border-color .3s;
}
.header-phone:hover .header-phone__icon { background: var(--primary); border-color: var(--primary); }
.header-phone__icon .icon { width: 18px; height: 18px; }
.header-phone__text { display: flex; flex-direction: column; line-height: 1.15; font-size: .98rem; }
.header-phone__text small { font-size: .72rem; font-weight: 500; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: var(--navy-950);
    color: #fff;
    padding-top: calc(var(--header-h) + 12px);
    overflow-y: auto;
    clip-path: circle(0% at calc(100% - 44px) 42px);
    transition: clip-path .7s var(--ease-in-out);
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 42px); }
.mobile-menu__inner { padding-bottom: 40px; }
.mobile-menu__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .5); margin: 8px 0 10px; }
.mobile-menu__services { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mobile-menu__services a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: .95rem; font-weight: 500; line-height: 1.25; }
.mobile-menu__services .icon { width: 20px; height: 20px; flex: none; color: var(--orange); }
.mobile-menu__main { margin: 24px 0; }
.mobile-menu__main a { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; padding: 6px 0; letter-spacing: -.02em; }
.mobile-menu__contact { display: grid; gap: 10px; }
.mobile-menu li, .mobile-menu__contact > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu-open .mobile-menu li, .menu-open .mobile-menu__contact > * { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .035s); }
.menu-open { overflow: hidden; }

/* =========================================================================
   HERO (strona główna)
   ========================================================================= */
.hero {
    position: relative; isolation: isolate;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 120px;
    color: #fff;
    background: var(--navy-900);
    overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; transform-origin: 30% 50%; }
.hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 10, 28, .15) 0%, rgba(5, 10, 28, .35) 30%, rgba(5, 10, 28, .88) 52%, rgba(5, 10, 28, .94) 100%),
        linear-gradient(0deg, rgba(5, 10, 28, .85) 0%, rgba(5, 10, 28, 0) 35%);
}
.hero__glow {
    --x: 26%; --y: 60%;
    position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
    background:
        radial-gradient(40vmax 40vmax at var(--x) var(--y), rgba(255, 70, 40, .38), transparent 60%),
        radial-gradient(35vmax 30vmax at 85% 15%, rgba(48, 73, 255, .35), transparent 60%);
    animation: glow 7s ease-in-out infinite alternate;
}
@keyframes glow { to { opacity: .65; } }

.hero__inner { position: relative; display: flex; }
.hero__content { max-width: 680px; margin-left: auto; }
.hero__title { font-size: clamp(3rem, 8.4vw, 7.2rem); font-weight: 700; line-height: .95; letter-spacing: -.035em; margin-bottom: 28px; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: rgba(255, 255, 255, .78); max-width: 580px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .65); font-size: .95rem; }
.hero__facts strong { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1.1; letter-spacing: -.02em; }

.hero__scroll { position: absolute; left: 50%; bottom: 32px; translate: -50% 0; width: 28px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Termostat */
.thermo {
    position: absolute; right: max(var(--gutter), (100% - var(--container)) / 2); top: calc(var(--header-h) + 36px); width: 176px; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 70%);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.thermo__svg { position: absolute; inset: 0; transform: rotate(135deg); }
.thermo__svg circle { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 75 100; }
.thermo__track { stroke: rgba(255, 255, 255, .12); }
.thermo__value { stroke-dasharray: 0 100; filter: drop-shadow(0 0 6px rgba(255, 60, 40, .6)); }
.thermo__readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.thermo__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.thermo__temp { font-family: var(--font-display); font-size: 2.9rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.thermo__temp sup { font-size: 1.1rem; vertical-align: top; position: relative; top: .5em; margin-left: 2px; color: rgba(255, 255, 255, .7); }
.thermo__state { font-size: .78rem; color: var(--orange); margin-top: 6px; }

/* =========================================================================
   PASEK PRZEWIJANY
   ========================================================================= */
.marquee { position: relative; z-index: 2; background: var(--navy-950); color: #fff; overflow: hidden; padding: 22px 0; border-block: 1px solid rgba(255, 255, 255, .06); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; padding-inline: 28px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.marquee__item .icon { width: 28px; height: 28px; color: var(--orange); }
.marquee__item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--heat-h); margin-left: 28px; }
html:not(.anim) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   RURA (motyw przewodni) – rysuje się podczas przewijania
   ========================================================================= */
.pipe-wrap { position: relative; }
.pipe { position: absolute; inset: 0; pointer-events: none; z-index: 3; display: none; }
.pipe svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipe__casing { fill: none; stroke: rgba(120, 130, 170, .12); stroke-width: 14; stroke-linecap: round; }
.pipe__channel { fill: none; stroke: rgba(120, 130, 170, .2); stroke-width: 6; stroke-linecap: round; }
.pipe__glow { fill: none; stroke-width: 10; stroke-linecap: round; opacity: .45; }
.pipe__flow { fill: none; stroke-width: 6; stroke-linecap: round; }
.pipe__shine { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-linecap: round; mix-blend-mode: overlay; }
.pipe__drops { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .1 26; animation: pipe-flow 1.6s linear infinite; }
@keyframes pipe-flow { to { stroke-dashoffset: -26.1; } }
.pipe__branch-base { fill: none; stroke: rgba(120, 130, 170, .2); stroke-width: 4; stroke-linecap: round; }
.pipe__branch { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .6s var(--ease) .1s; }
.pipe__coupling { fill: #fff; stroke: rgba(120, 130, 170, .45); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.pipe__bolt { fill: rgba(120, 130, 170, .55); transition: fill .4s; }
.pipe__joint.is-on .pipe__coupling { fill: var(--navy-900); stroke: var(--red); }
.pipe__joint.is-on .pipe__bolt { fill: var(--orange); }
.pipe__joint.is-on .pipe__branch { stroke-dashoffset: 0; }
.pipe__head { pointer-events: none; transition: opacity .3s; }
.pipe__head-halo { fill: rgba(255, 110, 50, .22); animation: pipe-halo 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pipe__head-core { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 90, 40, 1)); }
@keyframes pipe-halo { 50% { transform: scale(1.35); opacity: .5; } }
@media (min-width: 1440px) { .anim .pipe { display: block; } }

/* =========================================================================
   SEKCJE
   ========================================================================= */
.section { position: relative; z-index: 2; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head > div { max-width: 720px; }
.section-head__text { max-width: 420px; color: var(--muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--page { margin-top: 24px; }

/* ---------- Usługi ---------- */
.services { background: var(--paper); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
    --lift: 0px;
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 440px; padding: 26px;
    border-radius: var(--radius);
    overflow: hidden; color: #fff;
    background: var(--navy-900);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .5s var(--ease), transform .5s var(--ease);
    transform: translateY(var(--lift));
}
.service-card::after {
    content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2px;
    background: var(--heat);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .45s var(--ease);
    pointer-events: none;
}
.service-card:hover { --lift: -6px; box-shadow: var(--shadow); }
.service-card:hover::after { opacity: 1; }
.service-card__media { position: absolute; inset: 0; z-index: -1; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.service-card__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 28, .05) 0%, rgba(5, 10, 28, .45) 38%, rgba(5, 10, 28, .96) 78%);
    transition: opacity .5s;
}
.service-card:hover .service-card__media img { transform: scale(1.07); filter: saturate(1.1); }
.service-card__num { position: absolute; top: 22px; left: 26px; font-family: var(--font-display); font-size: .9rem; color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.service-card__icon {
    position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background-color .4s, transform .5s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--primary); border-color: var(--primary); transform: rotate(-8deg) scale(1.06); }
.service-card__title { font-size: 1.7rem; line-height: 1.05; margin-bottom: 10px; }
.service-card__text { font-size: .93rem; color: rgba(255, 255, 255, .86); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .5s; }
.service-card:hover .service-card__text, .service-card:focus-visible .service-card__text { max-height: 100px; opacity: 1; margin-bottom: 14px; }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #fff; }
.service-card__more .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(5px); }
@media (hover: none) { .service-card__text { max-height: 100px; opacity: 1; margin-bottom: 14px; } }

/* ---------- O nas ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text p:not(.eyebrow) { color: var(--ink-soft); margin-top: 18px; }
.about__text .h2 { margin-bottom: 10px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
    position: relative; overflow: hidden;
    padding: 28px; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 6px;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.stat__value { font-family: var(--font-display); font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__value--text { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.stat__label { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.stat--accent { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.stat--accent::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 60, 40, .55), transparent 65%); }
.stat--accent .stat__icon { background: rgba(255, 255, 255, .1); color: var(--orange); box-shadow: none; }
.stat--accent .stat__label { color: rgba(255, 255, 255, .65); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.features--3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .4s, transform .5s var(--ease); }
.feature:hover { border-color: rgba(239, 58, 28, .35); transform: translateY(-4px); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; color: #fff; background: var(--heat); box-shadow: 0 10px 24px -10px rgba(239, 58, 28, .7); }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.feature--dark { background: var(--navy-900); border-color: var(--navy-800); color: #fff; }
.feature--dark p { color: rgba(255, 255, 255, .66); }
.feature--dark:hover { border-color: rgba(255, 122, 26, .5); }

/* ---------- Proces ---------- */
.process { background: var(--navy-950); color: #fff; overflow: hidden; }
.process::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 60% at 15% 0%, rgba(48, 73, 255, .25), transparent 70%), radial-gradient(45% 55% at 90% 100%, rgba(255, 36, 51, .22), transparent 70%);
}
.process .eyebrow { color: rgba(255, 255, 255, .8); }
.process__track { position: relative; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process__line { position: absolute; top: 36px; left: 36px; right: 36px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.process__line span { position: absolute; inset: 0; background: var(--heat-h); transform-origin: left; transform: scaleX(1); }
.anim .process__line span { transform: scaleX(0); }
.step { position: relative; }
.step__badge {
    position: relative; z-index: 1;
    width: 76px; height: 76px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy-800); border: 1px solid rgba(255, 255, 255, .14);
    margin-bottom: 26px;
    transition: background-color .5s, box-shadow .5s, border-color .5s;
}
.step__badge .icon { width: 30px; height: 30px; }
.step__badge em { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-style: normal; font-weight: 700; font-size: .85rem; }
.step.is-active .step__badge { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 8px rgba(239, 58, 28, .18), 0 14px 40px -8px rgba(239, 58, 28, .8); }
.step__title { font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: rgba(255, 255, 255, .66); font-size: .97rem; line-height: 1.6; }

/* ---------- Produkty ---------- */
.products { background: var(--paper); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.product-card__media {
    position: relative; aspect-ratio: 1 / .92; display: grid; place-items: center; padding: 30px; overflow: hidden;
    /* granat marki + ciepła poświata za kotłem – biały kocioł wyraźnie odcina się od tła */
    background:
        radial-gradient(48% 46% at 50% 50%, rgba(255, 110, 60, .32), transparent 72%),
        radial-gradient(60% 55% at 90% 0%, rgba(48, 73, 255, .38), transparent 70%),
        linear-gradient(160deg, #18245f 0%, #0b1434 58%, #070d26 100%);
}
.product-card__media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.product-card__media::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(5px); transition: transform .6s var(--ease), opacity .6s; }
.product-card__media img { position: absolute; z-index: 1; inset: 34px; width: calc(100% - 68px); height: calc(100% - 68px); object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); transition: transform .7s var(--ease); }
.product-card:hover .product-card__media img { transform: translateY(-10px) scale(1.03); }
.product-card:hover .product-card__media::after { transform: scaleX(.85); opacity: .7; }
.product-card__brand { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.product-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 1.3rem; line-height: 1.2; margin-bottom: 16px; }
.product-card__specs { display: grid; gap: 6px; margin-bottom: 20px; font-size: .9rem; }
.product-card__specs li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.product-card__specs span { color: var(--muted); }
.product-card__specs strong { font-weight: 600; text-align: right; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.product-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--primary); font-weight: 600; font-size: .95rem; }
.product-card__more .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.product-card:hover .product-card__more .icon { transform: translateX(5px); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.stock--in { color: #15803d; }
.stock--in::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.stock--out { color: var(--muted); }
.stock--out::before { background: #f59e0b; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__grid .lead { margin-top: 18px; }
.accordion { display: grid; gap: 12px; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .3s, box-shadow .3s; }
.accordion__item[open] { border-color: transparent; box-shadow: var(--shadow); }
.accordion__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; font-weight: 600; font-size: 1.06rem; cursor: pointer; list-style: none; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: transform .45s var(--ease), background-color .3s, color .3s; }
.accordion__icon .icon { width: 18px; height: 18px; }
.accordion__item[open] .accordion__icon { transform: rotate(135deg); background: var(--primary); color: #fff; }
.accordion__body { overflow: hidden; }
.accordion__body p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__intro .lead { margin-top: 18px; }
.contact-list { display: grid; gap: 14px; margin-top: 36px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list span > span { font-weight: 600; font-size: 1.06rem; }
.contact-list a:hover { color: var(--primary); }

.contact__form-wrap { position: relative; }
.form { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form::before { content: ""; position: absolute; inset: 0 30px auto; height: 4px; border-radius: 0 0 4px 4px; background: var(--heat-h); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__product { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper); }
.form__product .icon { color: var(--primary); flex: none; }
.form__product small { display: block; font-size: .78rem; color: var(--muted); }
.form__product span { font-weight: 600; line-height: 1.3; }

.field { position: relative; }
.field__input {
    width: 100%; min-height: 60px;
    padding: 26px 18px 10px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff;
    font-size: 1rem;
    transition: border-color .25s, box-shadow .25s;
    appearance: none;
}
textarea.field__input { resize: vertical; min-height: 150px; padding-top: 30px; }
.field__input:hover { border-color: #c8cde0; }
.field__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(48, 73, 255, .12); }
.field__label { position: absolute; left: 19px; top: 19px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label, .field--select .field__label { transform: translateY(-11px) scale(.76); color: var(--ink-soft); font-weight: 500; }
.field--select::after { content: ""; position: absolute; right: 20px; top: 27px; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field.has-error .field__input { border-color: var(--red); }
.field__error { display: block; color: #d0142a; font-size: .84rem; margin-top: 6px; }
.field__error:empty { display: none; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; line-height: 1.5; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #c8cde0; display: grid; place-items: center; transition: background-color .25s, border-color .25s; margin-top: 1px; }
.checkbox__box .icon { width: 16px; height: 16px; color: #fff; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease); }
.checkbox input:checked + .checkbox__box { background: var(--primary); border-color: var(--primary); }
.checkbox input:checked + .checkbox__box .icon { opacity: 1; transform: none; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.checkbox a { color: var(--ink); text-decoration: underline; }

.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: .88rem; color: var(--muted); }
.form__status { font-size: .95rem; font-weight: 500; color: #d0142a; }
.form__status:empty { display: none; }
.form.is-sending .btn[type="submit"] { pointer-events: none; opacity: .75; }
.form.is-sending .btn[type="submit"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__success { position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #fff; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px; gap: 12px; }
.form__success h3 { font-size: 2rem; }
.form__success p { color: var(--muted); max-width: 380px; }
.form__success a { color: var(--primary); font-weight: 600; }
.form__success-icon { width: 84px; height: 84px; margin-bottom: 8px; }
.form__success-icon circle { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease) forwards; }
.form__success-icon path { fill: none; stroke: var(--primary); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.map { position: relative; margin-top: clamp(48px, 6vw, 80px); height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); color: #fff; }
.map::before {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: relative; height: 100%; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; }
.map__placeholder p { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.map__placeholder strong { color: #fff; font-size: 1.15rem; }
.map__pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); box-shadow: 0 0 0 12px rgba(239, 58, 28, .2), 0 0 0 26px rgba(239, 58, 28, .08); animation: pinpulse 2.4s var(--ease) infinite; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 16px rgba(239, 58, 28, .14), 0 0 0 34px rgba(239, 58, 28, .04); } }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map .btn--ghost-dark { --btn-fg: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- Pas CTA ---------- */
.cta-band { position: relative; z-index: 2; overflow: hidden; background: var(--navy-900); color: #fff; padding-block: clamp(72px, 9vw, 120px); isolation: isolate; }
.cta-band__glow { position: absolute; inset: -40% -10% auto auto; width: 70vw; aspect-ratio: 1; z-index: -1; background: conic-gradient(from 200deg, var(--blue), #a32fd6, var(--red), var(--orange), var(--blue)); filter: blur(120px); opacity: .45; border-radius: 50%; animation: rotate 22s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.cta-band__inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.03em; }
.cta-band__actions { text-align: right; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.02em; padding: 14px 30px 14px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); transition: background-color .3s; }
.cta-band__phone:hover { background: var(--primary); border-color: var(--primary); }
.cta-band__phone .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--primary); }
.cta-band__phone:hover .icon { background: rgba(255, 255, 255, .2); }
.cta-band__actions p { margin-top: 14px; color: rgba(255, 255, 255, .6); font-size: .95rem; }
.cta-band__actions p a { color: #fff; }

/* ---------- Stopka ---------- */
.site-footer { position: relative; z-index: 2; background: var(--navy-950); color: rgba(255, 255, 255, .7); padding-top: clamp(64px, 8vw, 96px); font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__brand img { width: 110px; margin-bottom: 20px; }
.site-footer__brand p { max-width: 320px; }
.site-footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { transition: color .2s; }
.site-footer__links a:hover { color: #fff; }
.site-footer__contact a, .site-footer__contact span { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--orange); flex: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; color: rgba(255, 255, 255, .5); }
.site-footer__bottom a:hover, .site-footer__bottom .link-button:hover { color: #fff; }

.mobile-cta { display: none; }

/* ---------- Cookies ---------- */
.cookie {
    position: fixed; left: 20px; bottom: 20px; z-index: 200;
    width: min(440px, calc(100vw - 40px));
    padding: 22px; border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    font-size: .92rem; color: var(--ink-soft);
    animation: cookie-in .6s var(--ease) both;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } }
.cookie strong { color: var(--ink); }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Okno zapytania ---------- */
.modal {
    width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
    background: transparent; color: var(--ink); overflow: visible;
}
.modal::backdrop { background: rgba(5, 10, 28, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .45s var(--ease) both; }
.modal[open]::backdrop { animation: fade-in .35s ease both; }
.modal.is-closing { animation: modal-out .28s ease both; }
.modal.is-closing::backdrop { animation: fade-in .28s ease reverse both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__panel { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: inherit; box-shadow: var(--shadow-lg); }
.modal__panel::before { content: ""; position: sticky; top: 0; display: block; height: 4px; background: var(--heat-h); z-index: 2; }
.modal__head { padding: 28px 32px 4px; }
.modal__head .eyebrow { margin-bottom: 12px; }
.modal__title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; padding-right: 40px; }
.modal__lead { color: var(--muted); font-size: .97rem; }
.modal__lead a { color: var(--primary); font-weight: 600; white-space: nowrap; }
.modal .form { box-shadow: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 20px 32px 32px; }
.modal .form::before { display: none; }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background-color .25s, transform .4s var(--ease); }
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__close .icon { width: 20px; height: 20px; }
@media (max-width: 700px) {
    .modal { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .modal__panel { max-height: 94dvh; }
    .modal[open] { animation-name: sheet-in; }
    .modal.is-closing { animation-name: sheet-out; }
    .modal__head { padding: 24px 20px 0; }
    .modal .form { padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* =========================================================================
   PODSTRONA USŁUGI
   ========================================================================= */
.page-hero {
    position: relative; isolation: isolate;
    min-height: min(88svh, 820px);
    display: flex; align-items: flex-end;
    padding: calc(var(--header-h) + 60px) 0 clamp(56px, 8vw, 100px);
    color: #fff; background: var(--navy-900); overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 10, 28, .96) 0%, rgba(5, 10, 28, .6) 45%, rgba(5, 10, 28, .35) 100%), linear-gradient(90deg, rgba(5, 10, 28, .7), transparent 70%); }
.page-hero__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.page-hero__title { font-size: clamp(2.8rem, 7.5vw, 6.4rem); line-height: .95; letter-spacing: -.035em; margin-bottom: 24px; max-width: 14ch; }
.page-hero__lead { font-size: clamp(1.06rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .8); max-width: 640px; margin-bottom: 34px; }
.page-hero__icon { position: absolute; right: var(--gutter); bottom: clamp(56px, 8vw, 100px); width: clamp(120px, 16vw, 220px); color: rgba(255, 255, 255, .08); }
.page-hero__icon .icon { width: 100%; height: auto; stroke-width: .7; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: #fff; }
.breadcrumbs--dark { color: var(--muted); margin-bottom: 32px; }
.breadcrumbs--dark a:hover, .breadcrumbs--dark span[aria-current] { color: var(--ink); }

.intro__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro__text .h2 { margin-bottom: 14px; }
.intro__text p:not(.eyebrow) { color: var(--ink-soft); margin-top: 18px; font-size: 1.1rem; }
.scope { position: sticky; top: calc(var(--header-h) + 32px); padding: 32px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.scope__title { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin-bottom: 20px; }
.scope__title .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #fff; background: var(--primary); }
.scope__list { display: grid; gap: 12px; margin-bottom: 26px; }
.scope__list li, .group-card li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.scope__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(239, 58, 28, .12); color: var(--primary); margin-top: 1px; }
.scope__tick .icon { width: 14px; height: 14px; stroke-width: 2.6; }

.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.group-card { padding: 36px; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.group-card::after { content: ""; position: absolute; right: -20%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 60, 40, .35), transparent 65%); }
.group-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--heat); margin-bottom: 22px; }
.group-card h3 { font-size: 1.8rem; margin-bottom: 20px; }
.group-card ul { display: grid; gap: 12px; }
.group-card .scope__tick { background: rgba(255, 255, 255, .12); color: var(--orange); }

.benefits { background: var(--paper); }

.wide-image { position: relative; z-index: 2; height: clamp(280px, 42vw, 560px); border-radius: var(--radius-lg); overflow: hidden; margin-block: clamp(-40px, -3vw, -20px) 0; }
.wide-image img { width: 100%; height: 130%; object-fit: cover; }

.process--compact .step__title { font-size: 1.3rem; }

.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { position: relative; display: block; height: 340px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.related-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.related-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(5, 10, 28, .92)); }
.related-card:hover img { transform: scale(1.06); }
.related-card__body { position: absolute; inset: auto 24px 24px; display: grid; gap: 4px; }
.related-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); margin-bottom: 10px; }
.related-card strong { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; }
.related-card small { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.related-card__arrow { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transform: scale(.85); opacity: .9; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.related-card:hover .related-card__arrow { transform: scale(1) rotate(45deg); background: var(--primary); color: #fff; }

/* =========================================================================
   PRODUKT
   ========================================================================= */
.product-page { padding-top: calc(var(--header-h) + 36px); }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.product__image { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); display: grid; place-items: center; padding: 10%; overflow: hidden; transform-style: preserve-3d;
    background:
        radial-gradient(60% 60% at 90% 0%, rgba(48, 73, 255, .4), transparent 70%),
        linear-gradient(160deg, #18245f 0%, #0b1434 58%, #070d26 100%);
}
.product__image::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%); }
.product__image::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 8%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(6px); }
.product__image img { position: relative; z-index: 1; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5)); }
.product__glow { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 100, 50, .38), transparent 62%); filter: blur(14px); }
.product__summary { position: sticky; top: calc(var(--header-h) + 28px); }
.product__title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-bottom: 26px; }
.product__highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.product__highlights div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper); }
.product__highlights dt { font-size: .8rem; color: var(--muted); }
.product__highlights dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.buybox { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.buybox__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.buybox__price strong { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: -.02em; }
.buybox__price .buybox__ask { font-size: 1.9rem; }
.buybox__price small { color: var(--muted); }
.buybox__meta { display: grid; gap: 10px; margin-bottom: 22px; font-size: .95rem; color: var(--ink-soft); }
.buybox__meta li { display: flex; align-items: center; gap: 10px; }
.buybox__meta .icon { width: 20px; height: 20px; color: var(--muted); }
.buybox__actions { display: grid; gap: 10px; }

.specs { margin-top: clamp(64px, 8vw, 110px); }
.specs .h3 { margin-bottom: 24px; }
.specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.specs__group { padding: 28px; border-radius: var(--radius); background: var(--paper); }
.specs__group h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); margin-bottom: 14px; }
.specs__group dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs__group dl div:last-child { border-bottom: 0; }
.specs__group dt { color: var(--muted); }
.specs__group dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }

.product-service { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 40px; padding: 32px; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; }
.product-service p { color: rgba(255, 255, 255, .7); margin-top: 8px; max-width: 640px; }
.product-service__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px; background: var(--heat); }
.product-service__icon .icon { width: 36px; height: 36px; }
.product-service .btn--outline { --btn-fg: #fff; border-color: rgba(255, 255, 255, .3); }
.product-service .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
.products__grid--small { margin-top: 24px; }

.empty-state { text-align: center; padding: 64px 24px; border-radius: var(--radius-lg); background: var(--paper); display: grid; justify-items: center; gap: 12px; }
.empty-state > .icon { width: 56px; height: 56px; color: var(--primary); }
.empty-state p { color: var(--muted); margin-bottom: 8px; }

/* ---------- Polityka / 404 ---------- */
.legal { padding: calc(var(--header-h) + 36px) 0 100px; }
.legal__inner { max-width: 820px; }
.legal .h1 { margin-bottom: 20px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal p { color: var(--ink-soft); margin-top: 12px; }
.legal a, .legal .link-button { color: var(--primary); }
.legal__date { font-size: .9rem; color: var(--muted) !important; margin-top: 40px !important; }

.notfound { position: relative; overflow: hidden; min-height: 92svh; display: flex; align-items: center; background: var(--navy-950); color: #fff; padding: calc(var(--header-h) + 40px) 0 80px; isolation: isolate; }
.notfound__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(40vmax 40vmax at 80% 30%, rgba(48, 73, 255, .35), transparent 60%), radial-gradient(35vmax 35vmax at 15% 90%, rgba(255, 36, 51, .3), transparent 60%); }
.notfound__title { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 24px; }

/* =========================================================================
   STANY POCZĄTKOWE ANIMACJI (tylko gdy JS i ruch są włączone)
   ========================================================================= */
.anim [data-reveal],
.anim [data-hero-item],
.anim [data-stagger] > *,
.anim .services__grid > *,
.anim .products__grid > *,
.anim .related__grid > *,
.anim [data-step] { opacity: 0; }
.anim [data-split], .anim [data-hero-title] { visibility: hidden; }
.anim .thermo { opacity: 0; }

/* =========================================================================
   RESPONSYWNOŚĆ
   ========================================================================= */
@media (max-width: 1200px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { min-height: 380px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .header-phone__text { display: none; }
}

@media (max-width: 1024px) {
    :root { --header-h: 72px; }
    .nav, .site-header__cta { display: none; }
    .burger { display: block; }
    .site-header__actions { margin-left: auto; }
    .site-header__logo img { height: 46px; }

    .hero__content { margin-left: 0; }
    .thermo { top: calc(var(--header-h) + 24px); width: 140px; }
    .thermo__temp { font-size: 2.3rem; }
    .thermo__state { display: none; }
    .hero__media img { object-position: 15% 50%; }

    .about__grid, .faq__grid, .contact__grid, .intro__grid, .product { grid-template-columns: 1fr; }
    .faq__grid > div:first-child, .scope, .product__summary { position: static; }
    .process__steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .process__line { display: none; }
    .products__grid, .related__grid { grid-template-columns: 1fr 1fr; }
    .specs__grid, .groups { grid-template-columns: 1fr; }
    .product-service { grid-template-columns: 1fr; }
    .cta-band__actions { text-align: left; }
}

@media (max-width: 1024px) and (orientation: portrait), (max-width: 700px) {
    .hero { align-items: flex-end; }
    .hero__shade { background: linear-gradient(0deg, rgba(5, 10, 28, .96) 0%, rgba(5, 10, 28, .72) 50%, rgba(5, 10, 28, .45) 100%); }
    .hero__media img { object-position: 50% 30%; }
}

@media (max-width: 700px) {
    body { font-size: 1rem; padding-bottom: 72px; }
    .hero { padding-bottom: 72px; }
    .hero__title { font-size: clamp(2.8rem, 14vw, 4rem); }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__facts { gap: 10px 22px; margin-top: 32px; }
    .hero__facts strong { font-size: 1.5rem; }
    .hero__scroll { display: none; }
    .thermo { display: none; }

    .section { padding-block: 64px; }
    .section--tight { padding-block: 48px; }
    .section-head { margin-bottom: 32px; }

    /* Usługi – kompaktowa siatka 2 × 4 zamiast ośmiu wysokich kart */
    .services__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-card { min-height: 0; aspect-ratio: 3 / 4; padding: 16px; border-radius: 16px; }
    .service-card__title { font-size: clamp(.9rem, 4.4vw, 1.08rem); line-height: 1.12; margin-bottom: 6px; overflow-wrap: anywhere; }
    .service-card__text { display: none; }
    .service-card__num { top: 14px; left: 16px; font-size: .72rem; }
    .service-card__icon { top: 10px; right: 10px; width: 36px; height: 36px; }
    .service-card__icon .icon { width: 18px; height: 18px; }
    .service-card__more { font-size: .8rem; }

    /* Liczby 2 × 2 */
    .about__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 18px; gap: 2px; }
    .stat__icon { width: 36px; height: 36px; margin-bottom: 8px; }
    .stat__icon .icon { width: 20px; height: 20px; }
    .stat__value { font-size: 2.1rem; }
    .stat__value--text { font-size: 1.3rem; }
    .stat__label { font-size: .82rem; }

    /* Atuty – zwarte wiersze: ikona po lewej */
    .features, .features--3 { grid-template-columns: 1fr; gap: 10px; }
    .features { margin-top: 40px; }
    .features--3 { margin-top: 0; }
    .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
    .feature__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; border-radius: 12px; }
    .feature__icon .icon { width: 22px; height: 22px; }
    .feature h3 { font-size: 1.08rem; margin-bottom: 2px; align-self: end; }
    .feature p { font-size: .9rem; }

    /* Produkty i powiązane usługi – przewijane palcem w bok */
    .products .products__grid, .products__grid--small, .related__grid {
        display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px;
        scrollbar-width: none;
    }
    .products .products__grid::-webkit-scrollbar, .products__grid--small::-webkit-scrollbar, .related__grid::-webkit-scrollbar { display: none; }
    .products .products__grid > *, .products__grid--small > *, .related__grid > * { flex: 0 0 82%; scroll-snap-align: start; }
    .products__grid { grid-template-columns: 1fr; }
    .product-card__media { aspect-ratio: 4 / 3; }
    .product-card__body { padding: 20px; }
    .product-card__foot { flex-wrap: wrap; gap: 6px 12px; }
    .product-card__price { font-size: 1.1rem; }

    .form__row, .product__highlights { grid-template-columns: 1fr; }
    .product__highlights { grid-template-columns: 1fr 1fr; gap: 8px; }
    .product__highlights div { padding: 12px 14px; }
    .product__highlights dd { font-size: .98rem; }
    .specs__group { padding: 20px; }
    .specs__group dl div { gap: 14px; }
    .process__steps { grid-template-columns: 1fr; }
    .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
    .step__badge { width: 64px; height: 64px; grid-row: span 2; margin: 0; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .site-footer__brand, .site-footer__grid > div:last-child { grid-column: 1 / -1; }
    .page-hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
    .page-hero__icon { display: none; }
    .related-card { height: 260px; }
    .map { height: 320px; }
    .cta-band__phone { font-size: 1.5rem; padding: 10px 22px 10px 10px; }
    .cta-band__phone .icon { width: 46px; height: 46px; padding: 12px; }
    .cookie { left: 12px; right: 12px; bottom: 84px; width: auto; }

    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(8, 13, 36, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 255, 255, .1);
        transition: transform .4s var(--ease);
    }
    .mobile-cta.is-hidden { transform: translateY(110%); }
    html:not(.js) .mobile-cta.is-hidden { transform: none; }
    .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font-weight: 600; color: #fff; }
    .mobile-cta .icon { width: 20px; height: 20px; }
    .mobile-cta__call { border: 1px solid rgba(255, 255, 255, .25); }
    .mobile-cta__quote { background: var(--primary); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    @view-transition { navigation: none; }
}
