/* ============================================================
   KOMFORT KLIMA — single-file production landing
   Design: premium, dark-first, glassmorphism, mesh gradients
   ============================================================ */

/* Fallback fonts z dopasowanymi metrykami — eliminują skok układu (CLS)
   w czasie, gdy ładują się właściwe fonty Google. */
@font-face {
  font-family: 'Jakarta Fallback';
  src: local('Arial');
  ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; size-adjust: 104%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; size-adjust: 107%;
}

:root {
  --red: #e0252e;
  --red-bright: #ff3b30;
  --blue: #38bdf8;
  --blue-bright: #29abe2;
  --blue-deep: #0ea5e9;

  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* DARK (default) */
[data-theme="dark"] {
  --bg: #0b0e14;
  --bg-2: #11151c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f5;
  --text-muted: #a6abb4;
  --text-dim: #71767e;
  --glass: rgba(20, 21, 26, 0.55);
  --glass-strong: rgba(18, 19, 24, 0.62);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --hero-glow: 0.42;
}
/* LIGHT */
[data-theme="light"] {
  --bg: #eef1f5;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0c1118;
  --text-muted: #4a5360;
  --text-dim: #717885;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 70px -25px rgba(20, 40, 80, 0.25);
  --hero-glow: 0.3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body.intro-lock { overflow: hidden; height: 100vh; }

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); backdrop-filter: blur(10px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 6px rgba(56,189,248,0.45); }

/* ---------- Mesh gradient background ---------- */
.mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 50% at 10% 4%, rgba(224, 37, 46, calc(var(--hero-glow) * 0.22)), transparent 64%),
    radial-gradient(50% 45% at 85% 22%, rgba(56, 189, 248, calc(var(--hero-glow) * 0.55)), transparent 62%),
    radial-gradient(45% 50% at 60% 100%, rgba(14, 165, 233, calc(var(--hero-glow) * 0.4)), transparent 60%);
  filter: blur(20px);
  animation: meshFloat 18s var(--ease) infinite alternate;
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); }
@keyframes meshFloat { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(0,-30px,0) scale(1.08); } }

/* ====================== INTRO ANIMATION ====================== */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(70% 60% at 18% 28%, rgba(224,37,46,0.10), transparent 60%),
    radial-gradient(70% 60% at 82% 72%, rgba(56,189,248,0.13), transparent 60%),
    radial-gradient(circle at 50% 45%, #ffffff 0%, #eef2f7 80%);
  display: grid; place-items: center; overflow: hidden;
}
#intro.done { animation: introOut 0.9s var(--ease) forwards; pointer-events: none; }
@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.05); } }

.gust { position: absolute; top: 50%; width: 60vw; height: 240px; border-radius: 50%;
  filter: blur(45px); opacity: 0; transform: translateY(-50%); }
.gust.red {
  left: -60vw; background: radial-gradient(ellipse at right, rgba(255,59,48,0.9), rgba(224,37,46,0.2) 60%, transparent 75%);
  animation: gustRed 1.5s var(--ease) 0.15s forwards;
}
.gust.blue {
  right: -60vw; background: radial-gradient(ellipse at left, rgba(56,189,248,0.9), rgba(41,171,226,0.2) 60%, transparent 75%);
  animation: gustBlue 1.5s var(--ease) 0.15s forwards;
}
@keyframes gustRed { 0% { left: -60vw; opacity: 0; } 55% { opacity: 1; } 100% { left: 5vw; opacity: 0.65; } }
@keyframes gustBlue { 0% { right: -60vw; opacity: 0; } 55% { opacity: 1; } 100% { right: 5vw; opacity: 0.65; } }

