:root {
    /* 2026 Modern Color Palette */
    --primary-color: #ff8c00; /* Railway Orange */
    --primary-glow: rgba(255, 140, 0, 0.6);
    --primary-light: #ffb347;
    --primary-dark: #cc7000;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --secondary-color: #2c3e50; /* Dark Blue-Grey */
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --bg-card: rgba(20, 20, 28, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-main: #e8e8ec;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --nav-bg: rgba(8, 8, 12, 0.92);
    --nav-height: 80px;
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Modern Gradients */
    --gradient-1: linear-gradient(135deg, #ff8c00 0%, #ff6b00 50%, #ff4500 100%);
    --gradient-2: linear-gradient(45deg, rgba(255,140,0,0.1) 0%, rgba(255,69,0,0.05) 100%);
    --gradient-mesh: 
        radial-gradient(at 40% 20%, rgba(255, 140, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(0, 212, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(255, 140, 0, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%);
    --gradient-border: linear-gradient(135deg, var(--primary-color), var(--accent-cyan), var(--accent-purple));
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 40px rgba(255, 140, 0, 0.15);
    --shadow-neon: 0 0 20px rgba(255, 140, 0, 0.5), 0 0 40px rgba(255, 140, 0, 0.3), 0 0 60px rgba(255, 140, 0, 0.1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    cursor: none;
}

/* Ukrycie domyślnego kursora na wszystkich elementach */
*, *::before, *::after {
    cursor: none !important;
}

/* --- NIESTANDARDOWY KURSOR --- */
.cursor {
    /* Hack dla Safari i mix-blend-mode */
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none !important;
    z-index: 99999;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-transform: translate(-50%, -50%) translateZ(0);
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-mix-blend-mode: difference;
    mix-blend-mode: difference;
    /* Dodatkowe hacki dla Safari - często gubi mix-blend-mode dla fixed / z-index */
    isolation: isolate;
    box-shadow: 0 0 10px var(--primary-glow);
}

.cursor-dot {
    will-change: transform, left, top;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease;
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-glow);
}

.cursor.hover {
    -webkit-transform: translate(-50%, -50%) scale(1.8) translateZ(0);
    transform: translate(-50%, -50%) scale(1.8) translateZ(0);
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-glow);
}

.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(0.5);
}

/* Cursor Trail Effect */
.cursor-trail {
    will-change: transform, left, top;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-trail.active {
    opacity: 0.4;
    animation: trailFade 0.5s ease forwards;
}

@keyframes trailFade {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(0); opacity: 0; }
}

/* --- PASEK POSTÊPU PRZEWIJANIA --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow);
}

/* --- ANIMACJE ODKRYWANIA (SCROLL REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* --- EFEKT FALI PRZYCISKU --- */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ZADANIE 1: Agresywne Skalowanie Desktopowe */
@media (min-width: 992px) {
    html {
        font-size: clamp(10px, 0.7vw, 18px); /* Agresywny clamp */
    }

    /* ZADANIE 2: Responsywne Logo */
    .logo img {
        width: 12vw;
        max-width: 180px;
        min-width: 100px; /* Żeby nie zniknęło */
        height: auto;
    }

    /* ZADANIE 3: Skalowanie marginesów w menu */
    .nav-links {
        gap: 0.5vw; /* Relatywny odstęp między elementami */
    }

    .nav-links a {
        padding: 10px 0.6vw; /* Padding zależny od szerokości */
    }

    /* ZADANIE 4: Kompaktowa sekcja kontaktowa */
    .nav-contact-extra {
        gap: 1em;
        margin-left: 1em;
    }

    .nav-contact-item {
        font-size: 0.9em;
        gap: 0.5em;
    }
    
    .nav-contact-item i {
        font-size: 1.2em;
    }
}

h1, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-white {
    color: var(--white) !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 10px 0 30px 0;
}

.center-divider {
    margin: 10px auto 50px auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    animation: btnPulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9f1c 0%, #ff7b00 50%, #ff5500 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.5), var(--shadow-neon);
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 140, 0, 0.5), 0 0 40px rgba(255, 140, 0, 0.2); }
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-neon);
    transform: translateY(-3px);
}

/* --- NAWIGACJA --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(8, 8, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(8, 8, 12, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.navbar .container {
    max-width: 98%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-wrap: nowrap;
}

.logo {
    flex-shrink: 0;
    margin-right: 20px;
}

.logo img {
    height: 65px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 15px;
    overflow: visible;
    flex-wrap: nowrap;
}

.nav-links a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 6px 5px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

.nav-links a:focus {
    outline: none;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-contact-extra {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 20px;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Animacja ikony telefonu - dzwonienie */
