/* ==================== CONFIG & RESET ==================== */
:root {
    /* DARK MODE (DEFAULT) */
    --clr-bg: #090516;
    --clr-bg-alt: #0F0A24;
    --clr-text: #FFFFFF;
    --clr-text-muted: rgba(255, 255, 255, 0.7);
    --clr-card-bg: rgba(65, 14, 73, 0.15);
    
    /* DARK BACKGROUND: High-tech PCB */
    --bg-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop');
    --bg-overlay: rgba(9, 5, 22, 0.92);

    /* ACCENT (#FF3131) */
    --clr-accent: #FF3131; 
    /* GLOW COLOR */
    --clr-accent-dim: rgba(255, 49, 49, 0.4);
    
    --font-main: 'Rajdhani', sans-serif;
    --nav-height: 80px;
}

/* LIGHT MODE OVERRIDE - TWOJE USTAWIENIA */
[data-theme="light"] {
    --clr-bg: #F5F5F7;
    --clr-bg-alt: #FFFFFF;
    --clr-text: #111111;
    --clr-text-muted: #1d1d1d;
    --clr-card-bg: rgba(255, 255, 255, 0.9);

    /* TWOJE ZDJĘCIE TŁA */
    --bg-image: url('https://images.unsplash.com/photo-1574192324001-ee41e18ed679?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    
    /* TWOJE KRYCIE */
    --bg-overlay: rgba(255, 255, 255, 0.5); 
    
    --clr-accent: #FF3131; 
    /* GLOW COLOR LIGHT MODE (trochę delikatniejszy) */
    --clr-accent-dim: rgba(255, 49, 49, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }

/* SYSTEMOWY SMOOTH SCROLL */
html { scroll-behavior: smooth; }

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.05rem;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { 
    background: var(--clr-accent); border-radius: 10px; border: 2px solid var(--clr-bg);
}
::-webkit-scrollbar-thumb:hover { background: #d90404; }

/* ==================== FIXED BACKGROUND ==================== */
.fixed-bg {
    position: fixed; inset: 0; z-index: -2;
    width: 100vw; height: 100vh;
    background-image: var(--bg-image);
    background-position: center; background-size: cover; background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}
.bg-overlay {
    position: fixed; inset: 0; z-index: -1;
    width: 100vw; height: 100vh;
    background: var(--bg-overlay); pointer-events: none;
    transition: background 0.5s ease;
}

/* ==================== NAV ==================== */
.nav-container {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: all 0.3s ease; padding: 15px 0;
}
.nav-container.scrolled {
    background: rgba(9, 5, 22, 0.95); backdrop-filter: blur(10px);
    padding: 10px 0; border-bottom: 1px solid rgba(255, 49, 49, 0.2);
}

.navbar {
    width: 90%; max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.5rem; font-weight: 900; color: var(--clr-text); text-decoration: none;
    letter-spacing: 1px; position: relative; z-index: 1001;
}
.nav-logo img { height: 55px; }

.nav-right { display: flex; align-items: center; gap: 40px; }

.nav-menu { list-style: none; display: flex; gap: 30px; }
.nav-link {
    text-decoration: none; color: var(--clr-text); font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px; position: relative; transition: color 0.3s; cursor: pointer;
}
.nav-link:hover { color: var(--clr-accent); }

.nav-controls { display: flex; align-items: center; gap: 15px; z-index: 1001; }

.theme-toggle {
    background: transparent; border: 2px solid var(--clr-accent); color: var(--clr-text);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    transition: 0.3s;
}
.theme-toggle:hover { background: var(--clr-accent); color: white; box-shadow: 0 0 15px var(--clr-accent); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { 
    width: 30px; height: 3px; background: var(--clr-text); 
    transition: 0.3s; 
}

/* ==================== HERO ==================== */
.hero-container {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
}
.hero-content { max-width: 1000px; padding: 0 20px; z-index: 2; }
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; font-weight: 900;
    margin-bottom: 20px; text-transform: uppercase;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}
.clr-accent { color: var(--clr-accent); }
.hero-desc {
    font-size: 1.2rem; color: var(--clr-text-muted); max-width: 600px; margin: 0 auto 50px;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-block; background: var(--clr-accent); color: white;
    padding: 18px 40px; border-radius: 50px; text-decoration: none;
    font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 0 20px var(--clr-accent-dim);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); border: none; cursor: pointer;
}
.btn-primary:hover { box-shadow: 0 0 40px var(--clr-accent); transform: scale(1.05); }

.btn-secondary {
    display: inline-block; background: transparent; color: var(--clr-accent);
    border: 2px solid var(--clr-accent); padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 700; text-transform: uppercase; margin-top: auto;
    transition: 0.3s;
}
.btn-secondary:hover { background: var(--clr-accent); color: white; box-shadow: 0 0 20px var(--clr-accent); }

/* ==================== CARDS (STANDARD) ==================== */
.section-padding { padding: 120px 0; }
.section-header { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 80px; font-weight: 800; text-transform: uppercase; }
.txt-align-center { text-align: center; }
.txt-align-left { text-align: left; }

.cards-wrapper {
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
    width: 90%; max-width: 1400px; margin: 0 auto;
}

.website-card {
    display: flex; flex-direction: column; width: clamp(300px, 30%, 400px); min-height: 500px;
    background-color: var(--clr-card-bg); border: 3px solid var(--clr-accent); border-radius: 25px;
    padding: 50px 30px;
    /* GLOW W BASE STYLE (DARK MODE) */
    box-shadow: 0 0 30px var(--clr-accent-dim);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); backdrop-filter: blur(10px);
}
.card-icon { width: 70px; height: 70px; margin-bottom: 30px; color: var(--clr-accent); }
.card-icon svg { width: 100%; height: 100%; }
.website-card h3 { font-size: 2rem; color: var(--clr-accent); margin-bottom: 20px; line-height: 1; text-transform: uppercase; font-weight: 800; }
.website-card p { font-size: 1rem; color: var(--clr-text-muted); margin-bottom: 40px; flex-grow: 1; }

.type1:hover { transform: skew(3deg, 2deg) translateY(-20px); box-shadow: -25px 25px 80px var(--clr-accent-dim); }
.type2:hover { transform: translateY(-30px) scale(1.02); box-shadow: 0px 20px 80px var(--clr-accent-dim); }
.type3:hover { transform: skew(-3deg, -2deg) translateY(-20px); box-shadow: 25px 25px 80px var(--clr-accent-dim); }

/* ==================== FEATURES GRID ==================== */
.bg-darker { background: var(--clr-bg-alt); }

.features-grid {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; width: 90%; max-width: 1400px; margin: 0 auto;
}

.feature-card {
    background: var(--clr-card-bg); border: 1px solid var(--clr-accent-dim);
    border-radius: 20px; padding: 40px 20px; text-align: center;
    transition: all 0.3s; display: flex; flex-direction: column; align-items: center;
    backdrop-filter: blur(10px);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--clr-accent); box-shadow: 0 15px 40px var(--clr-accent-dim); }

