/* =====================================================
   ZMIENNE I RESET
===================================================== */
:root {
    --primary:     #0f172a;
    --secondary:   #2563eb;
    --accent:      #f1f5f9;
    --text-muted:  #64748b;
    --text-main:   #1e293b;
    --border:      #e2e8f0;
    --white:       #ffffff;
    --container:   1200px;
    --radius:      1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =====================================================
   UKŁAD
===================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}


/* =====================================================
   PRZYCISKI
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    background: var(--white);
    border-color: #cbd5e1;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.125rem;
    transition: gap 0.2s;
}

.btn-link:hover {
    gap: 1.25rem;
}

.btn-text {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =====================================================
   NAWIGACJA
===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    transition: transform 0.2s;
}

.nav-logo:hover .logo-img {
    transform: scale(1.03);
}

/* Linki nawigacji (desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    background: var(--accent);
    color: var(--primary);
}

.nav-cta {
    margin-left: 2rem;
}

/* Przycisk hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
}

/* Menu mobilne */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 5% 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .nav-link {
    padding: 0.75rem 1rem;
}


/* =====================================================
   HERO
===================================================== */
.hero {
    padding-top: 68px;
    background: #050a1a;
    border-bottom: 1px solid var(--border);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Slider */
.hero-slider {
    position: relative;
    max-width: 2188px;
    margin: 0 auto;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0s;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(5, 10, 26, 0.45);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
}

.hero-slider:hover .hero-slider-arrow,
.hero-slider-arrow:focus-visible {
    opacity: 1;
}

.hero-slider-arrow:hover {
    background: rgba(5, 10, 26, 0.75);
}

.hero-slider-arrow--prev { left: 1.25rem; }
.hero-slider-arrow--next { right: 1.25rem; }

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}

.hero-slider-dot.is-active {
    width: 28px;
    background: #22d3ee;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active {
        transition: none;
    }
}


/* =====================================================
   TECH STRIP
===================================================== */
.tech-strip {
    padding: 1.25rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.25rem 0.875rem;
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: border-color 0.2s, color 0.2s;
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}


/* =====================================================
   USŁUGI
===================================================== */
.services {
    background: var(--white);
}

.section-header {
    max-width: 860px;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.section-bar {
    width: 80px;
    height: 8px;
    background: var(--secondary);
    border-radius: 999px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: background 0.4s, color 0.4s, transform 0.4s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(3deg);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 400;
}


/* =====================================================
   KLIENCI
===================================================== */
.clients {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 4rem;
}

.clients-header-left h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    line-height: 1;
}

.clients-header-left p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.clients-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    padding-bottom: 1rem;
}

