/* --- UNIWERSALNE USTAWIENIE MODELU PUDEŁKOWEGO --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* --- PODSTAWOWE USTAWIENIA I KOLORY --- */
:root {
    --c-black: #101820;
    --c-beige: #F3E9DD;
    --c-red: #EE2737;
    --c-blue: #65BBE5;
    --c-orange: #FF8300;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: #ffffff);
    color: var(--c-black);
    line-height: 1.6;
    /* Jeśli masz tu tło-obrazek, zostaw je bez zmian */
    background-image: url('background.png');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--c-black);
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- NAGŁÓWEK I NAWIGACJA --- */
.main-header {
    background-color: #fbfbfb9e;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--c-black);
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--c-red);
}
@media (max-width: 768px) {
    /* ... tutaj są inne Twoje style dla mobile, takie jak h1, .main-header, .main-nav itd. ... */

    .hero-content {
        padding: 20px; /* Zmniejszamy padding na mniejszych ekranach */
    }
    
    /* ... tutaj też są inne style ... */
}
/* --- SEKCJA GŁÓWNA (HERO) --- */
#hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* UWAGA: Wstaw tutaj tło dla sekcji hero */
    background: url('hero-background.png') no-repeat center center/contain;
    color: rgb(34, 34, 34); /* Zakładając ciemne tło */
    padding: 0 20px;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.8); /* Półprzezroczysta nakładka dla czytelności */
    padding: 40px;
    border-radius: 10px;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: white;
}

#hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: var(--c-red);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #d42330;
    transform: translateY(-2px);
}

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

.beer-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.beer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.beer-image {
    max-height: 300px;
    margin-bottom: 1rem;
}

.beer-card h3 {
    color: var(--c-red);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.2rem;
}

.beer-style {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.beer-desc {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1rem;
}

.beer-alk {
    font-weight: 700;
    color: var(--c-black);
}

/* --- SEKCJA HISTORIA --- */
#historia {
    background-color: white;
}
.historia-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.historia-text {
    flex: 1;
}

.historia-image {
    flex: 1;
}

.historia-image img {
    width: 100%;
    border-radius: 8px;
}


/* --- STOPKA (KONTAKT) --- */
footer {
    background-color: var(--c-black);
    color: var(--c-beige);
    text-align: center;
    padding: 40px 20px;
}

footer h2 {
    color: white;
}

footer a {
    color: var(--c-blue);
    text-decoration: none;
}

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

.contact-email {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.social-media a {
    margin: 0 10px;
    font-weight: 700;
    color: white;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #aaa;
}
.copyright a {
    color: #aaa;
}

/* --- PRZYCISK HAMBURGERA (NOWY KOD) --- */
.hamburger-button {
    display: none; /* Domyślnie ukryty na desktopie */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010; /* Wyżej niż menu */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--c-black);
    transition: all 0.3s ease-in-out;
}

    .hero-img {
        background: url('napispoziomy.svg')  no-repeat center center/contain;
        min-height: 200px;
    }
/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    /* MODYFIKACJA NAGŁÓWKA NA MOBILE */
    .main-header {
        padding: 10px 20px;
    }
    
    /* NOWY KOD DLA MENU NA MOBILE */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(16, 24, 32, 0.95); /* Czerń z przeźroczystością */
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .main-nav.is-active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 20px 0;
    }

    .main-nav a {
        color: white; /* Zmiana koloru linków na białym tle */
        font-size: 1.5rem;
    }

    /* POKAZANIE PRZYCISKU HAMBURGERA NA MOBILE */
    .hamburger-button {
        display: block;
    }

    /* ANIMACJA PRZYCISKU DO 'X' */
    .hamburger-button.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-button.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: white; /* Zmiana koloru na tle otwartego menu */
    }
    .hamburger-button.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: white; /* Zmiana koloru na tle otwartego menu */
    }
    
    .historia-content {
        flex-direction: column;
    }

    .container-dla-obrazka {
    display: flex;
    justify-content: center; /* Wyśrodkowuje w poziomie */
    align-items: center;    /* Wyśrodkowuje w pionie */
}

