/* --- ZMIENNE KOLORYSTYCZNE --- */
:root {
    --primary-color: #F8E5E5;
    --secondary-color: #D4A373;
    --text-dark: #3E2723;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- BAZA --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-image: url('tlo.png');
    background-repeat: repeat; 
    background-attachment: fixed; 
    background-color: #fdfaf7; 
    
    /* --- POPRAWKA: STOPKA ZAWSZE NA DOLE --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3 { font-family: 'Georgia', serif; font-weight: 400; }
main { flex: 1; margin-top: 80px; }

/* --- NAWIGACJA --- */
header {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
}
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; max-width: 1200px; margin: auto;
}
.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-dark); }

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 1.2rem; 
}
.nav-links a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 500; 
    font-family: 'Georgia', serif; 
    font-size: 1.1rem;
    position: relative; 
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--secondary-color); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.btn-order {
    background-color: var(--secondary-color); color: var(--white);
    padding: 0.6rem 1.5rem; border-radius: 30px; text-decoration: none; font-weight: bold; transition: var(--transition);
}
.btn-order:hover { background-color: transparent; color: var(--secondary-color); border: 1px solid var(--secondary-color); }

/* --- WSPÓLNE DLA SEKCJI --- */
section { padding: 4rem 5%; max-width: 1200px; margin: auto; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--secondary-color); margin: 10px auto 0; }
.fade-element { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.fade-element.visible { opacity: 1; transform: translateY(0); }

/* --- STOPKA --- */
footer { background-color: var(--text-dark); color: var(--primary-color); padding: 2rem 5%; text-align: center; margin-top: auto; }

/* --- OKRĄGŁE LOGO --- */
.circle-logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--white);
    transition: var(--transition);
}
.circle-logo:hover {
    transform: scale(1.1);
    border-color: var(--text-dark);
}

/* --- POPRAWKI DLA TELEFONÓW (Mobile) --- */
@media (max-width: 768px) {
    /* Powrót do klasycznego, zawijającego się menu */
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px 5%;
    }
    .circle-logo {
        height: 50px;
        width: 50px;
    }
    .nav-links {
        gap: 0.8rem; 
        flex-wrap: wrap; /* Zakładki znów przechodzą do nowej linii */
        justify-content: center;
        margin-bottom: 5px;
    }
    .nav-links a {
        font-size: 0.95rem; 
    }
    main:not(#home-main) {
        margin-top: 140px; /* Margines dopasowany do dwulinijkowego menu */
    }

    /* Mniejsze napisy na głównym zdjęciu */
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
    .hero-content h2 { font-size: 1.1rem; }
    .hero-content p { font-size: 1rem; padding: 8px 15px; }

    /* Mniejsze marginesy sekcji i wyświetlanie kart w 1 kolumnie */
    section { padding: 3rem 5%; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .cards-container, .gallery-container, .bestsellers-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Dopasowanie formularza kontaktowego */
    .contact-wrapper { grid-template-columns: 1fr; gap: 0; }
    .contact-info, .contact-form-container { padding: 2.5rem 1.5rem; }
}