/** Shopify CDN: Minification failed

Line 844:8 Expected identifier but found "log("
Line 847:4 Expected ":"
Line 848:6 Expected ":"
Line 852:9 Unexpected "initNav("
Line 853:7 Expected ":"
Line 854:7 Expected ":"
Line 855:4 Expected ":"
Line 857:2 Comments in CSS use "/* ... */" instead of "//"
Line 859:11 Expected ":"
Line 861:11 Expected ":"
... and 34 more hidden warnings

**/
.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
}

.hero_bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero_content {
  position: absolute;
  left: 5%;
  bottom: 10%;
  max-width: 420px;
  background: rgba(245, 245, 245, 0.92);
  padding: 24px;
  border-radius: 14px;
}

.hero_content h1 {
  color: #000;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero_content p {
  color: #333;
  font-size: 14px;
  margin-bottom: 16px;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }

  .hero_content {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 18px;
  }

  .hero_content h1 {
    font-size: 22px;
  }
}



:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #111418;
  --muted: #5a6675;
  --accent: #0f8bff;
  --accent-soft: #e7f2ff;
  --border: #e4e7ed;
  --shadow: 0 18px 40px rgba(17, 20, 24, 0.08);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --gap: 1.5rem;
  --transition: 200ms ease;
  --font-base: "Inter", "Manrope", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.1;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding: 0;
  margin: 0.5rem 0 0;
  list-style: none;
}

li + li {
  margin-top: 0.4rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #2a6edb;
  margin-bottom: 0.5rem;
}

.small-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.lede {
  font-size: 1.05rem;
  color: #2c3440;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: 1.75rem;
}

.section-head .link-inline {
  color: #2a6edb;
  font-weight: 600;
}

.link-inline:hover {
  color: var(--accent);
}

section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 139, 255, 0.18);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.text {
  background: transparent;
  color: #2a6edb;
  padding-left: 0;
  padding-right: 0;
}

.btn.full {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.1rem 0 1.4rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 139, 255, 0.3);
  box-shadow: 0 24px 50px rgba(17, 20, 24, 0.12);
}

.card img {
  border-radius: var(--radius-s);
  margin-top: 0.85rem;
}

.card-title {
  font-weight: 700;
  color: #111418;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .section-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(246, 247, 251, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: #f0f4fb;
  padding: 0.35rem;
  border: 1px solid var(--border);
}

.brand-name {
  font-size: 1rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  padding: 0.3rem 0.15rem;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  color: #111418;
}

.nav-links a:hover {
  border-color: rgba(15, 139, 255, 0.5);
}

.nav-links .active {
  border-color: var(--accent);
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(12, 18, 34, 0.78);
  backdrop-filter: blur(14px);
  padding: 5rem 1.5rem;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f7f9fc;
}

.menu-open {
  overflow: hidden;
}

.nav-links.open a {
  font-size: 1.4rem;
  color: #f7f9fc;
  display: inline-block;
  width: auto;
  text-align: center;
}

.nav-toggle {
  position: relative;
  z-index: 1000;
}

.hero {
  position: relative;
  padding: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 68vh;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1.6rem, 5vw, 2.6rem);
  color: #0b0e12;
}

.hero-text {
  max-width: 520px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(6px);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(228, 231, 237, 0.8);
  box-shadow: 0 18px 38px rgba(17, 20, 24, 0.12);
}

.hero-text h1 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
}

.hero-text p {
  max-width: 54ch;
}

