:root{
  --bg: #f5f5f7;
  --card: rgba(255,255,255,.72);
  --card2: rgba(255,255,255,.92);
  --text: #111827;
  --muted: rgba(17,24,39,.68);
  --line: rgba(17,24,39,.10);

  --shadow: 0 18px 50px rgba(17,24,39,.10);
  --radius: 22px;
  --max: 1120px;

  --accent: #111827;  /* Apple-ish black */
}

*{ box-sizing:border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;

  background-image: url("img/tlo-drewno3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
}

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}



/* Topbar */
.topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* logo na środku */
  padding: 14px 0;

  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;

  background: rgba(255,255,255,.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(17,24,39,.08);


}
.logo{
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1;
  text-decoration: none;


  background-image: linear-gradient(180deg, #111 0%, #3b3b3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  transition: transform .2s ease, opacity .2s ease;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand strong{
  display:block;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.brand span{
  display:block;
  font-size: 12px;
  color: var(--muted);
}

.mark{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: #111827;
  color: #fff;
}

.mark svg{
  width: 22px;
  height: 22px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  font-size: 13px;
  color: rgba(17,24,39,.70);
  padding: 8px 10px;
  border-radius: 999px;
  transition: .18s;
}

.nav a:hover{
  background: rgba(17,24,39,.06);
  color: var(--text);
}

.nav .pill{
  background: rgba(17,24,39,.08);
  border: 1px solid rgba(17,24,39,.12);
}

/* Hero */
.hero{
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero-grid{
  padding: 34px 24px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
}

.kicker{
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(17,24,39,.62);
  letter-spacing: .2px;
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.06;
  letter-spacing: -1px;
}

.lead{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 62ch;
}

/* Buttons */
.cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.75);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: .18s;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(17,24,39,.04);
}

.btn.primary{
  border: none;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 45px rgba(17,24,39,.18);
}

.btn.full{ width:100%; }

/* Chips */
.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips span{
  font-size: 12px;
  color: rgba(17,24,39,.75);
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.70);
  padding: 7px 10px;
  border-radius: 999px;
}

/* Hero card */
.hero-card{
  border-radius: 22px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.60);
  overflow:hidden;
}

.hero-photo{
  height: 220px;
  background:
    radial-gradient(240px 140px at 35% 40%, rgba(0,0,0,.08), transparent 60%),
    radial-gradient(240px 160px at 75% 60%, rgba(0,0,0,.07), transparent 60%),
    repeating-linear-gradient(
      90deg,
      rgba(194, 120, 60, .20) 0px,
      rgba(194, 120, 60, .20) 12px,
      rgba(140, 70, 20, .14) 14px,
      rgba(140, 70, 20, .14) 26px
    ),
    linear-gradient(135deg, rgba(255,255,255,.65), rgba(0,0,0,.03));
}

.hero-stat{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
}

.hero-stat > div{
  padding: 14px 12px;
  text-align:center;
}

.hero-stat strong{
  display:block;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.hero-stat span{
  display:block;
  font-size: 12px;
  color: rgba(17,24,39,.60);
}

/* Sections */
.section{
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
  box-shadow: var(--shadow);
  padding: 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}

.section-head h2{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.section-head p{
  margin: 0 0 18px;
  color: var(--muted);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
  padding: 16px;
  transition: .18s;
}

.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.85);
}

.card h3{
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.card p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.card ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,24,39,.78);
  font-size: 13px;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
}

.img{
  height: 210px;
}

.wood.a{
  background:
    radial-gradient(180px 120px at 35% 45%, rgba(0,0,0,.08), transparent 65%),
    repeating-linear-gradient(90deg,
      rgba(194,120,60,.22) 0px,
      rgba(194,120,60,.22) 12px,
      rgba(140,70,20,.12) 14px,
      rgba(140,70,20,.12) 26px
    );
}
.wood.b{
  background:
    radial-gradient(180px 120px at 60% 55%, rgba(0,0,0,.07), transparent 65%),
    repeating-linear-gradient(0deg,
      rgba(194,120,60,.20) 0px,
      rgba(194,120,60,.20) 12px,
      rgba(140,70,20,.12) 14px,
      rgba(140,70,20,.12) 26px
    );
}
.wood.c{
  background:
    radial-gradient(200px 140px at 45% 50%, rgba(0,0,0,.08), transparent 65%),
    repeating-linear-gradient(45deg,
      rgba(194,120,60,.18) 0px,
      rgba(194,120,60,.18) 12px,
      rgba(140,70,20,.12) 14px,
      rgba(140,70,20,.12) 26px
    );
}
.photo{
  width: 100%;
  height: 220px;     /* wysokość okienka */
  object-fit: cover; /* docina obraz żeby pasował */
  display: block;
  border-radius: 18px;
}

.cap{
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(17,24,39,.75);
  border-top: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.65);
}