.intro-logo {
  position: relative; width: 180px; height: 180px; opacity: 0; transform: scale(0.4) rotate(-25deg);
  animation: logoIn 1.1s var(--ease) 1.0s forwards;
  filter: drop-shadow(0 16px 38px rgba(20,45,90,0.16));
}
.intro-logo img, .intro-logo picture { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes logoIn { to { opacity: 1; transform: scale(1) rotate(0); } }
.intro-word {
  position: absolute; bottom: 24%; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.18em; font-size: clamp(18px, 4vw, 30px);
  color: #0f1722; opacity: 0; transform: translateY(14px);
  animation: wordIn 0.8s var(--ease) 1.7s forwards;
}
.intro-word span { color: var(--blue); }
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }
.skip-intro {
  position: absolute; bottom: 28px; right: 28px; z-index: 2;
  font-size: 13px; color: rgba(15,23,34,0.5); background: rgba(15,23,34,0.04);
  border: 1px solid rgba(15,23,34,0.12); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); transition: all 0.3s var(--ease); opacity: 0; animation: wordIn 0.5s ease 0.6s forwards;
}
.skip-intro:hover { color: #0f1722; background: rgba(15,23,34,0.08); }

/* ====================== NAVBAR ====================== */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  pointer-events: none;                          /* hidden until scrolled */
  opacity: var(--p, 0);
  transform: translate3d(0, calc((var(--p, 0) - 1) * 14px), 0);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
body.scrolled header.nav { pointer-events: auto; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 10px auto; max-width: var(--maxw); padding: 10px 16px 10px 20px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,0.55);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo-mark { height: 40px; width: auto; flex: none; display: flex; align-items: center; }
.brand .logo-mark img, .brand .logo-mark picture { height: 100%; width: auto; display: block; }
.brand b { color: var(--blue-bright); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted); padding: 9px 14px; border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: all 0.3s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(15deg); }
.theme-toggle svg { width: 19px; height: 19px; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap; touch-action: manipulation;
}
a, button, .chip, .btn, [role="button"] { touch-action: manipulation; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ee5a60, #d8333b 62%);
  background-size: 150% 150%; background-position: 0% 50%;
  box-shadow: 0 8px 22px -14px rgba(200,40,48,0.5);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 14px 30px -14px rgba(200,40,48,0.55); }
/* Sekcja "Darmowa wycena" — przyciski w błękicie KLIMA (#38bdf8) */
.form-card .btn-primary {
  background: linear-gradient(135deg, #6cd0fb, #38bdf8 62%);
  box-shadow: 0 8px 22px -14px rgba(56,189,248,0.55);
}
.form-card .btn-primary:hover { box-shadow: 0 14px 30px -14px rgba(56,189,248,0.6); }
.form-card .chip.active { background: linear-gradient(135deg, #6cd0fb, var(--blue-deep)); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; overflow-y: auto;
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(56,189,248,0.12), transparent 62%),
    var(--bg);
  backdrop-filter: blur(24px) saturate(120%); -webkit-backdrop-filter: blur(24px) saturate(120%);
  display: flex; flex-direction: column; gap: 2px; padding: 92px 22px 36px;
  transform: translateY(-100%); transition: transform 0.45s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 6.2vw, 27px);
  padding: 17px 4px; border-bottom: 1px solid var(--border); color: var(--text);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.mobile-menu a:not(.btn)::after { content: "→"; color: var(--text-dim); font-size: 17px; font-weight: 600; }
.mobile-menu a:not(.btn):active { color: var(--blue-bright); padding-left: 10px; }
.mobile-menu .btn { margin-top: 26px; width: 100%; font-size: 16px; padding: 17px 20px; }

/* ====================== HERO ====================== */
.hero { position: relative; padding: 116px 0 80px; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; overflow: hidden; }
.hero .wrap { width: 100%; }

/* AC unit sits at the top, in normal flow; lifts away on scroll */
.hero-visual { position: relative; width: min(820px, 82vw); margin: 0 auto; z-index: 2;
  transform-origin: 50% 0%; will-change: transform, opacity; backface-visibility: hidden;
  transform: translate3d(0, calc(var(--p, 0) * -56px), 0) scale(calc(1 - var(--p, 0) * 0.10));
  opacity: clamp(0, calc(1 - var(--p, 0) * 1.3), 1);
  transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hero-ac { position: relative; z-index: 1; animation: floatAC 7s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(20, 45, 90, 0.22)); }
.hero-ac img, .hero-ac picture { display: block; width: 100%; height: auto; }
@keyframes floatAC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
#coldair { position: absolute; top: 56%; left: 50%; transform: translateX(-50%); width: 118%; height: 520px; z-index: -1; pointer-events: none; overflow: hidden; }
/* cząsteczki zimnego powietrza — animowane na kompozytorze (transform+opacity),
   więc płynne także podczas scrolla, niezależnie od głównego wątku */
.coldair span { position: absolute; top: 0; left: var(--x, 50%); width: var(--size, 3px); height: var(--size, 3px);
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, hsla(202,95%,66%,0.95), hsla(200,90%,60%,0.15) 70%, transparent 75%);
  opacity: 0; will-change: transform, opacity;
  animation: cifall var(--d, 5s) linear var(--delay, 0s) infinite; }