.flow-section {
  padding: clamp(2.8rem, 7vw, 5rem) 0;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 1.8rem;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.stat-card {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0.3rem 0;
  letter-spacing: -0.02em;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (max-width: 720px) {
  .hero-visual {
    min-height: 78vh;
  }

  .hero-content {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(1.2rem, 5vw, 1.8rem);
  }

  .hero-text {
    max-width: 72vw;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 12px 26px rgba(17, 20, 24, 0.1);
    text-align: center;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.45rem;
  }

  .hero-text .lede {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }

  .cta-row {
    margin: 0.6rem 0 0.9rem;
    gap: 0.6rem;
  }

  .btn {
    padding: 0.6rem 1.05rem;
  }

  .hero-lede {
    display: none;
  }

  .hero-text.mobile-hero-animate {
    opacity: 0;
    transform: translateX(-14px);
    animation: heroSlideIn 420ms ease forwards;
    animation-delay: 80ms;
  }
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.video-tile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  transition: transform var(--transition);
}

.video-tile:hover {
  transform: translateY(-4px);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-s);
}

.video-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.mobile-open-channel {
  display: none;
}

.image-break {
  padding: clamp(2.2rem, 6vw, 3.8rem) 0;
}

.image-break img {
  width: 100%;
  display: block;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .section-head .link-inline {
    display: none;
  }

  .mobile-open-channel {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
  }

  .mobile-open-channel .btn {
    max-width: 360px;
    width: 100%;
  }
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.timeline-card img {
  border-radius: var(--radius-s);
  max-height: 200px;
  width: 100%;
  object-fit: cover;
}

.identity-card {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.logo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.logo-card {
  text-align: left;
}

.logo-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius-s);
  padding: 1.6rem;
  margin-bottom: 0.8rem;
  text-align: center;
  color: var(--muted);
  background: var(--accent-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: #fff;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-brand .brand-mark {
  background: #f0f4fb;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-links.open {
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    gap: 1rem;
    box-shadow: none;
  }

  .hero {
  padding: 0 !important;
}
}
/* FIX MOBILE HERO BUTTONS */
.hero .cta-row {
  display: flex !important;
  flex-direction: column;
  gap: 0.6rem;
}

.hero .btn {
  display: inline-flex !important;
  width: fit-content;
}

@media (max-width: 720px) {
  .hero .btn {
    width: 100%;
    justify-content: center;
  }
}

/* TEMP FIX – pokaż sekcje bez JS */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .flow-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .container {
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .highlights {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
.section-intro h2 {
  text-transform: none;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.2;
}

/* === FORCE HERO BACKGROUND IMAGE === */
.hero-visual {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* === FIX SHOPIFY H2 (no caps, smaller like custom) === */
section h2 {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

@media (max-width: 720px) {
  section h2 {
    font-size: 1.45rem;
  }
}
 
.hero-video {
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* === REMOVE TEXT SHADOW FROM ALL HERO HEADINGS === */

.hero h1,
.hero h2,
.hero h3,
.hero .lede,
.hero p {
  text-shadow: none !important;
}

/* === HERO TEXT COLOR: BLACK === */

.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero .lede,
.hero .eyebrow {
  color: #000 !important;
}

console.log("✅ main.js loaded");

function onReady(fn) {
  if (document.readyState !== "loading") fn();
  else document.addEventListener("DOMContentLoaded", fn);
}

/* ================= NAV ================= */
function initNav(scope = document) {
  const navToggle = scope.querySelector(".nav-toggle");
  const navLinks = scope.querySelector(".nav-links");
  if (!navToggle || !navLinks) return;

  // nie podpinać kilka razy
  if (navToggle.dataset.bound === "true") return;
  navToggle.dataset.bound = "true";

  navToggle.addEventListener("click", () => {
    navLinks.classList.toggle("open");
    const isOpen = navLinks.classList.contains("open");
    document.body.classList.toggle("menu-open", isOpen);
    navToggle.setAttribute("aria-expanded", String(isOpen));
  });

  navLinks.querySelectorAll("a").forEach((link) => {
    link.addEventListener("click", () => {
      navLinks.classList.remove("open");
      document.body.classList.remove("menu-open");
      navToggle.setAttribute("aria-expanded", "false");
    });
  });
}

/* ================= REVEAL ================= */
function initReveal(scope = document) {
  const items = scope.querySelectorAll(".reveal");
  if (!items.length) return;

  // Jeśli przeglądarka/edytor ma problemy, pokaż od razu
  if (!("IntersectionObserver" in window)) {
    items.forEach((el) => el.classList.add("is-visible"));
    return;
  }

  const observer = new IntersectionObserver(
    (entries, obs) => {
      entries.forEach((entry) => {
        if (entry.isIntersecting) {
          entry.target.classList.add("is-visible");
          obs.unobserve(entry.target);
        }
      });
    },
    { threshold: 0.2 }
  );

  items.forEach((el) => observer.observe(el));
}

/* ================= STATS ================= */
function initStatCounters(scope = document) {
  const stats = scope.querySelectorAll("[data-stat-target]");
  if (!stats.length) return;

  const easeOut = (t) => 1 - Math.pow(1 - t, 3);

  const animate = (el, target, suffix = "") => {
    const duration = 1200;
    const start = performance.now();

    const step = (now) => {
      const progress = Math.min((now - start) / duration, 1);
      const value = Math.floor(target * easeOut(progress));
      el.textContent = `${value.toLocaleString()}${suffix}`;
      if (progress < 1) requestAnimationFrame(step);
    };

    requestAnimationFrame(step);
  };

  const observer = new IntersectionObserver(
    (entries, obs) => {
      entries.forEach((entry) => {
        if (!entry.isIntersecting) return;
        const el = entry.target;
        if (el.dataset.counted === "true") return;

        el.dataset.counted = "true";
        const target = parseInt(el.dataset.statTarget || "0", 10);
        const suffix = el.dataset.statSuffix || "";
        animate(el, target, suffix);

        obs.unobserve(el);
      });
    },
    { threshold: 0.35 }
  );

  stats.forEach((el) => observer.observe(el));
}

/* ================= BOOT ================= */
function boot(scope = document) {
  initNav(scope);
  initReveal(scope);
  initStatCounters(scope);
}

/* Start */
onReady(() => {
  boot(document);
});

/* Shopify theme editor (gdy sekcje się przeładowują) */
document.addEventListener("shopify:section:load", (e) => {
  boot(e.target);
});
document.addEventListener("shopify:section:select", (e) => {
  boot(e.target);
});

@media (max-width: 768px) {
  .mobile-open-channel {
    margin-top: 20px;
  }
}

}
