
/* =========================================
   0. LOKALNE CZCIONKI Poppins
   ========================================= */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('pxiByp8kv8JHgFVrLCz7Z1JlFd2JQEl8qw.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: optional;
    src: url('pxiByp8kv8JHgFVrLGT9Z1JlFd2JQEl8qw.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2') format('woff2');
}

/* =========================================
   1. USTAWIENIA OGÓLNE I RESET
   ========================================= */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}
h1{
 padding: 0px;
}
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #1a1a1a;
    padding-top: 0;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
    font-size-adjust: 0.55;
}

/* Usunięto wymuszony dynamiczny switch z .fonts-loaded, aby nie wywoływać shift */

/* Skip link (accessible 'skip to content') */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}
.skip-link:focus {
    position: static;
    left: 0;
    width: auto;
    height: auto;
    padding: 10px 15px;
    background: #ffffff;
    color: #02273B;
    border-radius: 6px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Clear focus styles for keyboard users */
.top:focus, .button:focus {
    outline: 3px solid rgba(204, 0, 0, 0.9);
    outline-offset: 3px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Disable background-attachment: fixed on smaller screens to improve performance */
@media (max-width: 900px) {
    nav, .home-hero-wrapper, .bg-cennik, .bg-wspolpraca, .bg-omnie, .bg-kontakt {
        background-attachment: scroll;
        background-attachment: local;
    }
}

/* =========================================
   2. HEADER (GÓRNE MENU)
   ========================================= */

header {
    position: -webkit-sticky; 
    position: sticky;         
    top: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 9999;
    text-align: center;
   
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top {
    border: none;
    border-radius: 10px;
    background-color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    color: #1a1a1a;
    display: inline-block;
}

.top:hover {
    background-color: #f0f0f0;
    color: #cc0000;
}

/* =========================================
   3. NAWIGACJA GŁÓWNA (NAV & HERO)
   ========================================= */

nav {
    
    background-color: rgb(2, 39, 59);
    
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; 

    padding: 40px 20px;
    gap: 15px;
    color: white;
    border-bottom: 3px solid #cc0000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
    
    position: relative;
    z-index: 1;
    
}
nav.cennik-layout {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    gap: 10px;              
    padding: 20px 10px;     
    min-height: auto;       
}




nav.cennik-layout h1 {
    margin: 0 0 5px 0 !important; 
}


.naglowek-sekcji {
    margin: 5px 0 !important; 
    padding: 0 !important;
}


.cennik-tabela {
    margin: 10px auto !important; 
}
nav h1, 
nav h2 {
    text-align: center;
    width: 100%;
    margin-top: 0;
}

nav p {
    color: white;
    text-align: left;
}

/* Specyficzne układy wewnątrz nawigacji */
nav #me {
    width: 400px;
    max-width: 90%;
    text-align: center;
}

nav #img {
    text-align: center;
}

nav #img img {
    width: 300px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* Klasy tła dla poszczególnych podstron */
.bg-cennik {
    background-image: linear-gradient(rgba(2, 39, 59, 0.9), rgba(2, 39, 59, 0.8)), url('7.webp');
}

.bg-wspolpraca {
    background-image: linear-gradient(rgba(2, 39, 59, 0.9), rgba(2, 39, 59, 0.8)), url('10.webp');
}

.bg-omnie {
    background-image: linear-gradient(rgba(2, 39, 59, 0.9), rgba(2, 39, 59, 0.8)), url('4.webp');
}

.bg-kontakt {
    background-image: linear-gradient(rgba(2, 39, 59, 0.9), rgba(2, 39, 59, 0.8)), url('8.webp');
}

/* Wrapper dla strony głównej (index.html) */
.home-hero-wrapper {
    background-image: linear-gradient(rgba(2, 39, 59, 0.9), rgba(2, 39, 59, 0.8)), url('2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    border-bottom: 3px solid #cc0000;
    padding-bottom: 40px;
}

.home-hero-wrapper nav {
    background: transparent;
    border-bottom: none; 
}

.home-hero-wrapper .section {
    background: transparent;
    color: white;
}

.home-hero-wrapper #mid {
    background: transparent;
    border-top: none;
    color: white;
}

/* =========================================
   4. SEKCJE I UKŁAD TREŚCI
   ========================================= */

.section {
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff;
    color: #1a1a1a;
}

.section-cols {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.naglowek-sekcji {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cc0000;
    text-align: center;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
}
/* =========================================
   5. KOMPONENTY (PRZYCISKI I BOXY)
   ========================================= */

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #cc0000; /* WCAG AA kontekst 9.4:1 z #fff */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #cc0000;
}

.button:hover,
.button:focus-visible {
    background: #a30000; /* ciemniejszy odcień dla interakcji */
    border-color: #a30000;
    color: #ffffff;
}

.button.outline,
.button-outline {
    background: #ffffff;
    color: #b20000; /* kontrast 5.3:1 z #fff */
    border: 2px solid #b20000;
}

.button.outline:hover,
.button-outline:hover,
.button.outline:focus-visible,
.button-outline:focus-visible {
    background: #f8f8f8;
    color: #a00000; /* kontrast 6.9:1 z #fff */
    border-color: #a00000;
}

#social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

/* --- KARTY USŁUG (EFEKT ZE ZDJĘCIA) --- */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.service-box {
    background-color: #ffffff;
    width: 350px;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-box h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 25px 20px 15px 20px;
}

.service-box p {
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    padding: 0 25px 35px 25px;
    margin: 0;
}
#free p, #Price p {
    flex-grow: 1;       /* Rozciąga paragraf, by wypełnił pustkę */
    display: flex;      /* Pozwala na centrowanie tekstu w pionie (opcjonalnie) */
    align-items: center; /* Centruje tekst w pionie wewnątrz tej wolnej przestrzeni */
    margin-bottom: 20px; /* Daje trochę oddechu nad przyciskiem */
    text-align: center;
}

