/* Strona główna CEPEST. Kolory jak w ulotkach: ciemna zieleń #013330 + czerwień logo jako akcent. */
:root {
    --green-950: #011a18;
    --green-900: #013330;
    --green-800: #03453f;
    --green-700: #0a5c53;
    --mint: #5fe0b7;
    --red: #e32426;
    --red-600: #c81d20;
    --ink: #0d2523;
    --muted: #5a6e6b;
    --line: #e2eae8;
    --tint: #f3f7f6;
    --white: #ffffff;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 8px rgba(1, 51, 48, .06);
    --shadow: 0 18px 50px -18px rgba(1, 51, 48, .28);
    --shadow-lg: 0 40px 90px -30px rgba(1, 26, 24, .55);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 40px); }

.ico {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.text-accent {
    background: linear-gradient(100deg, var(--mint), #b7f5df 60%, var(--mint));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px; padding: .75em 1.5em;
    border: 2px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .98rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.btn--sm { min-height: 42px; padding: .55em 1.15em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .9em 1.8em; font-size: 1.02rem; }
.btn--accent { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(227, 36, 38, .7); }
.btn--accent:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(227, 36, 38, .75); }
.btn--primary { background: var(--green-900); color: var(--white); box-shadow: 0 10px 24px -12px rgba(1, 51, 48, .8); }
.btn--primary:hover { background: var(--green-800); transform: translateY(-2px); }
.btn--outline { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn--outline:hover { background: var(--green-900); color: var(--white); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--green-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.btn--glass { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em; margin: 0 0 14px;
    font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--mint); }

/* ---------- Nagłówek ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    display: flex; align-items: center; color: var(--white);
    transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
    --header-h: 66px;
    background: rgba(1, 40, 37, .86); backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo bez dopisku (to samo co w panelu) - białe na czerwonym, zaokrąglonym tle. Filtr robi z czerwonego PNG
   białe, zachowując przezroczyste wygaszenia pasków. */
.logo-badge { display: inline-flex; align-items: center; padding: 7px 12px; background: var(--red); border-radius: 8px; box-shadow: 0 6px 18px -8px rgba(227, 36, 38, .8); }
.logo-badge img { display: block; height: 30px; width: auto; filter: brightness(0) invert(1); }
.logo-badge--lg { padding: 9px 15px; }
.logo-badge--lg img { height: 38px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a {
    position: relative; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: rgba(255, 255, 255, .85);
    transition: color .2s;
}
.site-nav > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav > a:hover { color: var(--white); }
.site-nav > a:hover::after { transform: scaleX(1); }
.site-nav__actions { display: flex; gap: 10px; margin-left: 14px; }
.nav-toggle {
    display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06); color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .ico { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--header-h) + 72px) 0 120px;
    background: radial-gradient(120% 90% at 85% 10%, var(--green-700) 0%, var(--green-900) 45%, var(--green-950) 100%);
    color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.hero__glow--a { width: 520px; height: 520px; right: -120px; top: -120px; background: rgba(95, 224, 183, .35); }
.hero__glow--b { width: 420px; height: 420px; left: -160px; bottom: -180px; background: rgba(227, 36, 38, .28); animation-delay: -6s; }
.hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .8); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .93rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .ico { color: var(--mint); }

/* Makieta aplikacji */
.hero__visual { position: relative; perspective: 1400px; }
.mock {
    position: relative; border-radius: 18px; overflow: hidden; background: var(--white); color: var(--ink);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .12);
    transform: rotateY(-9deg) rotateX(5deg); transform-style: preserve-3d;
    transition: transform .8s var(--ease);
}
.hero__visual:hover .mock { transform: rotateY(-3deg) rotateX(2deg); }
.mock__bar {
    display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f1f4f3; border-bottom: 1px solid var(--line);
    font-size: .74rem; font-weight: 600; color: var(--muted);
}
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dfdd; }
.mock__bar i:first-child { background: var(--red); }
.mock__bar span { margin-left: 10px; }
.mock__body { display: grid; grid-template-columns: 112px 1fr; min-height: 330px; }
.mock__side { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--line); background: #fafcfb; }
.mock__side b { padding: 8px 10px; border-radius: 8px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.mock__side b.is-active { background: var(--green-900); color: var(--white); }
.mock__map {
    position: relative; margin: 14px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(#eef3f2 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, #eef3f2 1px, transparent 1px) 0 0 / 22px 22px, #fbfdfc;
    border: 1px solid var(--line);
}
.room { position: absolute; border: 2px solid #9fb3af; border-radius: 3px; }
.r1 { left: 6%; top: 8%; width: 38%; height: 40%; }
.r2 { left: 44%; top: 8%; width: 26%; height: 40%; }
.r3 { left: 70%; top: 8%; width: 24%; height: 62%; }
.r4 { left: 6%; top: 48%; width: 22%; height: 44%; }
.r5 { left: 28%; top: 48%; width: 42%; height: 44%; }
.heat { position: absolute; border-radius: 50%; filter: blur(14px); animation: breathe 4s ease-in-out infinite; }
.h1 { left: 50%; top: 52%; width: 120px; height: 90px; background: radial-gradient(circle, rgba(227, 36, 38, .75), rgba(255, 196, 0, .5) 45%, rgba(64, 200, 120, .25) 70%, transparent 75%); }
.h2 { left: 72%; top: 14%; width: 90px; height: 80px; background: radial-gradient(circle, rgba(255, 196, 0, .65), rgba(64, 200, 120, .3) 55%, transparent 72%); animation-delay: -2s; }
.dev {
    position: absolute; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
    background: #22a06b; color: var(--white); font-size: .62rem; font-weight: 800;
    box-shadow: 0 4px 10px -3px rgba(34, 160, 107, .7); animation: popIn .6s var(--ease) both;
}
.dev--alert { background: var(--red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(227, 36, 38, .6); animation: popIn .6s var(--ease) both, pulse 1.8s ease-out infinite 1s; }
.d1 { left: 14%; top: 18%; animation-delay: .5s; } .d2 { left: 32%; top: 30%; animation-delay: .6s; }
.d3 { left: 52%; top: 20%; animation-delay: .7s; } .d4 { left: 12%; top: 66%; animation-delay: .8s; }
.d5 { left: 56%; top: 62%; animation-delay: .9s; } .d6 { left: 80%; top: 50%; animation-delay: 1s; }
.d7 { left: 38%; top: 76%; animation-delay: 1.1s; } .d8 { left: 78%; top: 22%; animation-delay: 1.2s; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink);
    box-shadow: var(--shadow); font-size: .86rem; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); font-size: .76rem; }
.float-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-900); color: var(--white); }
.float-card__icon--red { background: var(--red); }
.float-card--notify { right: -18px; top: -26px; }
.float-card--report { left: -34px; bottom: -28px; animation-delay: -3s; }

