:root {
    --primary-color: #cea500;
    --primary-color-darker: #b89400;
    --secondary-color: #222;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Poppins', sans-serif;
    --nav-height: 70px;
    --darker-primary-color: #cfa600;
}


html {
    font-display: swap;
  }


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-family);
    background: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    
}

header {
    background: url('img/tło.webp') center/cover no-repeat fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}


h4 {
    min-height: 100px;
    line-height: 1.2;
  }
 
header h4 {
    min-height: 100px;
    font-size: clamp(3em, 10vw, 6em);
    font-weight: 700;
    margin-bottom: 0; 
    color: var(--primary-color); 
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

nav {
    background: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: var(--nav-height);
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.1em;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a::after { 
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

section {
    padding: 80px 20px;
    max-width: 1200px; 
    margin: 40px auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    scroll-margin-top: var(--nav-height); 
}

section h2 {
    font-size: 2.5em;
    color: var(--darker-primary-color);
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--darker-primary-color);
    margin: 10px auto 0;
}


section p {
    font-size: 1.1em;
    color: var(--dark-gray);
    max-width: 800px; 
    margin: 0 auto 20px auto;
}

.services-container {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center; 
}

.service-item {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-item h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    font-size: 1em;
    color: var(--dark-gray);
    margin-bottom: 0;
}




.gallery-grid img {
    aspect-ratio: 4/3;
    width: 100%; 
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
}


.lightbox {
    display: none; 
    position: fixed;
    z-index: 1001; 
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); 
    -webkit-animation: fadeIn 0.5s; 
            animation: fadeIn 0.5s; 
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    -webkit-animation: zoomIn 0.5s;
            animation: zoomIn 0.5s; 
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(206, 165, 0, 0.8); 
}

/* Lightbox Animations */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-webkit-keyframes zoomIn {
    from { -webkit-transform: scale(0.8); transform: scale(0.8); opacity: 0; }
    to { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}

@keyframes zoomIn {
    from { -webkit-transform: scale(0.8); transform: scale(0.8); opacity: 0; }
    to { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}



#contact h2 {
    margin-bottom: 50px;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left; 
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}


.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
}


.contact-info strong {
    color: var(--darker-primary-color);
}
.contact-info a {
    color: var(--darker-primary-color);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: var(--darker-primary-color);
}

.contact-form {
    background-color: #f9f9f9; 
    padding: 30px; 
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: 600;
    margin-bottom: -5px;
    color: var(--dark-gray);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(206, 165, 0, 0.5);
    outline: none;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--black);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, -webkit-transform 0.2s ease;
    transition: background-color 0.3s ease, transform 0.2s ease;
    transition: background-color 0.3s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
    margin-top: 10px;
}

form button:hover {
    background: var(--primary-color-darker);
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
}


/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 20px;
    gap: 20px;
    text-align: center;
    flex-direction: column;
  }

  .footer-column {
    flex: 1;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-logo img {
    height: 140px;
    max-width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }

.footer-logo p {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.footer-links {
    text-align: center;
  }

  .footer-copy-text {
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
  }

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copy p {
    margin: 0;
  }

.language-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    padding: 0 1rem;
  }
  
  .lang-flag {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s ease;
  }
  
  .lang-flag:hover {
    opacity: 0.8;
  }
  
  .lang-flag.active-lang {
    opacity: 1;
    -webkit-filter: drop-shadow(0 0 4px #000);
            filter: drop-shadow(0 0 4px #000);
  }
  .filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .filter-btn {
    background: #f8f8f8;
    color: #1a1a1a;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 400;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .filter-btn:hover {
    background: var(--primary-color);
    color: #000;
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
  }

  .filter-btn.active {
    background: var(--primary-color-darker);
    color: #000;
    border-color: var(--primary-color-darker);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .gallery-item {
    transition: all 0.3s ease;
  }

  .gallery-item.hide {
    display: none !important; /* Ukryj element */
}

  .cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    flex-wrap: wrap;
    min-height: 60px;
  }
  
  .cookie-consent a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
  }
    
  .cookie-consent a:hover {
    color: var(--primary-color-darker);
  }
  
  .cookie-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
  }
  
  .cookie-buttons button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
  }
  
  .cookie-buttons .cookie-close {
    background: transparent;
    color: white;
    font-size: 1.2em;
    border: none;
    padding: 5px 10px;
    line-height: 1;
  }
  
  .cookie-buttons .cookie-close:hover {
    color: var(--primary-color);
  }
  
  
  
  .social-link i {
    font-size: 1.3em;
  }
  
  .social-link:hover {
    color: var(--primary-color);
  }

  #lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.lightbox-counter {
    position: absolute;
    top: 80px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: color 0.3s ease, -webkit-transform 0.2s ease;
    transition: color 0.3s ease, transform 0.2s ease;
    transition: color 0.3s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
    outline: none;
    box-shadow: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:active,
