/* IT-Poland.com — strona główna (2026) */

:root {
    --paper: #f6f4ef;
    --paper-2: #eeebe3;
    --card: #fffdf9;
    --ink: #16171b;
    --ink-2: #3a3c43;
    --muted: #686a72;
    --line: #dcd7cc;
    --line-2: #e8e4da;
    --brand: #9b0006;
    --brand-hi: #c4111c;
    --brand-soft: #f4e4e1;
    --night: #121317;
    --night-2: #1b1d23;
    --night-line: #2c2f37;
    --night-text: #eceae4;
    --night-muted: #9a9ca5;
    --ok: #2f9e5b;

    --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --wrap: 1180px;
    --gutter: 24px;
    --shadow: 0 1px 2px rgba(22, 23, 27, .06), 0 8px 24px -12px rgba(22, 23, 27, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hi); }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 15px/1 var(--f-body);
    padding: 15px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-hi); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- górny pasek ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 19, 23, .97);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--night-line);
    color: var(--night-text);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }

.brand {
    font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
    color: var(--night-text); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand b { color: #ff4a50; font-weight: 800; }
.brand small {
    display: block; font: 500 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
    color: var(--night-muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--night-muted); text-decoration: none; font-size: 15px; font-weight: 500;
    padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .nav-cta { background: var(--brand); color: #fff; margin-left: 8px; padding: 9px 16px; }
.nav .nav-cta:hover { background: var(--brand-hi); color: #fff; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--night-line); color: var(--night-text);
    width: 42px; height: 42px; border-radius: 10px; cursor: pointer; padding: 0;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    background: var(--night);
    color: var(--night-text);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(var(--night-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 10%, transparent 75%);
    opacity: .55;
}
.hero::after {
    content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -160px; top: -260px;
    background: radial-gradient(circle, rgba(196, 17, 28, .38), transparent 62%);
}
.hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px; align-items: center;
    padding-top: 88px; padding-bottom: 96px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--night-muted); }
.hero h1 {
    font-size: clamp(40px, 5.6vw, 70px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 22px 0 24px;
}
.hero h1 em { font-style: normal; color: #ff4a50; }
.hero .lead { font-size: 19px; color: #c9c8c3; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.registry {
    background: linear-gradient(180deg, var(--night-2), #16181d);
    border: 1px solid var(--night-line);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    overflow: hidden;
    font-family: var(--f-mono);
    font-size: 13.5px;
}
.registry-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--night-line); color: var(--night-muted);
    font-size: 12px; letter-spacing: .04em;
}
.registry-head .dots { display: flex; gap: 6px; }
.registry-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); display: block; }
.registry ul { list-style: none; margin: 0; padding: 6px 0; }
.registry li a {
    display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 9px 16px; color: var(--night-text); text-decoration: none;
    transition: background-color .15s;
}
.registry li a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.registry .dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registry .cat { color: var(--night-muted); font-size: 12px; white-space: nowrap; }
.pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 0 0 rgba(47, 158, 91, .6);
    animation: pulse 2.4s infinite;
}
.registry li:nth-child(2n) .pulse { animation-delay: .6s; }
.registry li:nth-child(3n) .pulse { animation-delay: 1.2s; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .55); }
    70% { box-shadow: 0 0 0 7px rgba(47, 158, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.registry-foot {
    padding: 12px 16px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 12px;
}
.registry-foot b { color: var(--night-text); font-weight: 500; }

/* ---------- liczby ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--paper); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 30px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong {
    display: block; font: 800 42px/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.fact span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* ---------- sekcje ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end;
    margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); margin-top: 16px; }
.section-head .lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* ---------- projekty własne ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.pcard {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pcard:hover { transform: translateY(-3px); border-color: #cbc5b8; box-shadow: 0 2px 4px rgba(22, 23, 27, .06), 0 22px 40px -18px rgba(22, 23, 27, .28); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover { transition: none; transform: none; } }

.shot { display: block; text-decoration: none; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.shot-img { display: block; }
.shot-bar {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    background: #e9e5dc; border-bottom: 1px solid var(--line);
}
.shot-bar .dots { display: flex; gap: 5px; }
.shot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfc9bd; display: block; }
.shot-bar .url {
    flex: 1; min-width: 0; font: 12px/1 var(--f-mono); color: var(--muted);
    background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-img { aspect-ratio: 16 / 10; overflow: hidden; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.pcard-body { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; flex: 1; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag {
    display: inline-flex; align-items: center; gap: 7px;
    font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-soft); padding: 6px 10px; border-radius: 999px;
}
.since { font: 12px/1 var(--f-mono); color: var(--muted); }
.pcard h3 { font-size: 28px; }
.pcard p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips li {
    list-style: none; font: 12px/1 var(--f-mono); color: var(--muted);
    border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: var(--paper);
}
.chips { margin-bottom: 0; padding-left: 0; }
.visit {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink);
    border-bottom: 1.5px solid var(--brand); padding-bottom: 2px;
}
.visit:hover { color: var(--brand); }
.visit svg { width: 14px; height: 14px; transition: transform .2s; }
.visit:hover svg { transform: translate(2px, -2px); }
.pcard .who { margin-top: -8px; font-size: 14.5px; color: var(--muted); }

/* nieparzysta liczba kart projektów: ostatnia na cały wiersz, zrzut obok opisu */
.features > .pcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 901px) {
    .features > .pcard:last-child:nth-child(odd) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .features > .pcard:last-child:nth-child(odd) .shot { border-bottom: 0; border-right: 1px solid var(--line); }
    .features > .pcard:last-child:nth-child(odd) .pcard-body { justify-content: center; padding: 36px 40px 38px; }
    .features > .pcard:last-child:nth-child(odd) .chips { margin-top: 0; }
}

/* szeroka karta sieci portali */
.pcard--wide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.pcard--wide:hover { transform: none; }
.pcard--wide h3 { font-size: 34px; }
.pcard--wide .pcard-body { padding: 36px 40px 38px; }
.mosaic {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: center;
    padding: 22px; background: var(--paper-2); border-right: 1px solid var(--line);
}
.mini {
    display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card);
    transition: transform .25s, box-shadow .25s;
}
.mini:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(22, 23, 27, .45); }
.mini .shot-bar { padding: 6px 8px; gap: 7px; }
.mini .shot-bar .dots i { width: 7px; height: 7px; }
.mini .shot-bar .url { font-size: 11px; padding: 4px 7px; }
.mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
@media (prefers-reduced-motion: reduce) { .mini, .mini:hover { transition: none; transform: none; } }