.nav-contact-item i.fa-phone-volume {
    animation: phoneRing 3s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    7% { transform: rotate(-15deg); }
    14% { transform: rotate(15deg); }
    21% { transform: rotate(-15deg); }
    28% { transform: rotate(15deg); }
    35% { transform: rotate(0deg); }
}

/* Animacja ikony emaila - podskakiwanie */
.nav-contact-item i.fa-envelope {
    animation: emailBounce 4s ease-in-out infinite;
    animation-delay: 2.5s;
}

@keyframes emailBounce {
    0%, 100% { transform: translateY(0); }
    12% { transform: translateY(-5px); }
    24% { transform: translateY(0); }
    36% { transform: translateY(-3px); }
    48% { transform: translateY(0); }
}

.nav-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.nav-contact-label {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    margin-left: auto;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

.mobile-contact-li {
    display: none;
}

@media (max-width: 1350px) {
    .nav-contact-label {
        display: none;
    }
    /* Usunięto sztywne style (padding, height, font-size), 
       aby zadziałało płynne skalowanie z definicji powyżej (min-width: 992px) */
}

@media (max-width: 992px) {
    .nav-contact-extra {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .navbar .container {
        padding-right: 20px;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: flex-start;
        background-color: var(--bg-darker);
        width: 100%;
        height: 100vh;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 100px;
        margin: 0;
        gap: 0;
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 20px 0;
        width: 100%;
        display: block;
        text-align: center;
    }

    .mobile-contact-li {
        display: block;
        margin-top: auto;
        padding: 30px 20px;
        background: rgba(255, 140, 0, 0.05);
        border-top: 2px solid var(--primary-color);
        width: 100%;
    }

    .mobile-contact-box {
        text-align: center;
        color: #ddd;
    }

    .mobile-contact-box p {
        margin: 10px 0;
        font-size: 1rem;
    }

    .mobile-contact-box i {
        color: var(--primary-color);
        margin-right: 10px;
    }
}
/* --- KONIEC NAWIGACJI --- */

/* --- SEKCJA HERO --- */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/img/bg0.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(1.6rem, 7vw, 2.8rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: heroTitleGlow 3s ease-in-out infinite;
}

@keyframes heroTitleGlow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px transparent; }
    50% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 30px var(--primary-glow), 0 0 60px rgba(255, 140, 0, 0.2); }
}

.handwritten {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    display: inline-block;
    animation: handwrittenWave 2s ease-in-out infinite;
}

@keyframes handwrittenWave {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.hero-content p {
    font-size: clamp(1.1rem, 4vw, 1.9rem);
    margin-bottom: 40px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

/* --- SEKCJA O NAS --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ZADANIE 2: Justowanie tekstu w sekcji O Nas */
.about-text p {
    text-align: justify;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d0d0d0;
}

/* Animacja zdjęcia w sekcji O Nas */
.about-image {
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.about-image:hover img {
    transform: scale(1.08);
}

/* --- KARTY USŁUG I SZKOLEŃ --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.1s ease-out, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

/* Animated Border Gradient */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    background: var(--gradient-1);
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { background: linear-gradient(0deg, var(--primary-color), var(--primary-light), var(--primary-dark)); }
    33% { background: linear-gradient(120deg, var(--primary-color), var(--primary-light), var(--primary-dark)); }
    66% { background: linear-gradient(240deg, var(--primary-color), var(--primary-light), var(--primary-dark)); }
    100% { background: linear-gradient(360deg, var(--primary-color), var(--primary-light), var(--primary-dark)); }
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* INTERAKCJA: Icon Animation dla kart usług */
.card:hover i {
    transform: scale(1.3) rotate(15deg);
    color: #fff;
    text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-glow);
}

.card:hover {
    background: linear-gradient(135deg, var(--bg-card), rgba(255,140,0,0.1));
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.15), 0 0 60px rgba(255, 140, 0, 0.05);
}

/* INTERAKCJA: Icon Swap dla doradztwa */
.card-doradztwo:hover i {
    transform: rotateY(180deg);
}

.card-doradztwo:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card), rgba(255,140,0,0.08));
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.1);
}

/* ZADANIE 3: Przywrócenie kafelków w Kursy Kolejowe (Desktop) */
.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

/* INTERAKCJA: Icon Pulse dla kursów */
.course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.course-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.1), transparent);
    transition: left 0.5s ease;
}