.feature-icon-wrapper {
    width: 70px; height: 70px; margin-bottom: 20px;
    background: rgba(255, 49, 49, 0.1); border-radius: 50%; padding: 15px;
    color: var(--clr-accent);
}
.feature-icon-wrapper svg { width: 100%; height: 100%; }

.feature-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--clr-text); font-weight: 800; text-transform: uppercase; }
.feature-card p { font-size: 0.95rem; color: var(--clr-text-muted); line-height: 1.6; }

/* Styl dla opisu sekcji (Lead Text) */
.section-desc {
    max-width: 700px;           /* Ograniczamy szerokość dla czytelności */
    margin: -50px auto 70px;    /* -50px podciąga tekst do nagłówka, 70px daje oddech przed kaflami */
    text-align: center;
    font-size: 1.15rem;         /* Nieco większy niż zwykły tekst */
    line-height: 1.6;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* Mała korekta dla mobilki, żeby marginesy się nie rozjechały */
@media (max-width: 768px) {
    .section-desc {
        margin: -40px auto 50px;
        padding: 0 20px;
        font-size: 1rem;
    }
}
/* ==================== NOWA SEKCJA O MNIE (POPRAWKA MARGINESÓW) ==================== */

.about-wrapper {
    display: grid;
    /* Zmieniamy proporcje: więcej miejsca dla tekstu */
    grid-template-columns: 1fr 1.5fr; 
    gap: 60px;
    align-items: start; /* Tekst zaczyna się od góry, nie od środka */
}

/* --- LEWA STRONA (ZDJĘCIE) --- */
.about-image-container {
    display: flex;
    justify-content: center; /* Wyśrodkowanie zdjęcia w kolumnie */
    align-items: flex-start;
}

.image-frame {
    position: relative; /* To sprawia, że badge pozycjonuje się względem TEJ ramki */
    display: inline-block; /* Ramka dopasowuje się do szerokości zdjęcia */
    border-radius: 20px;
    padding: 10px;
    border: 1px solid var(--clr-accent-dim);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 50px rgba(255, 49, 49, 0.1); 
    max-width: 100%; /* Zabezpieczenie na mobile */
}

.owner-photo {
    width: 100%;
    max-width: 380px; /* Ograniczenie szerokości, żeby nie było gigantyczne */
    height: auto;
    border-radius: 15px;
    display: block;
    filter: contrast(1.1);
}

/* FIX BADGE'A - Teraz jest przyklejony do rogu ramki */
.exp-badge {
    position: absolute;
    bottom: 30px; /* Podnosimy go trochę do góry */
    right: -25px; /* Wystaje w prawo */
    background: var(--clr-bg);
    border: 2px solid var(--clr-accent);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    z-index: 5;
    min-width: 100px;
}

.exp-badge .exp-number {
    display: block;
    background: var(--clr-accent);
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px 8px 0 0;
    line-height: 1;
}

.exp-badge .exp-text {
    display: block;
    background: var(--clr-bg-alt);
    color: var(--clr-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 10px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* --- PRAWA STRONA (TYPOGRAFIA) --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* FIX: Dodajemy margines wewnętrzny z prawej strony */
    padding-right: 40px; 
}

.about-intro {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    line-height: 1.4;
    border-left: 4px solid var(--clr-accent);
    padding-left: 20px;
    margin-top: 10px;
}
.about-intro .clr-text { color: var(--clr-text); }

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--clr-text-muted);
    text-align: justify; /* Ładniejsze wyrównanie bloku tekstu */
}

