/* =========================================
   1. ZMIENNE I TOTALNY RESET (Baza)
   ========================================= */
   :root {
    --bg-dark: #0a0a0a;
    --bg-contact: #111111;
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --accent-neon: #ff5500;
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; /* To chroni przed rozpychaniem kontenerów! */
}

html, body { 
    scroll-behavior: smooth; 
    background-color: var(--bg-dark); 
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Bezwzględna blokada poziomego suwaka */
    width: 100%;
    max-width: 100vw;
}

/* TYPOGRAFIA (Domyślna - mała, dla telefonów) */
h1, h2, h3, .logo, .btn-neon, .big-link, .btn-outline {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}
a { color: var(--text-light); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
a:focus-visible,
button:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--accent-neon);
    outline-offset: 2px;
}
.logo:hover,
.main-nav a:hover { color: var(--accent-neon); }

/* Kontenery i marginesy */
.container { width: 100%; margin: 0 auto; padding: 0; }
.content-padding { padding: 2rem 1.5rem; }
.huge-padding { padding: 3rem 1.5rem; }
.text-center { text-align: center; padding: 2rem; color: var(--text-muted); }

/* Krawędzie na mobile */
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-left, .border-right, .border-right-on-desktop { border: none; }

/* Nawigacja */
.top-bar { position: sticky; top: 0; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border-color); }
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; padding: 1rem; min-width: 0; }
.logo { font-size: 1.2rem; white-space: nowrap; flex-shrink: 0; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; min-width: 0; }
.main-nav a { font-size: 0.85rem; font-weight: 500; }
.top-bar .btn-neon { display: none; }

/* Typografia nagłówków na telefonie - sztywna, mała, bezpieczna */
h1 { font-size: 2rem; line-height: 1.15; word-wrap: break-word; hyphens: auto; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.subtitle { font-size: 1rem; color: var(--text-muted); margin-top: 1rem; }
.large-text { font-size: 1.1rem; }

/* Przyciski - na telefonie na całą szerokość ekranu */
.hero-cta { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; width: 100%; }
.btn-neon, .btn-outline { 
    width: 100%; text-align: center; padding: 1rem; font-size: 0.9rem; 
    border-radius: 2px; display: inline-block; cursor: pointer; transition: 0.2s;
}
.btn-neon { background: var(--accent-neon); color: var(--bg-dark); border: none; }
.btn-outline { background: transparent; border: 2px solid var(--text-light); color: var(--text-light); }
.btn-neon:hover { background: var(--text-light); color: var(--bg-dark); }
.btn-outline:hover { background: var(--text-light); color: var(--bg-dark); border-color: var(--text-light); }

/* Układy siatkowe - WSZYSTKO JEDNA POD DRUGĄ NA TELEFONIE */
.split-layout { display: flex; flex-direction: column; }
.split-left { border-bottom: 1px solid var(--border-color); }
.services-grid, .dla-kogo-grid, .steps-grid, .dlaczego-grid { display: grid; grid-template-columns: 1fr; }

/* Obrazki */
.img-wrapper { width: 100%; overflow: hidden; }
.img-wrapper img { width: 100%; height: 250px; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease, transform 0.4s ease; display: block; }

/* Kafelki oddzielane linią poziomą */
.service-item, .dla-kogo-card, .step-item, .dlaczego-item { border-bottom: 1px solid var(--border-color); padding: 2rem 1.5rem; }
.service-item { padding: 0; } /* bo obrazek robi szerokosc */
.service-item .content-padding { padding: 1.5rem; }
.dla-kogo-card:last-child, .step-item:last-child, .dlaczego-item:last-child, .service-item:last-child { border-bottom: none; }

/* Detale wizualne sekcji */
.dla-kogo-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.step-item { position: relative; z-index: 1; overflow: hidden; }
.step-num { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: var(--border-color); opacity: 0.5; position: absolute; top: 1rem; right: 1.5rem; z-index: 0; pointer-events: none; }
.step-item p, .dla-kogo-card p, .dlaczego-item p, .service-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Kontakt */
.contact-bg { background-color: var(--bg-contact); }
.contact-lead { margin-top: 1rem; color: var(--text-muted); }
.contact-form-title { margin-bottom: 1rem; font-size: 1.2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.big-link { font-size: 1.5rem; line-height: 1; margin-top: 1rem; display: inline-block; border-bottom: 2px solid transparent; word-break: break-word; transition: color 0.2s, border-color 0.2s; }

/* Formularz */
.contact-form-wrapper { width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-contact); border: 1px solid var(--border-color); color: var(--text-light); padding: 1rem; font-family: inherit; border-radius: 2px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-neon); }
.contact-form .btn-neon { align-self: flex-start; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Powrót do góry i Animacje */
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; background: var(--border-color); color: var(--text-light); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; border-radius: 50%; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 999; }
.back-to-top.show { opacity: 1; pointer-events: auto; cursor: pointer; }
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* =========================================
   3. STYLE DLA KOMPUTERÓW (Odpalają się tylko dla ekranów pow. 768px)
   ========================================= */