/* ---------- Filary ---------- */
.pillars { position: relative; z-index: 2; margin-top: -56px; }
.pillars__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 28px 26px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar h3 { font-size: 1.02rem; margin-bottom: 4px; }
.pillar p { font-size: .9rem; color: var(--muted); }
.pillar__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fdeaea; color: var(--red); }
.pillar__icon .ico { width: 24px; height: 24px; }

/* ---------- Sekcje ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--green-900); color: var(--white); position: relative; overflow: hidden; }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section__lead { font-size: 1.08rem; color: var(--muted); }
.section--dark .section__lead { color: rgba(255, 255, 255, .75); }

/* Zakładki funkcji */
.tabs {
    position: relative; display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 6px;
    background: var(--tint); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
    border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: color .3s;
}
.tabs__btn.is-active { color: var(--white); }
.tabs__btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.tabs__ink {
    position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
    background: var(--green-900); box-shadow: 0 8px 18px -8px rgba(1, 51, 48, .8);
    transition: transform .45s var(--ease), width .45s var(--ease);
}
.tab-panel.is-active { animation: fadeUp .5s var(--ease) both; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature {
    position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, var(--mint), transparent 40%, transparent 60%, var(--red));
    -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 .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature__list { margin: 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.feature__list li + li { margin-top: 4px; }
.feature__icon {
    display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
    background: linear-gradient(140deg, var(--green-900), var(--green-700)); color: var(--white);
    box-shadow: 0 10px 22px -10px rgba(1, 51, 48, .8);
}
.feature__icon .ico { width: 26px; height: 26px; }
.feature__icon--light { background: rgba(255, 255, 255, .1); box-shadow: none; color: var(--mint); }
.feature--cta { background: linear-gradient(160deg, #f0faf6, var(--white)); }
.feature--cta .btn { margin-top: 10px; }

/* Wideo */
.video-section::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 224, 183, .18), transparent 65%);
}
.section__head--light .section__title { color: var(--white); }
.video-frame {
    position: relative; max-width: 980px; margin: 0 auto; padding: 10px; border-radius: 26px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04));
    box-shadow: var(--shadow-lg);
}
.video-frame video { width: 100%; max-height: 70vh; border-radius: 18px; background: #000; }

/* O systemie */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.about__media::after {
    content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 55%; z-index: -1;
    border-radius: 28px; background: repeating-linear-gradient(-45deg, var(--green-900) 0 2px, transparent 2px 12px); opacity: .18;
}
.about__copy p { color: var(--muted); font-size: 1.03rem; }
.about__copy .eyebrow { margin-bottom: 14px; }

/* ---------- Pakiety ---------- */
.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.package {
    position: relative; display: flex; flex-direction: column; padding: 32px 24px 26px; border-radius: 24px;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.package:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.package__icon {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px;
    background: #fdeaea; color: var(--red);
}
.package__icon .ico { width: 28px; height: 28px; }
.package__name { font-size: 1.3rem; font-weight: 800; }
.package__tag { margin: 6px 0 0; color: var(--green-700); font-weight: 600; font-size: .95rem; }
.package__tag::after { content: ""; display: block; width: 34px; height: 3px; margin: 18px 0; border-radius: 3px; background: var(--red); opacity: .55; }
.package__desc { flex: 1; color: var(--muted); font-size: .96rem; margin-bottom: 26px; }
.package__btn { width: 100%; padding-inline: .9em; font-size: .93rem; white-space: normal; text-align: center; }
.package--featured {
    background: linear-gradient(165deg, var(--green-800), var(--green-900) 55%, var(--green-950)); color: var(--white);
    border-color: transparent; box-shadow: 0 30px 60px -24px rgba(1, 51, 48, .75); transform: translateY(-10px);
}
.package--featured:hover { transform: translateY(-16px); }
.package--featured::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 60% at 100% 0%, rgba(95, 224, 183, .25), transparent 60%);
}
.package--featured .package__icon { background: var(--white); color: var(--red); }
.package--featured .package__tag { color: var(--mint); }
.package--featured .package__tag::after { background: var(--mint); opacity: .8; }
.package--featured .package__desc { color: rgba(255, 255, 255, .8); }
.package__badge {
    position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px;
    background: var(--red); color: var(--white); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 8px 18px -8px rgba(227, 36, 38, .9);
}
.package.is-selected { outline: 3px solid var(--mint); outline-offset: 4px; }

