/* ============================================================
   Stando.dev — Design System
   Paleta na podstawie materiału źródłowego
   ============================================================ */

:root {
    /* Kolory bazowe */
    --navy-950: #040F26;
    --navy-900: #071C3D;
    --navy-800: #0C244E;
    --navy-700: #143670;
    --navy-600: #1B4A8E;

    --blue-500: #1E88F5;
    --blue-400: #3EA0FF;
    --blue-300: #6BB8FF;
    --blue-100: #DCEDFF;

    --white: #FFFFFF;
    --gray-50: #F5F8FC;
    --gray-100: #EDF2F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-700: #334155;
    --gray-900: #0F1B2E;

    /* Sematyka */
    --color-bg: var(--white);
    --color-bg-alt: var(--gray-50);
    --color-bg-dark: var(--navy-900);
    --color-text: var(--gray-900);
    --color-text-muted: var(--gray-500);
    --color-text-invert: var(--white);
    --color-accent: var(--blue-500);
    --color-accent-hover: var(--blue-400);
    --color-border: var(--gray-200);
    --color-border-dark: rgba(255, 255, 255, 0.1);

    /* Typografia */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --fs-xs: 0.75rem;    /* 12 */
    --fs-sm: 0.875rem;   /* 14 */
    --fs-base: 1rem;     /* 16 */
    --fs-lg: 1.125rem;   /* 18 */
    --fs-xl: 1.25rem;    /* 20 */
    --fs-2xl: 1.5rem;    /* 24 */
    --fs-3xl: 1.875rem;  /* 30 */
    --fs-4xl: 2.25rem;   /* 36 */
    --fs-5xl: 3rem;      /* 48 */
    --fs-6xl: 3.75rem;   /* 60 */
    --fs-7xl: 4.5rem;    /* 72 */

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(7, 28, 61, 0.05);
    --shadow-md: 0 4px 12px rgba(7, 28, 61, 0.08);
    --shadow-lg: 0 12px 32px rgba(7, 28, 61, 0.12);
    --shadow-xl: 0 24px 60px rgba(7, 28, 61, 0.18);
    --shadow-glow: 0 8px 32px rgba(30, 136, 245, 0.35);

    /* Kontener */
    --container: 1200px;
    --container-narrow: 880px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 150ms;
    --dur: 250ms;
    --dur-slow: 450ms;
}

/* ============================================================
   Reset + baza
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-accent); }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 var(--sp-4);
    color: var(--color-text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
::selection { background: var(--blue-500); color: var(--white); }

/* Skip link (a11y) */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy-900); color: var(--white);
    padding: var(--sp-3) var(--sp-4); z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Layout utilities
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--color-bg-alt); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--sp-4);
}
.eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: var(--sp-12); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: var(--fs-lg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    letter-spacing: 0.01em;
    text-align: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--color-accent);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    color: var(--white);
    box-shadow: 0 12px 40px rgba(62, 160, 255, 0.5);
}
.btn--ghost {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--gray-200);
}
.btn--ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.btn--ghost-invert {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost-invert:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.btn--sm { padding: 0.55rem 1.15rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.1rem 2.25rem; font-size: var(--fs-lg); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}
.nav {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    padding-block: var(--sp-4);
}
.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--navy-900);
    flex-shrink: 0;
}
.nav__logo svg,
.nav__logo img { height: 44px; width: auto; }
.nav__logo-text {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1;
}
.nav__list {
    display: flex;
    gap: var(--sp-8);
    list-style: none;
    padding: 0; margin: 0;
    margin-inline-start: auto;
}
.nav__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-base);
    color: var(--gray-700);
    padding: var(--sp-2) 0;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy-900); }
.nav__cta { display: flex; gap: var(--sp-3); align-items: center; }

