/* =========================================
   NOWOCZESNE ANIMACJE (Wejście i Pulsowanie)
========================================= */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(168, 85, 247, 0);
    }

    50% {
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    }

    100% {
        box-shadow: 0 0 0px rgba(168, 85, 247, 0);
    }
}

/* =========================================
   SYSTEM TŁUMACZEŃ (Ukrywanie języków)
========================================= */
html[lang="pl"] .lang-en {
    display: none !important;
}

html[lang="en"] .lang-pl {
    display: none !important;
}

/* =========================================
   GLOBALNY RESET
========================================= */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    /* NOWA CZCIONKA: Plus Jakarta Sans */
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    /* Lepsze renderowanie czcionek */
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* =========================================
   ZMIENNE CSS (Głęboka Czerń)
========================================= */
:root {
    --bg-primary: #000000;
    --bg-header: rgba(0, 0, 0, 0.85);
    /* Mocniejsze szkło */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-gradient: linear-gradient(90deg, #00d2ff, #3b82f6, #a855f7, #ec4899);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 10px 40px rgba(0, 0, 0, 0.9);
    --filter-logo: none;
}

.light-theme {
    --bg-primary: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 30px rgba(0, 0, 0, 0.06);
    --filter-logo: invert(1) hue-rotate(180deg);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* =========================================
   NAGŁÓWEK
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--accent-gradient);
    opacity: 0.8;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    transition: padding 0.4s ease;
}

.main-header.scrolled {
    box-shadow: var(--shadow-sm);
}