.inquiry {
    display: grid; grid-template-columns: 260px 1fr; gap: 36px; margin-top: 36px; padding: 34px;
    border-radius: 24px; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line);
    animation: fadeUp .5s var(--ease) both;
}
.inquiry__intro { position: relative; }
.inquiry__intro h3 { font-size: 1.3rem; margin-bottom: 10px; }
.inquiry__intro p { color: var(--muted); font-size: .95rem; }
.inquiry__close {
    position: absolute; top: -12px; right: -12px; display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--white); cursor: pointer; place-items: center; color: var(--muted);
}

/* Formularze */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; align-items: end; }
.form-grid__submit { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.field em { font-style: normal; color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: #fbfcfc; font-weight: 500; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green-700); background: var(--white); box-shadow: 0 0 0 4px rgba(10, 92, 83, .14);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 36, 38, .12); }
.field--dark { color: rgba(255, 255, 255, .9); }
.field--dark input, .field--dark textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--white); }
.field--dark input:focus, .field--dark textarea:focus { background: rgba(255, 255, 255, .1); border-color: var(--mint); box-shadow: 0 0 0 4px rgba(95, 224, 183, .18); }
.field--full { grid-column: 1 / -1; }
.btn[disabled] { opacity: .7; cursor: wait; }
/* Wysyłanie formularza: kółko w kolorze napisu zamiast tekstu, szerokość przycisku bez zmian */
.btn.is-loading { position: relative; color: transparent !important; opacity: 1; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
    border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: var(--white);
    animation: spin .7s linear infinite;
}
.btn--outline.is-loading::after, .btn--light.is-loading::after { border-color: rgba(1, 51, 48, .2); border-top-color: var(--green-900); }
/* ---------- Okno "trwa wysyłanie" (loader.js) ---------- */
.cl-lock, .cl-lock body { overflow: hidden; }
.cl-overlay {
    position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px;
    background: rgba(1, 26, 24, .42); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.cl-overlay.is-open { opacity: 1; visibility: visible; }
.cl-card {
    position: relative; isolation: isolate; overflow: hidden; width: min(380px, 100%); padding: 40px 32px 30px;
    border-radius: 26px; text-align: center; color: var(--white);
    background: radial-gradient(120% 100% at 85% 0%, var(--green-700) 0%, var(--green-900) 50%, var(--green-950) 100%);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translateY(16px) scale(.96); transition: transform .45s var(--ease);
}
.cl-overlay.is-open .cl-card { transform: none; }
.cl-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .6; }
.cl-glow--a { width: 220px; height: 220px; right: -80px; top: -90px; background: rgba(95, 224, 183, .35); animation: drift 9s ease-in-out infinite alternate; }
.cl-glow--b { width: 200px; height: 200px; left: -90px; bottom: -110px; background: rgba(227, 36, 38, .3); animation: drift 11s ease-in-out infinite alternate-reverse; }
.cl-grid {
    position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}
