:root {
  --primary: #ff7a00;
  --dark: #111;
  --light: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
    background: #fcc987c4;
    border-bottom: 1px solid #eee;
    z-index: 10;
    position: absolute;
    top: 0;
    margin: 5px;
    border-radius: 40px;
    border: 1px #fff5 solid;
    color: #fff;
    width: calc(100% - 10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}
.logo-csv {
    height: 55px;
    margin: -21px;
}
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #922600;
}
nav a:hover {
  color: var(--primary);
}



img.logo-svg {
    height: 45px;
    margin: -10px 0;
}





.hero {
  background: linear-gradient(135deg, #111, #333);
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero-premium {
    background: #F77B18;
background: linear-gradient(156deg, rgba(247, 123, 24, 1) 0%, rgba(251, 222, 181, 1) 100%);
    color: white;
    padding: 120px 0;
    background-image: url(bg-hero.jpg); 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
}
/* ===== MOBILE < x ===== */
@media (max-width: 550px) {

   .hero-premium {
    background: #F77B18;
background: linear-gradient(156deg, rgba(247, 123, 24, 1) 0%, rgba(251, 222, 181, 1) 100%);
    color: white;
    padding: 120px 0;
    background-image: url(bg-hero.webp); 
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text .accent {
  display: block;
  color: #FFF1E5; 
  font-weight: 600;
}

.hero-text p {
  font-size: 18px;
  max-width: 520px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: #ff7a00;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 3px #ffab5e inset;
}
.btn-primary:hover { 
    box-shadow: 0 0 3px #ffab5e inset, 0 5px 10px rgb(246 87 6 / 95%);
    background: #ff810e;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: background 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.4));
}
@media (max-width: 555px) {
  .hero-visual {
    display: none;
  }
  .hero-grid { 
    grid-template-columns: 1fr;
  }
}



@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}



 











/*hamburger*/

 #mobileMenu  {
 width: 100%;
}
div#mobileMenu > a {
    display: inline-flex;
    color: #fff;
    background-color: #ff7a0050;
    text-align: right;
    float: left;
    padding: 9px;
    margin: 3px;
    width: 242px;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    border-radius: 7px;
}
.mobile-menu.open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: flex-end;
    justify-content: flex-start;
}
 .mobile-menu {
  display: none;
  flex-direction: column;
}

.mobile-menu.open {
    display: flex;
    padding: 20px;
}


 .nav-links {
  display: flex;
  gap: 25px;
}
.mobile-menu{
  display: none;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== DESKTOP > 1200px ===== */
/* pokazujemy 5 pierwszych */
@media (min-width: 1351px) {
  .nav-links a:nth-child(n+9) {
    display: none;
  }

  .hamburger {
    display: none;
  }
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 1350px) and (min-width: 1151px) {
  .nav-links a:nth-child(n+7) {display: none;}
  .hamburger {display: block;}
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 1150px) and (min-width: 1051px) {
  .nav-links a:nth-child(n+6) {display: none;}
  .hamburger {display: block;}
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 1050px) and (min-width: 951px) {
  .nav-links a:nth-child(n+6) {display: none;}.hamburger {display: block;}
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 950px) and (min-width: 851px) {
  .nav-links a:nth-child(n+5) {display: none;}.hamburger {display: block;}
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 850px) and (min-width: 751px) {
  .nav-links a:nth-child(n+4) {display: none;}.hamburger {display: block;}
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 750px) and (min-width: 651px) {
  .nav-links a:nth-child(n+3) {display: none;}.hamburger {display: block;}
}

/* ===== ŚREDNIE 700-556 ===== */
@media (max-width: 650px) and (min-width: 551px) {
  .nav-links a:nth-child(n+2) {display: none;}
  .hamburger {display: block;}
  .mobile-menu a:nth-child(n+2) {display: none ; }
}

/* ===== MOBILE < x ===== */
@media (max-width: 550px) {.nav-links {display: none;}.hamburger {display: block;}
}


 


















.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.section {
  margin: 80px 0;
}

.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}


/*realizacje- glwna strona*/

.realizacje h2 {
  text-align: center;
  margin-bottom: 50px;
}

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

.card.premium {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 360px;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card.premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card.premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.card.premium:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.0) 100%
  );
  color: white;
  backdrop-filter: blur(3px);
}

.overlay h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.overlay p {
  margin: 0;
  font-size: 15px;
  opacity: 0.85;
}
.glass-card {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-top: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);

  color: white;
}

.glass-overlay h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.glass-overlay p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}
.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;

  background: rgba(255, 255, 255, 0.10);
      background: rgb(10 10 10 / 12%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-top: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);

  color: white;
  overflow: hidden;
}
.glass-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    repeating-radial-gradient(
      circle at 0 0,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 3px
    );

  opacity: 0.6;
  mix-blend-mode: overlay;
}

/*realizacje głowna strona*/


/*realizacje podstrona*/


.realizacje-page h1 {
  text-align: center;
  margin-bottom: 20px;
}

.realizacje-lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 18px;
  opacity: 0.85;
}


/*realizacje podstrona*/





/*kontakt*/
.kontakt-page h1 {
  margin-bottom: 50px;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.kontakt-form textarea {
  min-height: 120px;
}

@media (max-width: 768px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
}
.kontakt-dane a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.kontakt-dane hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #eee;
}
.obszar-dzialania {
  margin-top: 80px;
}

