:root {
    color-scheme: light dark;
    --bg-color: #172A52;       /* Oryginalny granatowy kolor strony */
    --text-color: #ffffff;
    --goku-orange: #FF5E00;    /* Pomarańczowy akcent Goku dla podkreśleń */
    --border-color: #FF5E00;   /* Pomarańczowe linie podkreśleń menu i stopki */
    --card-bg: rgba(255, 255, 255, 0.15); /* Jaśniejszy granatowy podkład kart */
    --font-heading: 'Caveat Brush', cursive;
    --font-body: 'Inter', Arial, sans-serif;
}

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

/* GLOBALNE DOCIĄGNIĘCIE KOLORÓW I BLOKADA AUTO-DARK MODE */
html, body {
    background-color: #172A52 !important;
    color: #ffffff !important;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
}

header {
    width: 100%;
    background-color: rgba(23, 42, 82, 0.95) !important;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 100;
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none; 
}

/* ZABEZPIECZENIE LOGO W LEWYM GÓRNYM ROGU */
.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
}

.nav-links a {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px 10px;
    white-space: nowrap;
}

.nav-links a.active, .nav-links a:hover {
    border-bottom: 2px solid var(--border-color);
}

/* PRZYCISK HAMBURGERA DLA TELEFONÓW */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--border-color);
    font-size: 28px;
    cursor: pointer;
}

/* MAIN */
main { 
    flex: 1; 
    padding: 30px 0 60px 0; 
}

/* LOGO NAD WACHLARZEM */
.hero-top-logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.hero-logo {
    width: 560px;
    max-width: 95%;
    height: auto;
    display: block;
    margin: 0 auto;
    
}

/* WACHLARZ KART - KOMPUTERY */
.hero-stacked-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    min-height: 500px;
    touch-action: pan-y;
}

.hero-stacked-card {
    position: absolute;
    width: 310px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
                z-index 0.45s ease, 
                opacity 0.45s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform, z-index, opacity;
}

.pure-quality-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    pointer-events: none;
}

/* POZYCJE ZDJĘĆ */
.pos-left {
    transform: translateX(-210px) scale(0.88);
    z-index: 2;
    opacity: 0.85;
}

.pos-center {
    transform: translateY(-10px) scale(1.08);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.pos-right {
    transform: translateX(210px) scale(0.88);
    z-index: 2;
    opacity: 0.85;
}

.pos-left:hover {
    opacity: 1;
    transform: translateX(-210px) scale(0.92);
}

.pos-right:hover {
    opacity: 1;
    transform: translateX(210px) scale(0.92);
}

/* TEKST POD WACHLARZEM */
.hero-bottom-text {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hero-bottom-text h1 {
    font-family: var(--font-heading);
    font-size: 46px;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff !important;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--goku-orange) !important;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-bottom-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-align: justify;
    text-justify: inter-word;
}

/* LISTA SPECJALIZACJI POD OPISEM Z POMARAŃCZOWĄ KROPKĄ */
.hero-specialties-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 35px 0;
    text-align: left;
}

.hero-specialties-list li {
    font-size: 17px;
    margin-bottom: 15px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
    color: #ffffff !important;
}

.hero-specialties-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--goku-orange) !important;
    font-weight: 700;
    font-size: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff !important;
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
    width: 100%;
}

.intro-text { 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto 40px auto; 
    font-size: 17px; 
    color: #ffffff !important; 
}

/* O MNIE */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-text { 
    flex: 1.2; 
    min-width: 300px; 
    font-size: 17px; 
    color: #ffffff !important; 
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ffffff !important;
}

.about-image {
    flex: 0.8;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-file {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* SIATKI KART (JAK PRACUJĘ, OFERTA, EFEKTY) */
.cards-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card, .price-card, .gallery-item {
    border-radius: 8px;
    padding: 30px;
    background: var(--card-bg) !important;
    text-align: center;
}

.contact-box {
    border-radius: 8px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg) !important;
    width: 100%;
}

.card h3, .price-card h3, .contact-box h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 10px;
    color: #ffffff !important;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
}
.gallery-item h4 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-top: 15px;
    color: #ffffff !important;
}