/* =========================================
   LOGO
========================================= */
.brand-logo {
    display: flex;
    align-items: center;
    z-index: 1010;
    opacity: 0;
    animation: fadeSlideDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo-img {
    width: auto;
    height: 50px;
    object-fit: contain;
    filter: var(--filter-logo);
    transition: filter 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .logo-img {
    transform: scale(1.04);
}

/* =========================================
   KONTROLKI UŻYTKOWNIKA (Prawa strona)
========================================= */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Zmniejszony odstęp na mobile */
    z-index: 1010;
    opacity: 0;
    animation: fadeSlideDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.control-btn:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.control-btn .icon {
    width: 18px;
    height: 18px;
}

.lang-toggle {
    width: auto;
    padding: 0 10px;
    border-radius: 8px;
    gap: 6px;
}

.lang-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

:root.light-theme .sun-icon {
    display: block;
}

:root.light-theme .moon-icon {
    display: none;
}

/* =========================================
   PRZYCISK KONTAKT (Ukryty na mobile)
========================================= */
.cta-button {
    position: relative;
    display: none;
    /* Ukrywamy przycisk na telefonach */
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary) !important;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 3s infinite;
}

.light-theme .cta-button {
    border-color: rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-button:hover {
    border-color: transparent;
    color: #ffffff !important;
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.cta-button:hover::before {
    opacity: 1;
}

/* =========================================
   NAWIGACJA I HAMBURGER (Mobile First)
========================================= */
.primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
}

.primary-nav.is-open {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
    padding: 0;
    margin-left: 5px;
    /* Odstęp od ikonki księżyca/słońca */
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
========================================= */
@media (min-width: 992px) {
    .header-container {
        padding: 1.2rem 3rem;
    }

    .logo-img {
        height: 60px;
    }

    .mobile-toggle {
        display: none;
    }

    /* Chowamy hamburgera na PC */

    .header-controls {
        gap: 1rem;
    }

    /* Przywracamy większe odstępy na PC */

    .cta-button {
        display: inline-flex;
        /* Pokazujemy przycisk Kontakt na PC */
    }

    .primary-nav {
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        margin-left: auto;
        margin-right: 3rem;
    }

    .nav-list {
        flex-direction: row;
        gap: 3rem;
    }

    .nav-list li {
        opacity: 0;
        animation: fadeSlideDown 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .nav-list li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-list li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-list li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-list li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-link {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.03em;
        padding: 0.5rem 0;
        color: var(--text-secondary);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-primary);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--accent-gradient);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
    }
}









/* =========================================
   ANIMACJE DLA HERO SECTION
========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Klasy pomocnicze do kaskadowych animacji wejścia */
.animate-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* =========================================
   SEKCJA HERO - UKŁAD
========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    /* Miejsce na fixed header */
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* Tło: Pływające kule światła (Ambient Glow) */
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    animation: floatGlow 15s infinite ease-in-out;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: #3b82f6;
}

.glow-2 {
    bottom: 0%;
    right: -5%;
    background: #a855f7;
    animation-delay: -5s;
    width: 500px;
    height: 500px;
}

.light-theme .hero-glow {
    opacity: 0.15;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   TYPOGRAFIA HERO
========================================= */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.light-theme .hero-badge {
    background: rgba(0, 0, 0, 0.03);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

/* Gradientowy tekst w tytule */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 0 40px 0;
}

/* =========================================
   PRZYCISKI HERO
========================================= */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn-primary-large,
.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-large {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.light-theme .btn-primary-large {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.light-theme .btn-primary-large:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-primary-large:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-secondary-large {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.light-theme .btn-secondary-large:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* =========================================
   PIGUŁKI USŁUG (Styl ze screena)
========================================= */
.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.service-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #0a0a0f;
    /* Ciemnogranatowy odcień jak na screenie */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.3s ease;
    cursor: default;
}

.light-theme .service-pill {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

.service-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d2ff, #a855f7);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}



/* =========================================
   SEKCJA USŁUG
========================================= */
.services-section {
    padding: 100px 20px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.services-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* WSPÓLNY NAGŁÓWEK SEKCJI (Zostanie użyty też w kolejnych) */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* =========================================
   SIATKA KART (CSS GRID)
========================================= */
.services-grid {
    display: grid;
    /* Magia Grid'a: minimum 320px na kartę, jeśli jest miejsce to rozciągnij */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* =========================================
   KARTA USŁUGI
========================================= */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    /* Prawie czarne, bardzo delikatnie rozjaśnione */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.light-theme .service-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Górna część: Kropka + Tytuł */
.sc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sc-top h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

/* Opis */
.sc-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    flex-grow: 1;
    /* Pycha strzałkę zawsze na dół karty */
}

/* Dolna część ze strzałką - kółko jak na zrzucie ekranu */
.sc-bottom {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.sc-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* =========================================
   HOVER EFFECTS (Animacje kart)
========================================= */
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.02);
    /* Delikatna fioletowa poświata wewnątrz */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.light-theme .service-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.service-card:hover .sc-bottom {
    border-color: #3b82f6;
    background: var(--accent-gradient);
    color: #fff;
}

.service-card:hover .sc-arrow {
    transform: translateX(3px);
    /* Strzałka rusza się w prawo */
}







/* =========================================
   SEKCJA "DLACZEGO MY"
========================================= */
.why-us-section {
    padding: 100px 20px;
    background-color: var(--bg-primary);
    /* Lub opcjonalnie ciut inny odcień szarości by odciąć sekcję */
    position: relative;
    z-index: 2;
}

.why-us-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Układ siatki kart */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   KARTA "BENTO"
========================================= */
.why-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    /* Mocniejsze zaokrąglenie w stylu Bento */
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.light-theme .why-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.08);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.light-theme .why-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Ikona */
.why-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    /* Niebieskie delikatne tło */
    color: #3b82f6;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon-box {
    background: var(--accent-gradient);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.why-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.why-card p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =========================================
   BANER CTA (Na dole sekcji)
========================================= */
.why-cta-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.light-theme .why-cta-banner {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Rozbłysk w tle banera */
.why-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.why-cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.why-cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

@media (min-width: 992px) {
    .why-cta-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 50px 60px;
    }

    .why-cta-content h3 {
        font-size: 2.2rem;
    }
}








/* =========================================
   SEKCJA "LICZBY" (Social Proof)
========================================= */
.numbers-section {
    padding: 80px 20px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
    /* Delikatne odcięcie od poprzedniej sekcji */
}

.numbers-container {
    max-width: 1300px;
    margin: 0 auto;
}

.numbers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Breakpoint dla tabletów: 2 kolumny */
@media (min-width: 600px) {
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Breakpoint dla komputerów: 4 kolumny w jednym rzędzie */
@media (min-width: 1024px) {
    .numbers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Kafelki z liczbami */
.number-card {
    padding: 40px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.light-theme .number-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.number-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.light-theme .number-card:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Główna wielka liczba */
.number-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    /* Klonujemy gradient, żeby dodać mu efekt świetlny (Glow) */
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.3));
}

/* Tytuł pod liczbą */
.number-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

/* Mały opis */
.number-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}











/* =========================================
   SEKCJA "JAK PRACUJEMY" (Proces)
========================================= */
.process-section {
    padding: 100px 20px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.process-container {
    max-width: 1300px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Karta Kroku */
.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.light-theme .step-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.08);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.light-theme .step-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Duży numer w tle */
.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.light-theme .step-number {
    color: rgba(0, 0, 0, 0.03);
}

.step-card:hover .step-number {
    transform: translate(-10px, 10px) scale(1.05);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
}

/* Treść karty nałożona na numer */
.step-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    /* Wypycha treść na dół, jeśli dodalibyśmy ikonę na górze */
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mała linijka/kropka przy tytule urozmaicająca design */
.step-content h3::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}







/* =========================================
   SEKCJA "O NAS" (Kim jesteśmy)
========================================= */
.about-section {
    padding: 100px 20px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

/* Na dużych ekranach dzielimy na pół */
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.about-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 600px;
}

.about-actions {
    margin-top: 40px;
}

/* =========================================
   KARTA EKSPERTA (Premium Glassmorphism)
========================================= */
.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.expert-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.light-theme .expert-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.expert-card:hover {
    transform: translateY(-5px);
}

/* Fioletowy rozbłysk pod kartą */
.expert-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.expert-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

/* Minimalistyczny Avatar (inicjały) */
.expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.expert-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.expert-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a855f7;
    /* Fioletowy akcent */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.expert-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

/* Pigułki Technologiczne (Tech Stack) */
.expert-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.light-theme .tech-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}













/* =========================================
   SEKCJA KONTAKT
========================================= */
.contact-section {
    padding: 100px 20px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

/* Kafelki z formami kontaktu po lewej */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.light-theme .contact-method-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.08);
}

.contact-method-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(5px);
}

.light-theme .contact-method-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-card:hover .cm-icon {
    background: var(--accent-gradient);
    color: #fff;
}

.cm-icon svg {
    width: 24px;
    height: 24px;
}

.cm-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-details span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cm-details strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =========================================
   FORMULARZ KONTAKTOWY (Glassmorphism + Floating Labels)
========================================= */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.light-theme .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 16px 16px 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.light-theme .form-control {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    cursor: pointer;
}

/* NAPRAWA BŁĘDU: Style dla rozwiniętej listy (Dropdown) */
select.form-control option {
    background-color: #0a0a0a;
    /* Ciemne tło listy */
    color: #ffffff;
    /* Biały tekst */
    font-size: 1rem;
}

.light-theme select.form-control option {
    background-color: #ffffff;
    /* Jasne tło listy dla jasnego motywu */
    color: #000000;
    /* Czarny tekst */
}

/* Floating Labels - Magia CSS */
.form-label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Jeśli input jest zfocusowany, LUB jeśli NIE jest pusty (korzystamy z placeholdera=" ") */
.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a855f7;
    background: var(--bg-primary);
    /* Przykrywa ramkę inputu */
    padding: 0 4px;
    border-radius: 4px;
}