.about-quote {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-radius: 12px;
    font-style: italic;
    color: var(--clr-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 10px 0;
}
.about-quote::before {
    content: '"';
    position: absolute;
    top: -25px;
    left: 20px;
    font-size: 5rem;
    color: var(--clr-accent);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.about-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
}

.social-link {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}
.social-link:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

/* --- MOBILE FIX --- */
@media (max-width: 1000px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Na telefonie usuwamy margines boczny, bo kontener standardowy go ma */
    .about-content {
        padding-right: 0; 
        text-align: left;
    }

    .about-image-container {
        justify-content: center;
    }
    
    .exp-badge {
        right: -10px; /* Mniejsze wystawanie na małych ekranach */
    }
    
    .about-intro {
        font-size: 1.2rem;
    }
}
/* ==================== CONTACT ==================== */
.contact-box-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    width: 100%; max-width: 1200px; margin: 0 auto;
    align-items: stretch;
}

.contact-form-side {
    background: var(--clr-card-bg); border: 1px solid var(--clr-accent);
    border-radius: 30px; padding: 50px;
    /* GLOW W BASE STYLE (DARK MODE) */
    box-shadow: 0 0 30px var(--clr-accent-dim);
    backdrop-filter: blur(10px);
}

.contact-info-side {
    background: var(--clr-card-bg); border: 1px solid var(--clr-accent-dim);
    border-radius: 30px; padding: 50px;
    /* GLOW W BASE STYLE (DARK MODE) */
    box-shadow: 0 0 30px var(--clr-accent-dim);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: flex-start; gap: 40px;
}

.contact-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; color: var(--clr-text); }
.contact-subtitle { margin-bottom: 30px; font-size: 1.1rem; }
.info-header { margin-bottom: 0; } 

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.input-row { display: flex; gap: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--clr-accent-dim);
    padding: 15px; border-radius: 10px; color: var(--clr-text); outline: none;
    font-size: 1rem; transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--clr-accent); box-shadow: 0 0 15px var(--clr-accent-dim); }

.info-items { display: flex; flex-direction: column; gap: 30px; }
.info-item { display: flex; align-items: center; gap: 20px; }
.info-icon { 
    width: 50px; height: 50px; background: rgba(255,49,49,0.1); 
    color: var(--clr-accent); border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; font-size: 1.5rem;
}
.info-icon svg { width: 24px; height: 24px; }
.info-item .label { display: block; font-size: 0.9rem; text-transform: uppercase; color: var(--clr-text-muted); margin-bottom: 5px; }
.info-item .value { font-size: 1.2rem; font-weight: 700; color: var(--clr-text); text-decoration: none; }
.info-item .value:hover { color: var(--clr-accent); }