/* Logo w kafelku z "orbitą" - pierścień kręci się wokół logo */
.cl-mark { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; display: grid; place-items: center; }
.cl-orbit {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 55%, rgba(95, 224, 183, .15) 62%, var(--mint) 88%, #fff 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation: spin 1.1s linear infinite;
}
.cl-orbit::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
.cl-badge {
    display: inline-flex; padding: 9px 14px; background: var(--red); border-radius: 10px;
    box-shadow: 0 10px 26px -8px rgba(227, 36, 38, .9); animation: clPulse 1.8s ease-in-out infinite;
}
.cl-badge img { display: block; height: 30px; width: auto; filter: brightness(0) invert(1); }
.cl-title { margin: 0 0 6px !important; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.cl-text { margin: 0 0 22px !important; font-size: .95rem; color: rgba(255, 255, 255, .72); }
/* Pasek postępu bez końca - "coś się dzieje" */
.cl-progress { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cl-progress span {
    position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 4px;
    background: linear-gradient(90deg, transparent, var(--mint), #fff, var(--mint), transparent);
    animation: clSlide 1.3s var(--ease) infinite;
}
@keyframes clPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes clSlide { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .cl-orbit, .cl-badge, .cl-progress span, .cl-glow { animation: none; }
    .cl-progress span { left: 30%; }
}

/* Karta z formularzem w trakcie wysyłania - lekko przygaszona, bez klikania */
.is-busy form { pointer-events: none; }
.is-busy .field, .is-busy .form-group, .is-busy .form-check, .is-busy .agreements { opacity: .55; transition: opacity .2s; }

/* ---------- Wersja testowa ---------- */
.trial-section { padding-top: 0; padding-bottom: 0; background: linear-gradient(var(--tint) 50%, var(--white) 50%); }
.trial {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr auto; gap: 40px; align-items: center;
    padding: 56px; border-radius: 30px; color: var(--white);
    background: linear-gradient(120deg, var(--green-950), var(--green-900) 45%, var(--green-700));
    box-shadow: var(--shadow-lg);
}
.trial::after {
    content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
    border: 60px solid rgba(227, 36, 38, .22); animation: spin 30s linear infinite;
}
.trial > * { position: relative; z-index: 1; }
.trial__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--red); }
.trial__icon .ico { width: 28px; height: 28px; }
.trial__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: 14px; }
.trial p { color: rgba(255, 255, 255, .82); max-width: 640px; }
.trial__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Kody QR / oferta rozszerzona ---------- */
.extras { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.extra { padding: 40px; border-radius: 26px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.extra p { color: var(--muted); }
.extra__title { font-size: 1.7rem; font-weight: 800; margin: 20px 0 14px; }
.extra--dark { background: radial-gradient(120% 80% at 100% 0%, var(--green-700), var(--green-900) 60%); color: var(--white); border-color: transparent; display: flex; flex-direction: column; align-items: flex-start; }
.extra--dark p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.extra--dark .btn { margin-top: auto; }
.muted-light { font-size: .9rem !important; color: rgba(255, 255, 255, .6) !important; margin-bottom: 28px !important; }
.table-wrap { margin-top: 24px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .93rem; }
.price-table th, .price-table td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th[scope="row"] { text-align: left; background: var(--green-900); color: var(--white); font-weight: 600; width: 30%; }
.price-table thead th:not([scope]) { background: var(--tint); font-weight: 800; color: var(--green-900); }
.price-table tbody tr:hover td { background: #f6faf9; }

/* ---------- Kontakt ---------- */
.contact::before {
    content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 36, 38, .2), transparent 65%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact__copy p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; margin-bottom: 28px; }
.contact__copy .section__title { color: var(--white); }
.contact__line { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-weight: 700; font-size: 1.1rem; width: max-content; }
.contact__line span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--mint); transition: background-color .25s; }
.contact__line:hover span { background: var(--red); color: var(--white); }
.contact__form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 34px; border-radius: 26px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 16px 22px;
    font-weight: 700; font-size: 1.02rem; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico {
    width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--tint); color: var(--green-900);
    transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.faq__item[open] summary .ico { transform: rotate(45deg); background: var(--green-900); color: var(--white); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); animation: fadeUp .35s var(--ease) both; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .78); padding: 70px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__tagline { margin-top: 18px; max-width: 280px; }
