/* ============================================================
   NEXORA — Style Sheet
   Clean Premium + Full Power Animations
   ============================================================ */

/* ---- CUSTOM PROPERTIES ---- */
:root {
    /* Colors */
    --c-bg: #FAFBFD;
    --c-bg-alt: #F1F5F9;
    --c-bg-dark: #EAF2FF;
    --c-surface: #FFFFFF;
    --c-surface-hover: #F8FAFC;
    --c-border: #E2E8F0;
    --c-border-light: #F1F5F9;

    --c-text: #0F172A;
    --c-text-secondary: #475569;
    --c-text-tertiary: #94A3B8;
    --c-text-inverse: #F8FAFC;

    --c-primary: #1E40AF;
    --c-primary-light: #3B82F6;
    --c-primary-dark: #1E3A8A;
    --c-accent: #0891B2;
    --c-accent-light: #06B6D4;
    --c-gradient: linear-gradient(135deg, #1E40AF 0%, #0891B2 100%);
    --c-gradient-soft: linear-gradient(135deg, rgba(30,64,175,0.08) 0%, rgba(8,145,178,0.08) 100%);
    --c-gradient-text: linear-gradient(135deg, #1E40AF, #0891B2);

    /* Typography */
    --f-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Sizing */
    --container: 1200px;
    --nav-h: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 40px rgba(30,64,175,0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
    --duration: 0.6s;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent; /* usuwa niebieski b\u0142ysk na mobile */
    -webkit-text-size-adjust: 100%;            /* iOS: blok orient-zoom font-size */
}

body {
    font-family: var(--f-body);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility + performance: uszanuj preferencj\u0119 ograniczenia ruchu */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero__orb,
    .hero__scroll-indicator,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: rgba(30, 64, 175, 0.15);
    color: var(--c-primary);
}

/* ---- CONTAINER ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- CURSOR ---- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

body:hover .cursor-dot,
body:hover .cursor-ring {
    opacity: 1;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--c-primary);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(30, 64, 175, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

.cursor-ring.hovering {
    width: 56px;
    height: 56px;
    border-color: rgba(30, 64, 175, 0.6);
}

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--c-gradient);
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
}

/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
    background: rgba(250, 251, 253, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: 0 1px 0 var(--c-border);
}

.nav__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav__logo-text {
    background: var(--c-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-gradient);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--c-text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    margin-left: auto;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
}

.nav__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--c-text);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(250, 251, 253, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-menu__link {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-text);
    transition: color 0.3s;
}

.mobile-menu__link:hover {
    color: var(--c-primary);
}

.mobile-menu__cta {
    margin-top: 12px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background: var(--c-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.25);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1E3A8A 0%, #0E7490 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn--primary:hover {
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.35);
    transform: translateY(-2px);
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--primary span,
.btn--primary svg {
    position: relative;
    z-index: 1;
}

.btn--ghost {
    padding: 16px 32px;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
}

.btn--ghost:hover {
    border-color: var(--c-primary-light);
    color: var(--c-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ---- SECTION DEFAULTS ---- */
.section {
    padding: 120px 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section__tag {
    display: inline-block;
    font-family: var(--f-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-primary);
    background: rgba(30, 64, 175, 0.06);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section__title {
    font-family: var(--f-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--c-text);
    margin-bottom: 16px;
}

.section__title em {
    font-style: normal;
    background-image: var(--c-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section__desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--c-text-secondary);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30,64,175,0.2), transparent 70%);
    top: -200px;
    right: -100px;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8,145,178,0.15), transparent 70%);
    bottom: -150px;
    left: -100px;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
    top: 40%;
    left: 50%;
}

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 64, 175, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 175, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000, transparent);
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-primary);
    background: rgba(30, 64, 175, 0.06);
    border: 1px solid rgba(30, 64, 175, 0.1);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
    font-family: var(--f-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
}