.nav__toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    color: var(--navy-900);
    align-items: center;
    justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
    .nav__toggle { display: none; }
    .nav__list, .nav__cta { display: none; }
    .nav.is-open .nav__list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        padding: var(--sp-6);
        gap: var(--sp-4);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        margin: 0;
    }
    .nav.is-open .nav__cta {
        display: flex;
        position: absolute;
        top: calc(100% + 220px);
        left: 0; right: 0;
        padding: 0 var(--sp-6) var(--sp-6);
        background: var(--white);
        flex-direction: column;
    }
    .nav.is-open .nav__cta .btn { width: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-900);
    color: var(--white);
    isolation: isolate;
}
.hero__bg {
    position: absolute; inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero__bg svg,
.hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* Anchor the light "wave" to the left side so the content column
       stays on the light area even when the viewport is narrower than
       the SVG's native aspect ratio (fixes the dark bar cutting through
       the badges on non-fullscreen widths). */
    object-position: 0 50%;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-12);
    align-items: center;
    min-height: 640px;
    padding-block: var(--sp-20);
}
.hero__content .eyebrow { color: var(--blue-400); }
.hero__title {
    color: var(--navy-900);
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    margin-bottom: var(--sp-4);
}
.hero__title .accent { color: var(--color-accent); display: block; }
.hero__lead {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--gray-700);
    max-width: 520px;
    margin-bottom: var(--sp-8);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-10); }

/* Ghost button inside the hero: keep it readable regardless of what
   part of the wavy hero background sits behind it (light or navy). */
.hero .btn--ghost {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--gray-300);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero .btn--ghost:hover {
    background: var(--white);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-6); }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--gray-700);
}
.hero__badge-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: var(--blue-100);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero__badge-icon svg { width: 20px; height: 20px; }
.hero__badge strong { display: block; color: var(--navy-900); font-family: var(--font-heading); }

/* Hero card z usługami (jak w materiale źródłowym) */
.hero__services {
    background: var(--navy-800);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-dark);
    position: relative;
}
.hero__services::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(62, 160, 255, 0.4), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.hero__services-title {
    font-size: var(--fs-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: var(--sp-6);
}
.hero__services-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    gap: var(--sp-5);
}
.hero__services-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--sp-4);
    align-items: start;
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--color-border-dark);
}
.hero__services-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__services-list .icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: rgba(62, 160, 255, 0.12);
    color: var(--blue-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero__services-list .icon svg { width: 22px; height: 22px; }
.hero__services-list strong {
    display: block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--sp-1);
}
.hero__services-list span {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; min-height: auto; }
    .hero__services { order: -1; }
}

/* ============================================================
   Values / USP strip
   ============================================================ */
.values {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-8);
    padding-block: var(--sp-12);
}
.value {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
}
.value__icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.value p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }

/* ============================================================
   Services grid
   ============================================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-6);
}
.service {
    position: relative;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
    overflow: hidden;
    isolation: isolate;
}
.service::before {
    content: '';
    position: absolute;
    inset: auto -30% -60% auto;
    width: 220px; height: 220px;
    background: radial-gradient(circle at center, rgba(30, 136, 245, 0.15), transparent 70%);
    z-index: -1;
    transition: transform var(--dur-slow) var(--ease-out);
}
.service:hover {
    transform: translateY(-6px);
    border-color: var(--blue-300);
    box-shadow: var(--shadow-lg);
}
.service:hover::before { transform: translate(-20px, -20px); }
.service__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-6);
    box-shadow: 0 8px 20px rgba(30, 136, 245, 0.35);
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 {
    text-transform: uppercase;
    font-size: var(--fs-lg);
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-3);
}
.service p { color: var(--color-text-muted); font-size: var(--fs-base); margin-bottom: var(--sp-5); }
.service__link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.service__link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service:hover .service__link svg { transform: translateX(4px); }

/* Featured service (większa pierwsza karta) */
.service--featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    border-color: transparent;
}
.service--featured h3, .service--featured p { color: var(--white); }
.service--featured p { color: rgba(255, 255, 255, 0.75); }
.service--featured::before { background: radial-gradient(circle at center, rgba(62, 160, 255, 0.35), transparent 70%); }

@media (max-width: 720px) {
    .service--featured { grid-column: span 1; }
}

/* ============================================================
   Process (kroki współpracy)
   ============================================================ */
.process { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 15% 25%, rgba(30, 136, 245, 0.15), transparent 40%),
            radial-gradient(circle at 85% 75%, rgba(62, 160, 255, 0.1), transparent 40%);
    pointer-events: none;
}
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-6);
    position: relative;
}
.step {
    padding: var(--sp-8);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    background: rgba(12, 36, 78, 0.5);
    backdrop-filter: blur(6px);
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--blue-400); }
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-5);
}
.step h3 { color: var(--white); font-size: var(--fs-lg); }
.step p { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-sm); margin: 0; }