@keyframes cifall {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--o, 0.5); }
  82%  { opacity: var(--o, 0.5); }
  100% { transform: translate3d(var(--dx, 0px), var(--travel, 220px), 0); opacity: 0; }
}
/* faliste wstęgi „wiatru" — opadają wijąc się na boki, też na kompozytorze */
.coldair i { position: absolute; top: 0; left: var(--x, 50%); width: var(--w, 2px); height: var(--h, 70px);
  border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(to bottom, transparent, hsla(202,95%,68%,0.85) 45%, hsla(200,90%,62%,0.4) 70%, transparent);
  filter: blur(1.4px);
  animation: windflow var(--d, 7s) ease-in-out var(--delay, 0s) infinite; }
@keyframes windflow {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--o, 0.4); }
  30%  { transform: translate3d(var(--amp, 14px), calc(var(--travel, 260px) * 0.28), 0); }
  55%  { transform: translate3d(calc(var(--amp, 14px) * -1), calc(var(--travel, 260px) * 0.52), 0); }
  78%  { transform: translate3d(var(--amp, 14px), calc(var(--travel, 260px) * 0.76), 0); }
  88%  { opacity: var(--o, 0.4); }
  100% { transform: translate3d(0, var(--travel, 260px), 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .coldair span, .coldair i { animation: none; opacity: 0; } }
.hero-mist { position: absolute; top: 62%; left: 50%; transform: translateX(-50%); width: 130%; height: 470px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(56,189,248,0.30), rgba(56,189,248,0.05) 55%, transparent 72%);
  filter: blur(20px); }

/* nav buttons mounted under the AC; cross-fade out as the sticky bar slides in */
.ac-nav { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
  margin: 0 auto clamp(12px, 1.8vw, 24px); will-change: transform, opacity; backface-visibility: hidden;
  transform: translate3d(0, calc(var(--p, 0) * -38px), 0) scale(calc(1 - var(--p, 0) * 0.06));
  opacity: clamp(0, calc(1 - var(--p, 0) * 1.6), 1);
  transition: transform .3s var(--ease), opacity .3s var(--ease); }
body.scrolled .ac-nav { pointer-events: none; }
.ac-nav-links { display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 44px -22px rgba(20,45,90,0.5), inset 0 1px 1px rgba(255,255,255,0.6); }
.ac-nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-muted); padding: 9px 15px; border-radius: 999px; transition: color .22s var(--ease), background .22s var(--ease); }
.ac-nav-links a:hover { color: var(--text); background: var(--surface); }
.ac-burger { display: none; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text);
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 44px -22px rgba(20,45,90,0.5), inset 0 1px 1px rgba(255,255,255,0.6); }
.ac-burger svg { width: 18px; height: 18px; }

/* hero text on an airy glass panel with a brand-tinted halo */
.hero-copy { position: relative; z-index: 3; width: min(700px, 92vw); margin: clamp(36px, 5vw, 76px) auto 0;
  padding: clamp(34px, 4.6vw, 56px) clamp(30px, 4.6vw, 58px);
  border-radius: 30px 30px 30px 30px; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.46));
  backdrop-filter: blur(20px) saturate(128%); -webkit-backdrop-filter: blur(20px) saturate(128%);
  border: 1px solid transparent;
  box-shadow:
    0 30px 68px -38px rgba(20, 55, 110, 0.30),
    inset 0 1px 1px rgba(255,255,255,0.95); }
