/* KOVA Variant C — Mobile responsive + GLOBAL: ukryty side nav (2026-04-29) */

/* GLOBAL — usuń pasek po lewej (.vc-side) ze WSZYSTKICH viewportów */
.vc-side { display: none !important; }
.vc-nav { left: 0 !important; }
.vc-cursor { display: none !important; pointer-events: none !important; }
body, .vc, .vc *, .vc a { cursor: auto !important; }
html, body, .vc { overflow-x: hidden !important; max-width: 100vw !important; }

/* Hamburger button — desktop hidden, mobile visible */
.vc-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(230,225,212,.4);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #e6e1d4;
  cursor: pointer;
  z-index: 1000;
}
.vc-mobile-menu-btn:hover { background: rgba(230,225,212,.08); }

/* Mobile slide-down menu */
.vc-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(6,8,10,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 80px 24px 32px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(230,225,212,.15);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.vc-mobile-menu.open {
  display: flex;
  transform: translateY(0);
}
.vc-mobile-menu a {
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: #e6e1d4;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(230,225,212,.1);
}
.vc-mobile-menu a:last-child { border-bottom: 0; }
.vc-mobile-menu a:hover { color: #FF2D6F; }

/* Hero tap hint as button */
.vc-hero-tap-hint {
  background: rgba(6,8,10,.5);
  border: 1px solid rgba(230,225,212,.3);
  color: #e6e1d4;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

/* GLOBAL — wszystkie sekcje miały margin-left:64px (rezerwa pod side nav) — usuń */
.vc-nav,
.vc-pillars,
.vc-rows,
.vc-reel,
.vc-partners,
.vc-foot,
.vc-foot-bottom,
.vc-tcos,
.vc-zin,
.vc-news,
.vc-form,
.vc-contact,
.vc-projects,
.vc-tabs,
.vc-statement,
.vc-hero {
  margin-left: 0 !important;
}
.vc-statement-inner { padding-left: 0 !important; }


/* Touch devices: disable custom cursor + restore default */
@media (hover: none), (max-width: 768px) {
  .vc, .vc *, .vc a, .vc-form select, .vc-form .submit, .vc-tab, .vc-news .news-form button {
    cursor: auto !important;
  }
  .vc-cursor { display: none !important; }
  body { cursor: auto !important; }
}

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .vc-side { width: 48px; }
  .vc-hero h1 { font-size: clamp(64px, 11vw, 140px) !important; }
  .vc-nav-links { gap: 18px; font-size: 9.5px; }
  .vc-nav-right { gap: 12px; font-size: 9.5px; }
}

/* Mobile portrait (≤768px) */
@media (max-width: 768px) {
  /* Hide vertical side nav, keep top nav */
  .vc-side { display: none !important; }

  /* Top nav: only logo + hamburger; hide inline links + status row */
  .vc-nav {
    padding: 14px 16px !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .vc-logo b { font-size: 18px !important; }
  .vc-logo sup { display: none; }
  .vc-nav-right { display: none !important; }
  .vc-nav-links { display: none !important; }
  .vc-mobile-menu-btn { display: inline-flex !important; }

  /* Hero — radically smaller */
  .vc-hero {
    padding: 80px 20px 60px !important;
    min-height: 80vh !important;
  }
  .vc-hero-eyebrow { font-size: 9.5px !important; gap: 10px !important; margin-bottom: 18px !important; }
  .vc-hero-eyebrow .ln { width: 28px !important; }
  .vc-hero h1,
  .vc-statement-h1 {
    font-size: clamp(28px, 9vw, 56px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.05em !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .vc-statement-h1 .of,
  .vc-statement-h1 .ital { display: inline-block; max-width: 100%; }
  .vc-statement { padding: 60px 18px !important; min-height: auto !important; }
  .vc-statement-inner { width: 100% !important; max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
  .vc-hero p.tag { font-size: 14px !important; margin-top: 22px !important; max-width: 100% !important; }
  .vc-hero .cta-row {
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 28px !important;
    align-items: stretch !important;
  }
  .vc-hero .cta { text-align: center !important; padding: 14px 20px !important; }

  /* Hero frame — remove on mobile (too cramped) */
  .vc-hero-frame { display: none !important; }

  /* Sections — uniform horizontal padding */
  .vc-statement,
  .vc-rows,
  .vc-pillars,
  .vc-pillar-body,
  .vc-tcos,
  .vc-premiere,
  .vc-zin,
  .vc-news,
  .vc-contact,
  .vc-foot,
  .vc-foot-bottom,
  .vc-locations,
  .vc-clients,
  .vc-newsletter,
  .vc-reel,
  .vc-partners,
  .vc-form {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Project rows — slimmer height, single column gut */
  .vc-frow { min-height: 0 !important; aspect-ratio: 4/3 !important; }
  .vc-frow .gut-bot {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .vc-frow .gut-top { font-size: 9px !important; gap: 10px !important; flex-wrap: wrap; }
  .vc-frow h3 { font-size: clamp(28px, 8vw, 44px) !important; }

  /* Pillars / Oferta tabs — stack vertically */
  .vc-pillar-tabs,
  .vc-tabs {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .vc-pillar-body { grid-template-columns: 1fr !important; gap: 18px !important; }
  .vc-pillar-tabs .vc-tab,
  .vc-tabs .vc-tab,
  .vc-tab {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 16px 0 !important;
    width: 100% !important;
  }
  .vc-tab:last-child { border-bottom: 0 !important; }

  /* TCOS premiere block */
  .vc-premiere { grid-template-columns: 1fr !important; }
  .vc-premiere .img { aspect-ratio: 16/9 !important; }

  /* ZIN — collapse 2-col layout */
  .vc-zin { grid-template-columns: 1fr !important; gap: 24px !important; }
  .vc-zin .cover-title { font-size: clamp(48px, 14vw, 80px) !important; }
  .vc-zin .zin-cover { padding: 28px 22px !important; min-height: 50vh !important; }

  /* News — collapse */
  .vc-news { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Contact form — single column */
  .vc-contact { grid-template-columns: 1fr !important; gap: 28px !important; }
  .vc-form { grid-template-columns: 1fr !important; }
  .vc-form .row, .vc-form .row-2 { grid-template-columns: 1fr !important; }

  /* Footer — single column */
  .vc-foot { grid-template-columns: 1fr !important; gap: 28px !important; padding-top: 40px !important; padding-bottom: 24px !important; }
  .vc-foot .col { width: 100% !important; }
  .vc-foot-bottom { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; }

  /* Display headings smaller */
  .vc-statement h2,
  .vc-rows h2,
  .vc-pillars h2,
  .vc-tcos h2,
  .vc-premiere h2,
  .vc-zin h2,
  .vc-news h2,
  .vc-contact h2,
  .vc-newsletter h2 {
    font-size: clamp(32px, 9vw, 56px) !important;
    line-height: 1.05 !important;
  }

  .vc-statement { min-height: 70vh !important; padding-top: 60px !important; padding-bottom: 50px !important; }

  /* Showreel band — 2 columns instead of 4 */
  .vc-reel { grid-template-columns: 1fr 1fr !important; gap: 12px !important; padding: 32px 20px !important; }

  /* Locations — fewer columns */
  .vc-locations { grid-template-columns: 1fr 1fr !important; }

  /* Clients marquee */
  .vc-clients .row > * { padding-left: 24px !important; }

  /* Form inputs — full width touch friendly */
  .vc-form input,
  .vc-form select,
  .vc-form textarea {
    font-size: 16px !important; /* prevent iOS zoom */
    padding: 12px 0 !important;
  }
  .vc-form .submit {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 12px !important;
  }
  .vc-news .news-form button {
    width: 100% !important;
    padding: 14px 20px !important;
  }

  /* Disable grain overlay on mobile (perf + readability) */
  .vc::after { opacity: 0.08 !important; }
}

/* Mobile landscape / very narrow */
@media (max-width: 480px) {
  .vc-hero h1, .vc-statement-h1 { font-size: clamp(28px, 9.5vw, 50px) !important; letter-spacing: -0.04em !important; }
  .vc-zin .cover-title { font-size: 44px !important; }
  .vc-nav { padding: 12px 14px !important; }
  .vc-nav-links { font-size: 9px !important; gap: 8px 12px !important; }
}

/* ============================================================
   MOBILE FIX 2026-05-14 — sekcje pominięte w pierwszej wersji
   (gigantyczne fonty + sztywne siatki przepychały content
   poza 375px viewport)
   ============================================================ */
@media (max-width: 768px) {

  /* box-sizing safety — żeby padding nie powiększał szerokości */
  .vc, .vc *, .vc *::before, .vc *::after { box-sizing: border-box; }

  /* --- PILLARS / OFERTA — desktop padding 84px + h3 84px --- */
  .vc-pillar-body {
    padding: 36px 20px !important;
    gap: 28px !important;
  }
  .vc-pillar-body h3 {
    font-size: clamp(34px, 11vw, 60px) !important;
    line-height: 0.95 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .vc-pillar-body .lede,
  .vc-pillar-body .body-p,
  .vc-pillar-body p { max-width: 100% !important; }
  /* meta-grid: 3 sztywne kolumny → 1 kolumna */
  .vc-pillar-body .meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  /* --- ZIN — h3 96px + cover-title 160px przepychały sekcję --- */
  .vc-zin .zin-cover,
  .vc-zin .zin-copy,
  .vc-zin .zin-art {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .vc-zin .cover-title {
    font-size: clamp(56px, 18vw, 96px) !important;
    word-break: break-word !important;
  }
  .vc-zin .zin-copy h3 {
    font-size: clamp(34px, 11vw, 60px) !important;
    line-height: 0.92 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .vc-zin .zin-copy p { max-width: 100% !important; }
  .vc-zin .btn-row { width: 100% !important; }
  .vc-zin .btn-row .cta { flex: 1 1 auto !important; justify-content: center !important; }

  /* --- HERO META (.left / .right / .meta-grid / .kick) --- */
  .vc-hero .left,
  .vc-hero .right,
  .vc-shead .left,
  .vc-shead .right {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  /* --- katch-all: bezpośrednie dzieci sekcji nie mogą wystawać --- */
  .vc-pillars > *, .vc-zin > *, .vc-statement > *,
  .vc-tcos > *, .vc-news > *, .vc-premiere > *,
  .vc-rows > *, .vc-reel > *, .vc-contact > * {
    max-width: 100% !important;
  }

  /* --- film rows: gut-bot 4-kolumnowy grid → 1 kolumna --- */
  .vc-frow .gut-bot {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .vc-frow .gut-bot .desc { max-width: 100% !important; }

  /* --- premiere block — kick + treść --- */
  .vc-premiere .kick, .vc-tcos .kick, .vc-news .kick { max-width: 100% !important; }

  /* obrazki nigdy szersze niż kontener */
  .vc img, .vc video, .vc picture { max-width: 100% !important; height: auto !important; }
}

/* very narrow — dodatkowe zmniejszenie gigantów */
@media (max-width: 420px) {
  .vc-zin .cover-title { font-size: clamp(48px, 16vw, 72px) !important; }
  .vc-zin .zin-copy h3,
  .vc-pillar-body h3 { font-size: clamp(30px, 10.5vw, 48px) !important; }
  .vc-pillar-body .meta-grid { grid-template-columns: 1fr !important; }
}

/* statement — twardy reset offsetu + bg w obrębie sekcji */
@media (max-width: 768px) {
  .vc-statement { padding-left: 18px !important; padding-right: 18px !important; }
  .vc-statement-inner { padding-left: 0 !important; margin-left: 0 !important; left: 0 !important; transform: none !important; }
  .vc-statement-bg { left: 0 !important; width: 100% !important; }
  .vc-statement-meta, .vc-statement-scroll { max-width: 100% !important; }
}

/* ============================================================
   MOBILE FIX 2026-05-18 — KRYTYCZNY: sekcje przesunięte o 64px
   (rezerwa pod side-nav nie była zerowana) + grid 2-kol nie zwijał się
   ============================================================ */
@media (max-width: 768px) {
  /* catch-all — żadna sekcja .vc nie może mieć rezerwy 64px po side-navie */
  .vc > section,
  .vc > header,
  .vc > footer,
  .vc-statement, .vc-hero, .vc-manifesto, .vc-shead, .vc-rows,
  .vc-premiere, .vc-pillars, .vc-cta, .vc-zin, .vc-clients,
  .vc-locations, .vc-news, .vc-contact, .vc-foot, .vc-nav, .vc-reel {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* gridy 2-kolumnowe → 1 kolumna */
  .vc-manifesto,
  .vc-cta,
  .vc-premiere,
  .vc-shead {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* manifesto — padding + treść w pełnej szerokości */
  .vc-manifesto { padding: 56px 20px !important; }
  .vc-manifesto > *,
  .vc-manifesto p,
  .vc-manifesto h2 { max-width: 100% !important; }

  /* section headers — stack, lewy align */
  .vc-shead {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 48px 20px 24px !important;
  }
  .vc-shead .left,
  .vc-shead .right {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  /* CTA — kolumna, tło czytelne */
  .vc-cta {
    padding: 56px 20px !important;
    align-items: stretch !important;
  }
  .vc-cta > *,
  .vc-cta .left,
  .vc-cta .right { max-width: 100% !important; width: 100% !important; }

  /* premiere — kolumna, obraz nad treścią */
  .vc-premiere { padding: 48px 20px !important; }
  .vc-premiere .img { aspect-ratio: 16/9 !important; width: 100% !important; }

  /* side-nav definitywnie ukryty */
  .vc-side { display: none !important; }
}

/* ============================================================
   MOBILE FIX 2026-05-18 #2 — lokalizacje (kolumna 2 poza ekranem)
   + karty filmów (sztywny aspect-ratio ucinał treść)
   ============================================================ */
@media (max-width: 768px) {
  /* LOKALIZACJE — 2 kolumny się nie mieściły (2. poza ekranem) → 1 kolumna */
  .vc-locations {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 48px 20px 64px !important;
  }
  .vc-locations .loc {
    grid-template-columns: 40px 1fr auto !important;
    gap: 10px !important;
    min-width: 0 !important;
  }
  .vc-locations .loc .name {
    font-size: 18px !important;
    overflow-wrap: anywhere !important;
  }

  /* KARTY FILMÓW — .gut był absolute → karta miała sztywną wysokość
     i ucinała treść. Robimy gut static → karta rośnie z treścią */
  .vc-frow {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .vc-frow .gut {
    position: relative !important;
    z-index: 2 !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    padding: 26px 20px !important;
    gap: 16px !important;
    min-height: 340px !important;
  }
  .vc-frow .bg,
  .vc-frow .veil { position: absolute !important; inset: 0 !important; }
  .vc-frow .gut-mid { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .vc-frow .gut-mid .ep-num { font-size: 52px !important; line-height: 1 !important; }
  .vc-frow .gut-mid h3 { font-size: clamp(26px, 7.5vw, 40px) !important; line-height: 1.0 !important; }
  /* mocniejszy veil — tekst czytelny na zdjęciu */
  .vc-frow .veil {
    background: linear-gradient(180deg, rgba(6,8,10,.74) 0%, rgba(6,8,10,.62) 42%, rgba(6,8,10,.90) 100%) !important;
  }
}
