/* CSS RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3498DB;
    --primary-dark: #2980B9;
    --dark: #2C3E50;
    --dark-accent: #34495E;
    --light: #ECF0F1;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,62,80,0.85) 0%, rgba(52,152,219,0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-gallery-cta {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.btn-gallery-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(2px);
}

.btn-gallery-cta::after {
    content: ' ↓';
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-gallery-cta:hover::after {
    transform: translateY(3px);
}

/* SLIDESHOW DOTS */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* HEADER STICKY */
.header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: top 0.3s ease;
    padding: 1rem 0;
}

.header.visible {
    top: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

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

/* <picture> jest domyslnie elementem liniowym - bez tego obrazy
   w hero i w kafelkach galerii nie wypelnialyby kontenera */
picture {
    display: block;
}

.hero-slide picture,
.category-thumbnail picture {
    width: 100%;
    height: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.phone-link:hover {
    color: var(--primary-dark);
}

/* SECTION STYLES */
.section {
    padding: 5rem 2rem;
}

/* kotwice w menu: bez tego tytul sekcji chowa sie pod przyklejonym naglowkiem */
.section[id],
.hero[id] {
    scroll-margin-top: 90px;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-accent);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--dark-accent);
    line-height: 1.6;
}

/* GALLERY CATEGORIES */
.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-thumbnail img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.category-hint {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.category-hint::after {
    content: '→';
    transition: transform 0.3s ease;
}

.category-card:hover .category-hint::after {
    transform: translateX(5px);
}

/* AREA SECTION */
.area-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.city-tag {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-value {
    color: var(--dark-accent);
}

.contact-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-value a:hover {
    color: var(--primary-dark);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 2rem;
    text-align: center;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .header-phone {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* UTILITY */
.text-primary {
    color: var(--primary);
}

.hidden {
    display: none;
}

/* ==========================================
   NOWE KOMPONENTY (SEO / KONWERSJA)
   ========================================== */

/* NAWIGACJA W HEADERZE */
.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

/* OKRUSZKI */
.breadcrumbs {
    background: var(--light);
    padding: 1rem 2rem;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: " >";
    color: var(--dark-accent);
    margin-left: 0.5rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* NAGLOWEK PODSTRONY (bez slideshow) */
.page-head {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 7rem 2rem 3.5rem;
    text-align: center;
}

.page-head h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.25;
}

.page-head p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 750px;
    margin: 0 auto 1.75rem;
    opacity: 0.95;
}

.page-head .btn {
    margin: 0.35rem;
}

/* TRESC ARTYKULU / PODSTRONY */
.prose {
    max-width: 820px;
    margin: 0 auto;
}

.prose h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 1.75rem 0 0.65rem;
}

.prose p,
.prose li {
    color: var(--dark-accent);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose a {
    color: var(--primary-dark);
    font-weight: 600;
}

.prose strong {
    color: var(--dark);
}

/* TABELA POROWNAWCZA */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.cmp-table th,
.cmp-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid #dfe6e9;
    font-size: 0.97rem;
}

.cmp-table thead th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

.cmp-table tbody tr:nth-child(even) {
    background: #f7f9fa;
}

.cmp-table td:first-child {
    font-weight: 600;
    color: var(--dark);
}

/* SEKCJA: OD CZEGO ZALEZY KOSZT */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.factor {
    background: var(--white);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow);
}

.factor-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.factor p {
    color: var(--dark-accent);
    font-size: 0.95rem;
    margin: 0;
}

.note-box {
    background: #eaf4fb;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem auto 0;
    max-width: 820px;
}

.note-box p {
    margin: 0;
    color: var(--dark-accent);
}

/* FAQ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
}

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

.faq-item .faq-answer {
    padding: 0 1.5rem 1.35rem;
    color: var(--dark-accent);
}

.faq-item .faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}

/* LINKI GMIN */
.area-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.area-link {
    display: block;
    background: var(--white);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.area-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.area-link strong {
    display: block;
    color: var(--dark);
    font-size: 1.08rem;
    margin-bottom: 0.25rem;
}

.area-link span {
    color: var(--dark-accent);
    font-size: 0.9rem;
}

/* FORMULARZ KONTAKTOWY */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.25rem;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group .req {
    color: #c0392b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--dark-accent);
    margin-bottom: 1.5rem;
}

.form-consent input {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-form .btn {
    width: 100%;
}

.form-alt {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--dark-accent);
}

.form-alt a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

/* KAFELKI KONTAKTOWE (dawne h3 -> div) */
.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* STOPKA */
.footer a {
    color: var(--light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.1rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
    opacity: 0.9;
}

.footer-nap {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.75rem;
    line-height: 1.8;
}

/* PASEK TELEFONU NA MOBILE */
.mobile-call {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .page-head {
        padding: 6rem 1.25rem 2.5rem;
    }

    .breadcrumbs {
        padding: 0.85rem 1.25rem;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

    .mobile-call {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: var(--primary);
        color: var(--white);
        text-align: center;
        padding: 0.9rem;
        font-weight: 700;
        font-size: 1.1rem;
        text-decoration: none;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    body {
        padding-bottom: 3.5rem;
    }
}
