/* ═══════════════════════════════════════════════════
   Areczków Trzech — jasny motyw z akcentem #!
   ═══════════════════════════════════════════════════ */

:root {
    --paper: #fbfaf6;
    --paper-2: #f3f1e9;
    --card: #ffffff;
    --ink: #16181d;
    --ink-2: #474a52;
    --muted: #767881;
    --line: #e4e1d6;
    --line-2: #d3cfc2;
    --green: #0a8f3c;
    --green-ink: #076b2d;
    --green-soft: #e3f4e8;
    --lime: #c4f53a;
    --lime-soft: #ecfcbf;
    --red: #d64531;
    --term-bg: #12161a;
    --term-text: #b9f5c8;

    --display: 'Bricolage Grotesque', 'Onest', system-ui, sans-serif;
    --body: 'Onest', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px -12px rgba(22, 24, 29, .12);
    --shadow-lg: 0 2px 4px rgba(22, 24, 29, .04), 0 24px 48px -20px rgba(22, 24, 29, .22);
    --nav-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

mark {
    background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
    color: inherit;
    padding: 0 .08em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--green);
    margin-bottom: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.eyebrow::before { content: '#!'; font-weight: 700; color: var(--ink); }

.text-link {
    color: var(--green-ink); font-weight: 600; text-decoration: none;
    border-bottom: 2px solid var(--lime);
}
.text-link:hover { background: var(--lime-soft); }

/* ── Przyciski ───────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 600 1rem/1 var(--body);
    padding: .95rem 1.4rem;
    border-radius: 999px;
    border: 2px solid var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--lime); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--lime); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-small { padding: .6rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ── Nawigacja ───────────────────────────────────── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 250, 246, .86);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 1.25rem;
    height: var(--nav-h);
    display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.35rem; height: 2.25rem; padding: 0 .35rem; border-radius: 10px;
    background: var(--ink); color: #fff;
    font: 700 1rem/1 var(--mono);
    letter-spacing: -.04em; white-space: nowrap;
    box-shadow: 3px 3px 0 var(--lime);
    transition: transform .2s ease;
}
.brand-mark b { color: var(--lime); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-name { font: 700 1.15rem/1 var(--display); letter-spacing: -.02em; }

.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link {
    padding: .5rem .8rem; border-radius: 999px;
    text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--ink-2);
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link.active { color: var(--ink); background: var(--lime-soft); }

.nav-phone {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1rem; border-radius: 999px;
    background: var(--ink); color: #fff; text-decoration: none;
    font: 700 .92rem/1 var(--mono);
    white-space: nowrap;
}
.nav-phone svg { color: var(--lime); }
.nav-phone-mobile { display: none; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 2.75rem; height: 2.75rem; border: 0; background: transparent; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .site-nav-inner > .nav-phone { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: .25rem;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%); visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .nav-links.open { transform: none; visibility: visible; }
    .nav-link { padding: .85rem 1rem; font-size: 1.05rem; }
    .nav-phone-mobile { display: inline-flex; justify-content: center; margin-top: .5rem; padding: 1rem; }
}

/* ── Baner z ?ref= ───────────────────────────────── */
.ref-banner { background: var(--lime); border-bottom: 2px solid var(--ink); }
.ref-banner .container { display: flex; align-items: center; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.ref-banner p { flex: 1; font-weight: 500; }
.ref-banner .btn { border-color: var(--ink); background: var(--ink); color: #fff; }
.ref-wave { font-size: 1.5rem; animation: wave 1.6s ease-in-out 2; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 15%, 45% { transform: rotate(14deg); } 30% { transform: rotate(-8deg); } }
@media (max-width: 640px) {
    .ref-banner .container { flex-wrap: wrap; }
    .ref-banner p { flex-basis: calc(100% - 3rem); font-size: .95rem; }
    .ref-banner .btn { width: 100%; }
}

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.matrix-rain {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; opacity: .5;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 75%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36rem; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-proof { list-style: none; margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--ink-2); font-size: .95rem; }
.hero-proof li { display: flex; align-items: center; gap: .5rem; }
.hero-proof li::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero-proof b { color: var(--ink); }

.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5) { animation-delay: .3s; }
.terminal { animation: rise .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.terminal {
    background: var(--term-bg); color: var(--term-text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 10px 10px 0 var(--lime);
    border: 2px solid var(--ink);
    overflow: hidden;
    transform: rotate(1.2deg);
}
.terminal-bar { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; background: #1b2026; }
.terminal-bar span { width: .7rem; height: .7rem; border-radius: 50%; background: #3a4048; }
.terminal-bar span:first-child { background: #ff6b5b; }
.terminal-bar span:nth-child(2) { background: #f5c04a; }
.terminal-bar span:nth-child(3) { background: #3ccf6a; }
.terminal-bar p { margin-left: .75rem; font: 400 .78rem/1 var(--mono); color: #7f8a95; }
.terminal-body {
    margin: 0; padding: 1.25rem 1.25rem 1.5rem;
    font: 400 .9rem/1.75 var(--mono);
    white-space: pre-wrap; word-break: break-word;
    min-height: 15.5rem;
}
.t-prompt { color: var(--lime); font-weight: 700; }
.t-dim { color: #7f8a95; }
.t-ok { color: #6ee59a; }
.t-cursor { animation: blink 1s steps(1) infinite; color: var(--lime); }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.75rem; }
    .terminal { transform: none; margin-right: 10px; }
    .matrix-rain { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%); mask-image: linear-gradient(180deg, transparent 40%, #000 100%); }
}

/* ── Sekcje ──────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tinted { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section-lead { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.12rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head-row > div { max-width: 46rem; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Dla kogo */
.audiences { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.audiences .section-head { margin-bottom: 2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .65rem; }
.chips li {
    padding: .6rem 1.1rem; border-radius: 999px;
    background: var(--card); border: 1.5px solid var(--line-2);
    font-weight: 500;
    transition: transform .2s ease, border-color .2s ease;
}
.chips li:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--ink); }
.chips .chip-you { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Usługi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: .7rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.service-icon {
    width: 3rem; height: 3rem; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--green-soft); color: var(--green-ink);
    margin-bottom: .35rem;
}
.service:hover .service-icon { background: var(--lime); color: var(--ink); }
.service h3 { font-size: 1.3rem; }
.service p { color: var(--ink-2); }
.service .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Realizacje */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.projects-all { grid-template-columns: repeat(3, 1fr); }
.project {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-shot {
    display: block; position: relative; text-decoration: none;
    background: hsl(var(--hue) 45% 93%);
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 9; overflow: hidden;
}
.project-shot-bar {
    position: absolute; inset: 0 0 auto 0; z-index: 1;
    display: flex; align-items: center; gap: .3rem;
    padding: .55rem .8rem; background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    font: 400 .72rem/1 var(--mono); color: var(--muted);
}
.project-shot-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-2); }
.project-shot-bar span { margin-left: .5rem; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; padding-top: 1.85rem; transition: transform .5s ease; }
.project:hover .project-shot img { transform: scale(1.03); }
.project-shot-placeholder {
    position: absolute; inset: 1.85rem 0 0 0;
    display: grid; place-items: center;
    font: 800 clamp(4rem, 9vw, 6.5rem)/1 var(--display);
    color: hsl(var(--hue) 40% 35%);
    background:
        radial-gradient(circle at 20% 30%, hsl(var(--hue) 60% 85%) 0, transparent 45%),
        radial-gradient(circle at 80% 80%, hsl(calc(var(--hue) + 40) 60% 88%) 0, transparent 50%);
}
.project-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.pill { font: 700 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: .35rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }
.project h3 { font-size: 1.45rem; }
.project-body > p { color: var(--ink-2); }
.project-links { margin-top: auto; padding-top: .5rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 960px) { .projects-all { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .projects, .projects-all { grid-template-columns: 1fr; } }

/* Jak działamy */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; counter-reset: step; }
.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.step-num { font: 700 .85rem/1 var(--mono); color: var(--green); display: block; margin-bottom: .9rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.step p { color: var(--ink-2); }
.promise {
    margin-top: 3.5rem; display: flex; align-items: center; gap: 1.25rem;
    padding: 1.5rem 1.75rem; border-radius: var(--radius);
    background: var(--ink); color: #fff;
    box-shadow: 6px 6px 0 var(--lime);
}
.promise-mark { font: 700 1.6rem/1 var(--mono); color: var(--lime); flex-shrink: 0; }
.promise p { font-size: 1.1rem; }
.promise strong { color: var(--lime); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .promise { flex-direction: column; align-items: flex-start; } }

/* Cennik */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
    position: relative;
    background: var(--card); border: 1.5px solid var(--line-2);
    border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem;
    display: flex; flex-direction: column; gap: .8rem;
}
.plan h3 { font-size: 1.2rem; }
.plan-price { font: 800 2.6rem/1 var(--display); letter-spacing: -.03em; }
.plan-price span { font: 500 1rem/1 var(--body); color: var(--muted); letter-spacing: 0; }
.plan-price-text { font-size: 2.2rem; }
.plan-for { color: var(--ink-2); font-size: .97rem; min-height: 3em; }
.plan .checklist { margin: .25rem 0 .75rem; flex: 1; }
.plan-hot { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--lime); }
.plan-badge {
    position: absolute; top: -.8rem; left: 1.25rem;
    font: 700 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
    background: var(--lime); color: var(--ink); padding: .4rem .65rem; border-radius: 999px; border: 1.5px solid var(--ink);
}
.plan-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-dark .plan-for, .plan-dark .plan-note { color: #c9cbd1; }
.plan-dark .plan-note { flex: 1; font-size: .93rem; }
.plan-dark .plan-price { color: var(--lime); }

.checklist { list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; }
.checklist li::before {
    content: ''; flex-shrink: 0; margin-top: .3rem;
    width: 1rem; height: 1rem; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23076b2d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 5.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist-small { font-size: .9rem; }
.checklist-inline { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem 1.5rem; }

.care {
    margin-top: 1.5rem; padding: 1.5rem 1.75rem;
    background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--radius);
    display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: center;
}
.care-head h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.care .plan-price { font-size: 2rem; }
.budget-note { margin-top: 2rem; text-align: center; font-size: 1.1rem; color: var(--ink-2); }
.budget-note a { color: var(--green-ink); font-weight: 600; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans, .care { grid-template-columns: 1fr; } }

/* Opinie */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
    margin: 0; padding: 1.75rem; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 1.5rem;
}
.quote:nth-child(2) { transform: translateY(1.25rem); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; flex: 1; }
.quote blockquote::before { content: '„'; display: block; font: 800 3.5rem/0.6 var(--display); color: var(--green); margin-bottom: .5rem; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; }
.quote figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font: 700 1.05rem/1 var(--display); flex-shrink: 0; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } .quote:nth-child(2) { transform: none; } }

/* Zespół */
.team-intro { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: 3rem; align-items: center; margin-bottom: 3rem; }
.team-intro .section-head { margin-bottom: 0; }
.team-photo {
    margin: 0; padding: .75rem .75rem 1rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 8px 8px 0 var(--lime);
    transform: rotate(-1.5deg);
}
.js .team-photo.reveal.visible { transform: rotate(-1.5deg); }
.team-photo img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.team-photo figcaption { margin-top: .75rem; font: 400 .82rem/1.45 var(--mono); color: var(--muted); text-align: center; }
@media (max-width: 960px) {
    .team-intro { grid-template-columns: 1fr; gap: 2rem; }
    .team-photo { transform: none; margin-right: 8px; }
    .js .team-photo.reveal.visible { transform: none; }
}
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.75rem; box-shadow: var(--shadow); }
.person > :not(.person-photo) { margin-left: .75rem; margin-right: .75rem; }
.person-photo {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 12px; margin-bottom: 1.25rem;
    background: var(--paper-2);
}
.person-photo-empty {
    display: grid; place-items: center;
    background: var(--ink); color: var(--lime);
    font: 800 4.5rem/1 var(--display);
    background-image: radial-gradient(circle at 75% 25%, rgba(196, 245, 58, .14), transparent 55%);
}
.person h3 { font-size: 1.4rem; }
.person-role { font: 400 .82rem/1.4 var(--mono); color: var(--green); margin: .35rem 0 .8rem; }
.person p:last-child { color: var(--ink-2); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--ink); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 1.15rem 3.25rem 1.15rem 1.35rem; position: relative;
    font: 600 1.08rem/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
    font: 700 1.3rem/1 var(--mono); color: var(--green);
    transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 1.35rem 1.3rem; color: var(--ink-2); }

/* Kontakt i formularz */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact::before {
    content: '#!'; position: absolute; right: -2rem; bottom: -6rem;
    font: 700 22rem/1 var(--mono); color: rgba(196, 245, 58, .05); pointer-events: none;
}
.contact .eyebrow { color: var(--lime); }
.contact .eyebrow::before { color: #fff; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.contact .section-lead { color: #c9cbd1; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-phone {
    display: block; margin-top: 2rem; text-decoration: none;
    font: 800 clamp(2rem, 4vw, 2.75rem)/1.1 var(--display); color: var(--lime); letter-spacing: -.02em;
}
.contact-phone small { display: block; font: 400 .9rem/1.4 var(--body); color: #c9cbd1; letter-spacing: 0; margin-bottom: .35rem; }
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-mail { display: inline-block; margin-top: .8rem; color: #fff; font-weight: 500; word-break: break-all; }
.contact-person { margin-top: 1.5rem; color: #9ea2ab; font-size: .95rem; }

.quote-form {
    background: var(--card); color: var(--ink);
    border-radius: var(--radius); padding: 2rem;
    box-shadow: 10px 10px 0 var(--lime);
}
.form-progress { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin-bottom: 1.75rem; }
.form-progress span { display: block; height: 100%; width: 25%; background: var(--green); border-radius: 6px; transition: width .3s ease; }
.form-step { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; }
.form-step legend { font: 700 1.35rem/1.25 var(--display); margin-bottom: 1.1rem; padding: 0; }
.step-count { display: block; font: 400 .78rem/1 var(--mono); color: var(--green); margin-bottom: .5rem; }
.js .form-step { display: none; }
.js .form-step.current { display: block; animation: rise .35s ease both; }

.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
    display: block; height: 100%;
    padding: .9rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-2); background: var(--paper);
    font-weight: 500; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.option:hover span { border-color: var(--ink); }
.option input:checked + span { border-color: var(--ink); background: var(--lime-soft); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.option input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .4rem; margin-bottom: .9rem; }
.field span { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
    width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink);
    padding: .85rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-2); background: var(--paper);
    transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px var(--green-soft); }
.field .invalid { border-color: var(--red); }
.form-legal { font-size: .82rem; color: var(--muted); }
.form-legal a { color: var(--green-ink); }
.form-nav { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.form-nav #formBack { margin-right: auto; }
.form-status { margin-top: 1rem; font: 400 .9rem/1.5 var(--mono); min-height: 1.4em; }
.form-status.sending { color: var(--muted); }
.form-status.success { color: var(--green-ink); }
.form-status.error { color: var(--red); }
.form-done { text-align: center; padding: 2rem 0 1rem; }
.form-done .big { font-size: 3rem; display: block; margin-bottom: .75rem; }
.form-done h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.form-done p { color: var(--ink-2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 560px) {
    .quote-form { padding: 1.5rem 1.25rem; box-shadow: 6px 6px 0 var(--lime); }
    .options, .form-row { grid-template-columns: 1fr; }
}

/* ── Stopka ──────────────────────────────────────── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-tagline { margin-top: 1rem; color: var(--ink-2); max-width: 22rem; }
.site-footer h4 { font: 700 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.footer-links { list-style: none; display: grid; gap: .55rem; }
.footer-links a { text-decoration: none; color: var(--ink-2); word-break: break-word; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .85rem; color: var(--muted);
}
.footer-bottom a { color: inherit; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Pływający przycisk „Zadzwoń” na telefonach */
.call-fab {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
    display: none; align-items: center; gap: .5rem;
    padding: .9rem 1.2rem; border-radius: 999px;
    background: var(--lime); color: var(--ink); border: 2px solid var(--ink);
    font: 700 1rem/1 var(--body); text-decoration: none;
    box-shadow: 0 10px 30px -8px rgba(22, 24, 29, .45);
    transition: transform .25s ease, opacity .25s ease;
}
.call-fab.hidden { transform: translateY(150%); opacity: 0; }
@media (max-width: 960px) { .call-fab { display: inline-flex; } }

/* ── Podstrony (realizacje, polityka, 404) ───────── */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
.page-hero .hero-lead { max-width: 42rem; }
.cta-strip {
    margin: clamp(3rem, 6vw, 5rem) 0; padding: 2.25rem;
    border-radius: var(--radius); background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    box-shadow: 8px 8px 0 var(--lime);
}
.cta-strip h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-strip p { color: #c9cbd1; margin-top: .4rem; }
.cta-strip .btn-ghost { color: #fff; border-color: #fff; }
.cta-strip-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.legal { padding-bottom: 5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: .6rem; }
.legal ul { padding-left: 1.25rem; }

.not-found { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.not-found .code { font: 800 clamp(6rem, 18vw, 11rem)/1 var(--display); letter-spacing: -.05em; }
.not-found .code span { color: var(--green); }
.not-found p { color: var(--ink-2); font-size: 1.15rem; max-width: 32rem; margin: 1rem auto 2rem; }

/* ── Blog ────────────────────────────────────────── */
.portal-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.portal-hero h1, .archive-header h1, .search-header h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
.hero-label { font: 400 .8rem/1 var(--mono); color: var(--green); margin-bottom: .9rem; }
.hero-search { margin-top: 1.75rem; display: flex; gap: .6rem; max-width: 32rem; }
.hero-search input {
    flex: 1; min-width: 0; font: 400 1rem/1 var(--body);
    padding: .85rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card);
}
.hero-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    font: 600 .95rem/1 var(--body); padding: .85rem 1.3rem; border-radius: 999px;
    background: var(--ink); color: #fff; border: 2px solid var(--ink); text-decoration: none; cursor: pointer;
}
.btn-ghost-sm {
    display: inline-flex; padding: .55rem 1rem; border-radius: 999px;
    border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 500; font-size: .92rem;
}
.btn-ghost-sm:hover { border-color: var(--ink); }

.portal-content { padding-bottom: 5rem; }
.portal-layout { display: grid; grid-template-columns: 1fr 18rem; gap: 3rem; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.post-grid-single { grid-template-columns: repeat(3, 1fr); }
.post-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card h2 { font-size: 1.35rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { background: linear-gradient(transparent 60%, var(--lime) 60%); }
.post-excerpt { color: var(--ink-2); font-size: .97rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font: 400 .8rem/1.4 var(--mono); color: var(--muted); }
.post-author { color: var(--green-ink); text-decoration: none; font-weight: 700; }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .65rem; border-radius: 999px; background: var(--paper-2);
    font: 400 .78rem/1.2 var(--mono); color: var(--ink-2); text-decoration: none;
    border: 1px solid transparent;
}
.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag-count { color: var(--green); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }

.portal-sidebar { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--nav-h) + 1rem); }
.sidebar-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.sidebar-block h3 { font: 700 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.sidebar-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.sidebar-cta h3 { color: var(--lime); }
.sidebar-cta p { color: #c9cbd1; font-size: .95rem; margin-bottom: 1rem; }
.author-list { list-style: none; display: grid; gap: .9rem; }
.author-list a { text-decoration: none; display: grid; gap: .15rem; }
.author-name { font-weight: 700; }
.author-list a:hover .author-name { color: var(--green-ink); }
.author-bio { font-size: .87rem; color: var(--muted); }

.pagination { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.pagination-info { font: 400 .85rem/1 var(--mono); color: var(--muted); }
.empty-state { padding: 3rem; text-align: center; color: var(--muted); background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--radius); }

@media (max-width: 960px) {
    .portal-layout { grid-template-columns: 1fr; }
    .portal-sidebar { position: static; }
    .post-grid-single { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) { .post-grid, .post-grid-single { grid-template-columns: 1fr; } }

/* Archiwa (tag, autor) i wyszukiwarka */
.archive-page, .search-page { padding-bottom: 5rem; }
.archive-header, .search-header { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.archive-count, .search-count, .search-hint { color: var(--muted); margin-top: .75rem; }
.author-header-bio { color: var(--ink-2); font-size: 1.15rem; margin-top: 1rem; max-width: 40rem; }
.back-link { display: inline-block; margin-top: 2.5rem; color: var(--green-ink); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.search-results { display: grid; gap: 1rem; }
.search-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.search-result h2 { font-size: 1.3rem; margin: .4rem 0; }
.search-result h2 a { text-decoration: none; }

/* Wpis */
.post-page { padding-bottom: 4rem; }
.post-article { max-width: 780px; }
.post-header { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.post-header h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin: 1rem 0 1.25rem; }
.post-header .post-tags { padding-top: 0; }
.post-featured { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.prose { font-size: 1.12rem; line-height: 1.75; color: #24262c; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.8rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8em; }
.prose a { color: var(--green-ink); text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--lime); color: var(--ink-2); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .15em .4em; border-radius: 5px; }
.prose pre { background: var(--term-bg); color: var(--term-text); padding: 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--paper-2); }

.post-author-box {
    margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line);
    display: flex; align-items: center; gap: 1.1rem;
}
.author-box-avatar { width: 3.5rem; height: 3.5rem; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 800 1.5rem/1 var(--display); flex-shrink: 0; }
.author-box-content { flex: 1; display: grid; gap: .15rem; }
.author-box-label { font: 400 .75rem/1 var(--mono); color: var(--muted); }
.author-box-name { font: 700 1.2rem/1.2 var(--display); text-decoration: none; }
.author-box-bio { color: var(--ink-2); font-size: .95rem; }
.author-box-link { font-size: 1.4rem; text-decoration: none; color: var(--green); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .matrix-rain { display: none; }
}