.portals {
    list-style: none; margin: 4px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px;
    border-top: 1px solid var(--line);
}
.portals li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--line);
}
.portals a { font: 500 14.5px/1.3 var(--f-mono); color: var(--ink); text-decoration: none; }
.portals a:hover { color: var(--brand); text-decoration: underline; }
.portals span { font-size: 13.5px; color: var(--muted); }

/* ---------- realizacje dla klientów ---------- */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

/* ---------- usługi ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.service {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px;
    padding: 34px 32px 36px 0; border-bottom: 1px solid var(--line);
}
.service:nth-child(2n) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
/* nieparzysta liczba usług: ostatnia zajmuje cały wiersz */
.service:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }
.service:last-child:nth-child(odd) p { max-width: 46em; }
.service .num { font: 500 13px/1.9 var(--f-mono); color: var(--brand); }
.service h3 { font-size: 24px; margin-bottom: 10px; }
.service p { color: var(--ink-2); }
.service .note { margin-top: 14px; font: 13px/1.5 var(--f-mono); color: var(--muted); }

/* ---------- kontakt ---------- */
.contact { background: var(--night); color: var(--night-text); }
.contact .section-head .lead { color: #c9c8c3; }
.contact .eyebrow { color: var(--night-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.field input, .field textarea {
    width: 100%; font: 16px/1.5 var(--f-body); color: var(--night-text);
    background: var(--night-2); border: 1px solid var(--night-line); border-radius: 10px;
    padding: 13px 14px; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: #ff4a50; background: #1f2128; }
.field input::placeholder, .field textarea::placeholder { color: #6f717a; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--night-muted); font-size: 13.5px; }

.alert { grid-column: 1 / -1; border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.alert--error { background: rgba(196, 17, 28, .16); border: 1px solid rgba(255, 74, 80, .45); color: #ffd6d7; }
.alert--ok { background: rgba(47, 158, 91, .15); border: 1px solid rgba(47, 158, 91, .5); color: #cdeed9; }
.alert div + div { margin-top: 4px; }

.vcard { border-left: 1px solid var(--night-line); padding-left: 40px; display: flex; flex-direction: column; gap: 26px; }
.vcard .org { font: 800 26px/1.1 var(--f-display); letter-spacing: -0.02em; }
.vcard dl { margin: 0; display: grid; gap: 18px; }
.vcard dt { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 6px; }
.vcard dd { margin: 0; font-size: 17px; }
.vcard a { color: var(--night-text); text-decoration-color: rgba(255, 74, 80, .7); }
.vcard a:hover { color: #fff; }
.vcard .big { font: 700 26px/1.2 var(--f-display); letter-spacing: -0.01em; }

/* ---------- stopka ---------- */
.footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.footer a { color: var(--night-muted); }
.footer a:hover { color: #fff; }

/* ---------- informacja o cookies ---------- */
.cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
    background: var(--ink); color: var(--paper); border-radius: 12px; padding: 14px 14px 14px 18px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); font-size: 14.5px;
}
.cookie[hidden] { display: none; }
.cookie button {
    flex: none; font: 600 14px/1 var(--f-body); background: var(--paper); color: var(--ink);
    border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
}

/* ---------- pojawianie się przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsywność ---------- */
@media (max-width: 1080px) {
    .pcard--wide { grid-template-columns: minmax(0, 1fr); }
    .mosaic { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
    body { font-size: 16px; }
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: 64px;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--night); border-bottom: 1px solid var(--night-line);
        padding: 10px var(--gutter) 18px;
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 10px; border-radius: 8px; }
    .nav .nav-cta { margin: 8px 0 0; text-align: center; }

    .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 60px; padding-bottom: 68px; }
    .hero .lead { font-size: 17.5px; }
    .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .section { padding: 76px 0; }
    .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 40px; }
    .features { grid-template-columns: minmax(0, 1fr); }
    .services { grid-template-columns: minmax(0, 1fr); }
    .service, .service:nth-child(2n) { padding: 28px 0 30px; border-left: 0; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .vcard { border-left: 0; padding-left: 0; border-top: 1px solid var(--night-line); padding-top: 36px; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .brand small { display: none; }
    .fact { padding: 22px 12px 22px 0; }
    .fact + .fact { padding-left: 12px; }
    .fact:nth-child(3) { padding-left: 0; }
    .fact strong { font-size: 34px; }
    .pcard-body, .pcard--wide .pcard-body { padding: 22px 20px 24px; }
    .pcard h3 { font-size: 24px; }
    .pcard--wide h3 { font-size: 28px; }
    .mosaic { padding: 12px; gap: 10px; }
    .mini .shot-bar .dots { display: none; }
    .portals { grid-template-columns: minmax(0, 1fr); }
    .clients { grid-template-columns: minmax(0, 1fr); }
    .service { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
    .form { grid-template-columns: minmax(0, 1fr); }
    .registry .cat { display: none; }
    .cookie { flex-direction: column; align-items: stretch; text-align: left; }
}

/* CAPTCHA Cloudflare Turnstile w formularzu */
.captcha { min-height: 65px; }