.light-theme .form-control:focus~.form-label,
.light-theme .form-control:not(:placeholder-shown)~.form-label {
    background: #ffffff;
}

/* Przycisk Wysyłania (bazuje na naszej klasie z CTA, ale dostosowany do forma) */
.btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff !important;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit .arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-submit:hover .arrow-icon {
    transform: translate(4px, -4px);
}

/* Strzałka leci do góry i w prawo */





/* =========================================
   STOPKA (FOOTER)
========================================= */
.site-footer {
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

/* Gradientowa linia oddzielająca stopkę */
.footer-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        /* Pierwsza kolumna zajmuje więcej miejsca (2 części), reszta po równo (po 1 części) */
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

/* Kolumna Marki */
.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    filter: var(--filter-logo);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.light-theme .social-icon {
    background: rgba(0, 0, 0, 0.05);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

/* Kolumny Linków i Kontaktu */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Animacja linku - przesuwa się lekko w prawo przy najeżdżaniu */
.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: #a855f7;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--text-primary);
}

/* Dolny pasek */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}










/* =========================================
   PODSTRONA - MINI HERO
========================================= */
.subpage-hero {
    position: relative;
    padding: 160px 20px 60px;
    /* Większy padding top z uwagi na header */
    text-align: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.subpage-hero-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subpage-title {
    font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.subpage-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* =========================================
   PORTFOLIO (KARTY)
========================================= */
.portfolio-section {
    padding: 40px 20px 100px;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.portfolio-container {
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pojedyncza Karta Portfolio */
.portfolio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.light-theme .portfolio-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.light-theme .portfolio-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* Kategoria (Odpowiednik tego z obrazka) */
.port-category {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .port-category {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover .port-category {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* Domena */
.port-domain {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 32px 0;
    flex-grow: 1;
    /* Wypycha link na dół */
    word-break: break-all;
    /* Żeby długie domeny nie rozwaliły karty na mobile */
}

/* Link "Live Preview" */
.port-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.port-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .port-link {
    color: #00d2ff;
    /* Jasnoniebieski po najechaniu */
}

.light-theme .portfolio-card:hover .port-link {
    color: #3b82f6;
}

.portfolio-card:hover .port-link svg {
    transform: translate(2px, -2px);
    /* Strzałka leci do góry i w prawo */
}

/* =========================================
   UNIWERSALNE STYLE PODSTRON
========================================= */
.subpage-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. SEKCJA FEATURES (Dlaczego warto) */
.sub-features-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.sub-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .sub-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s ease;
}

.light-theme .feature-card {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.light-theme .feature-card:hover {
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.fc-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.fc-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card:hover .fc-icon {
    background: var(--accent-gradient);
    color: #fff;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* 2. SEKCJA STEPS (Jak tworzymy) */
.sub-steps-section {
    padding: 80px 0 120px;
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.sub-steps-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .sub-steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sub-steps-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sub-step {
    position: relative;
    padding: 32px 24px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.light-theme .sub-step {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.sub-step:hover {
    border-left-color: #a855f7;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.05) 0%, transparent 100%);
}

.light-theme .sub-step:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.03) 0%, transparent 100%);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.sub-step:hover .step-num {
    color: var(--text-primary);
    opacity: 1;
    transform: translateX(5px);
}

.sub-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.sub-step p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* 3. SEKCJA CTA (Szeroki baner przed portfolio) */
.sub-cta-section {
    padding: 0 20px 80px;
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
}

.sub-cta-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.light-theme .sub-cta-box {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
}

.sub-cta-box h2 {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.sub-cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 600px;
}





/* =========================================
   VIDEO SHOWCASE (Dla filmów z napisami)
========================================= */
.hero-video-wrapper {
    width: 100%;
    max-width: 900px;
    /* Szerokość maksymalna, by na wielkich ekranach nie było gigantyczne */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    position: relative;
    z-index: 10;
}

.light-theme .hero-video-wrapper {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

.showcase-video {
    width: 100%;
    height: auto;
    /* Kluczowe: zachowuje oryginalne proporcje filmu */
    display: block;
    /* Usuwa pustą przestrzeń pod filmem */
    object-fit: contain;
    /* Gwarantuje, że obraz NIGDY nie zostanie ucięty */
}










/* =========================================
   FLOATING ACTION BUTTON (FAB - Chmurka)
========================================= */
.fab-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--accent-gradient);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    /* Domyślna szerokość = ukryty tekst, widoczna tylko ikona */
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animacja pulsowania zachęcająca do kliknięcia */
@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.fab-widget:not(.expanded) {
    animation: fabPulse 2.5s infinite;
}

.fab-widget:hover {
    transform: translateY(-4px);
}

.fab-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-icon svg {
    width: 100%;
    height: 100%;
}

.fab-content {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.fab-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.fab-phone {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

/* STAN ROZWINIĘCIA PO KLIKNIĘCIU */
.fab-widget.expanded {
    width: 230px;
    /* Szerokość dostosowana do numeru telefonu */
    animation: none;
    /* Wyłącza pulsowanie po otwarciu */
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.6);
}

.fab-widget.expanded .fab-content {
    opacity: 1;
    transition-delay: 0.2s;
    /* Tekst pojawia się chwilę po rozciągnięciu tła */
}

/* Dostosowanie dla większych ekranów */
@media (min-width: 768px) {
    .fab-widget {
        bottom: 30px;
        right: 30px;
        padding: 16px;
        width: 62px;
        height: 62px;
    }

    .fab-icon {
        width: 30px;
        height: 30px;
    }

    .fab-widget.expanded {
        width: 250px;
    }

    .fab-phone {
        font-size: 1.2rem;
    }
}