/* gradient brand hairline (red -> blue) that ties the card to the page */
.hero-copy::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
  padding:1.4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(56,189,248,0.45) 60%, rgba(56,189,248,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.5; }
/* soft mesh-gradient glow behind the panel for depth */
.hero-copy::after { content:""; position:absolute; inset:-26% -16%; z-index:-2; border-radius:50%; pointer-events:none;
  background:
    radial-gradient(48% 50% at 26% 18%, rgba(56,189,248,0.22), transparent 70%),
    radial-gradient(46% 52% at 82% 88%, rgba(224,37,46,0.14), transparent 70%);
  filter: blur(36px); }
[data-theme="dark"] .hero-copy {
  background: linear-gradient(180deg, rgba(226,242,252,0.13), rgba(160,205,235,0.06));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255,255,255,0.20); }
[data-theme="dark"] .hero-copy::before { opacity: 0.5; }
.hero h1 { font-size: clamp(36px, 6.4vw, 76px); margin: 20px 0 0; }
.hero h1 .grad-cool { background: linear-gradient(120deg, var(--blue), var(--blue-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .grad-warm { background: linear-gradient(120deg, var(--red-bright), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.1vw, 20px); color: var(--text-muted); margin: 20px auto 0; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.stat-glass {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--glass); backdrop-filter: blur(16px);
  padding: 16px 22px; text-align: left; min-width: 140px;
}
.stat-glass b { font-family: var(--font-display); font-size: 28px; display: block; letter-spacing: -0.02em; }
.stat-glass span { font-size: 13px; color: var(--text-dim); }

/* ====================== SECTION SHELL ====================== */
section { position: relative; padding: 100px 0; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 5vw, 52px); margin: 18px 0 0; }
.sec-head p { color: var(--text-muted); font-size: 17px; margin-top: 16px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { will-change: auto; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* brands */
.brands { display: flex; flex-wrap: wrap; gap: 14px 38px; justify-content: center; align-items: center; opacity: 0.85; }
.brands span { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 3vw, 26px); color: var(--text-dim); letter-spacing: 0.02em; transition: color 0.3s var(--ease); }
.brands span:hover { color: var(--text); }

/* ====================== BENTO SERVICES ====================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  backdrop-filter: blur(14px); padding: 30px; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(60% 60% at 30% 0%, rgba(56,189,248,0.14), transparent 70%); }
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card.span-3 { grid-column: span 3; } .card.span-2 { grid-column: span 2; } .card.span-4 { grid-column: span 4; } .card.span-6 { grid-column: span 6; }
.card .icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--surface-2); border: 1px solid var(--border); }
.card .icon svg { width: 27px; height: 27px; }
.icon.warm { box-shadow: inset 0 0 0 1px rgba(224,37,46,0.25); color: var(--red-bright); }
.icon.cool { box-shadow: inset 0 0 0 1px rgba(56,189,248,0.3); color: var(--blue-bright); }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15.5px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--blue-bright); }
.card .more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

/* feature split */
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.feat-list { display: grid; gap: 14px; margin-top: 26px; }
.feat-item { display: flex; gap: 14px; align-items: flex-start; }
.feat-item .tick { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; }
.feat-item .tick svg { width: 15px; height: 15px; }
.feat-item b { font-family: var(--font-display); font-size: 16.5px; }
.feat-item span { color: var(--text-muted); font-size: 14.5px; }
.feature-visual { border: 1px solid var(--border); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px); padding: 34px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 28px; position: relative; }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--blue-bright); }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(14px); padding: 28px; }
.stars { display: flex; gap: 3px; color: #ffb020; margin-bottom: 14px; }
.stars svg { width: 17px; height: 17px; }
.tcard p { font-size: 15.5px; color: var(--text); }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, rgba(56,189,248,0.22), rgba(56,189,248,0.12));
  border: 1px solid rgba(56,189,248,0.30); color: var(--red); }
