/* twasilewski.pl. Tokeny i kroje z KV (Righteous, Plus Jakarta Sans).
   Układ: strona w ramie z cienkich linii, treść upakowana w stykające się komórki.
   Rozmiary przez clamp(), marginesy 16 px mobile i 32 px desktop. */

@font-face { font-family: "Righteous"; src: url("../fonts/righteous-latin-ext.woff2") format("woff2"); 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: "Righteous"; src: url("../fonts/righteous-latin.woff2") format("woff2"); 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: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-ext.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: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.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; }

:root {
    --bg: #0C0C0C;
    --surface: #07111B;
    --surface-deep: #040A0C;
    --accent: #6DDCFF;
    --accent-bg: rgba(109, 220, 255, 0.11);
    --accent-line: rgba(109, 220, 255, 0.19);
    --line: rgba(245, 245, 245, 0.09);
    --text: #F5F5F5;
    --muted: #A3ADB5;
    --faint: #7A848B;
    --ok: #5FD4A0;
    --on-accent: #0C0C0C;
    --radius: 8px;
    --pad: 16px;
    --max: 1240px;
    --font-display: "Righteous", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --section: clamp(3rem, 2rem + 3vw, 5.5rem);
    --glow: 0 0 0 1px var(--accent-line), 0 24px 60px -24px rgba(109, 220, 255, 0.22);
}

@media (min-width: 768px) {
    :root { --pad: 32px; }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(.975rem, .95rem + .1vw, 1.0625rem);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 1.45rem + 1.3vw, 2.6rem); line-height: 1.08; max-width: 20ch; text-wrap: balance; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.0313rem, 1rem + .15vw, 1.125rem); line-height: 1.3; }

.accent { color: var(--accent); }
.label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

/* Rama: każda sekcja ma pionowe linie po bokach, więc razem tworzą ciągłą ramę strony */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); position: relative; }
@media (min-width: 768px) { .wrap { border-inline: 1px solid var(--line); } }
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-block: var(--section); }
.section-alt { background: var(--surface-deep); }

/* Komórki: siatka stykających się pól oddzielonych linią */
.cells { list-style: none; padding: 0; margin: 0 calc(var(--pad) * -1); display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cells > * { background: var(--bg); }
.section-alt .cells > * { background: var(--surface-deep); }

/* Pas w ukośne kreski między sekcjami */
.hatch { border-top: 1px solid var(--line); }
.hatch .wrap { height: 44px; background: repeating-linear-gradient(135deg, rgba(109, 220, 255, .08) 0 1px, transparent 1px 9px); }

/* Przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: 0 1.25rem;
    border-radius: var(--radius); border: 1px solid transparent;
    font: 600 .9688rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 8px 30px -8px rgba(109, 220, 255, .6); transform: translateY(-1px); }
.btn-primary svg { transition: transform .2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: rgba(245, 245, 245, .16); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 .95rem; font-size: .875rem; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: .75rem; height: 64px; }
.logo { font-family: var(--font-display); font-size: 1.375rem; text-decoration: none; margin-right: auto; }
.logo b { color: var(--accent); font-weight: 400; }
.nav { display: none; gap: 1.75rem; margin-right: 1rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .9063rem; color: var(--muted); transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.header-contact { display: none; }
.nav-toggle { display: inline-flex; background: none; border: 0; color: var(--text); padding: .5rem; cursor: pointer; }
@media (max-width: 959px) {
    .nav.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--accent-line); padding: .5rem var(--pad) 1rem; margin: 0; }
    .nav.is-open a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
}
@media (min-width: 960px) {
    .nav { display: flex; }
    .header-contact { display: inline-flex; }
    .nav-toggle { display: none; }
}

/* Hero */
.hero-wrap { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); overflow: hidden; }
.hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 55% 60% at 75% 35%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 60% at 75% 35%, #000 10%, transparent 75%);
}
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: 5%; top: 0; width: 700px; height: 600px; pointer-events: none; background: radial-gradient(closest-side, rgba(109, 220, 255, .13), transparent); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.hero-copy > .label::before, .vs-card .label::before, .footer-grid .label::before { content: "/"; color: var(--accent); margin-right: .45em; }
.hero h1 { margin-top: 1rem; }
.lead { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.0313rem, 1rem + .25vw, 1.1875rem); color: var(--muted); }