.site-footer h3 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer__grid a { display: flex; align-items: center; gap: 10px; padding: 6px 0; transition: color .2s; width: max-content; }
.site-footer__grid a:hover { color: var(--mint); }
.site-footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(255, 255, 255, .55);
}
.site-footer__bottom a:hover { color: var(--white); }

/* ---------- Snackbar / toasty / cookies ---------- */
.snackbar {
    position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
    display: flex; align-items: flex-start; gap: 12px; width: min(560px, calc(100% - 32px)); padding: 16px 16px 16px 20px;
    border-radius: 16px; background: var(--green-900); color: var(--white); box-shadow: var(--shadow-lg);
    animation: slideUp .5s var(--ease) both;
}
.snackbar__body { flex: 1; }
.snackbar__body a { text-decoration: underline; }
.snackbar__close, .cookie-bar__close {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .1); color: var(--white); cursor: pointer;
}
.toast-stack { position: fixed; right: 20px; top: calc(var(--header-h) + 14px); z-index: 70; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast {
    display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--white);
    box-shadow: var(--shadow); border-left: 5px solid var(--green-700); animation: slideIn .45s var(--ease) both;
}
.toast--error { border-left-color: var(--red); }
.toast b { display: block; margin-bottom: 2px; }
.toast p { margin: 0; color: var(--muted); font-size: .92rem; }
.toast.is-leaving { animation: slideOut .35s var(--ease) both; }
.cookie-bar {
    position: fixed; left: 20px; bottom: 20px; z-index: 65; display: flex; gap: 14px; align-items: flex-start;
    width: min(460px, calc(100% - 40px)); padding: 18px 18px 18px 22px; border-radius: 18px;
    background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    font-size: .86rem; animation: slideUp .5s var(--ease) both;
}
.cookie-bar h6 { margin: 0 0 6px; font-size: .95rem; }
.cookie-bar p { margin: 0; color: var(--muted); }
.cookie-bar a { color: var(--green-700); text-decoration: underline; }
.cookie-bar__close { background: var(--tint); color: var(--ink); }