.course-item:hover::after {
    left: 100%;
}

.course-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.course-item:hover i {
    animation: iconPulse 0.8s ease infinite;
    text-shadow: 0 0 15px var(--primary-glow);
}

.course-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card), rgba(255,140,0,0.05));
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.1);
    transform: translateX(5px);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.course-item h4 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

/* --- KARTY SZKOLEÑ --- */
.trainings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.training-card ul {
    color: var(--white);
}

.training-card li {
    color: var(--white);
}

.training-card span:not(.text-primary) {
    color: var(--white);
}

/* --- SEKCJE PARALLAX --- */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 140, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 212, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

.relative-content {
    position: relative;
    z-index: 2;
}

/* --- ANIMATED SECTION DIVIDERS --- */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    fill: var(--bg-dark);
}

/* --- FORMULARZ KONTAKTOWY --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.form-row input {
    flex: 1 1 30%;
    min-width: 250px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 5px;
    font-family: inherit;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Wyjtek dla checkboxa RODO */
.contact-form input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    padding: 0 !important;
    min-width: 14px;
    flex: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2), inset 0 0 10px rgba(255, 140, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* --- STOPKA --- */
footer {
    background: linear-gradient(180deg, #000 0%, #0a0a0f 100%);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    position: relative;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- CZĄSTECZKI W SEKCJI HERO --- */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 10s infinite ease-in-out;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow), 0 0 30px rgba(255, 140, 0, 0.3);
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0) rotate(0deg);
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1) rotate(360deg);
    }
}

/* --- SIATKA W SEKCJI HERO --- */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 140, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
    animation: gridPulse 4s ease-in-out infinite, gridMove 20s linear infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* --- ANIMOWANE BLOKI GRADIENTOWE (BLOBS) --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    -webkit-mix-blend-mode: screen;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -100px;
    left: -100px;
    animation: blobMove1 10s ease-in-out infinite;
    box-shadow: 0 0 100px var(--primary-glow);
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-light), transparent 70%);
    bottom: -80px;
    right: -80px;
    animation: blobMove2 8s ease-in-out infinite;
    box-shadow: 0 0 100px var(--primary-glow);
}

@keyframes blobMove1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        border-radius: 50% 60% 40% 70%;
    }
    25% { 
        transform: translate(100px, 80px) scale(1.2) rotate(45deg); 
        border-radius: 60% 40% 70% 50%;
    }
    50% { 
        transform: translate(50px, 150px) scale(0.9) rotate(90deg); 
        border-radius: 40% 70% 50% 60%;
    }
    75% { 
        transform: translate(-50px, 100px) scale(1.15) rotate(135deg); 
        border-radius: 70% 50% 60% 40%;
    }
}

@keyframes blobMove2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        border-radius: 60% 50% 70% 40%;
    }
    25% { 
        transform: translate(-80px, -100px) scale(1.25) rotate(-45deg); 
        border-radius: 50% 70% 40% 60%;
    }
    50% { 
        transform: translate(-150px, -50px) scale(0.85) rotate(-90deg); 
        border-radius: 70% 40% 60% 50%;
    }
    75% { 
        transform: translate(-60px, -120px) scale(1.1) rotate(-135deg); 
        border-radius: 40% 60% 50% 70%;
    }
}

/* --- DOSTOSOWANIA MOBILNE --- */
@media (max-width: 992px) {
    .about-container,
    .contact-wrapper,
    .trainings-grid,
    .courses-list {
        grid-template-columns: 1fr !important; /* Wymuś 1 kolumnę na mobile */
    }

    .form-row input {
        flex: 1 1 100%;
    }
}

/* --- PRZYCISK POWROTU DO GÓRY --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.scroll-to-top.visible {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- DOSTÊPNO¦Æ: LINK POMIJNIÊCIA NAWIGACJI --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* --- DOSTÊPNO¦Æ: STYLE FOKUSU --- */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- MOBILNE: WY£¡CZENIE PARALLAX DLA WYDAJNO¦CI --- */
@media (max-width: 768px) {
    .parallax,
    .hero-section {
        background-attachment: scroll !important;
    }
}

/* --- STYLE DRUKOWANIA --- */
@media print {
    * {
        background: white !important;
        color: black !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .hamburger,
    .scroll-to-top,
    .hero-section,
    .parallax,
    .overlay,
    .btn,
    form,
    iframe {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    footer {
        border-top: 1px solid #000;
        padding-top: 10px;
    }
}

/* --- CHECKBOX RODO POMARANCZOWY --- */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-right: 6px;
}

input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
}