/* --- ORYGINALNY CSS --- */
body {
    font-family: Open, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: #e4cba8;
    color: #4b2e1b;
    border-bottom: #6b7b4e 3px solid;
    padding: 10px 0;
}

header img {
    height: 80px;
    width: auto;
}

header h1 {
    margin: 0 20px;
    font-size: 28px;
}

/* Menu */
header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav li {
    padding: 0;
}

header a {
    color: #4b2e1b;
    text-decoration: none;
    font-size: 20px;
}

/* Sekcja główna */
.main-section {
    position: relative;
    min-height: 500px;
    background: url("images/kitchen-2165756_640.jpg") center/cover no-repeat;
    border-bottom: #6b7b4e 3px solid;
    color: #4b2e1b;
    overflow: hidden;
}

.main-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(2px);
    transform: scale(1.1);
    z-index: 1;
}

.main-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.4);
    z-index: 2;
}

.main-section .container {
    position: relative;
    z-index: 3;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px;
}

.main-section h2 {
    color: #6b7b4e;
}

/* Stopka */
footer {
    background: #e4cba8;
    color: #4b2e1b;
    text-align: center;
    margin-top: auto;
}

/* Kontakt */
.contact-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 10px;
}

.contact-form, .contact-image {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* centrowanie poziome w kolumnie */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-form button {
    background-color: #6b7b4e;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #4b2e1b;
}

.rodo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 5px;
}

/* Hamburger - ukryty na desktopie */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Na małych ekranach */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }
    header nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        width: 100%;
    }

    header nav.active {
        max-height: 500px;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
    }

    header nav li {
        padding: 10px 0;
        border-top: 1px solid #6b7b4e;
    }
}

/* --- GALERIA REALIZACJI --- */
.realization {
    margin-bottom: 50px;
}

.gallery-wrapper {
    position: relative;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
}

.gallery {
    display: flex;
    gap: 10px;
}

.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.gallery-wrapper button {
    background: rgba(107,123,78,0.8);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}

.scroll-left {
    margin-right: 5px;
}

.scroll-right {
    margin-left: 5px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

.lightbox .close {
    top: 20px;
    right: 30px;
}

.lightbox .prev {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
}

.lightbox .next {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1024px) {
    .gallery img {
        width: 180px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .gallery img {
        width: 150px;
        height: 120px;
    }

    .gallery-wrapper button {
        font-size: 22px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .gallery img {
        width: 120px;
        height: 90px;
    }

    .gallery-wrapper button {
        font-size: 20px;
        padding: 6px;
    }
}

/* Wrapper wszystkich realizacji */
.realizations-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.realization {
    flex: 1 1 calc(50% - 15px);
    box-sizing: border-box;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .realization {
        flex: 1 1 100%;
    }
}

/* --- Modal / Baner cookie --- */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: "Arial", sans-serif;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: #f9f9f9;
    color: #1c1c1c;
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: left;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    animation: slideDown 0.3s ease forwards;
}

.cookie-modal-content h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-modal-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-modal-content label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.cookie-modal-content label p {
    font-size: 13px;
    margin: 4px 0 8px 20px;
    color: #555;
}

.cookie-buttons, .modal-buttons {
    margin-top: 15px;
    text-align: right;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary {
    background-color: #ddd;
    color: #1c1c1c;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    font-weight: 500;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.85;
}

@keyframes slideDown {
    from {transform: translateY(-20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* --- Styl dla polityki prywatności --- */
.policy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.policy-container h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.policy-container h2 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

.policy-container p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.policy-container a {
    color: #0066cc;
    text-decoration: none;
}

.policy-container a:hover {
    text-decoration: underline;
}

.policy-container footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

/* --- NAGŁÓWEK POPRAWIONY --- */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-contact i {
    color: black;
    margin-right: 5px;
}

.header-contact a {
    color: black;
    text-decoration: none;
}

.header-contact a:hover {
    text-decoration: underline;
}

/* Box kroków – prawa kolumna */
.contact-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.contact-steps-box {
    background-color: #d9d9d9;
    padding: 20px;
    border-radius: 8px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.contact-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.step {
    margin-bottom: 12px;
}

.step-client {
    font-weight: bold;
    display: block;
}

.step-me {
    font-style: italic;
    display: block;
    margin-left: 5%;
}

@media (max-width: 768px) {
    /* Nagłówek: logo + h1 + kontakt */
    header .container {
        flex-direction: column;
        align-items: center; /* centrowanie wszystkich elementów w kolumnie */
        gap: 10px;
    }

    header img {
        height: 60px;
        margin-bottom: 5px;
    }

    header h1 {
        font-size: 22px;
        margin: 0;
        text-align: center; /* tytuł na środku */
    }

    .header-contact {
        flex-direction: column; /* telefon i mail jeden pod drugim */
        align-items: center;    /* wyśrodkowanie */
        gap: 5px;               /* odstęp między wierszami */
    }

    .header-contact .contact-line {
        display: flex;
        align-items: center;    /* ikona + tekst w jednej linii */
        gap: 5px;
    }

    /* Formularz i box kroków */
    .contact-container {
        flex-direction: column;
        align-items: center;
        padding: 15px; /* dodatkowe marginesy wewnętrzne */
    }

    .contact-form, .contact-image {
        width: 100%;
    }

    .contact-steps-box {
        max-width: 90%; /* box nie wychodzi poza ekran */
        box-sizing: border-box;
    }

    .step-me {
        margin-left: 10px; /* przesunięcie kursywy w wąskich ekranach */
    }
}