/* ==================== FOOTER ==================== */
#footer { 
    border-top: 2px solid var(--clr-accent); 
    background: var(--clr-bg); 
    padding: 30px 0; text-align: center;
    position: relative; z-index: 10; 
}
.footer-logo { height: 70px; margin-bottom: 10px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .contact-box-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed; top: 0; right: 0; height: 100vh; width: 80%; max-width: 300px;
        background: var(--clr-bg); border-left: 2px solid var(--clr-accent);
        flex-direction: column; padding: 100px 30px;
        transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-menu.active { transform: translateX(0); }
    .hamburger { display: flex; z-index: 1002; }
    
    .cards-wrapper { flex-direction: column; align-items: center; }
    .website-card { width: 100%; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .about-wrapper { grid-template-columns: 1fr; text-align: center; }
    .about-image { margin-bottom: 40px; display: flex; justify-content: center; }
    .about-text h2 { text-align: center; }
    
    .input-row { flex-direction: column; }
    .contact-box-grid { gap: 40px; }
    
    .process-grid { grid-template-columns: 1fr; }
    .website-card.service-card { width: 100%; }
}

/* ==================== SERVICE PAGE VARIANTS ==================== */
.service-card {
    display: flex; flex-direction: column;
    min-height: 480px; width: clamp(300px, 30%, 400px);
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--clr-accent);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    /* GLOW NA HOVER DLA SERVICE CARD */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--clr-accent-dim);
    border-color: rgba(255, 255, 255, 0.3);
}
.service-card h3 {
    font-size: 2rem; font-weight: 800; color: var(--clr-text); margin: 20px 0; text-transform: uppercase;
}
.service-card .card-icon {
    width: 60px; height: 60px; background: var(--clr-accent); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
    box-shadow: 0 0 15px var(--clr-accent-dim);
}
.service-card .card-icon svg { width: 32px; height: 32px; }
.service-btn {
    margin-top: auto; display: inline-block; color: var(--clr-accent); font-weight: 700;
    text-decoration: none; font-size: 1.1rem; position: relative; padding-bottom: 5px;
}
.service-btn::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--clr-accent); transition: width 0.3s;
}
.service-btn:hover::after { width: 100%; }

.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; width: 90%; max-width: 1400px; margin: 0 auto;
}
.process-card {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    padding: 30px 20px; text-align: center; transition: all 0.3s; position: relative;
}
.process-card:hover {
    background: rgba(255, 255, 255, 0.03); border-color: var(--clr-accent);
    box-shadow: 0 0 20px var(--clr-accent-dim); /* GLOW NA HOVER DLA PROCESU */
}
.step-number {
    font-size: 4rem; font-weight: 900; color: rgba(255, 255, 255, 0.05);
    position: absolute; top: 0; right: 20px; line-height: 1;
}
.process-icon { color: var(--clr-accent); margin-bottom: 15px; height: 50px; }
.process-icon svg { width: 40px; height: 40px; }

/* ==========================================================================
   NAPRAWA LIGHT MODE (FIXES & GLOW RESTORATION)
   Te style nadpisują domyślne ciemne elementy, aby wyglądały dobrze na jasnym tle,
   JEDNOCZEŚNIE PRZYWRACAJĄC GLOW.
   ========================================================================== */

/* 1. NAVBAR po przewinięciu w trybie jasnym */
[data-theme="light"] .nav-container.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* 2. KARTY STANDARDOWE (index.html) w trybie jasnym */
[data-theme="light"] .website-card,
[data-theme="light"] .feature-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* PRZYWRÓCONY GLOW W LIGHT MODE (delikatny cień + glow) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 25px var(--clr-accent-dim);
}
[data-theme="light"] .website-card:hover,
[data-theme="light"] .feature-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 0 40px var(--clr-accent-dim); /* Mocniejszy glow na hover */
    border-color: var(--clr-accent);
}
[data-theme="light"] .feature-icon-wrapper {
     background: rgba(255, 49, 49, 0.15);
}

/* 3. KARTY SERWISOWE (serwis.html) w trybie jasnym */
[data-theme="light"] .service-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--clr-accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05), 0 0 20px var(--clr-accent-dim);
}
[data-theme="light"] .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 30px var(--clr-accent-dim);
}