.tcard .av svg { width: 24px; height: 24px; }
.tcard .who b { font-size: 15px; display: block; } .tcard .who span { font-size: 13px; color: var(--text-dim); }

/* CTA band */
.cta-band { position: relative; border: 1px solid var(--border-strong); border-radius: 32px; overflow: hidden; padding: 64px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(224,37,46,0.12), rgba(56,189,248,0.12)); backdrop-filter: blur(16px); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 60% at 15% 10%, rgba(224,37,46,0.35), transparent 60%), radial-gradient(45% 60% at 85% 90%, rgba(56,189,248,0.35), transparent 60%); filter: blur(10px); }
.cta-band h2 { font-size: clamp(30px, 5vw, 50px); }
.cta-band p { color: var(--text-muted); font-size: 18px; margin: 16px auto 30px; max-width: 540px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.form-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(16px); padding: 34px; }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .sub { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; transition: all 0.25s var(--ease); color: var(--text-muted); user-select: none; }
.chip:hover { color: var(--text); }
.chip.active { background: linear-gradient(135deg, var(--red), var(--blue-deep)); color: #fff; border-color: transparent; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,189,248,0.18); }
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12.5px; color: var(--text-dim); margin-top: 8px; }
.form-status { font-size: 14px; font-weight: 600; margin-top: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); }
.form-status.ok { color: #0c8f4d; background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.35); }
.form-status.err { color: #c0303a; background: rgba(224,37,46,0.08); border-color: rgba(224,37,46,0.35); }

.info-col { display: flex; flex-direction: column; gap: 18px; }
.info-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(14px); padding: 26px; }
.info-card h4 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.info-card h4 svg { width: 19px; height: 19px; color: var(--blue-bright); }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-dim); } .info-row a, .info-row b { font-weight: 600; color: var(--text); }
.info-card address { font-style: normal; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--text-muted); font-size: 14.5px; margin-top: 16px; max-width: 280px; }
.foot-col h5 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-muted); font-size: 14.5px; padding: 5px 0; transition: color 0.25s var(--ease); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
/* kontrast WCAG: w jasnym motywie ciemniejszy błękit marki w stopce (na białym tle) */
[data-theme="light"] .foot-brand .brand b { color: #0a6699; }

/* float call btn */
.float-call { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, #ee5a60, #d8333b); box-shadow: 0 10px 26px -14px rgba(200,40,48,0.5);
  transition: transform 0.3s var(--ease); }
.float-call:hover { transform: translateY(-3px) scale(1.03); }
.float-call svg { width: 19px; height: 19px; }
.float-call .pulse { position: absolute; inset: 0; border-radius: 999px; border: 2px solid rgba(216,51,59,0.5);
  animation: pulse 2.6s var(--ease) infinite; will-change: transform, opacity; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(1.35); opacity: 0; } }

/* ====================== MAPA (click-to-load) ====================== */
.map-card { padding: 0; overflow: hidden; }
.map-card.map-loaded { aspect-ratio: 16 / 10; min-height: 220px; }
.map-card iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-load { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 18px 20px; background: none; border: 0; cursor: pointer; color: var(--text);
  font: inherit; transition: background var(--ease) .25s; flex-wrap: wrap; }
