/* ============================================================
   KURKA KULTURKA — Poprawki responsywności
   ============================================================ */

/* -------------------------------------------------------
   1. HERO — czysty flexbox, bez position:absolute z Webflow
   ------------------------------------------------------- */
.c-hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  min-height: 420px;
  overflow: hidden;
  position: static;
}

.c-hero-split-image__image {
  width: 50%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  position: static;
  box-shadow: none;
  flex-shrink: 0;
}

.c-hero__split-text {
  position: static !important;
  inset: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 50%;
  max-width: 50%;
  padding: 48px 40px;
  background-color: var(--americano);
  box-sizing: border-box;
}

.c-hero-split-text__heading {
  color: var(--carrara);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  position: static !important;
}

.c-hero-split-text__paragraph {
  color: var(--carrara);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  position: static !important;
  text-align: left;
}

.c-hero-split-text__button {
  border: 1px solid var(--charade);
  background-color: var(--americano);
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 25px;
  font-size: 12px;
  text-decoration: none;
  transition: background-color .2s;
  position: static !important;
  margin-top: 0 !important;
  top: auto !important;
}

.c-hero-split-text__button:hover {
  background-color: var(--charade);
  color: var(--white);
}

/* -------------------------------------------------------
   2. NAVBAR — własna obsługa hamburger menu (bez Webflow JS)
   ------------------------------------------------------- */
.navbar-logo-left-container {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

.container-4 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
}

.navbar-brand.w-nav-brand img {
  height: 48px;
  width: auto;
  max-width: 200px;
}

/* Menu desktop — zawsze widoczne */
.nav-menu-wrapper {
  display: flex !important;
}

.nav-menu-two {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-3 {
  padding: 8px 14px;
  white-space: nowrap;
}

/* Hamburger — ukryty na desktop */
.menu-button-2.w-nav-button {
  display: none;
  cursor: pointer;
  padding: 8px;
  font-size: 24px;
  background: none;
  border: none;
  color: inherit;
}

/* -------------------------------------------------------
   3. PARTNERZY
   ------------------------------------------------------- */
.logos-title-small {
  padding: 50px 20px;
  box-sizing: border-box;
}

.container-3 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.clients-wrapper-three {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 40px;
  margin-top: 24px;
}

.clients-image-three {
  max-width: 160px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* -------------------------------------------------------
   4. STOPKA
   ------------------------------------------------------- */
.footer-subscribe {
  padding: 50px 20px 40px;
  box-sizing: border-box;
}

.footer-wrapper-three {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-block-three {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-legal-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

/* -------------------------------------------------------
   5. KONTAKT
   ------------------------------------------------------- */
.div-block {
  padding: 40px 20px;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-stack {
  display: grid;
  grid-template-columns: 1.75fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.cell-2 {
  min-height: 400px;
}

.cell-2 .code-embed,
.cell-2 iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
}

/* -------------------------------------------------------
   6. GALERIA — siatka 3x2
   ------------------------------------------------------- */
.kk-gallery-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.kk-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kk-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}

.kk-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.kk-gallery-item:hover img {
  transform: scale(1.05);
}

.kk-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 24px 10px 10px;
  text-align: center;
  line-height: 1.3;
}

/* -------------------------------------------------------
   7. TABLET (max 991px)
   ------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .c-hero { min-height: 360px; }
  .c-hero-split-image__image { min-height: 360px; }
  .c-hero__split-text { padding: 36px 28px; }

  .kk-gallery-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px;
  }

  .quick-stack { grid-template-columns: 1fr 1fr; }
  .clients-image-three { max-width: 130px; }
}

/* -------------------------------------------------------
   8. MOBILE (max 767px) — hamburger aktywny
   ------------------------------------------------------- */
@media screen and (max-width: 767px) {

  /* Hero — stack pionowy */
  .c-hero {
    flex-direction: column;
    min-height: unset;
  }

  .c-hero-split-image__image {
    width: 100%;
    height: 260px;
    min-height: unset;
    object-position: center top;
  }

  .c-hero__split-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 32px 20px;
    align-items: flex-start;
  }

  /* Hamburger widoczny */
  .menu-button-2.w-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Menu schowane domyślnie, otwierane przez JS */
  .nav-menu-wrapper.w-nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
    padding: 8px 0 16px;
  }

  .nav-menu-wrapper.w-nav-menu.kk-menu-open {
    display: block !important;
  }

  .nav-menu-two {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 0;
  }

  .nav-menu-two .list-item-2 {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-link-3 {
    display: block;
    width: 100%;
    padding: 12px 0;
    color: #1a1b1f;
    text-decoration: none;
  }

  .mobile-margin-top-10 {
    width: 100%;
    padding: 12px 0 0;
  }

  .button-primary-3.w-button {
    display: inline-block;
  }

  /* Kontakt */
  .quick-stack { grid-template-columns: 1fr; }
  .cell-2 { min-height: 260px; }
  .cell-2 iframe { min-height: 260px; }

  /* Stopka */
  .footer-wrapper-three { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-block-three { flex-direction: column; }
  .footer-link-three { margin-left: 0; margin-right: 0; padding: 4px 0; }
  .footer-legal-block { flex-direction: column; margin-top: 8px; }

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

/* -------------------------------------------------------
   9. MOBILE MAŁE (max 479px)
   ------------------------------------------------------- */
@media screen and (max-width: 479px) {
  .c-hero-split-image__image { height: 200px; }
  .c-hero__split-text { padding: 24px 16px; }
  .c-hero-split-text__heading { font-size: 1.4rem; }
  .c-hero-split-text__paragraph { font-size: 14px; }
  .clients-image-three { max-width: 110px; }
  .kk-gallery-section { padding: 24px 12px; }
  .kk-gallery-grid { gap: 8px; }
}