.obszar-dzialania h2 {
  margin-bottom: 20px;
}

.obszar-dzialania p {
  max-width: 800px;
  margin-bottom: 30px;
}

.miasta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.miasta-grid span {
  background: rgba(255,122,0,0.08);
  border: 1px solid rgba(255,122,0,0.3);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/*kontakt*/


/*o nas*/
.about-page h1 {
  margin-bottom: 30px;
}

.lead {
  font-size: 20px;
  max-width: 800px;
  margin-bottom: 50px;
}

.about-content {
  max-width: 800px;
  line-height: 1.7;
}

.about-content p {
  margin-bottom: 20px;
}

.about-highlight {
  margin-top: 60px;
  background: rgba(255,122,0,0.06);
  padding: 30px;
  border-radius: 12px;
}

.about-highlight ul {
  padding-left: 0;
  list-style: none;
}

.about-highlight li {
  margin-bottom: 10px;
}

.about-cta {
  margin-top: 60px;
  max-width: 700px;
}

/*o nas*/



/*Styl dla pojedynczej realizacji*/

.realizacja-single h1 {
  margin-bottom: 20px;
}

.realizacja-opis {
  max-width: 800px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.realizacja-detale {
  margin-bottom: 40px;
  opacity: 0.9;
}

.realizacja-single .grid img {
  width: 100%;
  border-radius: 12px;
}

.realizacja-gallery img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.realizacja-gallery img:hover {
  transform: scale(1.02);
}
.realizacja-single .grid img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1;
    height: auto
}
/*Styl dla pojedynczej realizacji*/


/* LIGHTBOX */

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

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.7);
}

/* LIGHTBOX */


/*slug/wykonanie-strony-z opisem*/
.realizacja-single h1 {
  margin-bottom: 30px;
}

.realizacja-meta {
  display: flex;

  margin-bottom: 40px;
  flex-wrap: wrap;
}

.realizacja-meta div {
  background: rgba(255,122,0,0.06);
  padding: 15px 20px;
  border-radius: 10px;
  min-width: 180px;
}

.realizacja-meta strong {
  display: block;
  font-size: 14px;
  opacity: 0.6;
}

.realizacja-meta span {
  font-size: 16px;
  font-weight: 600;
}

.realizacja-opis {
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.realizacja-cta {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #111, #222);
  color: white;
  border-radius: 16px;
}


.realizacja-gallery {
  margin-top: 60px;
  gap: 25px;
}

.realizacja-gallery img {
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.realizacja-gallery img:hover {
  transform: scale(1.02);
}


/*slug/wykonanie-strony-z opisem*/



/*kalkulator*/
  .kalkulator-box { 
    margin:40px auto;
    padding: 30px;
    max-width: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
  }

  .kalkulator-box h3 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #111;
    text-align: center;
  }

  .kalkulator-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
  }

  .kalkulator-box input,
  .kalkulator-box select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
  }

  .kalkulator-box button {
    width: 100%;
    padding: 16px;
    background: #ff7a00;
    color: white;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
  }

  .kalkulator-box button:hover {
    background: #e66e00;
  }
 
  #wynik {
    margin-top: 25px;
    padding: 20px;
    background: #fff6ef;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.6;
  }

  .uwaga {
    font-size: 12px;
    margin-top: 20px;
    color: #666;
    text-align: center;
  }

/*kalkulator*/

<div class="kalkulator-box">

  <h3>Kalkulator wyceny izolacji pianą PUR</h3>

  <label>Powierzchnia (m²)</label>
  <input type="number" id="powierzchnia" min="10" step="1" placeholder="np. 120">

  <label>Grubość izolacji (cm)</label>
  <input type="number" id="grubosc" min="5" step="1" placeholder="np. 15">

  <label>Rodzaj piany</label>
  <select id="rodzaj">
    <option value="3.22">Piana otwartokomórkowa</option>
    <option value="5.50">Piana zamkniętokomórkowa</option>
  </select>

  <button onclick="obliczCene()">Oblicz wycenę</button>

  <div id="wynik"></div>

  <div class="uwaga">
    Wycena ma charakter orientacyjny i nie stanowi oferty handlowej w rozumieniu art. 66 §1 k.c.
  </div>

</div>

<script>
function obliczCene() {

  const powierzchnia = parseFloat(document.getElementById('powierzchnia').value);
  const grubosc = parseFloat(document.getElementById('grubosc').value);
  const cenaZaCm = parseFloat(document.getElementById('rodzaj').value);
  const wynik = document.getElementById('wynik');

  if (isNaN(powierzchnia) || isNaN(grubosc) || powierzchnia <= 0 || grubosc <= 0) {
    wynik.innerHTML = "<span style='color:red;'>Podaj poprawne wartości.</span>";
    return;
  }

  const cenaZaM2 = grubosc * cenaZaCm;
  const cenaCalkowita = powierzchnia * cenaZaM2;

  wynik.innerHTML = `
    <strong>Cena za 1 m²:</strong> ${cenaZaM2.toFixed(2)} zł<br>
    <strong>Szacunkowa cena całkowita:</strong> ${cenaCalkowita.toFixed(0)} zł<br><br>
    📞 Skontaktuj się z nami – przygotujemy dokładną wycenę dla Małopolski.
  `;
}
</script>