/* About */
.about{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-card{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
  padding: 16px;
}

.about-card h3{
  margin: 0 0 8px;
  font-size: 15px;
}

.about-card p{
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-card, .form-card{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.70);
  padding: 16px;
}

.contact-card h3, .form-card h3{
  margin: 0 0 12px;
  font-size: 15px;
}

.kv{
  display:grid;
  gap: 12px;
}

.kv span{
  display:block;
  font-size: 12px;
  color: rgba(17,24,39,.60);
}

.kv strong{
  display:block;
  font-size: 14px;
}

.note{
  margin-top: 14px;
  font-size: 13px;
  color: rgba(17,24,39,.70);
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.65);
  padding: 12px 12px;
  border-radius: 16px;
}

/* Form */
form{ margin-top: 10px; }

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field{ margin-bottom: 12px; }

label{
  display:block;
  font-size: 12px;
  color: rgba(17,24,39,.60);
  margin-bottom: 6px;
  font-weight: 650;
}

input, textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  transition: .15s;
}

input:focus, textarea:focus{
  border-color: rgba(17,24,39,.35);
  box-shadow: 0 0 0 4px rgba(17,24,39,.10);
}

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

.form-hint{
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(17,24,39,.55);
}

.status{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(17,24,39,.75);
}

/* Footer */
.footer{
  margin: 18px 0 26px;
  text-align:center;
  font-size: 12px;
  color: rgba(17,24,39,.55);
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .row{ grid-template-columns: 1fr; }
}

/* Hamburger button */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(17,24,39,.85);
  border-radius: 999px;
}

/* Mobile menu */
@media (max-width: 768px){

  .burger{
    display: inline-flex;
  }

  .nav{
    display: none;
    width: 100%;
    margin-top: 12px;

    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(14px);
  }

  .nav a{
    padding: 12px 12px;
    border-radius: 14px;
  }

  .nav.open{
    display: flex;
  }


}
/* --- HAMBURGER + MENU (Apple style) --- */

.burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.burger span{
  position: absolute;
  width: 18px;
  height: 2px;
  background: rgba(17,24,39,.85);
  border-radius: 999px;
  transition: transform .22s ease, top .22s ease, opacity .2s ease;
}

.burger span:nth-child(1){ top: 18px; }
.burger span:nth-child(2){ top: 24px; }

/* animacja w X */
.burger.active span:nth-child(1){
  top: 21px;
  transform: rotate(45deg);
}
.burger.active span:nth-child(2){
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile: ukryj topbar i zostaw tylko burger jako floating button */
@media (max-width: 768px){

  /* chowamy logo */
  .logo{
    display: none;
  }

  /* burger jako pływający przycisk */
  .burger{
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  /* menu ma się rozwijać pod burgerem */
  .nav{
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    z-index: 9998;

    margin-top: 0;
  }

  /* header nie ma zajmować miejsca */
  .header{
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .topbar{
    padding: 0;
    min-height: 0;
  }
 
}
    @media (max-width: 768px){
    body{
    padding-top: 60px;
  }
}

  .nav a{
    padding: 12px 12px;
    border-radius: 14px;
  }

  /* stan otwarty */
  .nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

}

// Hamburger menu (dropdown z animacją)
const burger = document.getElementById("burger");
const nav = document.getElementById("nav");

burger.addEventListener("click", () => {
  nav.classList.toggle("open");
  burger.classList.toggle("active");

  const isOpen = nav.classList.contains("open");
  burger.setAttribute("aria-expanded", isOpen ? "true" : "false");
});

// Zamknij menu po kliknięciu linku
nav.querySelectorAll("a").forEach(link => {
  link.addEventListener("click", () => {
    nav.classList.remove("open");
    burger.classList.remove("active");
    burger.setAttribute("aria-expanded", "false");
  });
});

.burger{
  margin-left: auto;
}
@media (max-width: 768px){
  body{
    padding-top: 60px;
  }
}
/* Mobile: ukryj topbar i zostaw tylko burger jako floating button */
@media (max-width: 768px){

  /* chowamy logo */
  .logo{
    display: none;
  }

  /* burger jako pływający przycisk */
  .burger{
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }

  /* menu ma się rozwijać pod burgerem */
  .nav{
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    z-index: 9998;

    margin-top: 0;
  }

  /* header nie ma zajmować miejsca */
  .header{
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .topbar{
    padding: 0;
    min-height: 0;
  }
}
@media (max-width: 768px){

  /* usuwamy całkowicie pasek nagłówka */
  header,
  .header,
  .topbar{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  /* jakby topbar miał jeszcze jakieś tło */
  .topbar::before,
  .topbar::after{
    display: none !important;
  }
}

@media (max-width: 768px){

  /* całkowicie wyłączamy nagłówek jako pasek */
  .header{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  /* to jest najczęściej winowajca */
  .topbar{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  /* jakby border był robiony pseudo-elementem */
  .topbar::before,
  .topbar::after,
  .header::before,
  .header::after{
    display: none !important;

  }
}
@media (max-width: 768px){

  /* chowamy całe menu (linki) */
  .nav{
    display: none;
  }

  /* zostaje burger */
  .burger{
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
  }

  /* chowamy header, ale nie burgera */
  .header{
    height: 0;
    padding: 0;
  }

  .topbar{
    padding: 0;
    height: 0;
  }
}