.hero__title-accent {
    font-style: normal;
    background-image: var(--c-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: var(--c-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__stat-number {
    font-family: var(--f-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background-image: var(--c-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--c-border);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: var(--c-border);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--c-gradient);
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ---- PROBLEMS ---- */
.problems {
    background: var(--c-bg);
}

.problems__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.problem-card:hover {
    border-color: rgba(30, 64, 175, 0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--c-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    margin-bottom: 20px;
}

.problem-card__title {
    font-family: var(--f-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.problem-card__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
}

/* ---- STAGES ---- */
.stages {
    background: var(--c-bg-alt);
}

.stages__timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.stages__line {
    position: absolute;
    left: 32px;
    top: 32px;       /* start w środku pierwszego markera (64px/2) */
    bottom: 32px;    /* koniec w środku ostatniego markera */
    width: 2px;
    background: var(--c-border);
    transform: translateX(-1px); /* centruje względem osi markera */
}

.stages__line-fill {
    width: 100%;
    height: 0%;
    background: var(--c-gradient);
    transition: height 0.1s linear;
}

.stage {
    display: flex;
    gap: 32px;
    padding: 0 0 56px;
    position: relative;
}

.stage:last-child {
    padding-bottom: 0;
}

.stage__marker {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s var(--ease-out);
}

.stage.active .stage__marker {
    border-color: var(--c-primary);
    background: var(--c-gradient);
    box-shadow: var(--shadow-glow);
}

.stage.active .stage__number {
    color: #fff;
}

.stage__number {
    font-family: var(--f-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text-tertiary);
    transition: color 0.4s;
}

.stage__content {
    flex: 1;
    padding-top: 12px;
}

.stage__title {
    font-family: var(--f-heading);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stage__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text-secondary);
    margin-bottom: 16px;
}

.stage__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.stage__tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(30, 64, 175, 0.06);
    color: var(--c-primary);
}

.stage__deliverable {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
    background: var(--c-gradient-soft);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--c-primary);
}

.stage__deliverable strong {
    color: var(--c-text);
}

/* ---- FOR WHO ---- */
.for-who__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.for-who__card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.for-who__card:hover {
    border-color: rgba(30, 64, 175, 0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.for-who__card-number {
    font-family: var(--f-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background-image: var(--c-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.1;
}

.for-who__card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.for-who__card-icon {
    color: var(--c-primary);
    margin-bottom: 16px;
}

.for-who__card h4 {
    font-family: var(--f-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.for-who__card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
}

/* ---- AI SECTION ---- */
.ai-section {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(8, 145, 178, 0.10), transparent 35%),
        linear-gradient(180deg, #F8FBFF 0%, #EEF6FF 100%);
    color: var(--c-text);
    overflow: hidden;
}

.ai-section .section__tag {
    background: rgba(30, 64, 175, 0.08);
    color: var(--c-primary);
}

.ai-section .section__title {
    color: var(--c-text);
}

.ai-section .section__title em {
    background-image: var(--c-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ai-section .section__desc {
    color: var(--c-text-secondary);
}

.ai-section__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.ai-section__left {
    position: sticky;
    top: 120px;
}

.ai-section__left .section__header {
    text-align: left;
    margin: 0;
}

.ai-section__left .section__title {
    margin-bottom: 16px;
}

.ai-section__left .section__desc {
    margin-bottom: 32px;
}

.ai-section__left .btn--primary {
    background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.22);
}

.ai-section__left .btn--primary:hover {
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.30);
}

.ai-section__right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 64, 175, 0.10);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ai-card:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 64, 175, 0.18);
    transform: translateX(8px);
}

.ai-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(8, 145, 178, 0.12));
    border-radius: var(--radius-md);
}

.ai-card__title {
    font-family: var(--f-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.ai-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
}

/* ---- TESTIMONIALS ---- */
.testimonials {
    background: var(--c-bg-alt);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card__stars {
    color: #F59E0B;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text);
    margin-bottom: 24px;
    font-style: normal;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
}

/* ---- FAQ ---- */
.faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq__item:hover {
    border-color: rgba(30, 64, 175, 0.15);
}

.faq__item.active {
    border-color: rgba(30, 64, 175, 0.2);
    box-shadow: var(--shadow-md);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
}

.faq__question:hover {
    color: var(--c-primary);
}

.faq__chevron {
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out);
    color: var(--c-text-tertiary);
}

.faq__item.active .faq__chevron {
    transform: rotate(180deg);
    color: var(--c-primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq__answer p {
    padding: 0 24px 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--c-text-secondary);
}

/* ---- CONTACT ---- */
.contact {
    background: var(--c-bg-alt);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__left .section__header {
    text-align: left;
    margin: 0;
}

.contact__trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.contact__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--c-text-secondary);
}

.contact__trust-item svg {
    color: var(--c-accent);
    flex-shrink: 0;
}

.contact-form {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}

.contact-form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--f-body);
    /* 16px minimum \u2014 iOS Safari nie zoomuje przy focusie (wcze\u015bniej 0.9375rem = 15px) */
    font-size: 1rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-bg);
    color: var(--c-text);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.contact-form__input::placeholder {
    color: var(--c-text-tertiary);
}

.contact-form__input:focus {
    border-color: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form__input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
    margin-top: 12px;
}

.contact-form__success {
    text-align: center;
    padding: 60px 40px;
}

.contact-form__success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-form__success h3 {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form__success p {
    color: var(--c-text-secondary);
}

/* ---- FOOTER ---- */
.footer {
    background: linear-gradient(180deg, #F8FBFF 0%, #EEF4FB 100%);
    color: var(--c-text);
    padding: 48px 0;
    border-top: 1px solid var(--c-border);
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__brand .nav__logo-text {
    background-image: var(--c-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--c-text-secondary);
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--c-text-secondary);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--c-text);
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: var(--c-text-tertiary);
}

/* ---- REVEAL ANIMATION BASE ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* Hero pre-hide aby unikn\u0105\u0107 FOUC (GSAP z defer \u0142aduje si\u0119 z op\u00f3\u017anieniem).
   Fallback CSS-animacj\u0105, je\u015bli JS nie wystartuje (np. b\u0142\u0105d sieci / blokada skrypt\u00f3w).
   GSAP i tak nadpisuje inline. */
.hero .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFallbackIn 0.8s var(--ease-out) 0.2s forwards;
}

@keyframes heroFallbackIn {
    to { opacity: 1; transform: none; }
}

/* Gdy GSAP jest gotowy \u2014 wy\u0142\u0105cz fallback (klasa dodawana przez JS) */
.gsap-ready .hero .reveal-up {
    animation: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .problems__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .for-who__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-section__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ai-section__left {
        position: static;
        text-align: center;
    }

    .ai-section__left .section__title,
    .ai-section__left .section__desc {
        text-align: center;
    }

    .ai-section__left .btn {
        margin: 0 auto;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact__left .section__header {
        text-align: center;
    }

    .contact__trust {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav__links {
        display: none;
    }

    .nav__cta {
        display: none;
    }

    .nav__burger {
        display: flex;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__stat-divider {
        display: none;
    }

    .problems__grid {
        grid-template-columns: 1fr;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .for-who__grid {
        grid-template-columns: 1fr;
    }

    .stages__line {
        left: 20px;
        top: 20px;     /* środek mniejszego markera na mobile (40px/2) */
        bottom: 20px;
    }

    .stage__marker {
        width: 40px;
        height: 40px;
    }

    .stage {
        gap: 16px;
    }

    .stage__content {
        padding-top: 2px; /* wyrównanie do mniejszego markera */
        min-width: 0;     /* pozwala dzieciom kurczyć się poniżej intrinsic width */
    }

    .stage__number {
        font-size: 0.875rem;
    }

    .footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form {
        padding: 24px;
    }

    /* Hide custom cursor on touch */
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .container {
        padding: 0 16px;
    }
}

/* ============================================================
   V2 ADDITIONS — Nowe sekcje i usprawnienia
   ============================================================ */

/* ---- SCROLLSPY — aktywny link w nawigacji ---- */
.nav__link.active {
    color: var(--c-text);
}
.nav__link.active::after {
    width: 100%;
}

/* ---- AI ICON — kolor SVG ---- */
.ai-card__icon {
    color: var(--c-primary);
}

/* ---- CONTACT FORM ROW (2 kolumny) ---- */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__optional {
    font-weight: 400;
    color: var(--c-text-tertiary);
    font-size: 0.8125rem;
}

/* ---- POSITIONING BANNER ---- */
.positioning-banner {
    background: var(--c-text);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.positioning-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gradient);
    opacity: 0.1;
}

.positioning-banner::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,145,178,0.18), transparent 70%);
    right: -160px;
    top: -200px;
    pointer-events: none;
}

.positioning-banner__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.positioning-banner__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent-light);
    margin-bottom: 20px;
}

