/* =========================================================
   AS LIVE MEDIA — system wizualny (wersja jasna / broadcast)
   Paleta: ciepła biel (paper) + atrament + kobalt + "on air" red
   Typografia: Clash Display (display) + Satoshi (body) — Fontshare
   Wspólny plik dla index-foto.html oraz index-video.html
   ========================================================= */

:root {
  /* --- Kolory --- */
  --paper:      #f5f2ec;   /* ciepła biel — główne tło */
  --paper-2:    #ece7dd;   /* delikatny beż — sekcje naprzemienne */
  --paper-card: #fbfaf7;   /* karty */
  --ink:        #14161c;   /* prawie czerń — teksty/nagłówki */
  --ink-2:      #3a3f4b;   /* ciemny szary — akapity */
  --muted:      #6b7180;   /* stonowany */
  --faint:      #9aa0ad;   /* bardzo delikatny */
  --line:       rgba(20, 22, 28, 0.12);
  --line-soft:  rgba(20, 22, 28, 0.07);

  --accent:     #1a44ff;   /* kobalt — akcent marki */
  --accent-700: #0f2fcc;
  --accent-glow: rgba(26, 68, 255, 0.18);
  --live:       #ff2d4a;   /* czerwony "ON AIR" */

  --night:      #0c0e14;   /* atramentowe sekcje/stopka */
  --night-2:    #141821;

  /* --- Wymiary --- */
  --container: 1280px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  /* --- Ruch --- */
  --t-fast: 180ms ease;
  --t:      340ms cubic-bezier(.2, .7, .2, 1);
  --t-slow: 700ms cubic-bezier(.2, .7, .2, 1);

  --font-display: 'Clash Display', 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* =========================================================
   Reset / baza
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ziarno / tekstura — subtelna, dodaje "analogowej" głębi */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Układ / typografia
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

section { position: relative; padding: 128px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.8vw, 96px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }

p { margin: 0 0 18px; color: var(--ink-2); text-wrap: pretty; }
p.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink); line-height: 1.5; max-width: 720px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }

/* Nagłówek dwukolumnowy sekcji */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
.section-head .head-right p { font-size: 17px; margin: 0; color: var(--muted); }

/* =========================================================
   Nagłówek strony / nawigacja
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 13px 0;
  background: rgba(245, 242, 236, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -28px rgba(20, 22, 28, 0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.logo { display: flex; align-items: center; gap: 12px; height: 40px; }
.logo img { height: 100%; width: auto; transition: filter var(--t); }
/* Na przezroczystym hero logo białe, po scrollu ciemne */
.site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }
.site-header.scrolled .logo img { filter: none; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 10px 15px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--t-fast);
}
.site-header.scrolled .nav a { color: var(--muted); }
.nav a:hover { color: #fff; }
.site-header.scrolled .nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 14px;
  padding: 11px 22px !important;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-700); transform: translateY(-1px); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0;
}
.site-header.scrolled .hamburger { background: transparent; border-color: var(--line); }
.hamburger span { width: 18px; height: 2px; background: #fff; transition: transform var(--t), opacity var(--t-fast); }
.site-header.scrolled .hamburger span { background: var(--ink); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Przyciski
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 16px 42px -16px var(--accent);
}
.btn-primary:hover { background: var(--accent-700); transform: translateY(-2px); box-shadow: 0 22px 50px -16px var(--accent); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(20,22,28,.03); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img,
.hero-media video,
.hero-media iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
/* Skalowanie iframe YouTube/Vimeo do "cover" (16:9 z przycięciem) */
.hero-media.is-embed iframe {
  width: 100vw; height: 56.25vw;         /* 16:9 wg szerokości */
  min-height: 100svh; min-width: 177.78svh; /* 16:9 wg wysokości */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Warstwy przyciemniające dla czytelności — pozostają "jasne", nie mroczne */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,14,20,.55) 0%, rgba(12,14,20,.15) 30%, rgba(12,14,20,.35) 62%, rgba(12,14,20,.86) 100%),
    linear-gradient(90deg, rgba(12,14,20,.55) 0%, rgba(12,14,20,0) 55%);
  z-index: 1;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 8vh, 110px);
  padding-top: 160px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; margin-bottom: 30px;
}
.hero-badge .live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 0 rgba(255,45,74,.7);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,45,74,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,45,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,74,0); }
}
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 26px; }
.hero h1 .accent { color: #fff; position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: .10em; background: var(--accent); border-radius: 2px;
}
.hero .lead { color: rgba(255,255,255,.9); }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* Pasek statystyk pod hero */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 48px; margin-top: 56px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18);
  width: fit-content;
}
.hero-stats .stat strong {
  display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -.02em;
}
.hero-stats .stat span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Wskaźnik scrollowania */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative;
}
.scroll-cue .mouse::before {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; background: #fff; border-radius: 2px; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* =========================================================
   O firmie
   ========================================================= */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.about-lead h2 { margin-bottom: 0; }
.about-text p { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.about-text p + p { margin-top: 18px; }

.about-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.about-mark {
  background: var(--paper-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.about-mark:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(20,22,28,.4); border-color: var(--line); }
.about-mark .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .05em; margin-bottom: 14px; }
.about-mark h4 { font-size: 17px; margin: 0 0 6px; color: var(--ink); }
.about-mark p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* =========================================================
   Kinowy pas mediów (parallax)
   ========================================================= */
.media-band {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  border: none;
  padding: 120px 0;
}
.media-band .band-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;   /* efekt parallax na desktopie */
}
.media-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,12,18,.82) 0%, rgba(10,12,18,.45) 60%, rgba(10,12,18,.6) 100%);
}
.media-band .container { z-index: 2; }
.band-kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; opacity: .8; margin-bottom: 20px; display: block; }
.band-quote { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 46px); font-weight: 600; line-height: 1.14; color: #fff; max-width: 20ch; letter-spacing: -.02em; margin: 0; }
.band-meta { margin-top: 28px; display: flex; gap: 44px; flex-wrap: wrap; }
.band-meta .m strong { display: block; font-family: var(--font-display); font-size: 34px; color: #fff; }
.band-meta .m span { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* =========================================================
   Usługi
   ========================================================= */
.services { background: var(--paper-2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--paper-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 38px 34px;
  display: flex; flex-direction: column; min-height: 300px;
  position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); transition: width var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(20,22,28,.45); border-color: var(--line); }
.service-card:hover::before { width: 100%; }
.service-card .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: .05em; margin-bottom: 26px; }
.service-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--accent);
  background: var(--accent-glow); transition: background var(--t), color var(--t);
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; flex: 1; }

