/* ======== PODSTAWOWE USTAWIENIA ======== */
:root {
    --bg-dark: #121212;
    --text-light: #F0F0F0;
    --primary-blue: #007BFF;
    --primary-purple: #8A2BE2;
    --gradient: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 60px; }
p { margin-bottom: 20px; }
section { padding: 100px 0; }

/* ======== PRZYCISKI ======== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* OPTYMALIZACJA HOVER EFEKTÓW PRZYCISKÓW DLA DESKTOP */
@media (min-width: 1025px) {
    .btn {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    .btn-primary:hover {
        transform: translateY(-1px); /* mniejszy ruch */
        box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
    }
}

.btn-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--text-light);
}

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

/* ======== NAGŁÓWEK I NAWIGACJA ======== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a.active {
    color: var(--primary-blue);
}

/* ======== SEKCJA HERO ======== */
.hero {
    padding-top: 200px;
    padding-bottom: 50px;
    text-align: center;
	position: relative; /* dla tła pseudo-elementu */
	overflow: hidden;
}
.hero-content {
    max-width: 800px;
}
.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.trust-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.trust-badges-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 24px 32px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.trust-badge i {
    color: var(--primary-blue);
    font-size: 1rem;
}
.trust-badges--hero {
    margin-top: 28px;
}
.trust-badges--footer {
    gap: 10px;
}
.trust-badges--footer .trust-badges-row {
    gap: 20px 28px;
}
.trust-badges--footer .trust-badge {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}
.trust-badges--footer .trust-badge i {
    font-size: 0.9rem;
}
@media (max-width: 900px) {
    .trust-badges-row {
        gap: 16px 24px;
    }
    .trust-badge {
        font-size: 0.85rem;
    }
    .trust-badge i {
        font-size: 0.95rem;
    }
}
@media (max-width: 600px) {
    .trust-badges--hero {
        margin-top: 22px;
        gap: 12px;
    }
    .trust-badges-row {
        gap: 12px 18px;
    }
    .trust-badges--hero .trust-badge {
        font-size: 0.8rem;
    }
    .trust-badges--hero .trust-badge i {
        font-size: 0.9rem;
    }
    .trust-badges--footer .trust-badges-row {
        gap: 12px 16px;
    }
    .trust-badges--footer .trust-badge {
        font-size: 0.8rem;
    }
    .trust-badges--footer .trust-badge i {
        font-size: 0.85rem;
    }
}
.hero-visual {
    margin-top: 40px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Obraz breloka w hero */
.hero-image-wrap {
	position: relative;
	width: min(55vw, 420px);
	max-width: 100%;
	aspect-ratio: 1/1;
	transform-style: preserve-3d;
	transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
	.hero-image-wrap {
		width: min(70vw, 500px);
	}
}
.hero-image-wrap::after {
	content: '';
	position: absolute;
	top: 10%;
	left: 10%;
	right: 10%;
	bottom: 10%;
	background: radial-gradient(closest-side, rgba(0,123,255,0.25), transparent 70%);
	filter: blur(30px);
	z-index: -1;
}
.hero-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)) drop-shadow(0 0 30px rgba(0, 123, 255, 0.25));
	animation: floatUpDown 6s ease-in-out infinite;
	opacity: 0;
	transform: translateY(10px) scale(1.18);
}

@keyframes floatUpDown {
	0% { transform: translateY(10px) scale(1.18); }
	50% { transform: translateY(-10px) scale(1.22); }
	100% { transform: translateY(10px) scale(1.18); }
}

/* Desktop: animacja hero + większy odstęp na dole (żeby nie widać było następnej sekcji przy wejściu) */
@media (min-width: 1025px) {
	.hero {
		padding-bottom: 110px;
	}
	.hero-image {
		animation: floatUpDown 8s ease-in-out infinite;
		will-change: transform;
	}
}

/* Fade-in wejścia po załadowaniu */
.hero-image.is-visible {
	opacity: 1;
	transition: opacity 800ms ease, transform 800ms ease;
	transform: translateY(0) scale(1.22);
}

