:root {
    /* Paleta kolorów - Marine / Light Theme */
    --primary: #263c68;     /* Główny granat */
    --primary-dark: #1a2b4b;
    --accent: #9d0606;      /* Akcent bordowy */
    --accent-hover: #b91c1c;
    
    --bg-body: #ffffff;
    --bg-alt: #f4f6f8;      /* Bardzo jasny szary/niebieski dla sekcji */
    --bg-card: #ffffff;
    
    --text-main: #1f2937;   /* Ciemny szary zamiast czarnego - lżejszy dla oka */
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius: 8px;
    --container: 1100px;
    --header-height: 70px;
}
*, *::before, *::after {
    box-sizing: border-box;
}
/* 1. KOD DO ZASTĄPIENIA NA GÓRZE PLIKU (ok. linia 20-40) */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    /* ZABEZPIECZENIE: To blokuje poziome przewijanie na poziomie przeglądarki */
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0; /* Dla pewności */
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* ZABEZPIECZENIE: To blokuje treść wychodzącą poza body */
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ZABEZPIECZENIE NAGŁÓWKÓW */
h1, h2, h3, h4, .brand__text {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-weight: 700;
    margin-top: 0;
    /* To sprawi, że długie słowa (np. w H1) zostaną przełamane, zamiast rozpychać ekran */
    word-break: break-word; 
    hyphens: auto;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

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

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* UTILS */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -999px; background: #fff; padding: 10px; z-index: 100; }
.skip-link:focus { left: 0; top: 0; }

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav a:hover {
    color: var(--primary);
}

.nav__cta {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: background 0.3s;
}

.nav__cta:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle__bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh; /* Full screen */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: #000; /* Fallback */
    /* Ustawiamy zdjęcie tła */
    background-image: url('../portmarus.jpg'); 
    background-size: cover;
    background-position: center bottom;
    margin-top: 0;
}

/* Przyciemnienie zdjęcia, aby tekst był czytelny */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(38, 60, 104, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 40px;
}

.kicker {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

/* 2. ZNAJDŹ .hero h1 I PODMIEŃ NA TO: */
.hero h1 {
    /* Zmieniono min z 2.5rem na 2rem dla małych ekranów */
    font-size: clamp(2rem, 5vw, 4rem); 
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 100%; /* Upewniamy się, że nie wystaje */
}

.lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero__features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(157, 6, 6, 0.4);
}

.btn--primary:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
}

.btn--white {
    background-color: white;
    color: var(--primary);
}

.btn--white:hover {
    background-color: #f1f1f1;
}

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

.btn--outline:hover {
    background: var(--primary);
    color: white;
}

.btn--outline-white {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn--outline-white:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    color: white;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section--alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section--dark {
    background-color: var(--primary);
    color: white;
}

.section--dark h2, .section--dark h3, .section--dark p, .section--dark a {
    color: white;
}

.section__head {
    margin-bottom: 50px;
}

.center-text { text-align: center; }

.separator {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 15px auto 20px;
    border-radius: 2px;
}

.separator.left-align { margin-inline: 0; }

.section__head p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-inline: auto;
}

/* CARDS */
.grid {
    display: grid;
    gap: 30px;
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card__icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    margin: 0;
}

.card--flat {
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
}
.card--flat h3 { font-size: 1.5rem; }

/* SPLIT LAYOUT (Offer) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image-wrapper {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: #ccc; /* Kolor zaślepka */
    /* Jeśli masz zdjęcie dzienne, wstaw tu: background-image: url('../dzienne.jpg'); background-size: cover; */
    background: linear-gradient(45deg, var(--bg-alt), #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

.styled-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.styled-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

/* CTA BOX */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 { color: white; margin-bottom: 15px; }
.cta-box p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-inline: auto; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* CHECKLIST */
.checklist {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.checklist li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    color: var(--text-muted);
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
}

/* FAQ */
.faq-group {
    max-width: 800px;
    margin-inline: auto;
}

.faq__item {
    background: white;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    border-radius: var(--radius);
    padding: 15px 20px;
    transition: all 0.2s;
}

.faq__item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq__item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--primary);
    position: relative;
    padding-right: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.2rem;
}

.faq__item[open] summary::after { content: "-"; }

.faq__item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-hover);
}

.contact-info {
    padding: 60px 40px;
    background: var(--primary);
    color: white;
}

.contact-info h2 { color: white; }
.contact-lead { opacity: 0.8; margin-bottom: 40px; }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.contact-list li {
    margin-bottom: 25px;
}

.contact-list .label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 5px;
}

.phone-big {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.map-wrapper {
    min-height: 400px;
}

.footer {
    padding-top: 40px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer__links a {
    color: rgba(255,255,255,0.5);
    margin-left: 20px;
}
.footer__links a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 900px) {
    /* Menu Hamburger - wersja czysta */
    .nav-toggle {
        display: block !important;
        z-index: 1001;
        /* Usunięto czerwony border */
    }
    
    .nav-toggle__bar {
        background-color: var(--primary);
        display: block;
    }

    /* Menu mobilne */
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%; /* Wymuszamy szerokość rodzica */
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border);
        box-sizing: border-box; /* Dla pewności */
    }
    
    .nav.is-open {
        display: flex !important;
    }

    /* Układy */
    .split-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__inner {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Zabezpieczenie mapy */
    .map-wrapper iframe {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero__actions { 
        flex-direction: column; 
        align-items: center; /* Wyśrodkowanie przycisków */
    }
    
    .btn { 
        width: 100%; /* Na małych ekranach przycisk na całą szerokość jest wygodniejszy */
        max-width: 300px; /* Ale bez przesady */
    }
    
    .hero__features { 
        gap: 20px; 
    }
    
    .feature-item { 
        width: 45%; 
    }
    
    /* Zmniejszenie paddingów kontenera na bardzo małych ekranach */
.container {
    /* Zmieniamy to, aby uniknąć problemu z paddingiem */
    width: auto;      /* Zamiast 100% */
    max-width: 100%;
    margin-left: 20px;  /* Margines zamiast paddingu */
    margin-right: 20px;
    padding-left: 0;    /* Zerujemy padding */
    padding-right: 0;
}

/* Dodatkowo zabezpieczamy nagłówek */
.header__inner {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
}
}