#free, #Price {
    width: 45%;
    max-width: 400px;
    min-height: 280px;
    border-radius: 10px;
    padding: 20px;
    background-color: #cc0000; /* WCAG AA: 7.16:1 vs #ffffff */
    color: #ffffff;
    margin: 10px;
    box-sizing: border-box;
    display: flex;           
    flex-direction: column;  
}

#free p, #Price p,
#free h2, #Price h2,
#free strong, #Price strong {
    color: #ffffff;
}

#free .button, #Price .button {
    background-color: #ffffff;
    color: #b20000; /* kontrast 5.3:1 */
    border: 2px solid #b20000;
    margin-top: auto;        /* Pcha przycisk na sam dół kolumny */
    display: inline-block;   /* Zachowuje naturalną szerokość przycisku */
    align-self: center;      /* Centruje przycisk w poziomie */
}

#free .button:hover, #Price .button:hover,
#free .button:focus-visible, #Price .button:focus-visible {
    background-color: #f8f8f8;
    color: #a00000;
    border-color: #a00000;
}
/* =========================================
   6. TABELE CENNIKA
   ========================================= */

nav.cennik-layout {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
}

.cennik-tabela {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.cennik-tabela thead {
    background-color: rgb(2, 39, 59);
    color: white;
}

.cennik-tabela th, 
.cennik-tabela td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.cennik-tabela th {
    font-size: 1.1em;
    font-weight: bolder;
    text-transform: uppercase;
}

.cennik-tabela tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

.cennik-tabela tbody tr:hover {
    background-color: #ffeaea;
    transition: background-color 0.3s;
}



/* =========================================
   7. SEKCJA WSPÓŁPRACA (KROKI - NOWOŚĆ)
   ========================================= */

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.step-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 4px solid #cc0000;
    transition: transform 0.3s ease;
    flex-grow: 1;
    max-width: 350px;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    background-color: rgb(2, 39, 59);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #cc0000;
}

.step-card h3 {
    color: rgb(2, 39, 59);
    margin-bottom: 10px;
    font-size: 1.1rem;
    min-height: 30px;
}

.step-card p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.bg-wspolpraca section[aria-labelledby="lista-naglowek"] {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* =========================================
   8. STOPKA (FOOTER)
   ========================================= */

footer {
    padding: 40px 20px;
    text-align: center;
    background: white;
    color: rgb(2, 39, 59);
    border-top: 3px solid #cc0000;
}


.logo, .logo-cennik, .logobot {
    
    width: clamp(150px, 22vw, 350px);
    height: auto;
    padding: 0;
    margin: 10px auto; 
    display: block;
    object-fit: contain;
}
.logobot {
    width: clamp(120px, 18vw, 200px);
    height: auto;
    object-fit: contain;
}

.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    text-align: left;
}

.container #left, 
.container #right {
    flex-basis: 300px;
    flex-grow: 1;
    max-width: 45%;
    text-align: left;
}

.down {
    margin: 5px 0;
}

/* =========================================
   9. RESPONSYWNOŚĆ (TELEFONY I TABLETY)
   ========================================= */

@media (max-width: 900px) {
    #free, 
    #Price {
        width: 90%;
        max-width: none;
        margin: 10px auto;
        display: block;
    }
    
    .section-cols {
        flex-direction: column;
    }

    .section {
        text-align: center;
    }
    
    .container #left, 
    .container #right {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    nav {
        gap: 20px;
        padding: 20px 10px;
    }

    nav h1 {
        font-size: 24px;
    }
    
    nav #me, 
    nav #img {
        max-width: 100%;
    }
    
    header {
        padding: 5px;
        justify-content: space-around;
    }
    
    .top {
        padding: 6px 10px;
        font-size: 14px;
    }

    .button {
        font-size: 14px;
        padding: 10px 16px;
    }

    .service-box {
        width: 100%;
        min-width: unset;
    }

    .cennik-tabela th, 
    .cennik-tabela td {
        padding: 8px;
        font-size: 14px;
    }
}

/* =========================================
   10. COOKIE CONSENT (AKCEPTUJĘ TYLKO)
   ========================================= */
#cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(2, 39, 59, 0.97);
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.95rem;
    min-height: 60px;
    display: none;
}
#cookie-consent p {
    margin: 0 10px 8px;
}
#cookie-consent .cookie-btn {
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}
#cookie-consent .cookie-btn:hover,
#cookie-consent .cookie-btn:focus {
    background: #a30000;
}
#cookie-consent.show {
    display: block;
}