/* -------------------- HERO SPLIT -------------------- */
.homepage-split-hero {
  display: flex;
  width: 100vw;
  height: 440px;
  max-height: 50vw;
  min-height: 240px;
  overflow: hidden;
  position: relative;
}

.split-hero-half {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.split-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  min-width: 100%;
  display: block;
  transition: transform .4s cubic-bezier(.77,0,.18,1);
}

.split-hero-half:hover .split-hero-img {
  transform: scale(1.04);
}

.split-hero-caption {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.split-hero-title {
  background: rgba(16,22,36,0.40);
  color: #fff;
  font-size: 2.5vw;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 38px;
  border-radius: 12px;
  text-shadow: 0 2px 18px #000c;
  pointer-events: auto;
  transition: background .2s, color .2s;
  font-family: 'Montserrat', 'Arial', sans-serif;
}
.split-hero-caption a {
  text-decoration: none;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .homepage-split-hero {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .split-hero-half {
    min-height: 180px;
    height: 45vw;
    max-height: 260px;
  }
  .split-hero-title {
    font-size: 6vw;
    padding: 12px 18px;
    border-radius: 8px;
  }
}
@media (max-width: 520px) {
  .split-hero-title {
    font-size: 7vw;
    padding: 8px 6vw;
  }
  .split-hero-half {
    height: 36vw;
    max-height: 180px;
    min-height: 120px;
  }
}

/* -------------------- INTRO/WSTĘP -------------------- */
.intro-section {
  background: #fff;
  width: 100vw;
  padding: 0;
}
.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 12px 24px;
}
.intro-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.intro-text {
  font-size: 1.15rem;
  text-align: left;
  max-width: none;
  margin: 0 0 30px 0;
  line-height: 1.6;
  color: #212121;
}

/* -------------------- DREWNIANE/WSTĘP -------------------- */
.wood-section {
  background: #eaf5ff;
  width: 100vw;
  padding: 0;
}
.wood-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 24px 36px 24px;
}
.wood-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: left;
}
.wood-title .blue {
  color: #233292;
  font-weight: 700;
  text-decoration: none;
}
.wood-title .blue:hover {
  text-decoration: underline;
}
.wood-lead {
  font-size: 1.07rem;
  margin-bottom: 18px;
}
.wood-subtitle {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.wood-text {
  font-size: 1.07rem;
  margin-bottom: 0;
}

/* -------------------- DWIE KOLUMNY -------------------- */
.section-bg-gray {
  background: #fdfdfd;   /* poprawiony kolor - wcześniej raz był #fdfdfd */
  width: 100vw;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.section-bg-white {
  background: #fff;
  width: 100vw;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.section-two-col {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 0 48px 0;
  gap: 48px;
}
.col-50 {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.image-col {
  align-items: center;
}
.text-col {
  align-items: flex-start;
  text-align: left;
}
.section-img {
  max-width: 550px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0001;
  margin: 0;
  display: block;
  object-fit: cover;
}
.image-col .section-img + .section-img {
  margin-top: 32px;
}
.section-title {
  color: #233292;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.text-col h3 {
  color: #233292;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 4px;
}

/* ----------- MEDIA QUERIES - RWD ----------- */
@media (max-width: 1200px) {
  .section-two-col {
    padding-left: 2vw;
    padding-right: 2vw;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .intro-container,
  .wood-container {
    padding: 24px 6vw 14px 6vw;
    max-width: 98vw;
  }
  .col-50.text-col {
    padding: 0 20px;
  }
  .intro-title {
    font-size: 1.35rem;
  }
  .wood-title {
    font-size: 1.18rem;
  }
  .section-two-col {
    flex-direction: column;
    gap: 28px;
    padding: 38px 0 20px 0;
  }
  .section-img {
    max-width: 90vw;
    min-width: 180px;
  }
  .text-col {
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .section-two-col {
    gap: 18px;
    padding: 18px 0 12px 0;
  }
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
}

/* ZAKŁADKA KONTATK */


.form-kontakt input, .form-kontakt textarea {
  width: 100%;
  max-width: 600px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-kontakt button {
  background-color: var(--tb-theme-color);
  color: white;
  padding: 12px 26px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}

.form-kontakt button:hover {
  background-color: var(--tb-theme-color-hover);
}
.form-message {
  padding: 16px 24px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  display: block;
}

.form-message.success {
  background-color: #e6fbe6;
  color: #146c2d;
  border: 1px solid #88d9a0;
}

.form-message.error {
  background-color: #fde8e8;
  color: #a00;
  border: 1px solid #e0a0a0;
}