.rot { display: inline-block; transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.rotator.is-out .rot { opacity: 0; transform: translateY(-10px); }
.rotator.is-in .rot { opacity: 0; transform: translateY(10px); transition: none; }

.url-form {
    margin-top: 1.75rem; max-width: 540px;
    display: flex; align-items: center; gap: .5rem;
    background: var(--surface); border: 1px solid var(--accent-line); border-radius: 12px;
    padding: .375rem .375rem .375rem 1rem;
    box-shadow: 0 16px 50px -24px rgba(109, 220, 255, .45);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.url-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109, 220, 255, .1), 0 16px 50px -24px rgba(109, 220, 255, .55); }
.url-icon { color: var(--accent); flex: none; }
.url-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 400 1rem/1 var(--font-body); padding: .7rem .25rem; }
.url-form input::placeholder { color: var(--faint); }
.url-form input:focus { outline: none; }
.url-form .btn { border-radius: 9px; flex: none; }
@media (max-width: 519px) {
    .url-form { flex-wrap: wrap; padding: .375rem; }
    .url-icon { margin-left: .625rem; }
    .url-form .btn { width: 100%; }
}
.micro { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1rem 0 0; padding: 0; color: var(--muted); font-size: .8438rem; }
.micro li { display: flex; align-items: center; gap: .375rem; }
.micro li::before { content: ""; width: 13px; height: 13px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236DDCFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.hero-alt { display: inline-block; margin-top: 1.25rem; color: var(--muted); font-size: .875rem; text-underline-offset: 4px; text-decoration-color: rgba(163, 173, 181, .4); }
.hero-alt:hover { color: var(--accent); }

/* Scena z kartami */
.stage { position: relative; display: grid; gap: .75rem; }
.card { background: linear-gradient(180deg, rgba(109, 220, 255, .06), transparent 45%), var(--surface); border-radius: 12px; box-shadow: var(--glow); padding: 1.125rem; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.chip { font-size: .6563rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; }

.funnel-map { list-style: none; margin: .875rem 0 0; padding: 0; display: grid; gap: .375rem; }
.funnel-map li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 7px; font-weight: 500; font-size: .875rem; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.funnel-map b { font-size: .6563rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; transition: color .4s ease; }
.funnel-map b.ok { color: var(--muted); }
.funnel-map b.ok::before { content: "● "; color: var(--ok); }
.funnel-map b.dim { color: var(--faint); }
.funnel-map .is-leak { border-color: var(--accent); background: var(--accent-bg); box-shadow: 0 0 24px -6px rgba(109, 220, 255, .5); }
.funnel-map .is-leak b { color: var(--accent); }

.chart-legend { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; font-size: .75rem; color: var(--muted); }
.chart-legend li { display: flex; align-items: center; gap: .375rem; }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.dot-spend { background: rgba(245, 245, 245, .55); }
.dot-revenue { background: var(--accent); }
.chart { width: 100%; height: auto; display: block; margin-top: .75rem; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-gap { fill: rgba(109, 220, 255, .12); }
.chart-spend { fill: none; stroke: rgba(245, 245, 245, .5); stroke-width: 2.5; stroke-dasharray: 7 7; stroke-linejoin: round; }
.chart-revenue { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(109, 220, 255, .6)); }
.chart-fix { stroke: rgba(245, 245, 245, .25); stroke-width: 1.5; stroke-dasharray: 2 5; }
.chart-label { fill: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.chart-note { fill: var(--accent); font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.chart-mark circle { fill: var(--accent); }
.chart-mark .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.chart-cover { fill: var(--surface); transform-box: fill-box; transform-origin: right; transform: scaleX(0); }

.card-alert { border-left: 2px solid var(--accent); }
.alert-kicker { color: var(--accent); display: flex; align-items: center; gap: .45rem; font-size: .6875rem; }
.alert-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.alert-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; margin-top: .5rem; transition: opacity .3s ease; }
.alert-text { color: var(--muted); font-size: .8438rem; margin-top: .375rem; transition: opacity .3s ease; }
[data-hero-alert].is-swap .alert-title, [data-hero-alert].is-swap .alert-text { opacity: 0; }
.card-chip { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; padding: .5rem .8rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.card-chip svg { color: var(--ok); }

@media (min-width: 1000px) {
    .stage { display: block; height: 470px; perspective: 1600px; }
    .stage .card { position: absolute; }
    .card-chart { left: 9%; right: 0; top: 34px; transform: rotateY(-6deg) rotateX(4deg); }
    .card-funnel { left: 0; top: 212px; width: 250px; transform: translateZ(40px) rotateY(-6deg); }
    .card-alert { right: -2%; top: 300px; width: 270px; transform: translateZ(60px) rotateY(-6deg); }
    .card-chip { right: 4%; top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .stage .card { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
    .card-funnel { animation-delay: .3s; }
    .card-alert { animation-delay: 1.8s; }
    .card-chip { animation-delay: .5s; }
    .chart-cover { animation: reveal 2s cubic-bezier(.45, .1, .3, 1) .4s both; }
    .chart-mark .pulse { animation: pulse 2s ease-out 2s 3; }
    @keyframes rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
    @keyframes reveal { from { transform: scaleX(1); } to { transform: scaleX(0); } }
    @keyframes pulse { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
}

/* Logotypy w komórkach */
.logos { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); grid-template-columns: repeat(2, 1fr); border-bottom: 0; }
.logos li { display: grid; place-items: center; min-height: 64px; padding: .875rem; }
@media (min-width: 1000px) { .logos li { min-height: 80px; } }
.logos .logos-label { grid-column: span 2; place-items: center start; padding-inline: var(--pad); }
.logos img { max-height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .5; transition: opacity .2s ease; }
.logos li:hover img { opacity: .95; }
.logos .logo-badge img { filter: grayscale(1) invert(1) brightness(1.6); }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }

/* Pasek wskaźników */
.ticker { border-top: 1px solid var(--line); overflow: hidden; background: var(--surface-deep); }
.ticker-track { display: flex; width: max-content; }
.ticker span { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .9rem 0; white-space: nowrap; display: flex; align-items: center; }
.ticker span::after { content: ""; width: 5px; height: 5px; background: var(--accent); margin-inline: 1.75rem; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
    .ticker-track { animation: ticker 50s linear infinite; }
    @keyframes ticker { to { transform: translateX(-50%); } }
}

/* Nagłówek sekcji: tytuł po lewej, opis po prawej */
.sec-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); align-items: end; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.15fr 1fr; } }
.section-lead { color: var(--muted); max-width: 52ch; }
.test-head .section-lead, .split .section-lead { margin-top: 1rem; }

/* Sytuacje */
.quotes { grid-template-columns: 1fr; counter-reset: q; }
.quotes li { counter-increment: q; padding: 1.375rem 1.25rem 1.5rem; font-size: 1.0313rem; line-height: 1.4; transition: background .2s ease; }
.quotes li:not(.quotes-cta)::before { content: "0" counter(q); display: block; font-family: var(--font-display); font-size: .9375rem; color: var(--accent); margin-bottom: .875rem; }
.quotes li:not(.quotes-cta):hover { background: var(--surface); }
.quotes .quotes-cta { display: flex; align-items: flex-end; padding: 0; }
.quotes .quotes-cta a { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; height: 100%; min-height: 110px; padding: 1.375rem 1.25rem; text-decoration: none; font-weight: 700; background: var(--accent); color: var(--on-accent); transition: filter .2s ease; }
.quotes .quotes-cta a:hover { filter: brightness(1.08); }
.quotes .quotes-cta-alt a { background: var(--surface); color: var(--text); }
.quotes .quotes-cta-alt a:hover { filter: none; background: #0B1825; }
@media (min-width: 640px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .quotes { grid-template-columns: repeat(4, 1fr); } }

/* Dlaczego */
.stats { display: flex; gap: clamp(1.5rem, 1rem + 2vw, 3rem); margin: 0; justify-self: start; }
@media (min-width: 900px) { .stats { justify-self: end; } }
.stats dt { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 1.8vw, 3.5rem); line-height: 1; color: var(--accent); text-shadow: 0 0 30px rgba(109, 220, 255, .35); }
.stats dd { margin: .5rem 0 0; color: var(--muted); max-width: 17ch; font-size: .8438rem; }

.versus { grid-template-columns: 1fr; }
@media (min-width: 960px) { .versus { grid-template-columns: 1fr 1fr 1.1fr; } }
.vs-card { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.vs-diagram { width: 100%; max-width: 320px; height: auto; margin: 1rem 0 1.25rem; overflow: visible; }
.vs-diagram line { stroke: rgba(245, 245, 245, .18); stroke-width: 1.5; stroke-dasharray: 4 5; }
.vs-diagram circle { fill: var(--surface); stroke: rgba(245, 245, 245, .35); stroke-width: 1.5; }
.vs-diagram .n-you { fill: rgba(245, 245, 245, .85); stroke: none; }
.vs-diagram text { fill: var(--faint); font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-anchor: middle; }
.vs-diagram text[text-anchor="start"] { text-anchor: start; }
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.vs-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .9063rem; line-height: 1.45; }
.vs-list li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 13px; height: 13px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A848B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.versus .vs-card.is-me { background: radial-gradient(120% 80% at 50% 0%, rgba(109, 220, 255, .14), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line); }
.vs-card.is-me .label { color: var(--accent); }
.vs-card.is-me .vs-list li { color: var(--text); font-weight: 500; }
.vs-card.is-me .vs-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236DDCFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.vs-card.is-me .vs-diagram line { stroke: var(--accent); stroke-dasharray: none; opacity: .55; }
.vs-card.is-me .vs-diagram .l-strong { stroke-width: 3; opacity: 1; filter: drop-shadow(0 0 6px rgba(109, 220, 255, .7)); }
.vs-card.is-me .vs-diagram circle { stroke: var(--accent); }
.vs-card.is-me .vs-diagram .n-me { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 10px rgba(109, 220, 255, .8)); }
.vs-card.is-me .vs-diagram text { fill: var(--muted); }
@media (max-width: 959px) { .vs-card.is-me { order: -1; } }

/* Usługi */
.featured { grid-template-columns: 1fr; border-bottom: 0; }
@media (min-width: 768px) { .featured { grid-template-columns: 1fr 1fr; } }
.feat { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); text-decoration: none; overflow: hidden; transition: background .25s ease; }
.feat::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 220, 255, .16), transparent); opacity: 0; transition: opacity .3s ease; }
.feat:hover { background: var(--surface) !important; }
.feat:hover::after { opacity: 1; }
.feat h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); line-height: 1.1; }
.feat p { color: var(--muted); max-width: 46ch; }
.tag { align-self: flex-start; font-size: .6563rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-bg); border-radius: 4px; padding: .25rem .5rem; }
.tag-soft { color: var(--muted); background: rgba(245, 245, 245, .06); vertical-align: middle; margin-left: .5rem; }
.more { margin-top: auto; padding-top: .25rem; color: var(--accent); font-weight: 600; font-size: .875rem; }