@media (min-width: 768px) {
    
    /* Główne kontenery – na 768px pełna szerokość, bez obcinania */
    .container { max-width: 100%; padding: 0 1.5rem; }
    .content-padding { padding: 2rem 1.5rem; }
    .huge-padding { padding: 3rem 1.5rem; }
    .border-left { border-left: 1px solid var(--border-color); }
    .border-right { border-right: 1px solid var(--border-color); }
    .border-right-on-desktop { border-right: 1px solid var(--border-color); border-bottom: none; }
    
    /* Nawigacja – mniejsze elementy, żeby ZADZWOŃ się mieścił */
    .header-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 1rem 1.5rem; }
    .logo { font-size: 1.25rem; }
    .main-nav { flex: 1 1 auto; justify-content: center; gap: 0.5rem 1rem; order: 0; min-width: 0; }
    .main-nav a { font-size: 0.875rem; white-space: nowrap; }
    .top-bar .btn-neon { display: inline-block; width: auto; white-space: nowrap; flex-shrink: 0; padding: 0.6rem 1.25rem; font-size: 0.875rem; }
    
    /* Typografia – umiarkowana na 768px */
    h1 { font-size: 2.75rem; line-height: 1.1; letter-spacing: -0.5px; hyphens: none; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }
    .subtitle { font-size: 1.05rem; margin-top: 1.25rem; }
    .large-text { font-size: 1.25rem; }
    
    .hero-cta { flex-direction: row; width: auto; flex-wrap: wrap; }
    .btn-neon, .btn-outline { width: auto; padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    
    .split-layout { flex-direction: row; }
    .split-left { border-bottom: none; }
    .services-grid, .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .dla-kogo-grid, .dlaczego-grid { grid-template-columns: repeat(2, 1fr); }
    
    .service-item, .dla-kogo-card, .step-item, .dlaczego-item { border-bottom: none; padding: 1.5rem 1.5rem; }
    .dla-kogo-card:nth-child(1), .dla-kogo-card:nth-child(2),
    .dlaczego-item:nth-child(1), .dlaczego-item:nth-child(2) { border-bottom: 1px solid var(--border-color); }
    .service-item { padding: 0; }
    .service-item .content-padding { padding: 1.25rem; }
    .step-num { font-size: 3rem; right: 1.5rem; }
    
    .img-wrapper img { height: 280px; }
    .service-item:hover img { filter: grayscale(0%); transform: scale(1.05); }
    .big-link { font-size: 1.65rem; white-space: nowrap; }
    .big-link:hover { color: var(--accent-neon); border-color: var(--accent-neon); }
    .back-to-top:hover { background: var(--accent-neon); color: var(--bg-dark); transform: translateY(-5px); }
}

/* Laptop / średnie ekrany – mniejsze odstępy i czcionki, numer w jednej linii */
@media (min-width: 992px) {
    .container { max-width: 1200px; padding: 0 1.5rem; }
    .content-padding { padding: 1.75rem 1.5rem; }
    .huge-padding { padding: 3rem 1.5rem; }
    
    .header-inner { padding: 1rem 1.5rem; flex-wrap: nowrap; }
    .logo { font-size: 1.35rem; }
    .main-nav a { font-size: 0.9rem; }
    .top-bar .btn-neon { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 1.95rem; }
    h3 { font-size: 1.2rem; }
    .subtitle { font-size: 1.05rem; margin-top: 1rem; }
    .large-text { font-size: 1.2rem; }
    
    /* O NAS – lewa kolumna o stałej szerokości, nie rozjeżdża się */
    .split-left { flex: 0 0 300px; max-width: 38%; }
    .split-right { flex: 1; min-width: 0; }
    
    .dla-kogo-grid, .dlaczego-grid { grid-template-columns: repeat(4, 1fr); }
    .dla-kogo-card:nth-child(1), .dla-kogo-card:nth-child(2),
    .dlaczego-item:nth-child(1), .dlaczego-item:nth-child(2) { border-bottom: none; }
    .service-item, .dla-kogo-card, .step-item, .dlaczego-item { padding: 1.25rem 1.5rem; }
    .service-item .content-padding { padding: 1.25rem; }
    .step-num { font-size: 3rem; }
    .img-wrapper img { height: 280px; }
    .big-link { font-size: 1.85rem; white-space: nowrap; }
}

/* Duże ekrany – umiarkowane odstępy (bez 4rem/8rem), spójnie z laptopem */
@media (min-width: 1280px) {
    .container { max-width: 1400px; padding: 0 2rem; }
    .content-padding { padding: 2.25rem 2rem; }
    .huge-padding { padding: 3.5rem 2rem; }
    
    .header-inner { padding: 1rem 2rem; }
    .main-nav a { font-size: 1rem; }
    .top-bar .btn-neon { padding: 0.8rem 1.75rem; font-size: 1rem; }
    
    h1 { font-size: 4rem; line-height: 1.05; letter-spacing: -1px; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.4rem; }
    .subtitle { font-size: 1.15rem; margin-top: 1.25rem; }
    .large-text { font-size: 1.35rem; }
    
    .service-item, .dla-kogo-card, .step-item, .dlaczego-item { padding: 2rem; }
    .service-item .content-padding { padding: 1.5rem; }
    .step-num { font-size: 3.5rem; right: 2rem; }
    .img-wrapper img { height: 320px; }
    .big-link { font-size: 2rem; white-space: nowrap; }
}