/* ======== DYNAMICZNE TŁO HERO (CSS only) - OPTYMALIZACJA DESKTOP ======== */
.hero::before {
	content: '';
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(600px 600px at 20% 20%, rgba(0, 123, 255, 0.25), transparent 60%),
		radial-gradient(500px 500px at 80% 30%, rgba(138, 43, 226, 0.25), transparent 60%),
		radial-gradient(500px 500px at 50% 80%, rgba(0, 123, 255, 0.18), transparent 60%);
	filter: blur(40px) saturate(120%);
	z-index: -1;
	pointer-events: none;
	transform: translateZ(0);
	animation: heroBlobs 22s ease-in-out infinite alternate;
	will-change: transform, background-position;
}

/* PIĘKNE TŁO HERO - STATYCZNE, ALE BARDZO ŁADNE */
@media (min-width: 1025px) {
	.hero::before {
		animation: none !important;
		filter: blur(20px) saturate(120%);
		background:
			radial-gradient(500px 500px at 15% 15%, rgba(0, 123, 255, 0.25), transparent 60%),
			radial-gradient(450px 450px at 85% 25%, rgba(138, 43, 226, 0.25), transparent 60%),
			radial-gradient(400px 400px at 50% 85%, rgba(0, 123, 255, 0.18), transparent 60%),
			radial-gradient(300px 300px at 70% 60%, rgba(0, 123, 255, 0.12), transparent 70%),
			radial-gradient(250px 250px at 30% 70%, rgba(138, 43, 226, 0.1), transparent 75%);
		will-change: auto;
		transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
	}
	
	.hero:hover::before {
		filter: blur(25px) saturate(130%);
		opacity: 0.95;
		transform: scale(1.02);
	}
}

/* Obraz breloka w tle hero */
.hero::after {
	content: '';
	position: absolute;
	width: min(32vw, 420px);
	height: min(32vw, 420px);
	right: max(5vw, 80px);
	top: 70px;
	background-image: url('brelok-wizualizacja.png');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	opacity: 0.12;
	filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
	animation: heroBadgeFloat 10s ease-in-out infinite;
	pointer-events: none;
	z-index: -1;
}

/* PRZYWRÓĆ OBRAZ W TLE HERO - NIE JEST PROBLEMEM */
@media (min-width: 1025px) {
	.hero::after {
		animation: heroBadgeFloat 15s ease-in-out infinite;
		opacity: 0.08;
	}
}

@keyframes heroBadgeFloat {
	0% { transform: translate3d(0, 0, 0) rotate(-6deg); }
	50% { transform: translate3d(0, -8px, 0) rotate(-4deg); }
	100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
}

@media (max-width: 1024px) {
	.hero::after {
		width: 56vw;
		height: 56vw;
		right: -10vw;
		top: 60px;
		opacity: 0.16;
	}
}

@keyframes heroBlobs {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
		background-position:
			20% 20%,
			80% 30%,
			50% 80%;
	}
	50% {
		transform: translate3d(0, -1%, 0) scale(1.02);
		background-position:
			25% 15%,
			75% 35%,
			48% 82%;
	}
	100% {
		transform: translate3d(0, 1%, 0) scale(0.99);
		background-position:
			18% 22%,
			82% 28%,
			52% 78%;
	}
}

