* {
    box-sizing: border-box;
}


@media (max-width: 768px) {
  body {
    background-color: #2e2e2e !important;
  }
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #F5F5F5;
  background-color: #2e2e2e; /* fallback */
  background-image: url('img/podnosnik.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;         /* kluczowe: NIE powtarzaj ani gradientu, ani obrazka */
  background-attachment: fixed;
  margin: 0;
}



/* Na mobile usuń tło z obrazem i zostaw tylko gradient */
@media (max-width: 768px) {
  body {
    background: linear-gradient(to bottom, rgba(46,46,46,0.8));
    background-image: none;
    background-attachment: scroll; /* dodatkowo wyłącz fixed na mobile */
  }
}


main {
    flex: 1;
}


/* HEADER – przyklejony na górze */
.top-bar,
.mobile-header {
    width: 100%;
    z-index: 9999;
    clear: both;
}

/* Poniżej tylko jeśli masz stopkę */
footer {
    width: 100%;
    clear: both;
}


/* =============================== */
/* HEADER & NAVIGATION            */
/* =============================== */
.top-bar {
    background-color: rgba(38, 38, 38, 0.95);
    color: #FFC107;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    gap: 20px;
    backdrop-filter: blur(4px);
}

.menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: #FFC107;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 24px;
}

.menu a:hover {
    background-color: #FFC107;
    color: #212121;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-btn a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFC107;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
}

.phone-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;

}

.logo-header {
    height: 50px;

    transition: transform 0.2s ease;
}

.logo-header:hover {
    transform: scale(1.05);
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    width: 24px;
    height: auto;
}

/* Ukryj numer telefonu na małych ekranach */
@media (max-width: 900px) {
    .phone-number {
        display: none;
    }
}

/* Domyślnie ukrywamy mobile header */
.mobile-header {
    display: none;
}

/* Pokaż tylko na mobile */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-header {
        display: block;
        background: #222;
        color: #FFC107;
    }

    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
    }

    .mobile-logo img {
        height: 70px;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-phone img {
        height: 22px;
    }

    .mobile-toggle {
        background: none;
        border: none;
        font-size: 28px;
        color:  #FFC107;
        cursor: pointer;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #222;
    }

    .mobile-nav a {
        color:  #FFC107;
        padding: 20px;
        text-decoration: none;
        font-size: 20px;
    }

    .mobile-nav.hidden {
        display: none;
    }
}


/* =============================== */
/* HERO - RESPONSYWNY I POPRAWNY  */
/* =============================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: url('img/podnosnik.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden; /* ważne, żeby pseudoelement nie wystawał */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(46,46,46,0.5);
  z-index: 1;
}

.hero .hero-text {
  position: relative; /* hero-text nad gradientem */
  z-index: 2;
  max-width: 1000px;
  padding: 20px;
}

.hero .hero-text {
    max-width: 1000px;
    z-index: 2;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: #FFC107;
}

.hero p, .hero .jcb-banner {
    font-size: 1.3rem;
    margin: 0.5em 0;
}

.jcb-banner {
    font-weight: bold;
    background-color: rgba(255, 193, 7, 0.15);
    border: 1px solid #FFC107;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
}

.sprawdz {
    background-color: #FFC107;
    color: #212121;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.sprawdz:hover {
    background-color: #FFD740;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.kontakt_btn {
    background-color: #212121; /* czarny */
    color: #fff; /* białe napisy */
    padding: 14px 32px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    margin-left: 10px; /* odstęp od żółtego */
}

.kontakt_btn:hover {
    background-color: #333; /* lekko jaśniejszy czarny przy hover */
    color: #FFD740; /* żółty tekst przy hoverze dla kontrastu */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}


/* MEDIA QUERIES - dostosowanie do urządzeń mobilnych */
@media (max-width: 768px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('img/podnosnik.jpg') center center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
  }

  .hero {
    background: none !important;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }

  .hero p, .hero .jcb-banner {
    font-size: 1rem;
  }

  .sprawdz {
    padding: 12px 24px;
    font-size: 16px;
  }

  .kontakt_btn {
    padding: 12px 24px;
    font-size: 16px;
  }
}

/* SEO SECTION - przejrzysta, bez żółtej ramki */
.seo-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px 20px;
  background-color: rgba(46,46,46,0.5);
  border-left: none;
  border-radius: 12px;
  color: #f1f1f1;
  line-height: 1.6;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px); /* delikatne rozmycie tła */
}

.seo-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px #000;
}

.seo-section p {
  margin: 0;
  color: #ffc107;
}


/* =============================== */
/* GALERIA                        */
/* =============================== */
.gallery {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery h2 {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 30px;
}

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

.gallery figure {
    background: #212121;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.gallery figure:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.gallery img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.gallery figcaption {
    padding: 15px;
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    text-align: center;
}


/* =============================== */
/* SEKCJE I KONTAKT               */
/* =============================== */
section {
    margin: 20px auto;
    padding: 20px;
    max-width: 1000px;
    background: rgba(33, 33, 33, 0.7);
    color: #F5F5F5;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.contact-box {
    background: rgba(33, 33, 33, 0.75);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFC107;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 10px 0;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #fff;
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px #000);
}
.services {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a); /* elegancki gradient całej sekcji */
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

.services h1 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #FFC107;
  letter-spacing: 1px;
}

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