/* ============================================================
   Stats
   ============================================================ */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-6);
    text-align: center;
}
.stat {
    padding: var(--sp-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat__num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.02em;
}
.stat__label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
}
.testimonial {
    padding: var(--sp-8);
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial__quote {
    font-size: var(--fs-lg);
    color: var(--navy-900);
    margin-bottom: var(--sp-6);
    line-height: 1.55;
}
.testimonial__quote::before {
    content: '“';
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 0.4;
    color: var(--blue-400);
    margin-bottom: var(--sp-4);
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--color-border);
}
.testimonial__avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
}
.testimonial__author strong { display: block; color: var(--navy-900); font-family: var(--font-heading); }
.testimonial__author span { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
    display: grid;
    gap: var(--sp-3);
    max-width: 820px;
    margin: 0 auto;
}
.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] {
    border-color: var(--blue-300);
    box-shadow: var(--shadow-sm);
}
.faq__q {
    list-style: none;
    padding: var(--sp-5) var(--sp-6);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    color: var(--navy-900);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 400;
    transition: transform var(--dur) var(--ease);
    flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
    padding: 0 var(--sp-6) var(--sp-6);
    color: var(--color-text-muted);
    font-size: var(--fs-base);
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--sp-8);
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-banner::before {
    content: '';
    position: absolute;
    right: -100px; top: -100px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(62, 160, 255, 0.35), transparent 60%);
    z-index: -1;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255, 255, 255, 0.8); font-size: var(--fs-lg); }
.cta-banner__actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.cta-banner .btn--primary {
    background: var(--white);
    color: var(--navy-900);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.cta-banner .btn--primary:hover { background: var(--blue-100); color: var(--navy-900); }
.cta-banner .btn--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}
.cta-banner .btn--ghost:hover { color: var(--blue-400); border-color: var(--blue-400); }

@media (max-width: 720px) {
    .cta-banner { grid-template-columns: 1fr; text-align: center; }
    .cta-banner__actions { align-items: center; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--sp-16) 0 var(--sp-6);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--sp-10);
    margin-bottom: var(--sp-12);
}
.footer__brand-head {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}
.footer__brand img {
    height: 44px;
    width: auto;
}
.footer__brand-name {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: 0.01em;
}
.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 380px;
    line-height: 1.75;
}
.footer__title {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-5);
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.footer__list a { color: rgba(255, 255, 255, 0.7); font-size: var(--fs-sm); }
.footer__list a:hover { color: var(--blue-400); }
.footer__contact-item {
    display: flex; gap: var(--sp-3); align-items: flex-start;
    font-size: var(--fs-sm); margin-bottom: var(--sp-3);
}
.footer__contact-item svg {
    width: 18px; height: 18px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px;
}
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--sp-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
}
.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 800px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog styles
   ============================================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    padding-block: clamp(4rem, 8vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(30, 136, 245, 0.2), transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(62, 160, 255, 0.15), transparent 40%);
    z-index: -1;
}
.page-hero h1 { color: var(--white); max-width: 780px; }
.page-hero__lead { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-lg); max-width: 640px; }

.breadcrumbs {
    display: flex;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--sp-5);
    flex-wrap: wrap;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.65); }
.breadcrumbs a:hover { color: var(--blue-400); }
.breadcrumbs__sep { color: rgba(255, 255, 255, 0.35); }

