/* kozakmichal.pl — style strony (Michael G. Kozak). */

/* ---------- Fonty (hostowane lokalnie) ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2'); 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: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/space-grotesk-latin.woff2) format('woff2'); 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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); 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: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); 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; }

/* ---------- Tokeny ---------- */
:root {
    --bg: #f7f9fd;
    --surface: #ffffff;
    --alt: #eef3fb;
    --ink: #0b1224;
    --ink-2: #2f3b52;
    --muted: #56617a;
    --line: #e1e7f1;
    --line-2: #cdd7e6;
    --blue: #2563eb;
    --blue-ink: #1d4ed8;
    --blue-deep: #1e3a8a;
    --blue-soft: #e8effd;
    --sky: #38bdf8;
    --sky-ink: #0369a1;
    --n8n: #ea4b71;
    --dark: #060b1a;
    --dark-2: #0e1630;
    --dark-3: #141f40;
    --dark-line: rgba(255, 255, 255, .1);
    --dark-ink: #eef3ff;
    --dark-muted: #a8b3cc;
    --ok: #15803d;
    --err: #c0262d;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(11, 18, 36, .05), 0 8px 24px -12px rgba(11, 18, 36, .14);
    --shadow-lg: 0 2px 4px rgba(11, 18, 36, .04), 0 24px 48px -20px rgba(20, 50, 130, .28);
    --font-head: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 72px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .contact-card :focus-visible, .cta-card :focus-visible, .mobile-menu :focus-visible { outline-color: var(--sky); }
::selection { background: var(--blue); color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .65); }
.btn-primary:hover { background: var(--blue-ink); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(37, 99, 235, .65); }
.btn-outline { background: var(--surface); color: var(--blue-ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-glass { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .42); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-text { color: var(--blue-ink); padding-inline: .5rem; min-height: 44px; }
.btn-text:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-meta { font-weight: 500; font-size: .8em; opacity: .7; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.link-btn { color: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: inherit; }

/* ---------- Nagłówek ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background-color .3s, box-shadow .3s, color .3s; }
.site-header.is-scrolled { color: var(--ink); background: rgba(247, 249, 253, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.page-legal .site-header:not(.is-scrolled), .page-404 .site-header:not(.is-scrolled) { color: #fff; }
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand-logo { width: 46px; height: auto; }
.brand-logo-color { display: none; }
.site-header.is-scrolled .brand-logo-color { display: block; }
.site-header.is-scrolled .brand-logo-light { display: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-role { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a, .nav-dd-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .94rem; color: inherit; opacity: .86; transition: opacity .2s, background-color .2s; }
.main-nav a:hover, .nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded="true"] { opacity: 1; background: rgba(120, 150, 220, .14); }
.main-nav a[aria-current="true"], .nav-dd-toggle.is-current { opacity: 1; color: var(--blue-ink); }
.site-header:not(.is-scrolled) .main-nav a[aria-current="true"], .site-header:not(.is-scrolled) .nav-dd-toggle.is-current { color: #93c5fd; }
.nav-dd-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav-dd-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.has-dd { position: relative; }
.dd { position: absolute; top: calc(100% + 10px); left: 50%; width: 380px; padding: 10px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(11, 18, 36, .35); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.dd::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.dd.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-list { display: grid; gap: 2px; }
.main-nav .dd-link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; opacity: 1; }
.main-nav .dd-link:hover { background: var(--alt); }
.main-nav .dd-link[aria-current="page"] { background: var(--blue-soft); }
.main-nav .dd-link[aria-current="page"] strong { color: var(--blue-ink); }
.dd-link > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-ink); }
.dd-link strong { display: block; font-weight: 600; font-size: .95rem; }
.dd-link small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.main-nav .dd-all { display: flex; justify-content: space-between; margin-top: 6px; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-weight: 600; color: var(--blue-ink); opacity: 1; }
.main-nav .dd-all:hover { background: var(--alt); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-grid; place-items: center; min-width: 44px; height: 40px; border-radius: 10px; font-weight: 600; font-size: .85rem; text-decoration: none; border: 1.5px solid currentColor; opacity: .72; }
.lang:hover { opacity: 1; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: inherit; }
.menu-toggle .ico { width: 26px; height: 26px; }

.mobile-menu { position: fixed; inset: 0; z-index: 100; background: var(--dark); color: #fff; display: flex; flex-direction: column; padding: 14px 20px 28px; overflow-y: auto; animation: fadeIn .25s var(--ease); }
.mobile-menu .brand-logo-color { display: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.menu-close { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 10px; }
.menu-close .ico { width: 26px; height: 26px; }
.mobile-menu nav { margin-top: 24px; }
.mm-list a { display: block; padding: 11px 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.mm-sub-title { margin-top: 24px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); font-weight: 700; }
.mm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.mm-sub a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); text-decoration: none; font-size: .9rem; font-weight: 500; }
.mm-sub .ico { color: #93c5fd; }
.mm-sub a[aria-current="page"] { background: rgba(37, 99, 235, .35); }
.mobile-menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mobile-lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--dark-muted); padding: 8px; }
body.menu-open { overflow: hidden; }

@media (max-width: 1180px) { .brand-role { display: none; } .main-nav a, .nav-dd-toggle { padding-inline: 10px; } }
@media (max-width: 1000px) {
    .main-nav { display: none; }
    .menu-toggle { display: grid; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .header-cta, .brand-role { display: none; }
    .brand-logo { width: 40px; }
}
@media (max-width: 380px) { .mm-sub { grid-template-columns: 1fr; } }

/* ---------- Sekcje wspólne ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--alt); }
.section-dark { background: var(--dark); color: var(--dark-ink); overflow: hidden; isolation: isolate; }
.sec-head { max-width: 740px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .about-copy h2, .deep-head h2, .roadmap-head h2, .book-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow .ico { width: 16px; height: 16px; }
.eyebrow:has(.ico)::before { display: none; }
.section-dark .eyebrow, .contact-card .eyebrow, .cta-card .eyebrow, .portfolio-band .eyebrow { color: #93c5fd; }
.sec-desc { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.section-dark .sec-desc { color: var(--dark-muted); }
.accent { background: linear-gradient(92deg, #bfdbfe 0%, #60a5fa 45%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon-box { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); flex: 0 0 auto; }
.icon-box .ico { width: 24px; height: 24px; }
.section-dark .icon-box { background: rgba(96, 165, 250, .16); color: #bfdbfe; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px)); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 55% at 10% 10%, rgba(37, 99, 235, .45), transparent 70%),
    radial-gradient(45% 50% at 95% 75%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(40% 40% at 70% 5%, rgba(30, 58, 138, .5), transparent 70%),
    var(--dark); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 40% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 40% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); font-size: .84rem; font-weight: 500; color: #e3ebfb; text-decoration: none; transition: background-color .2s, border-color .2s; }
a.pill:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.pill .ico { width: 15px; height: 15px; opacity: .8; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--n8n); box-shadow: 0 0 0 4px rgba(234, 75, 113, .22); }
.icon-inline { display: inline-grid; color: #93c5fd; }
.icon-inline .ico { width: 17px; height: 17px; opacity: 1; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); margin-top: 22px; letter-spacing: -.03em; }
.hero-name { display: block; }
.hero h1 .accent { display: block; }
.page-home .hero h1 .accent { font-size: .62em; margin-top: .25em; letter-spacing: -.02em; }
.hero-sub h1 .accent { display: inline; }
.hero-role { margin-top: 12px; font-family: var(--font-head); font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: #cfdcf5; font-weight: 500; }
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: #cbd5ea; max-width: 610px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cv { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9rem; color: var(--dark-muted); }
.hero-cv a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-underline-offset: 4px; min-height: 32px; }
.hero-cv a:hover { color: #bfdbfe; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; align-items: start; gap: 12px 32px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--dark-line); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dd { order: -1; white-space: nowrap; font-family: var(--font-head); font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 700; color: #fff; line-height: 1.1; }
.hero-facts dt { font-size: .84rem; color: var(--dark-muted); margin-top: 4px; max-width: 160px; line-height: 1.35; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #111c3d; box-shadow: 0 40px 80px -30px rgba(37, 99, 235, .6); }
.hero-photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-visual::before { content: ''; position: absolute; inset: -18px -18px auto auto; width: 70%; height: 70%; border-radius: 32px; border: 1.5px solid rgba(147, 197, 253, .35); z-index: -1; }
.hero-badge { position: absolute; left: -28px; bottom: 28px; display: flex; gap: 12px; align-items: center; max-width: 290px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(14, 22, 48, .85); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); text-decoration: none; transition: transform .25s var(--ease), border-color .2s; }
.hero-badge:hover { transform: translateY(-2px); border-color: rgba(234, 75, 113, .55); }
.hero-badge-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; flex: 0 0 auto; }
.hb-img { width: 36px; height: auto; }
.hero-badge-title { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #f9a8c0; font-weight: 700; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }

.trust { border-top: 1px solid var(--dark-line); background: rgba(255, 255, 255, .02); padding-block: 22px; }
.trust-inner { display: flex; align-items: center; gap: 28px; }
.trust-label { flex: 0 0 auto; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-muted); }
.trust-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.trust-img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .62; transition: opacity .2s; }
.trust-list li:hover .trust-img { opacity: .95; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { width: min(86%, 380px); justify-self: start; margin-bottom: 24px; }
    .hero-photo { aspect-ratio: 1 / 1; border-radius: 24px; }
    .hero-badge { left: auto; right: -14px; bottom: -18px; max-width: 260px; }
    .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .trust-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 520px) {
    .hero-badge { right: -24px; max-width: 230px; }
    .hero-facts { margin-top: 32px; }
    .hero-facts dd { white-space: normal; }
    .hero-ctas .btn { width: 100%; white-space: normal; }
    .trust-list { gap: 12px 24px; }
    .trust-img { height: 20px; }
}

/* ---------- Usługi ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-grid > li { display: flex; }
.svc-card { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
a.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bcd0f5; }
.svc-card h3 { font-size: 1.32rem; margin-top: 6px; }
.svc-card p { color: var(--muted); font-size: .95rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.svc-tags span { font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--alt); color: var(--ink-2); }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--blue-ink); }
.svc-more .ico { transition: transform .25s var(--ease); }
a.svc-card:hover .svc-more .ico { transform: translateX(4px); }
.svc-card-cta { background: linear-gradient(155deg, var(--dark-2) 0%, var(--dark) 100%); border-color: var(--dark); color: #fff; }
.svc-card-cta p { color: var(--dark-muted); }
.svc-card-cta .icon-box { background: rgba(96, 165, 250, .18); color: #bfdbfe; }
.svc-card-cta .btn { margin-top: auto; align-self: flex-start; }
.svc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .svc-grid, .svc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .svc-grid, .svc-grid-3 { grid-template-columns: 1fr; gap: 14px; } .svc-card { padding: 22px; } }

.steps-title { text-align: center; font-size: 1.5rem; margin: clamp(48px, 7vw, 72px) 0 28px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line-2); }
.step::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.step-num { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--blue-ink); }
.step h4 { font-size: 1.12rem; margin: 6px 0; }
.step p { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line-2); margin-left: 6px; }
    .step { border-top: 0; padding: 0 0 22px 22px; }
    .step::before { top: 4px; left: -7px; }
}

/* ---------- Mapa drogowa (lead magnet) ---------- */
.roadmap::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 0% 0%, rgba(37, 99, 235, .35), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgba(56, 189, 248, .14), transparent 70%); }
.roadmap-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "head card" "body card"; column-gap: clamp(32px, 6vw, 80px); align-items: start; }
.roadmap-head { grid-area: head; }
.roadmap-head h2 { max-width: 16ch; text-wrap: balance; }
.roadmap-head h2 .accent { white-space: nowrap; }
.roadmap-head .sec-desc { max-width: 54ch; }
.roadmap-body { grid-area: body; margin-top: 34px; }
.roadmap-sub { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 14px; }
.roadmap-sub ~ .roadmap-sub { margin-top: 30px; }
/* Oś roku: kolory kwartałów jak na okładce PDF */
.roadmap-quarters { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.roadmap-quarters::before { content: ''; position: absolute; left: 16px; right: 16px; top: 7px; border-top: 2px dotted rgba(147, 197, 253, .45); }
.rq { --c: #3b82f6; position: relative; display: flex; flex-direction: column; gap: 3px; padding-top: 26px; min-width: 0; }
.rq-2 { --c: #22d3ee; } .rq-3 { --c: #34d399; } .rq-4 { --c: #f59e0b; }
.rq-dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.rq-q { font-size: .76rem; font-weight: 700; letter-spacing: .06em; color: var(--c); }
.rq-q abbr { text-decoration: none; }
.rq-name { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; color: #fff; }
.rq-goal { font-size: .86rem; line-height: 1.4; color: var(--dark-muted); }
.roadmap-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.roadmap-points li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.45; color: #e3ebfb; }
.rp-ico { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: rgba(96, 165, 250, .14); color: #93c5fd; }
.rp-ico .ico { width: 17px; height: 17px; }
/* Karta z okładką i formularzem */
.roadmap-card { grid-area: card; align-self: center; position: relative; padding: clamp(22px, 3.5vw, 32px); border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.roadmap-offer { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.roadmap-cover { width: 100%; height: auto; aspect-ratio: 360 / 510; border-radius: 6px 10px 10px 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), -6px 0 0 -2px rgba(255, 255, 255, .06), 0 22px 40px -14px rgba(0, 0, 0, .8); transform: rotate(-3deg); transition: transform .4s var(--ease); background: var(--dark-2); }
.roadmap-card:hover .roadmap-cover { transform: rotate(0) translateY(-4px); }
.lm-title { font-size: 1.3rem; line-height: 1.25; }
.lm-lead { color: var(--dark-muted); font-size: .92rem; margin-top: 6px; }
.lm-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lm-meta li { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #dbe6fb; }
.lm-form { display: grid; gap: 16px; }
.roadmap .field label { color: #e3ebfb; }
.input-ico { position: relative; }
.input-ico > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.input-ico input { padding-left: 44px !important; }
.roadmap .consent { color: #cbd5ea !important; font-size: .86rem; }
.roadmap .consent a { color: #bfdbfe; }
.roadmap .field-err { color: #fda4af; }
.roadmap .form-alert { background: rgba(192, 38, 45, .15); border-color: rgba(253, 164, 175, .45); color: #fecdd3; }
.roadmap .form-alert a { color: #fff; }
.lm-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; color: var(--dark-muted); }
.lm-note .ico { color: #86efac; }
.lm-success { text-align: center; padding: 18px 4px 6px; }
.lm-success:focus { outline: none; }
.lm-success h3 { font-size: 1.5rem; }
.lm-success p { color: var(--dark-muted); margin: 10px auto 16px; max-width: 420px; }
.lm-email-badge { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff !important; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .roadmap-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "body"; }
    .roadmap-head h2 { max-width: none; }
    .roadmap-card { margin-top: 28px; max-width: 560px; }
    .roadmap-body { margin-top: 40px; }
}
@media (max-width: 640px) {
    .roadmap-quarters { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .roadmap-quarters::before { left: 7px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 2px dotted rgba(147, 197, 253, .45); }
    .rq { padding: 0 0 18px 32px; }
    .rq:last-child { padding-bottom: 0; }
    .roadmap-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .roadmap-offer { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
    .lm-title { font-size: 1.15rem; }
    .lm-meta { gap: 0 6px; margin-top: 8px; }
    .lm-meta li { padding: 0; border: 0; background: none; font-weight: 500; color: var(--dark-muted); }
    .lm-meta li + li::before { content: '·'; margin-right: 6px; }
    .lm-meta li:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .roadmap-cover, .roadmap-card:hover .roadmap-cover { transition: none; transform: none; } }

/* ---------- Narzędzia ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bcd0f5; }
.tool-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.tool-card .stretched { text-decoration: none; }
.tool-card .stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tool-card .stretched:focus-visible { outline: none; }
.tool-meta { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-ink); margin-top: 8px; }
.tool-card h3 { font-size: 1.3rem; }
.tool-card > p:not(.tool-meta) { color: var(--muted); font-size: .95rem; }
.tool-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--blue-ink); }
@media (max-width: 960px) { .tool-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }

/* ---------- O mnie ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 15%; border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--dark-2); }
.about-quote { position: absolute; right: -24px; bottom: -28px; max-width: 320px; padding: 18px 20px; border-radius: 18px; background: var(--dark); color: #fff; box-shadow: 0 24px 48px -20px rgba(6, 11, 26, .6); }
.about-quote .ico { color: #60a5fa; width: 26px; height: 26px; margin-bottom: 6px; }
.about-quote p { font-family: var(--font-head); font-size: 1rem; line-height: 1.45; font-weight: 500; }
.about-copy > p:not(.eyebrow) { color: var(--ink-2); margin-top: 14px; }
.about-copy h2 { margin-bottom: 8px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.role-chips li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 24px; align-items: center; }
.about-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 88px); }
.about-extra:has(> .testimonial[hidden]) { grid-template-columns: minmax(0, 760px); justify-content: center; }
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--dark); box-shadow: var(--shadow-lg); }
.video-facade, .video-card iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s var(--ease); }
.video-facade:hover img { opacity: 1; transform: scale(1.03); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 10px rgba(37, 99, 235, .25); transition: transform .25s var(--ease); }
.video-play .ico { width: 30px; height: 30px; margin-left: 4px; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
.video-card figcaption { padding: 14px 18px; color: var(--dark-muted); font-size: .88rem; }
.testimonial { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stars { display: inline-flex; gap: 3px; color: #f59e0b; }
.stars .ico { width: 18px; height: 18px; }
.testimonial blockquote p { font-family: var(--font-head); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; font-weight: 500; color: var(--ink); }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
    .about-grid, .about-extra { grid-template-columns: 1fr; }
    .about-photo { max-width: 460px; margin-bottom: 32px; }
    .about-quote { right: -12px; }
}
@media (max-width: 520px) { .about-quote { position: static; margin-top: -40px; margin-inline: 12px; max-width: none; } .about-photo { margin-bottom: 0; } }

/* ---------- Doświadczenie ---------- */
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 36px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--blue), var(--line-2)); }
.tl-item { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; align-items: start; }
.tl-logos { position: relative; z-index: 1; display: grid; gap: 6px; }
.tl-logos img { width: 74px; height: 74px; object-fit: contain; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-body { padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.is-current .tl-body { border-color: #bcd0f5; }
.tl-date { display: inline-flex; gap: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: var(--alt); }
.is-current .tl-date { background: var(--blue-soft); color: var(--blue-ink); }
.tl-body h3 { font-size: 1.2rem; margin-top: 10px; }
.tl-company { font-weight: 600; color: var(--blue-ink); font-size: .95rem; margin-top: 2px; }
.tl-text { color: var(--muted); font-size: .94rem; margin-top: 8px; }
.edu { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--radius); background: var(--dark); color: var(--dark-ink); box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--header-h) + 20px); }
.edu h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 18px; }
.edu h3 .ico { color: #93c5fd; }
.edu-list { display: grid; gap: 16px; margin-bottom: 22px; }
.edu-list li { padding-left: 16px; border-left: 2px solid rgba(147, 197, 253, .4); }
.edu-year { font-family: var(--font-head); font-weight: 700; color: #93c5fd; font-size: .95rem; }
.edu-degree { font-weight: 600; }
.edu-field { font-size: .92rem; color: #dbe4f5; }
.edu-school { font-size: .86rem; color: var(--dark-muted); }
.edu .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); white-space: normal; text-align: center; }
.edu .btn-outline:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
@media (max-width: 960px) { .exp-grid { grid-template-columns: 1fr; } .edu { position: static; } }
@media (max-width: 520px) {
    .timeline::before { left: 24px; }
    .tl-item { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
    .tl-logos img { width: 50px; height: 50px; padding: 8px; border-radius: 14px; }
    .tl-body { padding: 16px; }
}

/* ---------- Umiejętności i certyfikaty ---------- */
.skills-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: 20px; }
.skill-featured { grid-row: 1 / span 3; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius); background: linear-gradient(155deg, var(--dark-3) 0%, var(--dark) 70%); color: var(--dark-ink); position: relative; overflow: hidden; isolation: isolate; }
.skill-featured::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 100% 0%, rgba(37, 99, 235, .4), transparent 70%); }
.skill-featured .icon-box { background: rgba(96, 165, 250, .18); color: #bfdbfe; }
.skill-featured h3 { font-size: 1.6rem; margin: 18px 0 8px; }
.skill-featured > p { color: var(--dark-muted); }
.chip-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; margin: 20px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .85rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #e3ebfb; background: rgba(255, 255, 255, .04); }
.skill-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.skill-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; margin-bottom: 14px; }
.skill-card .icon-box { width: 40px; height: 40px; border-radius: 12px; }
.chips-light li { border-color: var(--line-2); color: var(--ink-2); background: var(--alt); }
.certs-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; margin: clamp(48px, 7vw, 72px) 0 24px; scroll-margin-top: calc(var(--header-h) + 20px); }
.certs-title .ico { color: var(--blue); }
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cert-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cert-logo { grid-row: span 2; display: grid; place-items: center; height: 56px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.cert-img { max-height: 30px; width: auto; object-fit: contain; }
.cert-name { font-weight: 600; font-size: .93rem; line-height: 1.35; }
.cert-meta { font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .skills-grid { grid-template-columns: 1fr; } .skill-featured { grid-row: auto; } .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } .cert-card { grid-template-columns: 76px minmax(0, 1fr); } }

/* ---------- Marki ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Cała karta klikalna: główny link rozciągnięty na kartę, pozostałe linki nad nim. */
.brand-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; --glow: rgba(37, 99, 235, .55); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.brand-card:focus-within { border-color: var(--blue); }
.brand-tile { position: relative; display: grid; place-items: center; height: 168px; background: radial-gradient(70% 110% at 50% 0%, var(--glow), transparent 70%), linear-gradient(180deg, var(--dark-3), var(--dark)); isolation: isolate; }
.brand-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(60% 80% at 50% 40%, #000, transparent); }
.brand-img { max-width: 116px; max-height: 88px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); transition: transform .5s var(--ease); }
.brand-card:hover .brand-img { transform: scale(1.06); }
.brand-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 20px; }
.brand-cat { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); line-height: 1.4; }
.brand-body h3 { font-size: 1.3rem; }
.brand-text { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.brand-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.brand-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; font-weight: 600; font-size: .92rem; color: var(--blue-ink); text-decoration: none; }
.brand-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.brand-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.brand-links .ico { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.brand-links a:hover .ico { transform: translate(2px, -2px); }
.brand-links .brand-link-main { position: static; }
.brand-links .brand-link-main::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.brand-card:hover .brand-link-main .ico { transform: translate(2px, -2px); }
.brand-automationnex { --glow: rgba(225, 29, 72, .45); }
.brand-nexcreativelab { --glow: rgba(14, 165, 233, .5); }
.brand-academy { --glow: rgba(147, 51, 234, .55); }
.brand-n8n { --glow: rgba(234, 75, 113, .5); }
.brand-nexself { --glow: rgba(232, 165, 121, .5); }
/* Niepełny ostatni wiersz w układzie 3 kolumn (siatka 6-kolumnowa): 1 pozycja = cała szerokość, 2 pozycje = po połowie; obie jako karty poziome. */
@media (min-width: 1081px) {
    .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .brand-card { grid-column: span 2; }
    .brand-card:nth-child(3n+1):last-child { grid-column: 1 / -1; }
    .brand-card:nth-child(3n+1):nth-last-child(2), .brand-card:nth-child(3n+2):last-child { grid-column: span 3; }
    .brand-card:nth-child(3n+1):last-child, .brand-card:nth-child(3n+1):nth-last-child(2), .brand-card:nth-child(3n+2):last-child { display: grid; grid-template-columns: minmax(180px, 38%) minmax(0, 1fr); }
    .brand-card:nth-child(3n+1):last-child { grid-template-columns: calc((100% - 48px) / 3) minmax(0, 1fr); }
    .brand-card:nth-child(3n+1):last-child .brand-tile, .brand-card:nth-child(3n+1):nth-last-child(2) .brand-tile, .brand-card:nth-child(3n+2):last-child .brand-tile { height: auto; min-height: 220px; }
    .brand-card:nth-child(3n+1):last-child .brand-body { padding: 28px 36px; justify-content: center; }
    .brand-card:nth-child(3n+1):last-child .brand-text, .brand-card:nth-child(3n+1):last-child .brand-links { max-width: 680px; }
}
@media (min-width: 561px) and (max-width: 1080px) {
    .brand-card:nth-child(2n+1):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: calc((100% - 20px) / 2) minmax(0, 1fr); }
    .brand-card:nth-child(2n+1):last-child .brand-tile { height: auto; min-height: 200px; }
}
.portfolio-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 32px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 60%, #0ea5e9 130%); color: #fff; scroll-margin-top: calc(var(--header-h) + 20px); box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .7); }
.portfolio-band h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.portfolio-band p:not(.eyebrow) { color: #dbeafe; margin-top: 8px; max-width: 640px; }
.portfolio-band .eyebrow { color: #bfdbfe; }
.portfolio-band .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: none; flex: 0 0 auto; }
.portfolio-band .btn-primary:hover { background: #eff6ff; }
@media (max-width: 1080px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 760px) { .portfolio-band { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: 1fr; gap: 16px; } .brand-tile { height: 128px; } .brand-body { padding: 20px; } .portfolio-band .btn { width: 100%; } }

/* ---------- Książka ---------- */
.book::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 70% at 15% 50%, rgba(37, 99, 235, .35), transparent 70%); }
.book-grid { max-width: 820px; }
.book-subtitle { font-family: var(--font-head); font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #bfdbfe; margin: 10px 0 18px; font-weight: 500; }
.book-p { color: var(--dark-muted); margin-top: 10px; }
.book-stats { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.book-stats div { display: flex; flex-direction: column; min-width: 110px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); }
.book-stats dd { order: -1; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1.1; }
.book-stats dt { font-size: .84rem; color: var(--dark-muted); }
.book-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.book-lang { margin-top: 14px; font-size: .84rem; color: var(--dark-muted); }
@media (max-width: 520px) { .book-ctas .btn { width: 100%; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #bcd0f5; box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.08rem; font-family: var(--font); font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.faq-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--alt); color: var(--blue-ink); flex: 0 0 auto; transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-card { padding: clamp(24px, 5vw, 56px); border-radius: 28px; background: linear-gradient(145deg, #0f1d44 0%, var(--dark) 60%); color: var(--dark-ink); position: relative; overflow: hidden; isolation: isolate; }
.contact-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(37, 99, 235, .4), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-card .sec-head { margin-bottom: 28px; }
.contact-card .sec-desc { color: var(--dark-muted); }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s var(--ease); min-width: 0; }
a.contact-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(147, 197, 253, .45); transform: translateY(-2px); }
.contact-item .icon-box { background: rgba(96, 165, 250, .18); color: #bfdbfe; width: 42px; height: 42px; }
.contact-label { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.contact-value { display: block; font-weight: 600; overflow-wrap: anywhere; }
.promise { display: grid; gap: 8px; margin-top: 24px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: #dbe4f5; }
.promise .ico { color: #86efac; margin-top: .2em; stroke-width: 2.4; }
.contact-form-wrap { background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(20px, 3.5vw, 34px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form h3 { grid-column: 1 / -1; font-size: 1.35rem; }
.contact-success { text-align: center; padding: clamp(20px, 5vw, 44px) 8px; }
.contact-success:focus { outline: none; }
.contact-success h3 { font-size: 1.5rem; }
.contact-success p { color: var(--muted); margin: 10px auto 22px; max-width: 420px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } .contact-card { border-radius: 22px; margin-inline: -8px; } .contact-form-wrap { margin-inline: -6px; } }

/* ---------- Pola formularzy ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; }
.field.full, .form-alert { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--blue-ink); }
.roadmap .req { color: #93c5fd; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fbfcff; color: var(--ink); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356617a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input::placeholder, .field textarea::placeholder { color: #94a0b8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a9b9d4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); }
.field [aria-invalid="true"] { border-color: var(--err) !important; background: #fff8f8 !important; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(192, 38, 45, .14) !important; }
.field-err { font-size: .84rem; color: var(--err); font-weight: 500; }
.field-err:empty { display: none; }
.field-err::before { content: '! '; font-weight: 700; }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--ink-2) !important; line-height: 1.55; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; cursor: pointer; }
.consent a { color: var(--blue-ink); font-weight: 600; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 8px; }
.form-alert { padding: 14px 16px; border-radius: 12px; background: #fff3f3; border: 1px solid #f3c2c4; color: #8d1b21; font-size: .92rem; }
.form-alert a { color: inherit; font-weight: 700; }
.btn .spinner { display: none; }
.btn.is-busy .spinner { display: block; }
.btn.is-busy .ico { display: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.success-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #e4f6ea; color: var(--ok); margin-bottom: 18px; animation: pop .5s var(--ease); }
.success-ico .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.roadmap .success-ico { background: rgba(134, 239, 172, .15); color: #86efac; }

/* ---------- Sekcje z Owner's Portal: wspólne ---------- */
.dd-narrow { width: 320px; }
.km-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.km-cta-row p { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink-2); }
.tm-more { display: flex; justify-content: center; margin-top: 28px; }
/* Karuzela (Opinie, Wystąpienia): 3 karty w rzędzie, 2 na tablecie, 1 na telefonie.
   Pas przewija się poziomo z przyciąganiem do kart (palcem, kółkiem, strzałkami).
   Auto-marginesy skrajnych kart centrują 1–2 karty, a przy przewijaniu zerują się same. */
.km-carousel { --car-gap: 22px; --car-per: 3; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px; }
.km-carousel:not(.is-scrollable) { grid-template-columns: minmax(0, 1fr); }
.km-track { display: flex; gap: var(--car-gap); align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 4px 22px; margin: -6px -4px -22px; }
.km-track::-webkit-scrollbar { display: none; }
.km-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.km-track > li { flex: 0 0 calc((100% - (var(--car-per) - 1) * var(--car-gap)) / var(--car-per)); min-width: 0; height: auto; scroll-snap-align: start; }
.km-track > li:first-child { margin-left: auto; }
.km-track > li:last-child { margin-right: auto; }
.km-car-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
.km-car-btn:hover:not(:disabled) { border-color: var(--blue); background: var(--blue); color: #fff; }
.km-car-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.km-car-btn[hidden], .km-car-pos[hidden] { display: none; }
.km-car-btn .ico { width: 20px; height: 20px; }
.km-car-prev { grid-column: 1; grid-row: 1; }
.km-carousel .km-track { grid-column: 2; grid-row: 1; }
.km-carousel:not(.is-scrollable) .km-track { grid-column: 1; }
.km-car-next { grid-column: 3; grid-row: 1; }
.km-car-pos { display: none; }
@media (max-width: 1000px) { .km-carousel { --car-per: 2; --car-gap: 18px; } }
/* Telefon: jedna karta na ekran, strzałki pod pasem po bokach licznika „2 / 5”. */
@media (max-width: 640px) {
    .km-carousel { --car-per: 1; --car-gap: 14px; grid-template-columns: 1fr auto 1fr; row-gap: 18px; }
    .km-carousel .km-track { grid-column: 1 / -1; }
    .km-car-prev, .km-car-next { grid-row: 2; }
    .km-car-prev { grid-column: 1; justify-self: end; }
    .km-car-next { grid-column: 3; justify-self: start; }
    .km-car-pos { display: block; grid-column: 2; grid-row: 2; min-width: 64px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) { .km-track { scroll-behavior: auto; } }

/* ---------- Case study ---------- */
.cs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cs-list:has(> li:only-child) { grid-template-columns: minmax(0, 860px); justify-content: center; }
.cs-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.cs-card.is-featured { border-color: #bcd0f5; box-shadow: var(--shadow-lg); }
.cs-card.is-featured::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.cs-top { display: flex; align-items: flex-start; gap: 16px; }
.cs-num { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; background: var(--dark); color: #bfdbfe; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.cs-logo { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 auto; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cs-logo img { width: 100%; height: 100%; object-fit: contain; }
.cs-client { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.cs-client span { color: var(--muted); font-weight: 600; }
.cs-head h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 6px; }
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cs-metrics li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--alt); border: 1px solid var(--line); }
.cs-m-label { font-size: .8rem; color: var(--muted); font-weight: 600; line-height: 1.35; }
.cs-m-val { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-head); }
.cs-m-val .ico { width: 16px; height: 16px; color: var(--blue); }
.cs-m-before { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; font-size: .95rem; }
.cs-m-val strong { font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.cs-story { display: grid; gap: 14px; }
/* Zwinięta karta: każdy krok skrócony do 3 linii (wynik zawsze widoczny), reszta po „Czytaj całość”. */
.cs-card:not(.is-open) .cs-step p:first-of-type { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card:not(.is-open) .cs-step p + p { display: none; }
.cs-step { padding-left: 16px; border-left: 2px solid var(--line-2); }
.cs-step-result { border-left-color: var(--blue); }
.cs-step-label { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.cs-step-label span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-size: .72rem; letter-spacing: 0; }
.cs-step-result .cs-step-label span { background: var(--blue); color: #fff; }
.cs-step p { color: var(--ink-2); font-size: .96rem; }
.cs-step p + p { margin-top: 8px; }
.cs-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px; font-weight: 600; font-size: .92rem; color: var(--blue-ink); margin-top: -8px; }
.cs-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.cs-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.cs-toggle:hover { text-decoration: underline; text-underline-offset: 4px; }
.cs-tools-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: -12px; }
.cs-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tools li { font-size: .84rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--alt); }
.cs-quote { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 18px; border-radius: 14px; background: var(--dark); color: var(--dark-ink); }
.cs-quote > span { grid-row: span 2; color: #60a5fa; }
.cs-quote blockquote p { font-family: var(--font-head); font-weight: 500; line-height: 1.5; }
.cs-quote figcaption { font-size: .86rem; color: var(--dark-muted); }
.cs-quote figcaption strong { color: #fff; }
@media (max-width: 900px) { .cs-list { grid-template-columns: 1fr; } }

/* ---------- Opinie ---------- */
/* Siatka kart równej wysokości: cytat ucięty do kilku linii, autor zawsze przy dole,
   pełna treść w oknie („Czytaj całość”) — długa opinia nie rozciąga rzędu. */
.tm-grid.is-single { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; }
.tm-card { display: flex; }
.tm-card[hidden] { display: none; }
.tm-card figure { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tm-card blockquote p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tm-read { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: -6px; padding: 0; font-size: .9rem; font-weight: 600; color: var(--blue-ink); background: none; border: 0; cursor: pointer; }
.tm-read .ico { width: 16px; height: 16px; transition: transform .2s; }
.tm-read:hover .ico { transform: translateX(3px); }
.tm-read[hidden] { display: none; }
.tm-card.is-featured .tm-read { color: #bfdbfe; }
.tm-card .tm-author { margin-top: auto; }
.tm-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.tm-dialog::backdrop { background: rgba(6, 11, 26, .72); }
.tm-dialog figure { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 5vw, 44px); }
.tm-dialog blockquote p { font-family: var(--font-head); font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.6; font-weight: 500; }
.tm-dialog-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; z-index: 1; }
.tm-dialog-close:hover { background: var(--alt); color: var(--ink); }
.tm-dialog.is-featured { background: var(--dark); color: var(--dark-ink); }
.tm-dialog.is-featured blockquote p { color: #fff; }
.tm-dialog.is-featured .tm-author { border-top-color: var(--dark-line); }
.tm-dialog.is-featured .tm-role, .tm-dialog.is-featured .tm-context, .tm-dialog.is-featured .tm-translated { color: var(--dark-muted); }
.tm-dialog.is-featured .tm-dialog-close { color: var(--dark-muted); }
.tm-dialog.is-featured .tm-dialog-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tm-card.is-featured figure { background: var(--dark); color: var(--dark-ink); border-color: transparent; box-shadow: var(--shadow-lg); }
.tm-mark { color: var(--blue); }
.tm-mark .ico { width: 30px; height: 30px; }
.tm-card blockquote p { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.55; font-weight: 500; color: var(--ink); }
.tm-grid.is-single blockquote p { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.tm-card.is-featured blockquote p { color: #fff; }
.tm-translated { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: -8px; }
.tm-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tm-card.is-featured .tm-author { border-top-color: var(--dark-line); }
.tm-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.tm-initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.tm-author strong { display: block; font-size: .98rem; }
.tm-role, .tm-context { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.tm-context { font-size: .8rem; margin-top: 2px; }
.tm-card.is-featured .tm-role, .tm-card.is-featured .tm-context, .tm-card.is-featured .tm-translated { color: var(--dark-muted); }

/* ---------- Wystąpienia ---------- */
.sp-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -12px auto clamp(32px, 5vw, 48px); }
.sp-stats div { display: flex; flex-direction: column-reverse; align-items: center; min-width: 150px; padding: 16px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sp-stats dd { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--blue-ink); }
.sp-stats dt { font-size: .85rem; color: var(--muted); font-weight: 500; }
.sp-sub { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 18px; }
.sp-sub .ico { color: var(--blue); }
.sp-sub ~ .sp-sub { margin-top: clamp(36px, 5vw, 52px); }
.sp-upcoming { display: grid; gap: 14px; }
.sp-next { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--dark); color: var(--dark-ink); box-shadow: var(--shadow-lg); }
.sp-date { display: grid; place-items: center; width: 74px; padding: 10px 6px; border-radius: 14px; background: rgba(96, 165, 250, .16); color: #bfdbfe; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; line-height: 1.1; }
.sp-date span { font-family: var(--font-head); font-size: 1.9rem; letter-spacing: -.02em; color: #fff; }
.sp-next h4 { font-size: 1.25rem; margin: 4px 0; }
.sp-next .sp-meta, .sp-next .sp-event { color: var(--dark-muted); }
.sp-next .sp-links a { color: #bfdbfe; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
/* Karty równej wysokości (układ w rzędzie daje karuzela .km-track). */
.sp-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.sp-card.is-featured { border-color: #bcd0f5; box-shadow: var(--shadow-lg); }
.sp-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.sp-meta { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--blue-ink); }
.sp-card h4 { font-size: 1.15rem; line-height: 1.25; }
.sp-event { font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.sp-desc { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sp-desc p + p { margin-top: 6px; }
.sp-desc a { color: var(--blue-ink); }
.sp-aud { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.sp-aud .ico { width: 16px; height: 16px; color: var(--blue); }
.sp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.sp-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--alt); color: var(--blue-ink); font-size: .84rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.sp-links a:hover { border-color: var(--blue); background: var(--blue-soft); }
.sp-links .ico { width: 15px; height: 15px; }
/* Kolaż: układ zależy od liczby zdjęć (1–5); ostatni kafel pokazuje „+N”. */
/* Jedna proporcja okładki dla każdej liczby zdjęć (i bez zdjęć) — tekst kart startuje na tej samej wysokości. */
.sp-collage { display: grid; gap: 3px; aspect-ratio: 3 / 2; background: var(--dark); }
.sp-collage-2 { grid-template-columns: 1fr 1fr; }
.sp-collage-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.sp-collage-3 .sp-tile:first-child { grid-column: span 2; grid-row: span 2; }
.sp-collage-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sp-collage-5 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; }
.sp-collage-5 .sp-tile:first-child { grid-column: span 2; grid-row: span 2; }
.sp-cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 3 / 2; background: radial-gradient(70% 90% at 15% 0%, rgba(37, 99, 235, .55), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgba(56, 189, 248, .22), transparent 70%), var(--dark); color: #bfdbfe; }
.sp-cover-empty .ico { width: 34px; height: 34px; }
.sp-cover-empty span { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-muted); }
.sp-tile { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; cursor: zoom-in; }
.sp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.sp-tile:hover img { transform: scale(1.04); }
.sp-tile:focus-visible { outline-offset: -3px; outline-color: var(--sky); }
.sp-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 11, 26, .62); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.sp-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 56px 12px 24px; background: rgba(4, 8, 20, .94); animation: fadeIn .2s var(--ease); }
.sp-lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; height: 100%; justify-content: center; }
.sp-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; }
.sp-lightbox figcaption { color: var(--dark-muted); font-size: .9rem; text-align: center; }
.sp-lb-close { position: absolute; top: 10px; right: 12px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #fff; }
.sp-lb-nav { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); }
.sp-lb-nav:hover, .sp-lb-close:hover { background: rgba(255, 255, 255, .18); }
.sp-lightbox :focus-visible { outline-color: var(--sky); }
@media (max-width: 560px) {
    .sp-next { grid-template-columns: 1fr; }
    .sp-date { display: none; }
    .sp-lightbox { grid-template-columns: 1fr; padding-inline: 8px; }
    .sp-lb-nav { position: absolute; bottom: 18px; }
    .sp-lb-prev { left: 18px; }
    .sp-lb-next { right: 18px; }
}

/* ---------- Kalkulator ROI ---------- */
.roi-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 100% 0%, rgba(37, 99, 235, .32), transparent 70%), radial-gradient(45% 55% at 0% 100%, rgba(56, 189, 248, .14), transparent 70%); }
.roi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(18px, 3vw, 28px); align-items: start; }
.roi-card { padding: clamp(22px, 3.2vw, 34px); border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.roi-inputs { display: grid; gap: 20px; }
.roi-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.roi-step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .9rem; flex: 0 0 auto; }
.roi .field label { color: #e3ebfb; }
.roi .req { color: #93c5fd; }
.roi .optional, .roi .field-hint { color: var(--dark-muted); }
.field-hint { font-size: .82rem; }
.roi .field-err { color: #fda4af; }
.roi .consent { color: #cbd5ea !important; }
.roi .consent a { color: #bfdbfe; }
.roi .form-alert { background: rgba(192, 38, 45, .15); border-color: rgba(253, 164, 175, .45); color: #fecdd3; }
.roi .form-alert a { color: #fff; }
.roi-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.roi-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.roi-chips > span { font-size: .8rem; color: var(--dark-muted); margin-right: 2px; }
.roi-chip { min-height: 32px; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #dbe4f5; font-size: .8rem; font-weight: 500; transition: background-color .2s, border-color .2s; }
.roi-chip:hover { border-color: rgba(147, 197, 253, .6); background: rgba(96, 165, 250, .12); }
.roi-chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.roi-num { position: relative; display: flex; align-items: center; }
.roi-num input { width: 100%; min-height: 50px; padding: 12px 84px 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fbfcff; color: var(--ink); font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; transition: border-color .2s, box-shadow .2s; }
.roi-num input::-webkit-inner-spin-button, .roi-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.roi-num input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .25); }
.roi-num > span { position: absolute; right: 14px; font-size: .82rem; font-weight: 600; color: #64748b; pointer-events: none; }
.roi-range { display: grid; grid-template-columns: 1fr 170px; gap: 14px; align-items: center; }
.roi-range input[type="range"] { width: 100%; accent-color: var(--blue); height: 28px; cursor: pointer; }
.roi-stepper { display: grid; grid-template-columns: 50px 1fr 50px; gap: 8px; }
.roi-stepper button { min-height: 50px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1.3rem; font-weight: 600; background: rgba(255, 255, 255, .05); }
.roi-stepper button:hover { background: rgba(255, 255, 255, .12); }
.roi-stepper .roi-num input { text-align: center; padding-right: 54px; padding-left: 14px; }
.roi-result { display: grid; gap: 26px; }
.roi-figure { display: grid; gap: 6px; }
.roi-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; }
.roi-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.roi-formula { font-size: .88rem; color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.roi-bars { display: grid; gap: 8px; margin: 14px 0 8px; }
.roi-bar { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-size: .82rem; color: #cbd5ea; }
.roi-bar i { display: block; height: 12px; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #f87171, #fb923c); transition: width .5s var(--ease); }
.roi-bar-after i { background: linear-gradient(90deg, var(--blue), var(--sky)); }
.roi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.roi-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.roi-stats .roi-stat-wide { grid-column: 1 / -1; background: rgba(37, 99, 235, .18); border-color: rgba(96, 165, 250, .35); }
.roi-stats dt { font-size: .8rem; color: var(--dark-muted); }
.roi-stats dt small { display: block; font-size: .76rem; opacity: .85; }
.roi-stats dd { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; font-variant-numeric: tabular-nums; }
.roi-stat-wide dd { font-size: 1.45rem; color: #bfdbfe; }
.roi-gate { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.roi-gate-text { color: var(--dark-muted); font-size: .95rem; margin-top: -6px; }
.roi-success { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.roi-success:focus { outline: none; }
.roi-success h3 { justify-content: center; font-size: 1.45rem; }
.roi-success > p { color: var(--dark-muted); margin: 10px auto 16px; max-width: 440px; }
.roi .success-ico { background: rgba(134, 239, 172, .15); color: #86efac; }
.roi-reco { text-align: left; margin: 22px 0 16px; padding: 20px; border-radius: 16px; background: rgba(37, 99, 235, .16); border: 1px solid rgba(96, 165, 250, .35); }
.roi-reco-label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; }
.roi-reco h4 { font-size: 1.2rem; margin: 6px 0; color: #fff; }
.roi-reco > p { color: #dbe4f5; font-size: .95rem; }
.roi-reco ol { display: grid; gap: 6px; margin: 12px 0 16px; padding-left: 1.3em; list-style: decimal; color: #dbe4f5; font-size: .93rem; }
.roi-reco ol li::marker { color: #93c5fd; font-weight: 700; }
@media (min-width: 961px) { .roi-inputs { position: sticky; top: calc(var(--header-h) + 20px); } }
@media (max-width: 960px) { .roi-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .roi-row, .roi-range { grid-template-columns: 1fr; }
    .roi-range input[type="range"] { order: 2; }
    .roi-stats { grid-template-columns: 1fr 1fr; }
    .roi-stats > div:nth-child(3) { grid-column: 1 / -1; }
    .roi-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px 6px; scrollbar-width: none; }
    .roi-chips::-webkit-scrollbar { display: none; }
    .roi-chip, .roi-chips > span { flex: 0 0 auto; }
}

/* ---------- Podstrony usług ---------- */
.hero-sub { padding-bottom: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--dark-muted); margin-bottom: 18px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: #dbe4f5; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #fff; font-weight: 500; }
.practice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.practice-card { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.practice-card h3 { font-size: 1.16rem; margin: 18px 0 8px; }
.practice-card p { color: var(--muted); font-size: .94rem; }
@media (max-width: 1000px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .practice-grid { grid-template-columns: 1fr; } }

.deep-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.deep-head { position: sticky; top: calc(var(--header-h) + 28px); }
.deep-head .btn { margin-top: 26px; }
.deep-list { display: grid; gap: 16px; counter-reset: d; }
.deep-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.deep-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; }
.deep-item h3 { font-size: 1.22rem; margin: 8px 0 8px; }
.deep-item p { color: var(--ink-2); font-size: .97rem; }
.deep-item p + p { margin-top: 10px; }
@media (max-width: 900px) { .deep-grid { grid-template-columns: 1fr; } .deep-head { position: static; } }
@media (max-width: 520px) { .deep-item { grid-template-columns: 1fr; gap: 6px; padding: 20px; } }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.result-card { position: relative; padding: 26px 26px 26px 76px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.result-ico { position: absolute; left: 24px; top: 26px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e4f6ea; color: var(--ok); }
.result-ico .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.result-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.result-card p { color: var(--muted); font-size: .95rem; }
.when { display: flex; gap: 22px; align-items: flex-start; margin-top: 28px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: linear-gradient(145deg, #0f1d44 0%, var(--dark) 70%); color: var(--dark-ink); }
.when .icon-box { background: rgba(96, 165, 250, .18); color: #bfdbfe; }
.when .eyebrow { color: #93c5fd; margin-bottom: 8px; }
.when h3 { font-size: 1.4rem; margin-bottom: 10px; }
.when p:not(.eyebrow) { color: #cbd5ea; }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .when { flex-direction: column; gap: 14px; } .result-card { padding: 22px 20px 22px 66px; } .result-ico { left: 18px; top: 22px; } }

.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; padding: clamp(28px, 5vw, 52px); border-radius: 28px; background: linear-gradient(145deg, #0f1d44 0%, var(--dark) 60%); color: var(--dark-ink); position: relative; overflow: hidden; isolation: isolate; }
.cta-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(37, 99, 235, .45), transparent 70%); }
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-card p:not(.eyebrow) { color: var(--dark-muted); margin-top: 10px; max-width: 560px; }
.cta-actions { display: grid; gap: 10px; flex: 0 0 auto; justify-items: start; }
.cta-link { display: inline-flex; align-items: center; gap: 8px; color: #dbe4f5; text-decoration: none; font-weight: 500; min-height: 36px; }
.cta-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .cta-card { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Polityka prywatności ---------- */
.hero-legal { padding-bottom: clamp(40px, 6vw, 72px); }
.hero-legal .hero-lead { max-width: 720px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legal-toc p { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { display: grid; gap: 4px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.legal-toc a::before { content: counter(toc) '.'; color: var(--blue-ink); font-weight: 700; }
.legal-toc a:hover { background: var(--alt); }
.legal-body { max-width: 760px; }
.legal-sec + .legal-sec { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-lead { font-size: 1.08rem; color: var(--muted); margin: 12px 0 8px; }
.legal-sec h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal-sec p { color: var(--ink-2); }
.legal-sec a, .legal-contact a:not(.btn) { color: var(--blue-ink); font-weight: 600; }
.legal-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 22px 24px; border-radius: 18px; background: var(--alt); }
.legal-contact p { display: inline-flex; align-items: center; gap: 10px; }
.legal-cookies { margin-top: 18px; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding-top: 64px; font-size: .92rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo-color { display: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin-top: 16px; max-width: 330px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--dark-line); color: #dbe4f5; transition: background-color .2s, border-color .2s; }
.footer-social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.footer-social .ico { width: 18px; height: 18px; }
.footer-title { font-family: var(--font); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-block; padding: 5px 0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid var(--dark-line); font-size: .84rem; }
.footer-bottom a { color: #dbe4f5; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.to-top { text-decoration: none; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 440px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(11, 18, 36, .45); font-size: .88rem; color: var(--ink-2); animation: slideUp .4s var(--ease); }
.cookie a { color: var(--blue-ink); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.cookie.is-hiding { opacity: 0; transform: translateY(12px); transition: all .3s; }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; } .cookie-actions .btn { flex: 1; } }

/* ---------- Przyklejony CTA (telefon) ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
    .sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(30, 58, 138, .75); transform: translateY(140%); transition: transform .35s var(--ease); }
    .sticky-cta.is-visible { transform: none; }
    body:has(.cookie:not([hidden])) .sticky-cta { transform: translateY(140%); }
}

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 80vh; display: grid; place-items: center; background: var(--dark); color: #fff; padding: calc(var(--header-h) + 48px) 0 72px; isolation: isolate; text-align: center; }
.nf-inner { max-width: 680px; }
.nf-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(92deg, #bfdbfe, #60a5fa, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0; }
.nf p { color: var(--dark-muted); margin-bottom: 28px; }
.nf-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.nf-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--dark-line); text-decoration: none; font-size: .9rem; color: #dbe4f5; }
.nf-links a:hover { background: rgba(255, 255, 255, .08); }
.nf-links .ico { width: 16px; height: 16px; color: #93c5fd; }

/* ---------- Animacje ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: .06s; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: .12s; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: .18s; }
.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: .24s; }
.js .reveal-group.is-visible > *:nth-child(n+6) { transition-delay: .3s; }

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

@media print {
    .site-header, .sticky-cta, .cookie, .mobile-menu, .video-card, .roadmap-card { display: none !important; }
    .hero, .section-dark, .site-footer, .contact-card, .cta-card, .when, .edu, .skill-featured { background: #fff !important; color: #000 !important; }
    .accent { color: #000; -webkit-text-fill-color: #000; }
    .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
}