.service-box {
  border: 2px solid #FFC107;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #222, #333); /* lekko jaśniejsze tło boxów */
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-box img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.service-box h2 {
  color: #FFC107;
  font-size: 1.2rem;
  margin: 10px 0;
  transition: color 0.3s ease;
}

.service-box:hover h2 {
  color: #fff;
}

.service-box .btn {
  margin-top: auto;
  padding: 10px 20px;
  background-color: #FFC107;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.service-box .btn:hover {
  background-color: #e6ad06;
  transform: translateY(-2px);
}

.service-box:hover {
  transform: translateY(-5px);
  border-color: #FFD740;
}



/* =============================== */
/* RESPONSYWNOŚĆ                  */
/* =============================== */
@media (max-width: 768px) {
    .service-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .services{
      padding: 60px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding-top: 10px;
    }

    .header-right {
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-header {
        height: 40px;
    }

    section {
        margin: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================== */
/* POJEDYŃCZA USŁUGA        */
/* =============================== */


 .usluga-page {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

/* Banner */
.usluga-banner h1 {
  font-size: 2.5rem;
  text-align: center;
  color: #FFC107;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* Opis usługi */
.usluga-opis {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  align-items: flex-start;
}

.usluga-zdjecie {
  flex: 1 1 350px;
  max-width: 400px;
}

.usluga-zdjecie img {
  width: 100%;
  aspect-ratio: 1 / 1; /* wymusza kwadrat */
  object-fit: cover;   /* przycina nadmiar i dopasowuje */
  border-radius: 8px;
  display: block;
}

.usluga-tekst {
  flex: 1 1 400px;
  min-width: 280px;
}

.usluga-tekst p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #f1f1f1;
  line-height: 1.6;
}

.usluga-tekst ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #f5f5f5;
  margin-bottom: 12px;
}

.usluga-tekst ul li {
  margin-bottom: 6px;
}

/* CENNIK */
.usluga-cennik {
  text-align: center;
  margin-top: 30px;
}

.usluga-cennik h2 {
  font-size: 1.8rem;
  color: #FFC107;
  margin-bottom: 20px;
}

/* Ciemna tabela */
.usluga-cennik table {
  width: 100%;
  border-collapse: collapse;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

.usluga-cennik th,
.usluga-cennik td {
  padding: 14px 18px;
  border-bottom: 1px solid #2a2a2a;
  text-align: left;
}

.usluga-cennik th {
  background: #FFC107;
  color: #111;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.usluga-cennik td {
  color: #f5f5f5;
  font-size: 1rem;
}

/* Hover efekt */
.usluga-cennik tr:hover td {
  background: rgba(255, 193, 7, 0.08);
}

/* Ostatni wiersz bez border */
.usluga-cennik tr:last-child td {
  border-bottom: none;
}

/* Przycisk */
.usluga-cennik .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #FFC107;
  color: #111;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.usluga-cennik .btn:hover {
  background: #e6ad06;
  transform: translateY(-2px);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .usluga-opis {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .usluga-zdjecie {
    max-width: 300px;
    width: 100%;
  }

  .usluga-banner h1 {
    font-size: 2rem;
  }
}


/* =============================== */
/* FORMULARZ KONTAKTOWY           */
/* =============================== */
.contact {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.contact h1 {
  font-size: 32px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  display: block;
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.radio {
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}

.form-group.radio label {
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 6px #FFD700aa;
}

textarea {
  resize: vertical;
}

.btn {
  background-color: #2196F3;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0b7dda;
}


/*KONTAKT*/

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* =============================== */
/* STOPKA                         */
/* =============================== */
footer {
  background: rgba(33, 33, 33, 0.95);
  color: #FFC107;
  padding: 40px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  text-align: left;
  font-size: 15px;
  backdrop-filter: blur(4px);
  position: relative;
}

.footer-column {
  min-width: 220px;
  max-width: 300px;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li a,
footer a {
  color: #FFC107;
  text-decoration: none;
  display: block;
  margin: 6px 0;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.social-icon {
  width: 26px;
  height: 26px;
  filter: brightness(1.3);
  margin-top: 8px;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: #F5F5F5;
}
@media (max-width: 768px){
  footer{
    text-align: center;
  }
}


/* TELEFON MOBILE */
.mobile-call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #FFC107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: background 0.3s ease, transform 0.3s ease;
  animation: pulse 2s infinite;
}

/* Telefon jako ikona w tle (SVG w kolorze czarnym) */
.mobile-call-btn::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M6.62 10.79a15.464 15.464 0 006.59 6.59l2.2-2.2a1 1 0 011.05-.24c1.12.37 2.33.57 3.54.57a1 1 0 011 1v3.52a1 1 0 01-1 1C10.07 22 2 13.93 2 4a1 1 0 011-1h3.52a1 1 0 011 1c0 1.21.2 2.42.57 3.54.12.35.04.74-.24 1.05l-2.23 2.2z"/></svg>') no-repeat center/contain;
}

/* Hover i pulsowanie */
.mobile-call-btn:hover {
  background: #e6ad06;
  transform: scale(1.1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 193, 7, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Pokazuj tylko na mobile */
@media (min-width: 769px) {
  .mobile-call-btn { display: none; }
}




/* COOKIES */

/* Tło przyciemnione */
#cookie-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none; /* ukryte domyślnie */
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Kwadrat z treścią */
.cookie-box {
  background: #222;
  color: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

/* Link w treści */
.cookie-box a {
  color: #ffc107;
  text-decoration: underline;
}

/* Przyciski */
.cookie-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cookie-buttons button {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.cookie-buttons button:first-child {
  background: #ffc107;
  color: #222;
}

.cookie-buttons button:first-child:hover {
  background: #ffd740;
}

.cookie-buttons button:last-child {
  background: transparent;
  border: 1px solid #ffc107;
  color: #ffc107;
}

.cookie-buttons button:last-child:hover {
  background: #333;
}

/* Animacja */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
