/* Pełny zaktualizowany style.css - nadpisz istniejący plik */
:root{
    --col-bg: #F4F3EE;
    --col-dark: #463f3a;
    --col-accent: #E0AFA0;
    --col-muted: #8A817C;
}

*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-weight: 500;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--col-bg);
    color: var(--col-dark);
    font-family: "Poiret One", cursive;
    font-size: 20px; /* baza - większa czytelność */
    line-height: 1.5;
}

/* MAIN / TITLE */
#main{ padding: 20px; max-width:1500px; margin:0 auto; }
#title{
    margin: 0 auto 12px;
    max-width:1500px;
    text-align:center;
    color:var(--col-dark);
    font-size: clamp(32px, 8vw, 80px); /* responsywny tytuł */
    height: auto;
    padding: 18px 8px;
}

/* BANNER / NAV */
#banner{
    position: sticky;
    top: 0;
    z-index: 1200;
    background: var(--col-bg);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    padding: 8px 12px;
}

.banner-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    max-width:1500px;
    margin:0 auto;
}

/* nav */
.nav{
    list-style:none;
    display:flex;
    gap:12px;
    align-items:center;
    margin:0;
    padding:0;
}

/* elastyczne przyciski - bez sztywnej szerokości */
.nav li{
    list-style:none;
    margin:0;
}
.nav li a{
    display:block;
    padding:8px 14px;
    text-decoration:none;
    color:var(--col-dark);
    border-radius:10px;
    white-space:nowrap;
    font-size: clamp(16px, 3.4vw, 28px);
}
.nav li:hover a,
.nav li:focus-within a{
    background: var(--col-accent);
    box-shadow: 0 4px 10px rgba(70,63,58,0.08);
}

/* CONTENT / SECTIONS - BOXY (transparent background as requested) */
#content{ max-width:1500px; margin:0 auto; padding:16px; box-sizing:border-box; }

.section{
    background: transparent;
    border-radius: 12px;
    padding: 18px;
    margin: 18px 0;
    overflow:visible;
}

.section-title{
    font-size: clamp(20px,4vw,34px);
    text-align:left;
    margin: 0 0 12px 0;
    color: var(--col-dark);
}

/* ABOUT - side-by-side on desktop, stacked on mobile */
.about-inner{
    display:flex;
    gap:20px;
    align-items:flex-start;
}
.about-img{
    width:40%;
    max-width:480px;
    height:auto;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0;
}
.about-content{
    flex:1 1 auto;
    font-size: 1rem;
}

/* GALERIA - grid 3x na desktop, 2x tablet, 1x mobil */
.photos{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:12px;
    margin-top:12px;
}
.photos img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:10px;
    display:block;
}

/* SERVICES list - karty */
.services-list{
    list-style:none;
    padding:0;
    margin:8px 0 0;
}
.services-list li{
    padding:12px 16px;
    margin:8px 0;
    background: rgba(224,175,160,0.12);
    border-left:4px solid var(--col-accent);
    border-radius:6px;
    font-size:1rem;
    line-height:1.4;
}

/* EQUIPMENT */
.equipment-inner{
    display:flex;
    gap:20px;
    align-items:flex-start;
    margin-top:12px;
}
.equipment-img{
    width:40%;
    max-width:420px;
    height:auto;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0;
}
.equipment-content{ font-size:1rem; line-height:1.5; }

/* LIGHTBOX (jeśli używasz gallery.js) - nie zmieniane dalej */

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 900px){
    .photos{ grid-template-columns: repeat(2, 1fr); }
    .photos img{ height:180px; }
    .about-img{ width:45%; }
    .about-content{ font-size:0.98rem; }
    .equipment-img{ width:45%; }
}

@media (max-width: 600px){
    /* nav: przewijane poziomo, zawsze widoczne u góry */
    .nav{
        gap:10px;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        padding:6px 8px;
    }
    .nav li a{ font-size: 18px; padding:10px 12px; }

    /* sections stacked, images pokazane całe (contain) */
    .about-inner, .equipment-inner{ flex-direction:column; align-items:stretch; gap:12px; }
    .about-img, .equipment-img{ width:100%; height:auto; object-fit:contain; }

    /* galeria 1 kolumna */
    .photos{ grid-template-columns: 1fr; gap:10px; }
    .photos img{ height:160px; }

    /* mniejsze paddingi dla boxów */
    .section{ padding:14px; margin:10px 0; }
    body{ font-size:18px; }
    #title{ font-size: clamp(28px,8vw,44px); padding:12px 6px; text-align:center; }
}

/* safety override: usuń wszystkie sztywne heights które mogły pozostać */
#about, #gallery, #equipment, #services, #trust, #contact, #footer{
    height:auto !important;
    min-height:0 !important;
}

/* ensure nav is visible */
#main-nav, .nav { visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; }