/* 4. KARTY PROCESU (serwis.html) w trybie jasnym */
[data-theme="light"] .process-card {
     border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .process-card:hover {
     border-color: var(--clr-accent);
     background: rgba(0,0,0,0.03);
     box-shadow: 0 0 20px var(--clr-accent-dim);
}
[data-theme="light"] .step-number {
    color: rgba(0,0,0,0.05);
}

/* 5. FORMULARZE I KONTAKT w trybie jasnym */
[data-theme="light"] .contact-form-side,
[data-theme="light"] .contact-info-side {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.08);
    /* PRZYWRÓCONY GLOW DLA KONTAKTU */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 0 30px var(--clr-accent-dim);
}
[data-theme="light"] .contact-form input, 
[data-theme="light"] .contact-form textarea {
    background: #F5F5F7;
    border: 1px solid #ccc;
    color: #333;
}
[data-theme="light"] .contact-form input:focus, 
[data-theme="light"] .contact-form textarea:focus {
    border-color: var(--clr-accent);
    background: #fff;
    box-shadow: 0 0 15px var(--clr-accent-dim);
}
[data-theme="light"] .info-icon {
    background: rgba(255, 49, 49, 0.15);
}
/* ==================== KURSY / SZKOLENIA PAGE STYLES ==================== */

/* Modyfikacja karty pod kursy */
.course-card {
    justify-content: flex-start;
    min-height: 550px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.course-header .card-icon {
    margin-bottom: 0;
    width: 50px;
    height: 50px;
}

.course-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--clr-accent-dim);
    color: var(--clr-accent);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Szczegóły kursu (Cena/Czas) */
.course-details {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
[data-theme="light"] .course-details {
    border-color: rgba(0, 0, 0, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
}
.detail-value {
    font-weight: 800;
}

/* Lista terminów */
.course-dates-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}
[data-theme="light"] .course-dates-box {
    background: rgba(0, 0, 0, 0.05);
}

.course-dates-box h4 {
    margin-bottom: 10px;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dates-list {
    list-style: none;
    padding: 0;
}

.dates-list li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* --- STATUSY (Rozbudowana paleta) --- */
.status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;       /* Lekko powiększyłem dla czytelności */
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status.green { 
    color: #2ecc71; 
    background: rgba(46, 204, 113, 0.15); 
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status.red { 
    color: #e74c3c; 
    background: rgba(231, 76, 60, 0.15); 
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status.orange { 
    color: #f39c12; 
    background: rgba(243, 156, 18, 0.15); 
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status.blue { 
    color: #3498db; 
    background: rgba(52, 152, 219, 0.15); 
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.status.gray { 
    color: #95a5a6; 
    background: rgba(149, 165, 166, 0.15); 
    border: 1px solid rgba(149, 165, 166, 0.2);
}

.full-width {
    width: 100%;
    text-align: center;
    margin-top: auto; /* Dopycha guzik do dołu */
}
/* ==================== NOWY STYL TERMINÓW (KAFELKI) ==================== */

/* Kontener na kafelki (zamiast zwykłej listy) */
.dates-grid {
    display: grid;
    /* Automatycznie dopasuj kolumny: min 130px szerokości */
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
    margin-top: 10px;
}

/* Pojedynczy kafelek */
.date-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    transition: all 0.3s ease;
}

/* Efekt najechania na kafelek */
.date-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Stylizacja tekstu w kafelku */
.tile-date {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clr-text);
    line-height: 1.2;
}

.tile-time {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 5px; /* Odstęp od statusu */
}

/* Dostosowanie statusu wewnątrz kafelka */
.date-tile .status {
    font-size: 0.7rem;
    width: 100%; /* Rozciągnij status na szerokość (opcjonalnie) */
    text-align: center;
}

/* LIGHT MODE FIX dla kafelków */
[data-theme="light"] .date-tile {
    background: #fdfdfd;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
[data-theme="light"] .date-tile:hover {
    border-color: var(--clr-accent);
    background: #fff;
}
/* ==================== 1. KOLOROWE TAGI (BADGES) ==================== */
/* Domyślny styl .badge zostaje jako baza, te klasy go nadpisują */

.badge.blue {
    border-color: #00d2ff; color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.badge.purple {
    border-color: #bc13fe; color: #bc13fe;
    background: rgba(188, 19, 254, 0.1);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.1);
}

.badge.green {
    border-color: #2ecc71; color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
}

.badge.orange {
    border-color: #ff9f43; color: #ff9f43;
    background: rgba(255, 159, 67, 0.1);
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.1);
}

/* ==================== 2. JUNIOR PAGE REDESIGN (GAMER STYLE) ==================== */

/* Definiujemy gradient tylko dla tej podstrony */
:root {
    --gradient-junior: linear-gradient(135deg, #FF3131 0%, #bc13fe 100%);
}

/* Specjalna klasa na <body> lub sekcję, aby zmienić klimat */
.junior-mode .hero-title span.clr-accent {
    background: var(--gradient-junior);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* Gradient zastępuje cień */
}

/* Karty w stylu "Gaming Card" */
.junior-mode .course-card {
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(15, 10, 36, 0.9), rgba(15, 10, 36, 0.9)), 
                      var(--gradient-junior);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.15); /* Fioletowa poświata */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efekt sprężynowania */
}

.junior-mode .course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(188, 19, 254, 0.25);
}

/* Ikony z gradientem */
.junior-mode .card-icon {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}
.junior-mode .card-icon::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-junior);
    opacity: 0.2; z-index: -1;
}
.junior-mode .card-icon svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Guzik "Zapisz dziecko" - pełny gradient */
.junior-mode .btn-secondary {
    background: var(--gradient-junior);
    color: white;
    border: none;
    font-weight: 800;
    letter-spacing: 1px;
}
.junior-mode .btn-secondary:hover {
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
    transform: scale(1.05);
}