/* Filtry kategorii */
.blog-filters {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-10);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid var(--color-border);
}
.blog-filter {
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--dur) var(--ease);
    cursor: pointer;
}
.blog-filter:hover { border-color: var(--blue-400); color: var(--color-accent); }
.blog-filter.is-active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-8);
}
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
    height: 100%;
}
.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-300);
    box-shadow: var(--shadow-lg);
}
.post-card__media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.post-card__media::before {
    content: '';
    position: absolute; inset: 0;
    background:
            radial-gradient(circle at 30% 30%, rgba(62, 160, 255, 0.4), transparent 50%),
            radial-gradient(circle at 70% 70%, rgba(30, 136, 245, 0.3), transparent 50%);
}
.post-card__media svg { width: 64px; height: 64px; position: relative; opacity: 0.9; }
.post-card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex-grow: 1; }
.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--sp-3);
}
.post-card__category {
    color: var(--color-accent);
}
.post-card__meta .dot { width: 4px; height: 4px; background: var(--gray-300); border-radius: 50%; }
.post-card__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-3);
    line-height: 1.3;
}
.post-card__title a { color: var(--navy-900); }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt {
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    margin-bottom: var(--sp-5);
    flex-grow: 1;
}
.post-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-border);
}
.post-card__author {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    font-size: var(--fs-sm);
    color: var(--gray-700);
    font-weight: 600;
}
.post-card__author-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: 700;
}
.post-card__read-more {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
}

/* Featured post (pierwszy) */
.post-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
}
.post-featured .post-card__media { aspect-ratio: auto; height: 100%; min-height: 360px; }
.post-featured .post-card__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.post-featured .post-card__title { font-size: clamp(1.5rem, 2.5vw, 2rem); }

@media (max-width: 800px) {
    .post-featured { grid-template-columns: 1fr; }
    .post-featured .post-card__media { min-height: 220px; }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-12);
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 var(--sp-3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--blue-400); color: var(--color-accent); }
.pagination .is-current {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}

/* Article (blog-post) */
.article {
    --content-width: 720px;
    padding-block: var(--sp-16);
}
.article__container {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}
.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    align-items: center;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: var(--sp-6);
}
.article__meta .badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--sp-3);
    border-radius: var(--radius-full);
    background: var(--blue-100);
    color: var(--color-accent);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.article h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--sp-6); }
.article__lead {
    font-size: var(--fs-xl);
    line-height: 1.55;
    color: var(--gray-700);
    margin-bottom: var(--sp-10);
}
.article__hero {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-10);
}
.article__body h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: var(--sp-12);
    margin-bottom: var(--sp-4);
    scroll-margin-top: 100px;
}
.article__body h3 {
    font-size: var(--fs-xl);
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-3);
    scroll-margin-top: 100px;
}
.article__body p, .article__body li { font-size: var(--fs-lg); line-height: 1.75; }
.article__body ul, .article__body ol { padding-left: var(--sp-6); margin-bottom: var(--sp-6); }
.article__body li { margin-bottom: var(--sp-2); }
.article__body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { color: var(--blue-400); }
.article__body blockquote {
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-alt);
    padding: var(--sp-5) var(--sp-6);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--sp-8) 0;
    font-size: var(--fs-lg);
    color: var(--navy-900);
    font-style: italic;
}
.article__body code {
    background: var(--gray-100);
    color: var(--navy-900);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.9em;
}
.article__body pre {
    background: var(--navy-900);
    color: var(--gray-100);
    padding: var(--sp-5);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--sp-6) 0;
}
.article__body pre code { background: transparent; color: inherit; padding: 0; }

.toc {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--sp-5) var(--sp-6);
    margin-bottom: var(--sp-10);
}
.toc__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-700);
    margin-bottom: var(--sp-3);
}
.toc ol { padding-left: var(--sp-5); margin: 0; }
.toc li { margin-bottom: var(--sp-1); color: var(--gray-700); font-size: var(--fs-sm); }
.toc a { color: var(--gray-700); }
.toc a:hover { color: var(--color-accent); }

.tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--color-border); }
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-size: var(--fs-xs);
    color: var(--gray-700);
    text-transform: lowercase;
    font-family: var(--font-heading);
    font-weight: 600;
}
.tag::before { content: '#'; color: var(--color-accent); margin-right: 2px; }

/* Sidebar / newsletter */
.article__cta {
    margin-top: var(--sp-12);
    padding: var(--sp-8);
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
}
.article__cta h3 { color: var(--white); }
.article__cta p { color: rgba(255, 255, 255, 0.75); margin-bottom: var(--sp-5); }

/* Related posts */
.related {
    background: var(--color-bg-alt);
    padding-block: var(--sp-16);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
    .site-header, .site-footer, .cta-banner, .btn { display: none; }
    body { color: #000; background: #fff; }
}