.divider-line {
    width: 48px;
    height: 1px;
    background: var(--border);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.client-card {
    display: flex;
    flex-direction: column;
}

/* Podgląd klienta */
.client-preview {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.client-preview:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.client-preview--orange { background: #fff7ed; }
.client-preview--green  { background: #f0fdf4; }
.client-preview--blue   { background: #eff6ff; }
.client-preview--purple { background: #faf5ff; }
.client-preview--cyan   { background: #ecfeff; }
.client-preview--slate  { background: #f8fafc; }
.client-preview--indigo { background: #eef2ff; }

.client-initials {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    opacity: 0.2;
    line-height: 1;
    user-select: none;
}

.client-preview--orange .client-initials { color: #f97316; }
.client-preview--green  .client-initials { color: #22c55e; }
.client-preview--blue   .client-initials { color: #60a5fa; }
.client-preview--purple .client-initials { color: #a855f7; }
.client-preview--cyan   .client-initials { color: #06b6d4; }
.client-preview--slate  .client-initials { color: #64748b; }
.client-preview--indigo .client-initials { color: #6366f1; }

.client-domain-overlay {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.client-hover-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.client-preview:hover .client-hover-label {
    opacity: 1;
}

.client-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.375rem;
    transition: color 0.2s;
}

.client-card:hover h3 {
    color: var(--secondary);
}

.client-domain {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.client-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* CTA box */
.clients-cta {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 3rem;
    text-align: center;
}

.clients-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.clients-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.clients-cta .btn-link {
    font-size: 1.125rem;
}


/* =====================================================
   APLIKACJE NA ZAMÓWIENIE
===================================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.app-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.app-card-visual {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-visual--blue {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #3b82f6 100%);
}

.app-card-visual--green {
    background: linear-gradient(135deg, #166534 0%, #16a34a 60%, #22c55e 100%);
}

.app-card-visual--purple {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 60%, #8b5cf6 100%);
}

.app-card-icon {
    color: rgba(255, 255, 255, 0.9);
}

.app-card-live {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

.app-card-live:hover {
    background: rgba(255, 255, 255, 0.35);
}

.app-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.app-tag--green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.app-tag--purple {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.app-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
}

.app-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.app-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.2s;
}

.app-card-link:hover {
    gap: 10px;
}

.app-card-link--green {
    color: #16a34a;
}

.app-card-link--purple {
    color: #7c3aed;
}


/* =====================================================
   O MNIE
===================================================== */
.about {
    background: var(--accent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about > .container > h2 {
    font-size: clamp(1.75rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Okno kodu */
.code-window {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.code-header {
    background: #1e293b;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.traffic-lights {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.code-filename {
    font-size: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.code-body {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    margin: 0;
    overflow: auto;
}

.code-body code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #cbd5e1;
    line-height: 1.8;
    white-space: pre;
}

/* Składnia PHP */
.kw  { color: #fb64b6; }
.cls { color: #93c5fd; }
.var { color: #93c5fd; }
.str { color: #fac800; }
.fn  { color: #4ade80; }

/* Treść "O mnie" */
.about-content p {
    font-size: 1.1875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.stat-number {
    display: block;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.arrow-icon {
    transition: transform 0.2s;
}

.btn-link:hover .arrow-icon {
    transform: translateX(6px);
}


/* =====================================================
   KONTAKT
===================================================== */
.contact {
    background: var(--white);
}

.contact-card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Lewa kolumna */
.contact-info {
    background: var(--primary);
    padding: 4rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.375rem;
}

.contact-value {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
}

.contact-footer {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    flex-shrink: 0;
}

.contact-footer blockquote {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
    font-style: italic;
    font-weight: 500;
}

/* Prawa kolumna — formularz */
.contact-form-wrap {
    background: var(--white);
    padding: 4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-input::placeholder {
    color: #cbd5e1;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.125rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

/* Potwierdzenie wysłania */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    height: 100%;
    padding: 3rem 0;
    color: #22c55e;
}

.form-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.form-success p {
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.65;
}


/* =====================================================
   STOPKA
===================================================== */
.footer {
    background: var(--accent);
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.footer-inner {
    max-width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-img {
    height: 36px;
}

.footer-copy {
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-style: italic;
}


/* =====================================================
   ANIMACJE SCROLL
===================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }


/* =====================================================
   AKTYWNY LINK W NAV
===================================================== */
.nav-link.active {
    background: var(--accent);
    color: var(--primary);
}


/* =====================================================
   FORMULARZ — BŁĄD
===================================================== */
.form-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #dc2626;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.form-alert a {
    color: #dc2626;
    font-weight: 700;
    text-decoration: underline;
}


/* =====================================================
   PROCES WSPÓŁPRACY
===================================================== */
.process {
    background: var(--accent);
    border-top: 1px solid var(--border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.process-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    font-family: 'JetBrains Mono', monospace;
}

.process-step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}


/* =====================================================
   OPINIE KLIENTÓW
===================================================== */
.testimonials {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.testimonial-card {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-size: 5rem;
    line-height: 0.6;
    color: var(--secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
    margin-bottom: 1.25rem;
}

.testimonial-card > p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9375rem;
}

.testimonial-company {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}


/* =====================================================
   SCROLL TO TOP
===================================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
    z-index: 200;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--secondary);
}


/* =====================================================
   RESPONSYWNOŚĆ
===================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }

    .apps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-card {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .contact-info {
        padding: 3rem;
    }

    .contact-form-wrap {
        padding: 2.5rem;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .form-group {
        min-width: 0;
    }

    .form-input {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .services-grid,
    .process-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .clients-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 2rem;
        min-width: 0;
        overflow: hidden;
    }

    .form-input {
        max-width: 100%;
        min-width: 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-slider {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero-slider {
        aspect-ratio: 4 / 3;
    }

    .hero-slider-arrow {
        display: none;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}