/* Kafelki z datami - bardziej miękkie */
.junior-mode .date-tile {
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(188, 19, 254, 0.2); /* Lekki fioletowy obrys */
}
.junior-mode .date-tile:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: #bc13fe;
}
/* ==================== FIX: LIGHT MODE DLA JUNIOR PAGE (POPRAWIONY) ==================== */

/* 1. Tło karty */
[data-theme="light"] .junior-mode .course-card {
    background-image: linear-gradient(#ffffff, #ffffff), 
                      var(--gradient-junior);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.15);
}

/* 2. Hover */
[data-theme="light"] .junior-mode .course-card:hover {
    box-shadow: 0 20px 40px rgba(188, 19, 254, 0.25);
    background-image: linear-gradient(#ffffff, #ffffff), 
                      var(--gradient-junior);
}

/* 3. Ikony */
[data-theme="light"] .junior-mode .card-icon {
    color: #333;
    border-color: rgba(0,0,0,0.1);
}

/* 4. Kafelki dat */
[data-theme="light"] .junior-mode .date-tile {
    background: #f8f9fa;
    border-color: rgba(188, 19, 254, 0.2);
}

[data-theme="light"] .junior-mode .date-tile:hover {
    background: #ffffff;
    border-color: #bc13fe;
    box-shadow: 0 5px 15px rgba(188, 19, 254, 0.15);
}

/* 5. Teksty */
[data-theme="light"] .junior-mode .tile-date {
    color: #111;
}
[data-theme="light"] .junior-mode .tile-time {
    color: #555;
}
[data-theme="light"] .junior-mode .course-dates-box h4 {
    color: #666;
}
/* ==================== SUCCESS MODAL ==================== */
.modal-overlay {
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1; pointer-events: auto;
}

.modal-content {
    background: var(--clr-bg);
    border: 2px solid var(--clr-accent);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px var(--clr-accent-dim);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 80px; height: 80px;
    background: rgba(46, 204, 113, 0.1); /* Zielony sukces */
    color: #2ecc71;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}
.modal-icon svg { width: 40px; height: 40px; }

/* Obsługa Junior Mode (zmiana kolorów modala) */
.junior-mode .modal-icon {
    background: rgba(188, 19, 254, 0.1);
    color: #bc13fe;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}
.junior-mode .modal-content {
    border-color: #bc13fe;
}
/* ==================== DANE FIRMOWE (UPDATE) ==================== */

/* Styl dla adresu (pozwala na łamanie linii <br>) */
.address-text {
    display: block;
    line-height: 1.4;
    font-style: normal;
}

/* Kontener na NIP i REGON */
.company-data-box {
    display: flex;
    flex-direction: column; /* Jeden pod drugim dla czytelności */
    gap: 5px;
    font-size: 1.1rem;
    color: var(--clr-text);
}

.company-data-box span {
    font-family: monospace; /* Czcionka "komputerowa" do liczb wygląda pro */
    letter-spacing: 0.5px;
}

.company-data-box strong {
    color: var(--clr-text); /* Lub --clr-accent jeśli wolisz */
    font-weight: 700;
}

/* W trybie jasnym (Light Mode) poprawiamy czytelność */
[data-theme="light"] .company-data-box strong {
    color: #000;
}