.positioning-banner__text {
    font-family: var(--f-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 600;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.55);
    letter-spacing: -0.02em;
}

.positioning-banner__text strong {
    color: #fff;
    font-weight: 800;
    display: block;
    margin-top: 6px;
    font-size: clamp(1.375rem, 3vw, 2.125rem);
}

/* ---- AUDIT AREAS (rozszerzenie etapu 01) ---- */
.audit-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.audit-area {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s, background 0.3s;
}

.audit-area:hover {
    border-color: rgba(30, 64, 175, 0.2);
    background: var(--c-gradient-soft);
}

.audit-area__num {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--c-primary);
    background: rgba(30, 64, 175, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.audit-process {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: var(--c-bg-alt);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
}

.audit-process__step {
    color: var(--c-text-secondary);
    font-weight: 500;
}

.audit-process__sep {
    color: var(--c-text-tertiary);
    font-size: 0.75rem;
    user-select: none;
}

/* ---- MODEL ROZLICZEŃ ---- */
.rozliczenia {
    background: var(--c-bg);
}

.rozliczenia__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.rozliczenia__card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
}

.rozliczenia__card:hover {
    border-color: rgba(30, 64, 175, 0.18);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.rozliczenia__card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}

.rozliczenia__card-num {
    font-family: var(--f-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-tertiary);
}