.map-load:hover { background: rgba(56,189,248,0.07); }
.map-load-icon { display: inline-flex; flex: none; }
.map-load-text { display: flex; flex-direction: column; gap: 2px; }
.map-load-text b { font-size: 15px; }
.map-load-text small { color: var(--text-dim); font-size: 12.5px; }
.map-load-cta { width: 100%; font-size: 12px; font-weight: 600; color: var(--blue-bright);
  padding-top: 4px; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 980px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .nav-right { margin-left: auto; gap: 8px; }   /* group theme toggle to the right, beside menu */
  .ac-nav-links { display: none; }
  .ac-burger { display: inline-flex; }
  .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: 1fr; }
  .card.span-3, .card.span-2, .card.span-4 { grid-column: span 6; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 26px; }
  .nav-inner { padding: 8px 10px 8px 14px; gap: 10px; }
  .cta-band { padding: 48px 22px; }
  /* phone animation polish: shorter, snappier reveals + calmer float */
  .reveal { transform: translateY(22px); transition-duration: .55s; }
  .reveal.d1 { transition-delay: .05s; } .reveal.d2 { transition-delay: .1s; }
  .reveal.d3 { transition-delay: .15s; } .reveal.d4 { transition-delay: .2s; }
  .ac-nav { gap: 7px; margin-bottom: clamp(30px, 7vw, 44px); }
  .hero-ac { animation-duration: 8.5s; }
  /* contact + stat rows: stack so labels/values never collide or wrap mid-number */
  .info-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .info-row > span { font-size: 13px; }
  .info-row a, .info-row b { text-align: left; }
  .info-row a[href^="tel:"] { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* ====================== SUBPAGES ====================== */
body.subpage { overflow-x: hidden; }
.subpage header.nav { opacity: 1 !important; transform: none !important; pointer-events: auto; }
.sub-hero { position: relative; padding: 152px 0 56px; text-align: center; overflow: hidden; }
.sub-hero .eyebrow { justify-content: center; }
.sub-hero h1 { font-size: clamp(34px, 6vw, 62px); margin: 16px auto 0; max-width: 18ch; line-height: 1.04; letter-spacing: -0.02em; }
.sub-hero p.lead { font-size: clamp(16px, 2.1vw, 20px); color: var(--text-muted); margin: 20px auto 0; max-width: 620px; }
.sub-hero .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.breadcrumb a { color: var(--text-dim); } .breadcrumb a:hover { color: var(--blue-bright); }
.breadcrumb span { opacity: 0.5; }
.prose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4 / 3; display: block; background: linear-gradient(155deg, rgba(56,189,248,0.10), rgba(224,37,46,0.06));
  box-shadow: 0 20px 44px -30px rgba(20,55,110,0.4); }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px 16px 14px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(8,20,40,0.78)); color: #fff; }
.gallery-item b { font-family: var(--font-display); font-size: 16px; color: #fff; }
.gallery-item span { display: block; font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; margin-bottom: 12px; }
.faq-item h4 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .prose-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sub-hero { padding-top: 126px; } .gallery-grid { grid-template-columns: 1fr; } }

/* ====================== ZGODA RODO (formularz) ====================== */
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; cursor: pointer;
  font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.consent-row input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--red); cursor: pointer; }
.consent-row a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* ====================== STOPKA — DANE ADO + LINKI PRAWNE ====================== */
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 18px 0 14px; margin-top: 8px; border-top: 1px solid var(--border); }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.foot-legal-links a, .foot-legal-links button { font-size: 13px; color: var(--text-muted); background: none; border: 0;
  padding: 0; cursor: pointer; font-family: inherit; transition: color 0.2s var(--ease); }
.foot-legal-links a:hover, .foot-legal-links button:hover { color: var(--text); }
.foot-ado { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ====================== BANER COOKIES ====================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 14px clamp(14px, 4vw, 28px);
  transform: translateY(120%); transition: transform 0.5s var(--ease); }
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px 26px;
  flex-wrap: wrap; justify-content: space-between;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-sm);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px -28px rgba(20,55,110,0.5); padding: 16px 20px; }
.cookie-text { flex: 1 1 360px; }
.cookie-text strong { font-family: var(--font-display); font-size: 15px; display: block; margin-bottom: 3px; }
.cookie-text p { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.cookie-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ====================== POLITYKA — TREŚĆ PRAWNA ====================== */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 38px 0 12px; }
.legal-doc h3 { font-size: 17px; margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.legal-doc ul { margin: 8px 0 8px 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc .meta { font-size: 13px; color: var(--text-dim); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal-doc th { background: var(--glass); font-family: var(--font-display); }

/* ====================== REDUCED MOTION ======================
   Wyłącz ciężkie, nieskończone animacje dla osób z preferencją
   ograniczonego ruchu i słabszych urządzeń (oszczędza CPU/GPU). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .mesh, .hero-ac, .float-call .pulse { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