/* =========================================================
   Oprogramowanie / produkty
   ========================================================= */
.products { background: var(--paper); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--paper-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 34px 64px -34px rgba(20,22,28,.5); border-color: var(--line); }
.product-visual {
  height: 156px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #12161f, #1c2233);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.pv-timer { font-family: var(--font-display); color: #fff; font-size: 46px; font-weight: 600; letter-spacing: .04em; text-shadow: 0 0 30px var(--accent-glow); }
.pv-timer .colon { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: .25; } }
.pv-present { display: flex; align-items: center; gap: 10px; }
.pv-slide { width: 58px; height: 38px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; transition: all var(--t); }
.pv-slide.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.pv-konduk { position: relative; width: 100%; height: 100%; overflow: hidden; }
.pv-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pv-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(120,150,255,.9), transparent); transform-origin: left center; opacity: .6; }

.product-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.product-card h3 { font-size: 23px; margin-bottom: 12px; }
.product-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.product-link {
  margin-top: 22px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  transition: all var(--t-fast);
}
.product-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-link svg { transition: transform var(--t-fast); }
.product-link:hover svg { transform: translate(2px, -2px); }

/* =========================================================
   Dlaczego my
   ========================================================= */
.why { background: var(--night); color: #fff; }
.why h2, .why .eyebrow { color: #fff; }
.why .eyebrow { color: #8aa0ff; }
.why .eyebrow::before { background: #8aa0ff; }
.why .section-head .head-right p { color: rgba(255,255,255,.7); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
  background: var(--night-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 40px 36px;
  display: flex; gap: 26px; align-items: flex-start;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.why-card:hover { transform: translateY(-3px); border-color: rgba(138,160,255,.4); background: #171c28; }
.why-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #8aa0ff; width: 52px; flex-shrink: 0; line-height: 1; }
.why-card h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.6; margin: 0; }

/* =========================================================
   Obszary działania
   ========================================================= */
.areas { background: var(--paper); }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.area-tile {
  background: var(--paper-card); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background var(--t), transform var(--t);
}
.area-tile:hover { background: #fff; }
.area-icon { width: 38px; height: 38px; color: var(--accent); }
.area-tile h4 { font-size: 17px; margin: 0; color: var(--ink); }
.area-meta { font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: .04em; margin-top: auto; }

/* =========================================================
   Kontakt
   ========================================================= */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info-block {
  background: var(--paper-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px; margin-bottom: 20px;
}
.contact-info-block h4 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-family: var(--font-body); }
.contact-info-block p, .contact-info-block address { font-style: normal; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.contact-info-block .label { color: var(--faint); font-size: 13px; display: inline-block; width: 72px; }
.contact-info-block a:hover { color: var(--accent); }
.map-wrap { margin-top: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; height: 260px; }
.map-wrap.map-tall { margin-top: 0; height: 100%; min-height: 460px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.contact-form { background: var(--paper-card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); background: #fff; outline: none; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-message { display: none; padding: 15px 18px; background: var(--accent-glow); border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--ink); font-size: 14.5px; margin-bottom: 18px; }
.form-message.show { display: block; }
.contact-form .btn { width: 100%; justify-content: center; }

/* =========================================================
   Stopka
   ========================================================= */
.site-footer { background: var(--night); color: #fff; padding: 84px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { margin-bottom: 22px; }
.footer-brand .logo img { filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,.55); max-width: 340px; margin: 0; line-height: 1.65; }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,.8); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-top: 30px; font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom .meta { font-family: var(--font-display); font-size: 12.5px; letter-spacing: .02em; }

/* =========================================================
   Animacja reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* =========================================================
   TRZY FILARY (karty pod hero)
   ========================================================= */
.pillars-sec { background: var(--paper); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 34px 32px; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--accent); transition: width var(--t); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(20,22,28,.45); border-color: var(--line); }
.pillar:hover::before { width: 100%; }
.pillar .p-index { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .06em; margin-bottom: 20px; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 22px; flex: 1; }
.pillar .p-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pillar .p-go svg { transition: transform var(--t-fast); }
.pillar:hover .p-go svg { transform: translateX(4px); }

/* =========================================================
   DZIAŁ — nagłówek na medium z efektem zoom (Ken Burns na scroll)
   ========================================================= */
.dzial-hero {
  position: relative; height: 92svh; min-height: 540px;
  display: flex; align-items: flex-end; overflow: hidden;
  color: #fff; background: var(--night); border: none;
  padding: 0;
}
.media-zoom { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.media-zoom img, .media-zoom video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.05); transform-origin: center;
  will-change: transform;
}
.dzial-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,12,18,.5) 0%, rgba(10,12,18,.12) 34%, rgba(10,12,18,.5) 74%, rgba(10,12,18,.93) 100%),
    linear-gradient(90deg, rgba(10,12,18,.6) 0%, rgba(10,12,18,0) 58%);
}
.dzial-hero .container { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 7vh, 96px); padding-top: 120px; }
.dzial-index {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 12vw, 150px); line-height: .78; letter-spacing: -.04em;
  color: rgba(255,255,255,.16); margin-bottom: 10px;
}
.dzial-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; opacity: .85; margin-bottom: 18px; }
.dzial-kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.dzial-hero h2 { color: #fff; font-size: clamp(38px, 6vw, 82px); margin-bottom: 18px; letter-spacing: -.03em; }
.dzial-tagline { color: rgba(255,255,255,.9); font-size: clamp(18px, 2vw, 25px); max-width: 34ch; margin: 0; font-weight: 500; }

/* Zoom sterowany scrollem — nowoczesny efekt zbliżania foto/wideo */
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.26); } }
@supports (animation-timeline: view()) {
  .media-zoom img, .media-zoom video {
    transform: none;
    animation: kenburns linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}

/* Treść działu (jasna) */
.dzial-content { background: var(--paper); padding: 88px 0 108px; border: none; }
.dzial-content.alt { background: var(--paper-2); }
.dzial-intro { max-width: 780px; margin-bottom: 52px; }
.dzial-intro .eyebrow { margin-bottom: 20px; }
.dzial-intro p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--ink-2); }