.rozliczenia__card-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(30, 64, 175, 0.08);
    color: var(--c-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.rozliczenia__card-title {
    font-family: var(--f-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.rozliczenia__card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
    flex: 1;
    margin-bottom: 16px;
}

.rozliczenia__card-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rozliczenia__card-items li {
    font-size: 0.8125rem;
    color: var(--c-text-secondary);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.rozliczenia__card-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-primary-light);
}

.rozliczenia__callout {
    background: var(--c-text);
    border-radius: var(--radius-xl);
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.rozliczenia__callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gradient);
    opacity: 0.1;
}

.rozliczenia__callout-left {
    position: relative;
    z-index: 1;
}

.rozliczenia__callout-title {
    font-family: var(--f-heading);
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.rozliczenia__callout-desc {
    font-size: 0.9375rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.6;
}

.rozliczenia__callout .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ---- EFEKT KOŃCOWY ---- */
.efekt {
    background: var(--c-bg-alt);
}

.efekt__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.efekt__item {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.4s var(--ease-out);
}

.efekt__item:hover {
    border-color: rgba(30, 64, 175, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.efekt__item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--c-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.efekt__item-content h4 {
    font-family: var(--f-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.efekt__item-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--c-text-secondary);
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}

/* ---- RESPONSIVE V2 ---- */

/* ---- GENESIS BANNER ---- */
.genesis-banner {
    background: var(--c-text);
    padding: 72px 0;
}

.genesis-banner__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.genesis-banner__inner p {
    font-family: var(--f-heading);
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    font-weight: 400;
    line-height: 1.75;
    color: rgba(248, 250, 252, 0.72);
    letter-spacing: -0.01em;
}

/* ---- CASE STUDY ---- */
.casestudy {
    /* Safari fix: gradient jako część background zamiast ::before z opacity.
       Solidny fallback + gradient layer — Safari renderuje to stabilnie nawet
       przy transformach i backdrop-filter w dzieciach. */
    background:
        radial-gradient(circle at 85% 0%, rgba(8,145,178,0.18), transparent 55%),
        linear-gradient(135deg, rgba(30,64,175,0.10) 0%, rgba(8,145,178,0.10) 100%),
        var(--c-text);
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Safari: wymusza nowy stacking context dla gradientów tekstowych */
}

.casestudy::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,145,178,0.12), transparent 65%);
    right: -200px;
    top: -200px;
    pointer-events: none;
    z-index: 0;
}