/* Optymalizacja animacji tła dla desktop */
@media (min-width: 1025px) {
	@keyframes heroBlobs {
		0% {
			transform: translate3d(0, 0, 0) scale(1);
			background-position:
				20% 20%,
				80% 30%,
				50% 80%;
		}
		50% {
			transform: translate3d(0, -0.5%, 0) scale(1.01);
			background-position:
				22% 18%,
				78% 32%,
				49% 81%;
		}
		100% {
			transform: translate3d(0, 0.5%, 0) scale(0.995);
			background-position:
				19% 21%,
				81% 29%,
				51% 79%;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero::before,
	.tech-section::before,
	.portfolio-section::before {
		animation: none !important;
	}
	
	.hero-image {
		animation: none !important;
	}
	
	* {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ======== SEKCJA "JAK TO DZIAŁA" ======== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
	max-width: 900px;
	margin: 0 auto;
}
.feature-section .container { position: relative; }
.feature-visual {
	position: absolute;
	right: calc(-1 * max(0px, ((100vw - var(--container-width)) / 2) - 140px));
	top: calc(50% - 100px);
	transform: translateY(-50%);
	pointer-events: none;
	background: none;
	border: 0;
	box-shadow: none;
}
.feature-visual img {
	width: auto;
	max-width: min(28vw, 320px);
	display: block;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
	background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ======== SEKCJA LICZNIKI ======== */
.counters-section {
    background: rgba(255, 255, 255, 0.05);
}
.counters-section .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}
.counter-item {
    font-size: 3rem;
    font-weight: bold;
}
.counter-item p {
    font-size: 1rem;
    font-weight: normal;
}
.infinity {
    font-size: 3rem;
    line-height: 1;
}

/* ======== SEKCJA TECHNOLOGIA - OPTYMALIZACJA DESKTOP ======== */
.tech-section { position: relative; overflow: hidden; }
.tech-section::before {
    content: '';
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(520px 520px at 20% 30%, rgba(0, 123, 255, 0.20), transparent 60%),
        radial-gradient(600px 600px at 80% 40%, rgba(138, 43, 226, 0.20), transparent 60%),
        radial-gradient(500px 500px at 50% 85%, rgba(0, 123, 255, 0.16), transparent 60%);
    filter: blur(42px) saturate(120%);
    z-index: -1;
    pointer-events: none;
    animation: techBlobs 24s ease-in-out infinite alternate;
    will-change: transform, background-position;
}

/* PIĘKNE TŁO TECH - STATYCZNE, ALE BARDZO ŁADNE */
@media (min-width: 1025px) {
    .tech-section::before {
        animation: none !important;
        filter: blur(18px) saturate(120%);
        background:
            radial-gradient(400px 400px at 20% 30%, rgba(0, 123, 255, 0.2), transparent 65%),
            radial-gradient(350px 350px at 80% 40%, rgba(138, 43, 226, 0.2), transparent 65%),
            radial-gradient(300px 300px at 50% 85%, rgba(0, 123, 255, 0.15), transparent 65%),
            radial-gradient(250px 250px at 70% 20%, rgba(0, 123, 255, 0.1), transparent 70%),
            radial-gradient(200px 200px at 30% 60%, rgba(138, 43, 226, 0.08), transparent 75%);
        will-change: auto;
        transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    }
    
    .tech-section:hover::before {
        filter: blur(22px) saturate(130%);
        opacity: 0.95;
        transform: scale(1.01);
    }
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
@media (min-width: 1100px) {
    .steps-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.step-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }

/* OPTYMALIZACJA HOVER EFEKTÓW STEP-CARD DLA DESKTOP */
@media (min-width: 1025px) {
    .step-card {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    .step-card:hover { 
        transform: translateY(-1px); /* mniejszy ruch */
        box-shadow: 0 6px 16px rgba(0,0,0,0.15); 
    }
}
.step-number {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: white; background: var(--gradient); margin-bottom: 12px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
@media (min-width: 1100px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.info-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
@media (min-width: 1025px) {
    .info-card {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .info-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }
}

@keyframes techBlobs {
    0% { background-position: 20% 30%, 80% 40%, 50% 85%; }
    50% { background-position: 24% 28%, 76% 42%, 48% 82%; }
    100% { background-position: 18% 32%, 82% 38%, 52% 88%; }
}

/* Optymalizacja animacji techBlobs dla desktop */
@media (min-width: 1025px) {
    @keyframes techBlobs {
        0% { background-position: 20% 30%, 80% 40%, 50% 85%; }
        50% { background-position: 22% 29%, 78% 41%, 49% 83%; }
        100% { background-position: 19% 31%, 81% 39%, 51% 87%; }
    }
}

/* ======== SEKCJA REALIZACJE – poziomy scroll z auto-przewijaniem ======== */
.portfolio-scroll-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    cursor: grab;
    touch-action: pan-y;
    /* Więcej miejsca na dolny cień (drop-shadow ~16px + blur ~36px) + płynne zanikanie u dołu */
    padding: 10px 0 58px;
    /* Maską zanikają tylko zdjęcia – tło sekcji zostaje widoczne; dolna krawędź też zanika */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
    mask-image:
        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
        linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
}
.portfolio-scroll-track {
    display: flex;
    gap: 24px;
    padding: 0 20px;
    width: max-content;
    animation: portfolioScroll 45s linear infinite;
}
.portfolio-scroll-wrap.portfolio-scroll-js .portfolio-scroll-track {
    animation: none;
}
.portfolio-scroll-track:hover {
    animation-play-state: paused;
}
.portfolio-scroll-wrap.is-dragging {
    cursor: grabbing;
    user-select: none;
}
.portfolio-scroll-wrap.is-dragging .portfolio-scroll-track {
    pointer-events: none;
}
.portfolio-scroll-track img {
    flex-shrink: 0;
    width: 280px;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 12px 28px rgba(0, 123, 255, 0.22)) drop-shadow(0 0 24px rgba(0, 123, 255, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.portfolio-scroll-track img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 16px 32px rgba(0, 123, 255, 0.3)) drop-shadow(0 0 32px rgba(0, 123, 255, 0.18));
}

@keyframes portfolioScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* OPTYMALIZACJA HOVER DLA DESKTOP */
@media (min-width: 1025px) {
    .portfolio-scroll-track img {
        transition: transform 0.15s ease, filter 0.15s ease;
    }
    .portfolio-scroll-track img:hover {
        transform: scale(1.02);
        filter: drop-shadow(0 14px 30px rgba(0, 123, 255, 0.28)) drop-shadow(0 0 28px rgba(0, 123, 255, 0.15));
    }
}

/* Sekcja Realizacje – czarne tło jak "Prosty proces", bez blobów */
.portfolio-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}
.portfolio-section::before {
    display: none;
}

/* ======== SEKCJA FAQ ======== */
.faq-section {
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

/* PIĘKNE TŁO FAQ - STATYCZNE, ALE BARDZO ŁADNE */
@media (min-width: 1025px) {
    .faq-section::before {
        content: '';
        position: absolute;
        inset: -20%;
        background:
            radial-gradient(350px 350px at 20% 20%, rgba(0, 123, 255, 0.08), transparent 70%),
            radial-gradient(300px 300px at 80% 30%, rgba(138, 43, 226, 0.08), transparent 70%),
            radial-gradient(250px 250px at 50% 80%, rgba(0, 123, 255, 0.06), transparent 70%),
            radial-gradient(200px 200px at 70% 60%, rgba(138, 43, 226, 0.04), transparent 75%);
        filter: blur(12px) saturate(110%);
        z-index: -1;
        pointer-events: none;
        will-change: auto;
        transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    }
    
    .faq-section:hover::before {
        filter: blur(15px) saturate(120%);
        opacity: 0.9;
        transform: scale(1.01);
    }
}

.faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start;
}

.faq-item {
    flex: 1 1 400px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* OPTYMALIZACJA HOVER EFEKTÓW FAQ DLA DESKTOP */
@media (min-width: 1025px) {
    .faq-item {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    .faq-item:hover {
        transform: translateY(-0.5px); /* bardzo mały ruch */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.faq-item.active .faq-answer {
    height: auto;
    max-height: none;
}

.faq-answer p {
    padding: 10px 20px 20px 20px;
    margin: 0;
    color: #ccc;
    line-height: 1.6;
}

/* ======== SEKCJA KONTAKT ======== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-details {
    text-align: center;
    margin-top: 20px;
}

.contact-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary-blue);
}

.contact-link i {
    margin-right: 8px;
    color: var(--primary-blue);
}

.email-link {
    color: var(--text-light) !important;
    text-decoration: none;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #aaa;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

/* ======== SEKCJA SEO ======== */
.seo-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 80px 0;
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.seo-content p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.7;
    font-size: 1rem;
}

.seo-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-light);
}

/* ======== STOPKA ======== */
.main-footer {
    padding: 40px 0;
    background: #0a0a0a;
    text-align: center;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}
.footer-nav a { color: #aaa; text-decoration: none; margin: 0 15px; }
.footer-nav a:hover { color: var(--primary-blue); }
.footer-nav a.footer-instagram { font-size: 1.25rem; }
.footer-nav a.footer-instagram:hover { color: #E4405F; }
.footer-copy { font-size: 0.9rem; color: #777; }

/* ======== ANIMACJE PRZY PRZEWIJANIU - OPTYMALIZACJA DESKTOP ======== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* PRZYWRÓĆ ANIMACJE REVEAL - NIE SĄ PROBLEMEM */
@media (min-width: 1025px) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ======== RESPONSYWNOŚĆ ======== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .portfolio-scroll-track img {
        height: 250px;
        width: 240px;
        transform: translateZ(0); /* własna warstwa – cień nie ucinany na mobile */
        -webkit-transform: translateZ(0);
    }
    .portfolio-scroll-track img:hover {
        transform: scale(1.05) translateZ(0);
        -webkit-transform: scale(1.05) translateZ(0);
    }
    /* Mobile: track z miejscem na cień; wrap bez przycinania w dół (overflow: visible) */
    .portfolio-scroll-track {
        padding-bottom: 90px;
        min-height: 340px;
        align-items: flex-start;
        box-sizing: border-box;
    }
    .portfolio-scroll-wrap {
        overflow: visible;
        padding: 16px 0 40px;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
    /* Mobile: tylko w sekcji realizacji – poziome przycięcie żeby nie było scrolla w bok */
    .portfolio-section .container {
        overflow-x: hidden;
    }
    
    .main-nav { 
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow: hidden;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .main-nav > ul {
        display: none;
    }
    
    .mobile-menu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
        transform: translateY(-20px);
    }
    
    .mobile-menu-logo {
        margin-bottom: 20px;
    }
    
    .mobile-logo-img {
        height: 50px;
        width: auto;
        object-fit: contain;
        opacity: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .main-nav a {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    /* Blokuj scroll gdy menu otwarte */
    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    .hero {
        padding-bottom: 36px;
    }
    .hero-visual {
        margin-top: 28px;
        height: 260px;
    }
    .hero-buttons { flex-direction: column; }
    
    .contact-container { grid-template-columns: 1fr; }
    
    .contact-link {
        font-size: 1.1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-question {
        padding: 16px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }

    /* Mobile: elementy w sekcjach widoczne od razu bez reveal */
    #dzialanie .reveal,
    .counters-section .reveal,
    #technologia .reveal,
    #realizacje .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Mobile: zapobieganie clip/miganiu przez overflow/animacje tła */
    .tech-section,
    .portfolio-section {
        overflow: visible !important;
    }
    .portfolio-section {
        padding-top: 60px;
        padding-bottom: 0;
        background: var(--bg-dark);
    }
    .tech-section::before,
    .portfolio-section::before {
        animation: none !important;
        filter: blur(0) saturate(100%);
        opacity: 0.3;
    }
}

/* Desktop - ukryj mobile menu content i przycisk */
@media (min-width: 1025px) {
    .mobile-menu-content {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        display: block !important;
        transform: none !important;
        transition: none !important;
        z-index: auto !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        min-height: auto !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    
    .main-nav ul {
        flex-direction: row !important;
        gap: 30px !important;
        text-align: left !important;
        display: flex !important;
    }
    
    .main-nav a {
        font-size: 1rem !important;
        font-weight: bold !important;
    }
}

/* Jeden rząd kroków na większych ekranach */
@media (min-width: 992px) {
	.features-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* usuwamy stylowanie feature-visual (obraz przeniesiony do hero) */

/* ======== UKRYCIE INFORMACJI O RECAPTCHA ======== */
.grecaptcha-badge,
.grecaptcha-badge-wrapper,
iframe[src*="recaptcha"],
iframe[src*="google.com/recaptcha"],
div[data-sitekey],
.grecaptcha-badge-container {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Dodatkowe ukrycie na mobile */
@media (max-width: 768px) {
    .grecaptcha-badge,
    .grecaptcha-badge-wrapper,
    iframe[src*="recaptcha"],
    iframe[src*="google.com/recaptcha"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        bottom: -100px !important;
        right: -100px !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -9999 !important;
    }
}

/* ======== PASEK ZGODY NA COOKIES ======== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(18, 18, 18, 0.98);
    border-top: 1px solid rgba(0, 123, 255, 0.3);
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}
.cookie-banner[hidden] {
    display: none !important;
}
.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-banner-text {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    flex: 1;
    min-width: 260px;
}
.cookie-banner-text a {
    color: var(--primary-blue);
    text-decoration: underline;
}
.cookie-banner-text a:hover {
    color: #3395ff;
}
.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner-accept,
.cookie-banner-reject,
.cookie-banner-customize {
    padding: 10px 20px;
    font-size: 0.9rem;
}
@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner-text { min-width: 0; }
    .cookie-banner-buttons { justify-content: center; }
}

/* Modal ustawień cookies */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal[hidden] {
    display: none !important;
}
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}
.cookie-modal-panel {
    position: relative;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cookie-modal-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
}
.cookie-modal-intro {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.cookie-modal-intro a {
    color: var(--primary-blue);
    text-decoration: underline;
}
.cookie-modal-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.cookie-modal-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}
.cookie-modal-option--disabled {
    cursor: default;
    opacity: 0.85;
}
.cookie-modal-option input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cookie-modal-save,
.cookie-modal-reject {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ======== BLOG – lista artykułów ======== */
.blog-main {
    position: relative;
    overflow: hidden;
    background: transparent;
}
.blog-main::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(700px 700px at 25% 15%, rgba(0, 123, 255, 0.26), transparent 48%),
        radial-gradient(650px 650px at 75% 25%, rgba(138, 43, 226, 0.24), transparent 48%),
        radial-gradient(600px 600px at 50% 70%, rgba(0, 123, 255, 0.18), transparent 52%),
        radial-gradient(500px 500px at 85% 65%, rgba(138, 43, 226, 0.12), transparent 55%);
    filter: blur(55px) saturate(130%);
    z-index: 0;
    pointer-events: none;
    animation: blogBlobs 22s ease-in-out infinite alternate;
}
.blog-main .blog-hero .container,
.blog-main .blog-list .container {
    position: relative;
    z-index: 1;
}

.blog-hero {
    padding: 80px 0 50px;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}
.blog-hero p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}
.blog-list {
    padding: 40px 0 80px;
}
.blog-list .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.blog-card__date {
    font-size: 0.85rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.blog-card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.35;
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
}
.blog-card__title a:hover {
    color: var(--primary-blue);
}
.blog-card__excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
}
.blog-card__link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-card__link:hover {
    text-decoration: underline;
}
.blog-card__link i {
    font-size: 0.8em;
}

/* ======== BLOG – pojedynczy wpis ======== */
.blog-article {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background: transparent;
    min-height: 60vh;
}
.blog-article::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(600px 600px at 20% 30%, rgba(0, 123, 255, 0.26), transparent 50%),
        radial-gradient(550px 550px at 80% 25%, rgba(138, 43, 226, 0.24), transparent 50%),
        radial-gradient(500px 500px at 50% 85%, rgba(0, 123, 255, 0.18), transparent 55%);
    filter: blur(50px) saturate(130%);
    z-index: 0;
    pointer-events: none;
    animation: blogBlobs 24s ease-in-out infinite alternate;
}
.blog-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.blog-article .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.blog-article__back:hover {
    color: var(--primary-blue);
}

@keyframes blogBlobs {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate3d(2%, -1%, 0) scale(1.03);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(-1%, 1%, 0) scale(0.98);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-main::before,
    .blog-article::before {
        animation: none;
    }
}

.blog-article__back i {
    font-size: 0.85em;
}
.blog-article__header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
}
.blog-article__title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 14px;
}
.blog-article__meta {
    font-size: 0.9rem;
    color: var(--text-light);
}
.blog-article__meta span + span::before {
    content: ' · ';
    margin: 0 4px;
}
.blog-article__content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}
.blog-article__content p {
    margin-bottom: 1.25em;
}
.blog-article__content p:last-child {
    margin-bottom: 0;
}
.blog-article__content h2 {
    font-size: 1.35rem;
    margin: 2em 0 0.75em;
    color: #fff;
}
.blog-article__content h2:first-child {
    margin-top: 0;
}
.blog-article__content h3 {
    font-size: 1.15rem;
    margin: 1.5em 0 0.5em;
    color: rgba(255, 255, 255, 0.95);
}
.blog-article__content ul,
.blog-article__content ol {
    margin: 1em 0 1.25em;
    padding-left: 1.5em;
}
.blog-article__content li {
    margin-bottom: 0.4em;
}
.blog-article__content a {
    color: var(--primary-blue);
    text-decoration: underline;
}
.blog-article__content a:hover {
    text-decoration: none;
}
.blog-article__cta {
    margin-top: 48px;
    margin-left: auto;
    margin-right: auto;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    max-width: 720px;
    text-align: center;
}
.blog-article__cta p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.blog-article__cta .btn {
    margin-top: 4px;
}