.price {
    font-family: var(--font-heading);
    font-size: 36px;
    margin: 10px 0;
    color: var(--goku-orange) !important;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
}
.cta-highlight {
    color: var(--goku-orange) !important;
    font-weight: 700;
    margin-top: 12px;
}

.gallery-placeholder {
    width: 100%;
    height: 280px;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px dashed rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

/* PRZYCISK */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    background: #ffffff !important;
    color: #172A52 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
    border: 2px solid #ffffff !important;
}

.btn:hover { 
    background: var(--card-bg) !important;
    color: #ffffff !important; 
    border-color: #ffffff !important;
}

/* STOPKA */
footer { 
    padding: 30px 0; 
    text-align: center; 
    font-size: 14px; 
    border-top: 2px solid var(--border-color); 
}

/* BEZWZGLĘDNE NADPISANIE DLA SYSTEMOWEGO TRYBU CIEMNEGO */
@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #172A52 !important;
        color: #ffffff !important;
    }
    header {
        background-color: rgba(23, 42, 82, 0.95) !important;
    }
    .hero-bottom-text h1, 
    .hero-bottom-text p, 
    .hero-specialties-list li, 
    .about-text p,
    .section-title,
    .nav-links a {
        color: #ffffff !important;
    }
    .hero-subtitle,
    .hero-specialties-list li::before {
        color: #FF5E00 !important;
    }
    .btn {
        background-color: #ffffff !important;
        color: #172A52 !important;
    }
}

/* WERSJA MOBILNA NA TELEFONY */
@media (max-width: 768px) {
    .hero-top-logo-wrapper {
        margin-bottom: 10px;
    }

    .hero-logo {
        width: 380px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-bottom-text p {
        text-align: left;
    }

    .hero-stacked-wrapper {
        min-height: 380px;
        margin-bottom: 30px;
    }

    .hero-stacked-card {
        width: 210px;
    }

    .pos-left {
        transform: translateX(-75px) scale(0.82);
        opacity: 0.7;
    }

    .pos-center {
        transform: translateY(-8px) scale(1.05);
        opacity: 1;
    }

    .pos-right {
        transform: translateX(75px) scale(0.82);
        opacity: 0.7;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #172A52 !important;
        border-bottom: 2px solid var(--border-color);
        padding: 20px 0;
        gap: 15px;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .about-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .section-title { font-size: 40px; -webkit-text-stroke: 1.5px #000000; }
    .nav-logo-img { height: 36px; }
}

/* ZNAK WODNY - LOGO AR W TLE STRONY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: var(--real-vw, 100vw);
    height: var(--real-vh, 100vh);
    background-image: url('logo-ar.png');
    background-repeat: no-repeat;
    background-position: 52.5% 20%;
    background-size: var(--wm-size, 250vw);
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.07;
    pointer-events: none;
}
header, main, footer {
    position: relative;
}

header .container {
    max-width: 1220px;
}
.nav-links li:last-child {
    margin-left: 30px;
}
.container.wide {
    max-width: 1400px;
}
.price-card h3.pakiet-title {
    color: #ffffff !important;
}
.pakiet-subtitle {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 26px;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
}
.pakiet-line {
    font-family: var(--font-heading);
    font-size: 18px;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    color: #ffffff !important;
}
.orange-price {
    color: var(--goku-orange) !important;
    font-weight: 700;
}
.pakiet-block {
    margin-top: -6px;
}
.pakiet-block-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #ffffff !important;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    margin-bottom: -8px;
}
.pakiet-price-main {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--goku-orange) !important;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    margin-bottom: -8px;
}
.pakiet-price-total {
    font-family: var(--font-heading);
    font-size: 25px;
    color: var(--goku-orange) !important;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    margin-top: -8px;
}
.pakiet-card-bg {
    background: rgba(255, 235, 60, 0.60) !important;
}
.card h3.method-title {
    color: var(--goku-orange) !important;
}
.wiecej-o-mnie-tekst {
    font-size: 24px;
}
.btn-small {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    background: #ffffff !important;
    color: #172A52 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 2px solid #ffffff !important;
    margin-top: 12px;
}
.btn-small:hover {
    background: var(--card-bg) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}