body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #333;
    line-height: 1.6;
}

header {
    background: #4b4b4b;
    /*#0000FF*/
    color: white;
}

.top-bar {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

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

.hero {
    background-image: url(../pictures/pasek.jpg);
    background-position: center;
    /* background:#555; */
    color: white;
    padding: 20px 20px;
    text-align: center;
}

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

h2 {
    border-left: 6px solid #c9a100;
    padding-left: 10px;
    margin-bottom: 20px;
}

.services,
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* wspólne dla box i galerii – zostaje */
.box,
.gallery-item {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
}

/* KAFEL */
.gallery-item {
    overflow: hidden;
    /* potrzebne do zooma */
    cursor: pointer;
}

/* ZDJĘCIE */
.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    /* proporcje */
    background: #ccc;

    transition: transform 0.4s ease;
    transform-origin: center;
    /* zoom ze środka */
}

/* ZOOM */
.gallery-item:hover img {
    transform: scale(1.25);
}

/* DODATEK-do _blank*/
.gallery-item a {
    display: block;
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;

    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* TU KONIEC MOD.*/
.contact {
    background: #e6e6e6;
    padding: 40px;
}

form {
    max-width: 600px;
    margin: auto;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.rodo {
    font-size: 13px;
    margin-bottom: 15px;
    max-width: 600px;
}

/* ZMIANA CHECKBOXA*/

.rodo label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.rodo input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0 0;
    flex-shrink: 0;
}

/* END ZMIANY */

button {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #000;
}

footer {
    background: #1a1a1a;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.privacy {
    font-size: 14px;
    background: white;
    padding: 30px;
    border: 1px solid #ddd;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c2c2c;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 9999;
}

#cookie-banner a {
    color: #c9a100;
    text-decoration: underline;
}

#cookie-banner button {
    background: #c9a100;
    color: #000;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
}

.email {
    display: none;
    margin-left: 10px;
}

#showEmail:checked~.email {
    display: inline;
}