.casestudy .section__tag {
    background: rgba(255,255,255,0.1);
    color: rgba(248,250,252,0.7);
}

.casestudy .section__title {
    color: #fff;
}

.casestudy .section__title em {
    background-image: linear-gradient(135deg, #60a5fa, #22d3ee);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Safari fix: bez tego gradient nie renderuje się w <em> po transformach */
}

.casestudy .section__desc {
    color: rgba(248,250,252,0.6);
}

.casestudy__card {
    position: relative;
    z-index: 1;
    /* Safari: solidniejsze tło zamiast bardzo przezroczystego rgba + backdrop-filter.
       Backdrop-filter blokuje repaint gradient-text w iOS < 17. */
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: 48px;
}

/* Backdrop-filter tylko tam gdzie działa płynnie (nie-touch desktop) */
@media (hover: hover) and (pointer: fine) {
    .casestudy__card {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

.casestudy__header {
    margin-bottom: 40px;
}

.casestudy__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent-light);
    margin-bottom: 6px;
}

.casestudy__scope {
    font-family: var(--f-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: rgba(248,250,252,0.85);
    letter-spacing: -0.01em;
}

.casestudy__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.casestudy__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.casestudy__stat-value {
    font-family: var(--f-heading);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    /* Safari: fallback color PRZED text-fill-color, żeby kaskada nie nadpisywała transparentu.
       display:inline-block zapobiega niereagowaniu na gradient po transformach (tilt/parallax). */
    color: #fff;
    background-image: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
}

.casestudy__stat-label {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(248,250,252,0.5);
    font-weight: 500;
}

.casestudy__quote {
    font-family: var(--f-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    color: rgba(248,250,252,0.7);
    font-style: normal;
    padding-left: 20px;
    border-left: 3px solid rgba(8,145,178,0.6);
}

/* ---- TEAM ---- */
.team {
    background: var(--c-bg-alt);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team__card {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.team__card:hover {
    border-color: rgba(30,64,175,0.18);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.team__card-avatar-wrap {
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.team__card-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.team__card-avatar--d {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    box-shadow: 0 8px 24px rgba(30,64,175,0.3);
}

.team__card-avatar--s {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 8px 24px rgba(8,145,178,0.3);
}

.team__card-avatar--k {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    box-shadow: 0 8px 24px rgba(124,58,237,0.3);
}

.team__card-body {
    padding: 20px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team__card-company {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-primary);
    margin-bottom: 4px;
}

.team__card-name {
    font-family: var(--f-heading);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.team__card-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    margin-bottom: 16px;
}

.team__card-bio {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--c-text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.team__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.team__card-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(30,64,175,0.06);
    color: var(--c-primary);
}

.team__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text-secondary);
    transition: color 0.3s;
}

.team__card-link:hover {
    color: var(--c-primary);
}

@media (max-width: 1024px) {
    .casestudy__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .team__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .casestudy__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }

    .casestudy__card {
        padding: 24px 20px;
    }

    .casestudy__header {
        margin-bottom: 24px;
    }

    .casestudy__quote {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .casestudy__stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .casestudy__card {
        padding: 20px 16px;
    }

    .casestudy__stat-value {
        font-size: 1.75rem;
    }

    .casestudy__scope {
        font-size: 0.9375rem;
    }
}

/* ---- RESPONSIVE V2 ---- */
@media (max-width: 1024px) {
    .rozliczenia__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rozliczenia__callout {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .efekt__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audit-areas {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rozliczenia__grid {
        grid-template-columns: 1fr;
    }

    .efekt__grid {
        grid-template-columns: 1fr;
    }

    .audit-areas {
        grid-template-columns: repeat(2, 1fr);
    }

    .audit-process {
        gap: 4px;
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .audit-process__step {
        line-height: 1.35;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;   /* WCAG / Apple HIG min. 44x44 */
        height: 44px;
    }

    /* Tap-target booster \u2014 niewidoczny padding wok\u00f3\u0142 ma\u0142ych kropek */
    .casestudy__dot {
        position: relative;
    }
    .casestudy__dot::before {
        content: '';
        position: absolute;
        inset: -10px;
    }
}

@media (max-width: 480px) {
    .audit-areas {
        grid-template-columns: 1fr;
    }

    .positioning-banner {
        padding: 48px 0;
    }
}

/* ============================================================
   TEAM PHOTOS
   ============================================================ */
.team__card-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    flex-shrink: 0;
}

/* ============================================================
   CASE STUDY SLIDER
   ============================================================ */
.casestudy__slider-wrapper {
    overflow: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.casestudy__slider {
    display: flex;
    -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.casestudy__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.casestudy__slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.casestudy__slider-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248,250,252,0.8);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.casestudy__slider-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.casestudy__slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.casestudy__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.casestudy__dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* Slider - stats inherit auto-fit from base, no override needed */

@media (max-width: 768px) {
    .casestudy__slider-controls {
        gap: 16px;
        margin-top: 20px;
    }
    .casestudy__slider-btn {
        width: 44px;
        height: 44px;
        /* bigger tap target on mobile */
        touch-action: manipulation;
    }
    .casestudy__dot {
        width: 10px;
        height: 10px;
        touch-action: manipulation;
    }
}


/* ============================================================
   V3 — Additions: hero trust, trust bar, sticky CTA, footer ext
   ============================================================ */

/* Hero trust markers under CTAs */
.hero__trust {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--c-text-secondary);
}
.hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}
.hero__trust-stars {
    color: #F59E0B;
    letter-spacing: 1px;
    font-size: 0.95rem;
}
.hero__trust-item svg { color: var(--c-primary); flex-shrink: 0; }

/* Pulse on primary hero CTA to draw attention */
.hero__cta-primary {
    position: relative;
    box-shadow: 0 10px 30px rgba(30,64,175,0.35), 0 0 0 0 rgba(30,64,175,0.5);
    animation: ctaPulse 2.6s ease-out infinite;
}
@keyframes ctaPulse {
    0%   { box-shadow: 0 10px 30px rgba(30,64,175,0.35), 0 0 0 0 rgba(30,64,175,0.5); }
    70%  { box-shadow: 0 10px 30px rgba(30,64,175,0.35), 0 0 0 16px rgba(30,64,175,0); }
    100% { box-shadow: 0 10px 30px rgba(30,64,175,0.35), 0 0 0 0 rgba(30,64,175,0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__cta-primary { animation: none; }
}

/* Trust bar (social proof strip) */
.trustbar {
    padding: 2.5rem 0;
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border-light);
    border-bottom: 1px solid var(--c-border-light);
}
.trustbar__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.trustbar__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}
.trustbar__logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1rem;
}
.trustbar__logo {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-text-secondary);
    padding: 0.5rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    transition: all 0.25s var(--ease-out);
}
.trustbar__logo:hover {
    color: var(--c-primary);
    border-color: rgba(30,64,175,0.3);
    transform: translateY(-2px);
}
.trustbar__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--c-text-secondary);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.trustbar__rating-stars {
    color: #F59E0B;
    letter-spacing: 2px;
    font-size: 1rem;
}
.trustbar__rating-text strong { color: var(--c-text); }
.trustbar__rating-link {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}
.trustbar__rating-link:hover { color: var(--c-primary-dark); }

/* Footer contact + external links */
.footer__contact {
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.9rem;
}
.footer__contact a {
    color: var(--c-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.footer__contact a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.footer__links-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-text-tertiary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.footer__links--external {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer__links--external a {
    color: var(--c-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer__links--external a:hover { color: var(--c-primary); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.footer__legal {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.85rem;
    margin: 0;
}
.footer__legal a {
    color: var(--c-text-secondary);
    text-decoration: none;
}
.footer__legal a:hover { color: var(--c-primary); }

/* Sticky mobile CTA */
.sticky-cta {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.25rem;
    background: var(--c-gradient);
    color: #fff;
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(30,64,175,0.4);
    transform: translateY(120%);
    transition: transform 0.35s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (max-width: 768px) {
    .sticky-cta { display: inline-flex; }
    body { padding-bottom: 5rem; }
}


/* ============================================================
   V4 — Additions: accent CTA, mini-testimonials, card icons
   ============================================================ */

/* Accent CTA (hero primary) - stronger, warm contrast */
.btn--accent {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
    box-shadow:
        0 10px 30px rgba(239, 68, 68, 0.35),
        0 4px 12px rgba(245, 158, 11, 0.25);
    font-weight: 700;
}
.btn--accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #D97706 0%, #DC2626 100%);
    opacity: 0;
    transition: opacity 0.35s;
    border-radius: inherit;
}
.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 40px rgba(239, 68, 68, 0.45),
        0 6px 16px rgba(245, 158, 11, 0.3);
}
.btn--accent:hover::before { opacity: 1; }
.btn--accent span,
.btn--accent svg { position: relative; z-index: 1; }

.hero__cta-icon {
    color: #FFF2C9;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Override pulse color to match accent */
.hero__cta-primary.btn--accent {
    animation: ctaPulseAccent 2.4s ease-out infinite;
}
@keyframes ctaPulseAccent {
    0%   { box-shadow: 0 10px 30px rgba(239,68,68,0.45), 0 0 0 0 rgba(245,158,11,0.55); }
    70%  { box-shadow: 0 10px 30px rgba(239,68,68,0.45), 0 0 0 18px rgba(245,158,11,0); }
    100% { box-shadow: 0 10px 30px rgba(239,68,68,0.45), 0 0 0 0 rgba(245,158,11,0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__cta-primary.btn--accent { animation: none; }
}

/* Mini testimonials strip */
.mini-testimonials {
    padding: 3rem 0 4rem;
    background: var(--c-bg);
}
.mini-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.mini-testimonial {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
    position: relative;
}
.mini-testimonial::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 1rem;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: rgba(30, 64, 175, 0.12);
    pointer-events: none;
}
.mini-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30,64,175,0.2);
}
.mini-testimonial__stars {
    color: #F59E0B;
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.mini-testimonial__quote {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--c-text);
    margin: 0 0 1rem;
    font-weight: 500;
}
.mini-testimonial__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--c-text-secondary);
}
.mini-testimonial__author strong {
    display: block;
    color: var(--c-text);
    font-weight: 600;
    font-size: 0.9rem;
}
.mini-testimonial__author em {
    font-style: normal;
    color: var(--c-text-tertiary);
    font-size: 0.8rem;
}
.mini-testimonial__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--f-heading);
    flex-shrink: 0;
}
.mini-testimonials__more {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.mini-testimonials__link {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.mini-testimonials__link:hover {
    color: var(--c-primary-dark);
    border-bottom-color: var(--c-primary);
}

/* Rozliczenia card icons */
.rozliczenia__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: var(--c-gradient-soft);
    color: var(--c-primary);
    transition: transform 0.35s var(--ease-out), background 0.35s;
}
.rozliczenia__card:hover .rozliczenia__card-icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--c-gradient);
    color: #fff;
}