/* ---------- Animacje ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 36, 38, .6); } 100% { box-shadow: 0 0 0 16px rgba(227, 36, 38, 0); } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translate(var(--tx, 0), 30px); } to { opacity: 1; transform: translate(var(--tx, 0), 0); } }
.snackbar { --tx: -50%; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
    .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .package--featured { transform: none; }
    .package--featured:hover { transform: translateY(-8px); }
    .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .inquiry { grid-template-columns: 1fr; gap: 22px; }
    .inquiry__close { display: grid; top: 0; right: 0; }
    .inquiry__intro h3 { padding-right: 56px; }
}
@media (max-width: 980px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 20px 24px; background: var(--green-950);
        box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
    }
    .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .site-nav > a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
    .site-nav > a::after { display: none; }
    .site-nav__actions { margin: 18px 0 0; }
    .site-nav__actions .btn { flex: 1; min-height: 50px; }
    .hero { padding-bottom: 140px; }
    .hero__inner { grid-template-columns: 1fr; gap: 64px; }
    .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
    .mock { transform: none; }
    .pillars__grid { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2) { border-right: 0; }
    .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .extras { grid-template-columns: minmax(0, 1fr); }
    .trial { grid-template-columns: 1fr; padding: 42px 32px; }
    .trial__actions { flex-direction: row; flex-wrap: wrap; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .btn { white-space: normal; text-align: center; }
    .container, .container--narrow { width: calc(100% - 32px); }
    .section { padding: 76px 0; }
    .section__head { margin-bottom: 36px; }
    .hero { padding-top: calc(var(--header-h) + 44px); }
    .hero__cta .btn { flex: 1 1 100%; }
    .mock__body { grid-template-columns: 1fr; min-height: 250px; }
    .mock__side { display: none; }
    .float-card--notify { right: -6px; top: -30px; }
    .float-card--report { left: -6px; bottom: -34px; }
    .pillars__grid { grid-template-columns: 1fr; }
    .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
    .pillar:last-child { border-bottom: 0; }
    .tabs { width: 100%; }
    .tabs__btn { padding: 0 16px; }
    .feature-grid, .feature-grid--4, .packages, .form-grid, .contact__form { grid-template-columns: 1fr; }
    .packages { gap: 18px; }
    .inquiry, .extra, .contact__form { padding: 24px 20px; }
    .trial { padding: 34px 22px; border-radius: 24px; }
    .trial__actions .btn { flex: 1 1 100%; }
    .form-grid__submit .btn { width: 100%; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .cookie-bar { left: 12px; right: 12px; width: auto; bottom: 12px; }
    .toast-stack { right: 12px; left: 12px; width: auto; }
}