/* Chipy cech */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--paper-card); transition: border-color var(--t-fast), transform var(--t-fast); }
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip .dot { color: var(--accent); margin-right: 8px; font-size: 18px; line-height: 1; }

/* =========================================================
   PRODUKTY (z ikonami)
   ========================================================= */
.products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-card.with-icon { padding: 32px 32px 34px; overflow: visible; }
.product-top { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.product-icon {
  width: 66px; height: 66px; border-radius: 16px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 10px 26px -16px rgba(20,22,28,.5);
}
.product-icon img { width: 76%; height: 76%; object-fit: contain; }
.product-top .p-meta .product-tag { margin-bottom: 4px; }
.product-top .p-meta h3 { margin: 0; font-size: 24px; }
.product-card.with-icon p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.product-card .p-claim { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 15px; }

.product-family { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.family-title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.family-list { display: flex; flex-wrap: wrap; gap: 10px; }
.family-item { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--paper); }
.family-item img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; }
.family-item .fi-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 700; }

.product-card.with-icon p { flex: none; }
.product-card.with-icon .p-claim + p { margin-top: 8px; }
.product-card.with-icon .product-link { margin-top: 24px; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1024px) {
  section { padding: 92px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; margin-bottom: 48px; }
  .services-grid, .products-grid, .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Parallax fixed bywa zacinający na mobile — wracamy do zwykłego scrolla */
  .media-band .band-bg { background-attachment: scroll; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section { padding: 74px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .nav.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(245,242,236,.97); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  .nav.mobile-open a { padding: 14px 8px; font-size: 16px; color: var(--ink); }
  .nav.mobile-open a::after { display: none; }
  .nav.mobile-open .nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; display: flex; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .services-grid, .products-grid, .products-grid.cols-2, .areas-grid { grid-template-columns: 1fr; }
  .about-marks { grid-template-columns: 1fr 1fr; }
  .dzial-hero { height: auto; min-height: 78svh; }
  .dzial-content { padding: 60px 0 72px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .band-meta { gap: 28px; }
}

/* =========================================================
   Redukcja ruchu
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media video { display: none; }
}
