/* =====================================================
   RESET + BASE
===================================================== */

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

body {
  font-family: 'Inter', sans-serif;
  background: #f3f5f9;
  color: #222;
  line-height: 1.6;
}

/* =====================================================
   GLOBAL
===================================================== */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section-box {
  background: #fff;
  border-radius: 18px;
  padding: 60px;
  margin: 40px auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ===== HEADINGS ===== */

h2 {
  font-size: 34px;
  margin-bottom: 35px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #9B6D39;
  margin-top: 12px;
  border-radius: 2px;
}

.no-after::after {
  background: #717171;
  margin-top: 0;
}

/* =====================================================
   HEADER
===================================================== */

header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 10px;
  font-weight: 700;
}

.logo img {
  height: 37px;
  width: 150px;
}

.logo span {
  font-size: 12px;
  color: #9B6D39;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.menu a {
  margin-left: 26px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: 0.2s;
}

.menu a:hover { color: #9B6D39; }

.phone {
  font-weight: 700;
  font-size: 18px;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text { flex: 1; }

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

.hero p {
  font-size: 18px;
  margin-bottom: 28px;
  color: #555;
}

.hero-img { flex: 1; }

.hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

/* Wariant hero dla bloga/galerii */

.hero_sub {
  text-align: center;
  padding: 80px 20px 40px;
}

.hero_sub h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero_sub p { color: #666; }

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 10px;
  transition: .25s;
}

.btn-primary {
  background: #9B6D39;
  color: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  border: 2px solid #9B6D39;
  color: #9B6D39;
}

.btn-outline:hover {
  background: #9B6D39;
  color: #fff;
}

/* ===== MAPA ===== */

.map-wrap {
  flex: 1;
  min-width: 300px;
}

#map {
  height: 380px;
  border-radius: 14px;
}


/* =====================================================
   SERVICES / FEATURES
===================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}

.service-box,
.feature {
  background: #f7f9ff;
  padding: 26px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  transition: .25s;
}

.features {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

/* =====================================================
   CONTACT
===================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: #f7f9ff;
  padding: 25px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.contact-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-card a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

/* =====================================================
   BLOG GRID
===================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: .25s;
}

.post:hover { transform: translateY(-6px); }

.post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-content { padding: 22px; }

.post p { color: #555; margin-bottom: 15px; }

.read-more {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

/* =====================================================
   GALLERY
===================================================== */

.gallery {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: .25s;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox.show { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* ===== WYBRANE REALIZACJE ===== */

.realizacje-grid {
  display: grid;

  /* ⭐ AUTOMATYCZNA RESPONSYWNOŚĆ */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

.realizacja {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.realizacja:hover {
  transform: translateY(-5px);
}

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

.realizacja-opis {
  padding: 18px;
}

.realizacja-opis span {
  color: #666;
  font-size: 14px;
}

.realizacje-btn {
  text-align: center;
  margin-top: 35px;
}

/* =====================================================
   ARTICLE
===================================================== */

.article {
  background: #fff;
  margin: 50px auto;
  padding: 60px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.article h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.article h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 26px;
}

.article p {
  margin-bottom: 18px;
  color: #444;
}

.article ul {
  margin-left: 20px;
  margin-bottom: 18px;
}

.article li { margin-bottom: 8px; }

.article h2::after {
  display: none;
}

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

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-item p {
  width: 100%;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* ===== PORADY / BLOG NA STRONIE GŁÓWNEJ ===== */

.porady-grid {
  display: grid;

  /* ⭐ AUTOMATYCZNA RESPONSYWNOŚĆ */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

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

.porady-btn {
  text-align: center;
  margin-top: 35px;
}


/* OPINIE KLIENTÓW */

.opinie-grid {
  display: grid;

  /* ⭐ AUTOMATYCZNA RESPONSYWNOŚĆ */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

.opinia {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.opinia p {
  color: #444;
  margin-bottom: 18px;
}


/* FEATURE IMAGE */

.feature-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin: 20px 0 30px;
}

/* CTA BOX */

.cta-box {
  background: #f7f9ff;
  padding: 30px;
  border-radius: 14px;
  margin-top: 40px;
  text-align: center;
}

.cta-box a {
  display: inline-block;
  margin-top: 15px;
  background: #9B6D39;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.rodo {
  display: block;
  font-size: 14px;
  margin: 30px 0;
  color: #555;
  border-radius: 8px;
  background: #f7f9ff;
  height: 80px;
}

.rodo input {
  margin-right: 8px;
}



.checkbox {
    width: 70px;
    height: 80px;
    display: flex;
    align-items: center;
    float: left;
}

.tresc_rodo {
    height: 80px;
    margin-left: 70px;
    display: flex;
    align-items: center;
}

.tresc_rodo a{
    display: contents;
}
/* =====================================================
   FAQ
===================================================== */

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px;
  margin-bottom: 8px;
  background: #f7f9ff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.faq-answer {
  display:none;
  padding:0 18px 18px;
  color:#444;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

  .hero { flex-direction: column; }

  .services-grid { grid-template-columns: repeat(2,1fr); }

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

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

  .blog-grid { grid-template-columns: repeat(2,1fr); }

  .gallery { grid-template-columns: repeat(2,1fr); }

  .hero h1 { font-size: 32px; }

}

@media (max-width: 700px) {

  .article { padding: 35px 25px; }

  .article h1 { font-size: 30px; }

  .feature-img { height: 260px; }

}

@media (max-width: 600px) {

  .logo span { display: none; }

    .menu a {
    display: none;     /* chowamy wszystkie linki */
  }

  #phone-btn {
    display: inline-block;   /* telefon zostaje */
  }

  .services-grid {
  display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 25px;
}

  .map-wrap {
    min-width: 100%;
  }

  #map {
    height: 240px;   /* ⭐ niższa mapa na telefonie */
  }

  h2 {
    font-size: 30px;
  }

.rodo {
  display: block;
  font-size: 14px;
  margin: 30px 0;
  color: #555;
  background: none;
  border-radius: 8px;
  height: 80px;
}

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

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