.svc { grid-template-columns: 1fr; }
@media (min-width: 900px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc-col { padding: 1.5rem clamp(1.25rem, 1rem + .8vw, 1.75rem) 1.25rem; }
.svc-col h3 { margin-bottom: .75rem; }
.svc-col ul { list-style: none; margin: 0; padding: 0; }
.svc-col a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .9375rem; color: var(--muted); transition: color .15s ease, padding .15s ease; }
.svc-col a span { color: var(--faint); transition: transform .15s ease, color .15s ease; }
.svc-col a:hover { color: var(--text); }
.svc-col a:hover span { color: var(--accent); transform: translateX(3px); }
.svc-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1.25rem, 1rem + .8vw, 1.75rem); }
.svc-foot-title { font-weight: 700; }
.svc-foot-text { color: var(--muted); font-size: .9063rem; }

/* Jak pracuję */
.how-card { display: none; }
.how-steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; }
.how-steps li { border-top: 1px solid var(--accent-line); padding-top: 1.25rem; }
.how-num { font-family: var(--font-display); color: var(--accent); font-size: .9375rem; }
.how-steps h3 { margin-top: .5rem; }
.how-steps p { margin-top: .5rem; color: var(--muted); max-width: 44ch; }
@media (min-width: 960px) {
    .how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .how-side { position: sticky; top: 96px; }
    .how-card { display: block; margin-top: 2rem; background: linear-gradient(180deg, rgba(109, 220, 255, .06), transparent 45%), var(--surface); border-radius: 12px; box-shadow: var(--glow); padding: 1.25rem; }
    .how-panels { position: relative; height: 230px; margin-top: 1rem; }
    .how-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
    .how-panel.is-active { opacity: 1; transform: none; }
    .how-steps { margin-top: 0; gap: 0; padding-block: 2rem 6rem; }
    .how-steps li { min-height: clamp(240px, 36vh, 340px); display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 1.75rem; opacity: .35; transition: opacity .35s ease, border-color .35s ease; }
    .how-steps li.is-active { opacity: 1; border-left-color: var(--accent); }
    .how-steps h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.875rem); line-height: 1.1; }
}
.panel-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; margin-bottom: 1.125rem; }
.cmp-row { display: grid; gap: .4rem; margin-bottom: 1rem; font-size: .875rem; color: var(--muted); }
.cmp-row i { display: block; height: 12px; border-radius: 4px; background: var(--accent-bg); position: relative; }
.cmp-row i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: rgba(245, 245, 245, .4); }
.cmp-row i.is-real::before { background: var(--accent); box-shadow: 0 0 14px rgba(109, 220, 255, .5); }
.panel-note { display: flex; align-items: center; gap: .5rem; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-top: 1.25rem; }
.panel-note b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.prio { display: grid; grid-template-columns: 9.5rem 1fr 4.5rem; align-items: center; gap: .875rem; margin-bottom: .875rem; font-size: .875rem; color: var(--muted); }
.prio i { display: block; height: 9px; border-radius: 5px; background: var(--accent-bg); position: relative; }
.prio i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 5px; background: rgba(245, 245, 245, .3); }
.prio b { font-size: .6563rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); text-align: right; }
.prio.is-top { color: var(--text); font-weight: 600; }
.prio.is-top i::before { background: var(--accent); box-shadow: 0 0 14px rgba(109, 220, 255, .55); }
.prio.is-top b { color: var(--accent); }
.mini-chart { width: 100%; height: auto; overflow: visible; }
.mc-grid { stroke: var(--line); }
.mc-up { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(109, 220, 255, .6)); }
.mc-down { fill: none; stroke: rgba(245, 245, 245, .35); stroke-width: 2; stroke-dasharray: 5 5; }
.mc-label { fill: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.mc-label-up { fill: var(--accent); }
.mc-x line { stroke: rgba(245, 245, 245, .6); stroke-width: 2; stroke-linecap: round; }

/* Test */
.test-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .test-wrap { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }
.test-areas { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.test-areas li { border: 1px solid var(--line); border-radius: 4px; padding: .3rem .55rem; color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.quiz { background: linear-gradient(180deg, rgba(109, 220, 255, .05), transparent 35%), var(--surface); border-radius: 12px; box-shadow: var(--glow); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.quiz-start { display: grid; gap: 1.125rem; justify-items: start; }
.quiz-kicker, .quiz-count, .quiz-result-label { color: var(--accent); }
.quiz-intro { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.35; max-width: 32ch; }
.quiz-progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.quiz-progress span { height: 4px; border-radius: 2px; background: var(--accent-bg); transition: background .3s ease; }
.quiz-progress span.is-done { background: var(--accent); }
.quiz-count { margin-top: 1rem; }
.quiz-q { border: 0; padding: 0; margin: .5rem 0 0; }
.quiz-q legend { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.2; padding: 0; margin-bottom: 1.125rem; }
.quiz-options { display: grid; gap: .5rem; }
.quiz-option { display: flex; align-items: center; gap: .875rem; text-align: left; background: rgba(12, 12, 12, .6); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; font: 500 .9375rem/1.4 var(--font-body); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quiz-option kbd { font-family: var(--font-display); font-size: .8125rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; min-width: 1.6rem; height: 1.6rem; display: grid; place-items: center; flex: none; }
.quiz-option:hover { border-color: var(--accent); background: var(--accent-bg); }
.quiz-option:hover kbd { color: var(--accent); border-color: var(--accent-line); }
.quiz-back { margin-top: 1rem; background: none; border: 0; color: var(--muted); font: inherit; font-size: .875rem; cursor: pointer; padding: .25rem 0; text-decoration: underline; text-underline-offset: 3px; }
.quiz-result h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.12; margin-top: .5rem; }
.quiz-result > p[data-result-text] { margin-top: .75rem; color: var(--muted); }
.result-bars { display: grid; gap: .6rem; margin-top: 1.375rem; }
.result-bars-label { color: var(--faint); margin-bottom: .125rem; font-size: .6563rem; }
.result-bar { display: grid; grid-template-columns: 9rem 1fr 4.5rem; align-items: center; gap: .75rem; font-size: .8438rem; color: var(--muted); }
.result-bar b { font-weight: 700; text-align: right; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
.result-bar i { display: block; height: 7px; border-radius: 4px; background: var(--accent-bg); overflow: hidden; }
.result-bar i::before { content: ""; display: block; height: 100%; width: var(--v); background: rgba(245, 245, 245, .35); border-radius: 4px; }
.result-bar.is-top { color: var(--text); }
.result-bar.is-top i::before { background: var(--accent); box-shadow: 0 0 12px rgba(109, 220, 255, .6); }
.result-bar.is-top b { color: var(--accent); }

/* Formularze */
.form { display: grid; gap: .875rem; margin-top: 1.5rem; }
.quiz .form { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-title { font-weight: 600; }
.form-row { display: grid; gap: .875rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.form small { color: var(--muted); font-weight: 400; }
.form input[type="email"], .form input[type="url"], .form textarea {
    width: 100%; background: rgba(12, 12, 12, .7); color: var(--text);
    border: 1px solid rgba(245, 245, 245, .16); border-radius: var(--radius);
    padding: .75rem .9rem; font: 400 .9688rem/1.4 var(--font-body);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.form .check { display: flex; gap: .625rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.form .check input { margin-top: .15rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex: none; }
.form .btn { justify-self: start; }
.form [aria-invalid="true"] { border-color: #FF8A8A; }
.form-ok { color: var(--accent); font-weight: 600; }
.form-card { margin-top: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--glow); padding: clamp(1.25rem, 1rem + 1.2vw, 1.875rem); }

/* Pytania */
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }
.placeholder { margin-top: 1.75rem; border: 1px dashed var(--accent-line); border-radius: var(--radius); padding: 1.75rem 1.25rem; color: var(--muted); font-size: .9063rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.125rem 2.25rem 1.125rem 0; font-weight: 600; position: relative; transition: color .15s ease; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-family: var(--font-display); font-size: 1.375rem; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.125rem; color: var(--muted); max-width: 60ch; }

/* Kontakt */
.split { display: grid; gap: 2rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -320px; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(109, 220, 255, .13), transparent); pointer-events: none; }
.contact-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; }
.contact-list a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 0; }
.footer-grid { grid-template-columns: 1fr; border-top: 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid > div { padding: 1.75rem var(--pad); }
.footer-brand p { margin-top: .75rem; color: var(--muted); font-size: .875rem; max-width: 30ch; }
.footer-grid ul { list-style: none; margin: .875rem 0 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid ul a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.125rem; color: var(--faint); font-size: .8125rem; }
.footer-bottom a { color: var(--faint); }

/* Pojawianie się sekcji */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
    .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