.lightbox-next:active {
    color: var(--primary-color);
    -webkit-transform: translateY(-50%) scale(1.1);
            transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.8;
    
}

#scrollTopBtn {
    align-self: baseline;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: none;
    color: #cea500; /* Kolor strzałki */
    border: 2px solid #b89400; /* Obramowanie w kolorze akcentu */
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: none; /* Domyślnie ukryty */
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

#scrollTopBtn:hover {
    transform: scale(1.1); /* Powiększenie przy najechaniu */
}

#scrollTopBtn:active {
    transform: scale(0.95); /* Zmniejszenie przy kliknięciu */
}

.gallery-page {
    display: grid; /* Kluczowe dla układu siatki wewnątrz gallery-grid */
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); /* Powtórzenie reguły z .gallery-grid */
    gap: 20px; /* Ustaw odstęp między zdjęciami na stronie */
}

#pagination-info {
    font-size: 1rem;
    margin-top: 20px;
    color: var(--dark-gray);
    text-align: center;
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}

.gallery-pagination button {
    background: transparent;                           /* przezroczyste tło */
    color: var(--dark-gray);                          /* ciemny tekst */
    border: 2px solid var(--primary-color);           /* obramowanie */
    padding: 10px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-pagination button:hover {
    background-color: rgba(206, 165, 0, 0.1);          /* delikatne tło przy hoverze */
    transform: translateY(-2px);
}

.gallery-pagination button.active-page {
    background-color: var(--primary-color);            /* trwałe podświetlenie aktywnej strony */
    color: var(--black);
    font-weight: 600;
    border-color: var(--primary-color-darker);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
  
.gallery-item.hide {
    display: none !important; /* Ukryj element */
}

.before-after-section {
    text-align: center;
    margin: 50px 0;
  }
  
.before-after-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Można dostosować szerokość kontenera */
    margin: 0 auto;
}
  
section h1{
    font-size: 1.1em;
    color: var(--dark-gray);
    max-width: 800px; 
    margin: 0 auto 20px auto;
}

@media (max-width: 768px) {
    nav a {
        margin: 0 10px;
        font-size: 1em;
    }
    section {
        padding: 60px 15px;
        margin: 20px auto;
    }
    section h2 {
        font-size: 2em;
    }
    .contact-container {
        flex-direction: column;
    }
    .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-logo img {
    height: 160px;
  }
  .footer-copy-text {
    text-align: center;
  }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    .gallery-grid img {
        height: 200px;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 24px;
        padding: 12px;
    }
    .gallery-page {
        gap: 15px; /* Mniejszy odstęp na tabletach */
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Dostosuj minmax jeśli masz w media query dla .gallery-grid */
    }
}

@media (max-width: 480px) {
    header h4 {
        font-size: 3em;
    }
    .subtitle {
         font-size: 1.2em;
    }
    nav {
        height: auto; 
        flex-wrap: wrap;
        padding: 10px 0;
    }
     nav a {
        margin: 5px 10px;
        font-size: 0.9em;
    }
    section {
        padding: 40px 10px;
    }
     section h2 {
        font-size: 1.8em;
    }
    section p {
        font-size: 1em;
    }
     .service-item h3 {
        font-size: 1.3em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 10px;
     }
     .gallery-grid img {
        height: 220px;
    }
    form button {
        font-size: 1em;
        padding: 12px 15px;
    }
     .footer-links a {
         margin: 0 5px;
    }
     .gallery-page {
        gap: 10px; /* Jeszcze mniejszy odstęp na telefonach */
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Dostosuj minmax */
    }
     .pagination button {
        padding: 8px 12px; /* Mniejsze przyciski paginacji */
        font-size: 0.9em;
     }
     #pagination-info {
         font-size: 0.9em;
     }
}