/* PALETA KOLORÓW I GŁÓWNE ZMIENNE — edytuj w tym miejscu */
:root {
  --color-white: #FFFFFF;
  --color-ivory: #FAF8F4;
  --color-soft: #F6F3ED;
  --color-ink: #10233F;
  --color-navy: #163D68;
  --color-accent: #123A63;
  --color-accent-hover: #0F3154;
  --color-accent-text: #123A63;
  --color-gold: #CB9958;
  --color-gold-light: #DCAA65;
  --color-muted: #667080;
  --color-subtle: #8A8F98;
  --color-border: #E8E2DA;
  --color-field: #F1EEE8;

  /* Kolory semantyczne komponentów */
  --color-heading: #111827;
  --color-text-secondary: #293244;
  --color-text-body: #3D4658;
  --color-surface-dark: #102A4C;
  --color-video-bg: #10233F;
  --color-surface-warm: #FBFAF7;
  --color-field-light: #F8F7F4;
  --color-tag-border: #E9D7C1;
  --color-tag-text: #725735;
  --color-tag-bg: #FFFCF8;
  --color-success-border: #8BC8A4;
  --color-success-bg: #EFFAF3;
  --color-success-text: #14532D;
  --color-error-border: #F0A5A5;
  --color-error-bg: #FFF1F1;
  --color-error-text: #8A1C1C;

  /* Kanały RGB do cieni, gradientów i przezroczystości */
  --rgb-white: 255 255 255;
  --rgb-black: 0 0 0;
  --rgb-ink: 16 35 63;
  --rgb-accent: 18 58 99;
  --rgb-gold: 203 153 88;
  --rgb-gold-light: 220 170 101;
  --rgb-border: 232 226 218;
  --rgb-hero: 10 29 55;

  --font-main: "Inter", "Geist", "IBM Plex Sans", "Arimo", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Inter", "Geist", "Neue Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Geometos Soft", "Geist", "Inter", sans-serif;

  /* Szeroki układ bez głównej ramki. */
  --content-max: none;
  --text-max: 760px;
  --page-gutter: clamp(22px, 4.6vw, 96px);
  --section-y: clamp(54px, 6vw, 104px);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-card: 10px;
  --radius-xl: 24px;

  --shadow-card: 0 18px 45px rgba(7, 18, 38, .06);
  --shadow-card-hover: 0 24px 60px rgba(7, 18, 38, .10);
  --shadow-hero: 0 32px 90px rgba(7, 18, 38, .18);

  --ease: 180ms ease;
}

/* STYLE GLOBALNE I WSPÓLNE KOMPONENTY */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-ink);
  background: var(--color-white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.page-leaving { opacity: 0; transition: opacity 180ms ease-in; }
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent-text); }
p { margin: 0; }
p + p { margin-top: .82rem; }
:focus-visible { outline: 3px solid rgb(var(--rgb-accent) / .35); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header-visibility-anchor { position: relative; }
.header-visibility-sentinel { position: absolute; top: min(50%, 50vh); left: 0; width: 1px; height: 1px; visibility: hidden; pointer-events: none; }

.container,
.container-narrow,
.container-wide,
.container-bleed {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
}
.container-bleed { padding-inline: 0; }
.container-narrow { padding-inline: max(var(--page-gutter), 14vw); }

.section { padding: var(--section-y) 0; }
.section-light { background: var(--color-white); }
.section-soft { background: var(--color-soft); }
.section-dark { background: var(--color-ink); color: var(--color-white); }

/* Animacje wejścia podczas przewijania — wspólne dla całej strony */
.page-reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(3px);
  transition:
    opacity 680ms cubic-bezier(.22, .75, .22, 1) var(--page-reveal-delay, 0ms),
    transform 680ms cubic-bezier(.22, .75, .22, 1) var(--page-reveal-delay, 0ms),
    filter 680ms ease var(--page-reveal-delay, 0ms);
}
.page-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-head { margin-bottom: clamp(24px, 2.4vw, 42px); }
.section-head.centered { text-align: center; max-width: none; margin-inline: 0; }
.section-head.centered .section-lead { margin: 8px auto 0; }
.section-lead,
.lead { color: var(--color-muted); max-width: 680px; }
.text-muted { color: var(--color-muted); }
.text-small { font-size: 14px; line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-gold);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow:empty { display: none; }
.h1,
.h2,
.h3 { margin: 0; color: inherit; font-family: var(--font-heading); letter-spacing: -.045em; }
.h1 { max-width: 780px; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.04; font-weight: 600; }
.h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; font-weight: 600; }
.h3 { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.2; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 13px;
  line-height: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn-primary { background: var(--color-accent); color: var(--color-white); box-shadow: 0 14px 28px rgb(var(--rgb-accent) / .18); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-white); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: rgb(var(--rgb-ink) / .30); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent-text); transform: translateY(-1px); }
.btn-dark { background: rgb(var(--rgb-black) / .12); color: var(--color-white); border-color: rgb(var(--rgb-white) / .62); }
.btn-dark:hover { color: var(--color-white); border-color: var(--color-white); transform: translateY(-1px); }
.btn-gold { background: var(--color-gold); color: var(--color-white); box-shadow: 0 14px 28px rgb(var(--rgb-gold) / .18); }
.btn-gold:hover { background: var(--color-gold-light); color: var(--color-white); transform: translateY(-1px); }
.btn-arrow::after,
.text-link::after { content: "→"; margin-left: 10px; transition: transform var(--ease); }
.btn-arrow:hover::after,
.text-link:hover::after { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--color-accent-text); font-size: 11px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; font-weight: 850; }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgb(var(--rgb-ink) / .035);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { border-color: rgb(var(--rgb-accent) / .18); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

/* Header: pełna szerokość, układ z 01 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  transition: transform 240ms ease, visibility 240ms ease;
}
.site-header.is-hidden { visibility: hidden; transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
.home-page .logo-name,
.home-page .nav-link { color: var(--color-white); }
.home-page .mobile-toggle { background: rgb(var(--rgb-white) / .72); }
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: 176px; font-family: var(--font-heading); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.logo-mark { display: flex; align-items: center; justify-content: center; width: 64px; height: 40px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-name { color: var(--color-ink); }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 2.25vw, 46px); }
.nav-link { position: relative; padding: 31px 0; color: var(--color-ink); font-family: var(--font-heading); font-size: 11px; line-height: 1; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; border-radius: 999px; background: var(--color-gold); transform: scaleX(0); transition: transform var(--ease); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover,
.nav-link.is-active { color: var(--color-gold); }
.nav-home-link { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; color: currentColor; }
.nav-home-link svg { width: 17px; height: 17px; }
.nav-home-link::after { left: 50%; right: auto; bottom: -5px; width: 17px; transform: translateX(-50%) scaleX(0); }
.nav-home-link:hover::after,
.nav-home-link.is-active::after { transform: translateX(-50%) scaleX(1); }
.header-cta { min-height: 38px; padding: 12px 18px; font-size: 10px; }
.mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgb(var(--rgb-white) / .28); border-radius: 999px; background: rgb(var(--rgb-white) / .72); color: var(--color-ink); backdrop-filter: blur(8px); }
.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after { content: ""; display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.mobile-toggle[aria-expanded="true"] span { opacity: 0; }
.mobile-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel { display: none; position: fixed; inset: 86px var(--page-gutter) auto; z-index: 60; padding: 18px; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-white); box-shadow: 0 26px 80px rgb(var(--rgb-ink) / .16); }
.mobile-panel.is-open { display: block; }
.mobile-nav { display: grid; gap: 8px; }
.mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 800; }
.mobile-nav a:hover,
.mobile-nav a.is-active { background: var(--color-soft); color: var(--color-gold); }
.mobile-nav .nav-home-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-white); color: var(--color-ink); }
.mobile-nav .nav-home-link svg { width: 18px; height: 18px; }
.mobile-nav .nav-home-link:hover,
.mobile-nav .nav-home-link.is-active { background: var(--color-soft); color: var(--color-gold); border-color: var(--color-gold); }
.mobile-nav .btn { margin-top: 8px; width: 100%; }

/* Hero: pełny viewport, ale kompozycja z 01 */
.home-hero { padding: 0; background: var(--color-ink); }
.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: clamp(580px, 68vh, 780px);
  width: 100%;
  background: var(--color-surface-dark);
  color: var(--color-white);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-poster { position: absolute; inset: 0; z-index: 0; opacity: .96; transition: opacity 180ms ease; }
.hero-poster img { width: 100%; height: 100%; }
.hero-bg video { position: relative; z-index: 1; opacity: 0; transition: opacity 180ms ease; }
.hero-bg.is-video-playing .hero-poster { opacity: 0; }
.hero-bg.is-video-playing video { opacity: .96; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(var(--rgb-black) / .88) 0%, rgb(var(--rgb-black) / .70) 30%, rgb(var(--rgb-black) / .30) 57%, rgb(var(--rgb-black) / .28) 100%),
    linear-gradient(180deg, rgb(var(--rgb-black) / .08) 0%, rgb(var(--rgb-black) / .46) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 42%;
  background: linear-gradient(180deg, rgb(var(--rgb-hero) / 0), rgb(var(--rgb-hero) / .78));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(50vw, 850px);
  min-width: 560px;
  padding: clamp(88px, 9vh, 130px) var(--page-gutter) 150px;
}
.hero-content .h1 { font-size: clamp(54px, 5.1vw, 76px); max-width: 820px; }
.hero-content .lead { max-width: 590px; margin-top: 20px; color: rgb(var(--rgb-white) / .84); font-size: clamp(16px, 1.12vw, 20px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-typo-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero-typo-intro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(78%, 720px);
  color: var(--color-white);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: hero-typo-sequence 3s both cubic-bezier(.22, .75, .22, 1);
}
.hero-typo-first,
.hero-typo-last { display: block; font-family: var(--font-heading); text-transform: uppercase; white-space: nowrap; }
.hero-typo-first {
  --typo-spacing: .3em;
  --typo-start-spacing: .48em;
  color: transparent;
  background: linear-gradient(
    180deg,
    #f9d34d 0%,
    #f7c630 27%,
    #eba50f 58%,
    #d77d06 79%,
    #b97b01 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(42px, 4.8vw, 76px);
  line-height: .92;
  font-weight: 700;
  letter-spacing: var(--typo-spacing);
  transform: translateX(.15em);
  animation: hero-typo-first 850ms .1s both cubic-bezier(.22, .75, .22, 1);
}
.hero-typo-last { --typo-spacing: .22em; --typo-start-spacing: .38em; --typo-shift: .11em; margin-top: 7px; color: var(--color-white); font-size: clamp(35px, 4vw, 63px); line-height: .92; font-weight: 400; letter-spacing: var(--typo-spacing); transform: translateX(var(--typo-shift)); animation: hero-typo-last 950ms .3s both cubic-bezier(.22, .75, .22, 1); }

/*
 * PRZEŁĄCZNIK NAPISU W BANERZE
 *
 * Wersja 1 — napis CSS:
 * .hero-typo-intro { display: flex; }
 * .hero-typo-video { display: none; }
 *
 * Wersja 2 — lekkie przezroczyste wideo WebM (obecnie aktywna):
 */
.hero-typo-intro { display: none; }
.hero-typo-video { display: block; }

@keyframes hero-typo-sequence {
  0% { opacity: 0; transform: translate(-50%, calc(-50% + 28px)); filter: blur(8px); }
  14%, 76% { opacity: 1; transform: translate(-50%, -50%); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 16px)) scale(1.015); filter: blur(3px); visibility: hidden; }
}
@keyframes hero-typo-first {
  from { opacity: 0; letter-spacing: var(--typo-start-spacing); filter: blur(4px); }
  to { opacity: 1; letter-spacing: var(--typo-spacing); filter: blur(0); }
}
@keyframes hero-typo-last {
  from { opacity: 0; letter-spacing: var(--typo-start-spacing); transform: translate(var(--typo-shift), 8px); }
  to { opacity: 1; letter-spacing: var(--typo-spacing); transform: translate(var(--typo-shift), 0); }
}
.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 92px;
  padding-inline: var(--page-gutter);
  border-top: 1px solid rgb(var(--rgb-white) / .15);
  background: transparent;
  backdrop-filter: none;
}
.hero-strip-item { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 20px 12px; color: rgb(var(--rgb-white) / .86); font-size: clamp(12px, .9vw, 15px); line-height: 1.25; font-weight: 760; }
.hero-strip-item svg { flex: 0 0 28px; color: var(--color-gold-light); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: minmax(360px, .46fr) minmax(0, .54fr); gap: clamp(42px, 5.4vw, 110px); align-items: center; }
.intro-image { overflow: hidden; border-radius: 0; background: var(--color-soft); box-shadow: none; margin: 0; }
.intro-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.intro-copy { max-width: 690px; }
.intro-copy .section-lead { margin-top: 18px; color: var(--color-text-secondary); font-size: clamp(18px, 1.25vw, 22px); line-height: 1.48; }
.intro-copy .text-muted { max-width: 640px; }
.signature { width: 168px; margin: 24px 0 18px; color: var(--color-gold); }
.intro-copy .btn { margin-top: 2px; }

/* Services */
.services-section { padding-top: clamp(46px, 4.6vw, 76px); background: var(--color-white); }
.services-section .section-head.centered { margin-bottom: clamp(24px, 2.2vw, 36px); }
.services-section .eyebrow {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  color: var(--color-ink);
  letter-spacing: .18em;
}
.services-section .eyebrow::before,
.services-section .eyebrow::after { content: ""; width: auto; height: 1px; border-radius: 0; background: var(--color-border); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-card { position: relative; min-height: clamp(156px, 11vw, 220px); padding: clamp(30px, 2.5vw, 48px) clamp(28px, 2.5vw, 46px) clamp(28px, 2.2vw, 44px) clamp(96px, 7vw, 132px); border-radius: 0; box-shadow: none; }
.service-card-icon { position: absolute; left: clamp(30px, 2.6vw, 50px); top: clamp(32px, 2.6vw, 50px); display: grid; place-items: center; width: clamp(44px, 3.4vw, 62px); aspect-ratio: 1; color: var(--color-gold); }
.service-card-icon svg { width: 100%; }
.service-card h3 { margin: 0 0 10px; font-size: clamp(18px, 1.4vw, 24px); line-height: 1.18; letter-spacing: -.02em; }
.service-card p { color: var(--color-text-secondary); max-width: 500px; font-size: clamp(14px, .96vw, 17px); line-height: 1.48; }
.service-card .mini-arrow { position: absolute; left: clamp(96px, 7vw, 132px); bottom: clamp(22px, 2vw, 36px); color: var(--color-gold); font-weight: 900; }

/* Projects */
.projects-section { padding-top: clamp(42px, 4vw, 74px); background: var(--color-white); }
.projects-section .section-head.centered,
.testimonials-section .section-head.centered,
.process-section .section-head.centered { margin-bottom: clamp(22px, 2.3vw, 38px); }
.projects-section .h2,
.testimonials-section .h2,
.process-section .h2 { font-size: clamp(26px, 2vw, 38px); text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.projects-section .section-lead,
.testimonials-section .section-lead { font-size: clamp(14px, .95vw, 17px); }
.project-grid,
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 26px); }
.project-card { overflow: hidden; border-radius: 0; }
.project-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--color-surface-warm); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: transparent; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .96; transition: opacity 320ms ease; }
.card:hover .video-thumb img { opacity: 1; }
.play-button { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; height: 100%; border: 0; background: linear-gradient(180deg, rgb(var(--rgb-black) / .02), rgb(var(--rgb-black) / .12)); color: var(--color-white); }
.play-button::before { content: ""; width: clamp(48px, 4vw, 72px); height: clamp(48px, 4vw, 72px); border: 1px solid rgb(var(--rgb-white) / .82); border-radius: 50%; background: rgb(var(--rgb-black) / .12); backdrop-filter: blur(6px); }
.play-button::after { content: ""; position: absolute; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--color-white); transform: translateX(2px); }
.project-body,
.testimonial-body { padding: clamp(18px, 1.6vw, 30px) clamp(20px, 1.8vw, 34px) clamp(22px, 1.9vw, 36px); }
.card-label { display: block; margin-bottom: 8px; color: var(--color-gold); font-size: 11px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.project-body h3 { margin: 0 0 8px; font-size: clamp(22px, 1.8vw, 34px); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; }
.project-body p { font-size: clamp(14px, .96vw, 17px); line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 18px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 9px; border: 1px solid var(--color-tag-border); border-radius: 4px; color: var(--color-tag-text); background: var(--color-tag-bg); font-size: 10px; line-height: 1; font-weight: 760; }
.section-actions { display: flex; justify-content: center; margin-top: clamp(30px, 3vw, 48px); }

/* Testimonials */
.testimonials-section { background: var(--color-white); padding-top: clamp(42px, 4vw, 72px); }
.testimonial-card { overflow: hidden; border-radius: 0; }
.testimonials-section .testimonial-card .video-thumb { aspect-ratio: 16 / 9; }
.testimonials-section .testimonial-body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.testimonial-quote { width: 100%; margin: 0 0 20px; color: var(--color-text-secondary); font-size: clamp(15px, 1vw, 18px); line-height: 1.56; }
.testimonial-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar-dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--color-soft); color: var(--color-gold); font-size: 11px; font-weight: 900; }
.testimonial-person strong { display: block; font-size: 13px; line-height: 1.2; text-transform: uppercase; }
.testimonial-person span { display: block; color: var(--color-muted); font-size: 12px; line-height: 1.35; }
.testimonial-avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; object-fit: cover; }
.testimonial-body .expand-trigger { margin-top: 18px; }

/* Expandable project and testimonial panels */
.expand-panel { grid-column: 1 / -1; margin-top: clamp(18px, 2vw, 32px); border: 1px solid var(--color-border); background: var(--color-soft); }
.expand-panel[hidden] { display: none; }
.expand-panel-inner { position: relative; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr); gap: clamp(28px, 4vw, 68px); padding: clamp(34px, 5vw, 78px); }
.expand-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: var(--color-accent-text); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.expand-copy h3 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 50px); line-height: 1.08; }
.expand-copy p { color: var(--color-text-secondary); font-size: clamp(15px, 1vw, 18px); line-height: 1.65; }
.expand-copy .text-link { margin-top: 22px; }
.expand-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.expand-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.project-expand-media {
  display: block;
  columns: 2;
  column-gap: 12px;
}
.project-expand-media > * {
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
}
.project-expand-media .video-thumb img { min-height: 0; object-fit: cover; }
.project-expand-copy-media {
  margin-top: clamp(28px, 4vw, 54px);
}
.project-expand-copy-media .video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.project-expand-copy-media .video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
/* Keep Agata thumbnails framed higher so the face stays visible in the featured brands modal. */
.featured-brands-section .video-thumb[data-youtube-id="nu9SH4-CLOM"] img,
.featured-brands-section .video-thumb[data-youtube-id="UaSF30cJw4M"] img,
.featured-brands-section .video-thumb[data-youtube-id="Vox-FogkvOg"] img {
  object-position: center 24%;
}
.expand-image { display: block; overflow: hidden; min-width: 0; padding: 0; border: 0; background: var(--color-surface-warm); cursor: zoom-in; align-self: start; }
.project-expand-media .expand-image {
  width: 100%;
}
.project-expand-media .expand-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.expand-panel-inner > .btn { grid-column: 1 / -1; justify-self: center; }
.opinion-expanded { grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); }
.expand-video { align-self: start; }

/* Stats */
.stats-band { padding: 0; background: var(--color-white); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--color-ivory); border-block: 1px solid rgb(var(--rgb-border) / .86); padding-inline: 0; }
.stat-item { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: clamp(104px, 8vw, 148px); padding: 22px var(--page-gutter); border-right: 1px solid rgb(var(--rgb-border) / .95); }
.stat-item:last-child { border-right: 0; }
.stat-icon { color: var(--color-gold); }
.stat-icon svg { width: clamp(38px, 3vw, 56px); }
.stat-number { display: block; color: var(--color-gold); font-size: clamp(42px, 3.7vw, 70px); line-height: .92; letter-spacing: -.045em; font-weight: 650; }
.stat-label { display: block; color: var(--color-muted); font-size: clamp(13px, .95vw, 17px); line-height: 1.35; }

/* Process */
.process-section { padding-top: clamp(40px, 4vw, 72px); background: var(--color-white); }
.process-section .section-head.centered {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.process-section .section-head.centered::before,
.process-section .section-head.centered::after { content: ""; height: 1px; background: var(--color-border); }
.process-section .eyebrow { display: none; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.process-step { position: relative; min-height: clamp(160px, 12vw, 230px); padding: clamp(24px, 2.3vw, 42px) clamp(24px, 2.4vw, 46px); text-align: left; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.process-step + .process-step { border-left: 1px solid var(--color-border); }
.step-number { display: block; margin-bottom: 8px; color: var(--color-gold); font-size: clamp(28px, 2.2vw, 44px); line-height: 1; font-weight: 700; }
.process-step h3 { margin: 0 0 10px; font-size: clamp(16px, 1.2vw, 22px); line-height: 1.2; }
.process-step p { color: var(--color-text-secondary); font-size: clamp(14px, .98vw, 17px); line-height: 1.48; }
.process-step::after { content: "›"; position: absolute; right: -10px; top: 50%; z-index: 2; color: var(--color-gold); font-size: clamp(38px, 3vw, 56px); line-height: 1; transform: translateY(-50%); }
.process-step:last-child::after { display: none; }

/* Final CTA */
.final-cta { padding: 0; background: var(--color-white); }
.final-cta .cta-panel { position: relative; display: block; min-height: clamp(340px, 32vw, 560px); overflow: hidden; background: var(--color-ink); color: var(--color-white); }
.final-cta .cta-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: min(760px, 100%);
  padding: clamp(24px, 3.6vw, 54px) var(--page-gutter) clamp(34px, 5vw, 68px);
}
.final-cta .cta-copy .h2 { max-width: 760px; font-size: clamp(40px, 4vw, 72px); line-height: 1.04; }
.final-cta .cta-copy .lead { margin-top: 16px; color: rgb(var(--rgb-white) / .76); font-size: clamp(16px, 1.14vw, 20px); line-height: 1.5; }
.final-cta .cta-copy .hero-actions { margin-top: 28px; }
.final-cta .cta-media { position: absolute; inset: 0; z-index: 0; min-height: 0; margin: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta .cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--rgb-ink) / .18) 0%, rgb(var(--rgb-ink) / .56) 100%); }

/* Footer */
.site-footer { background: var(--color-white); border-top: 1px solid var(--color-border); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 24px var(--page-gutter); color: var(--color-muted); font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-nav a { color: var(--color-muted); }
.footer-nav a:hover { color: var(--color-accent-text); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.footer-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.footer-social-link { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-muted); transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.footer-social-link svg { width: 16px; height: 16px; }
.footer-social-link:hover { color: var(--color-accent-text); border-color: currentColor; background: rgb(var(--rgb-ink) / .03); transform: translateY(-1px); }

/* Dolny pasek informacyjny o cookies */
.cookie-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 14px var(--page-gutter);
  border-top: 1px solid rgb(var(--rgb-white) / .16);
  background: rgb(var(--rgb-ink) / .96);
  color: var(--color-white);
  box-shadow: 0 -12px 40px rgb(var(--rgb-black) / .18);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; }
.cookie-notice p { max-width: 980px; color: rgb(var(--rgb-white) / .82); font-size: 13px; line-height: 1.55; }
.cookie-notice a { color: var(--color-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice a:hover { color: var(--color-white); }
.cookie-notice-close { flex: 0 0 auto; min-height: 40px; padding: 11px 20px; font-size: 11px; }

/* Pełnoekranowy podgląd filmów YouTube */
body.video-modal-open { overflow: hidden; }
.video-modal {
  --video-modal-gutter: clamp(22px, 5vw, 86px);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--video-modal-gutter);
  background:
    linear-gradient(rgb(var(--rgb-white) / .18), rgb(var(--rgb-white) / .18)),
    rgb(var(--rgb-gold) / .22);
  backdrop-filter: blur(10px);
}
.video-modal[hidden] { display: none; }
.video-modal-dialog { position: relative; width: min(100%, 1500px); max-width: 100%; }
.video-modal-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: rgb(var(--rgb-black)); box-shadow: 0 28px 90px rgb(var(--rgb-black) / .38); }
.video-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal-frame.is-image { display: grid; place-items: center; height: min(calc(100dvh - var(--video-modal-gutter) - var(--video-modal-gutter)), 1000px); min-height: 0; aspect-ratio: auto; background: transparent; box-shadow: none; }
.video-modal-frame.is-image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.video-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(var(--rgb-white) / .65);
  border-radius: 50%;
  background: rgb(var(--rgb-ink) / .28);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgb(var(--rgb-black) / .12);
  backdrop-filter: blur(7px);
  transform: translateY(-50%);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.video-modal-nav[hidden] { display: none; }
.video-modal-nav span { display: block; font-size: 34px; font-weight: 300; line-height: .8; transform: translateY(-1px); }
.video-modal-prev { left: 18px; }
.video-modal-next { right: 18px; }
.video-modal-nav:hover { border-color: var(--color-white); background: rgb(var(--rgb-ink) / .48); transform: translateY(-50%) scale(1.04); }
.video-modal-nav:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; }
.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
}
.video-modal-close::before,
.video-modal-close::after,
.video-modal-close span::before,
.video-modal-close span::after { content: ""; position: absolute; left: 8px; top: 20px; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.video-modal-close::before { transform: rotate(45deg); }
.video-modal-close::after { transform: rotate(-45deg); }
.video-modal-close span::before,
.video-modal-close span::after { display: none; }
.video-modal-close:hover { color: var(--color-accent-text); }

/* Placeholder pages */
.subpage-placeholder { min-height: 66vh; display: grid; place-items: center; padding: 110px 0; }
.placeholder-panel { width: min(100%, 820px); padding: 48px; text-align: center; }
.placeholder-panel .btn { margin-top: 24px; }

@media (max-width: 1180px) {
  .about-page .logo-name,
  .about-page .nav-link { color: var(--color-white); }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .desktop-nav,
  .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .hero-content { width: min(62vw, 720px); min-width: 0; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid,
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-section .testimonial-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - clamp(14px, 1.4vw, 26px)) / 2); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  .video-modal-nav { display: none; }
  :root { --page-gutter: 20px; --section-y: 52px; }
  body.page-entering { animation: none; }
  body.page-leaving { opacity: 1; transition: none; }
  .page-reveal,
  .page-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  body { font-size: 15px; line-height: 1.55; }
  .container,
  .container-narrow,
  .container-wide { padding-inline: var(--page-gutter); }
  .container-bleed { padding-inline: 0; }
  .header-inner { min-height: 68px; }
  .logo { min-width: auto; }
  .logo-name { max-width: 104px; }
  .mobile-panel { inset: 76px 14px auto; }

  .home-hero { background: var(--color-ink); }
  .hero-shell { min-height: 620px; }
  .hero-bg::before { background: linear-gradient(180deg, rgb(var(--rgb-black) / .10) 0%, rgb(var(--rgb-black) / .48) 42%, rgb(var(--rgb-black) / .90) 100%); }
  .hero-bg img { object-position: 56% center; }
  .hero-content { width: 100%; min-width: 0; max-width: 520px; padding: 58px 22px 174px; }
  .hero-content .h1 { font-size: clamp(35px, 9.8vw, 44px); }
  .hero-content .lead { font-size: 14px; margin-top: 12px; max-width: 360px; }
  .hero-typo-intro { width: calc(100% - 44px); }
  .hero-typo-first { --typo-spacing: .22em; --typo-start-spacing: .34em; font-size: clamp(38px, 12vw, 58px); transform: translateX(.11em); }
  .hero-typo-last { --typo-spacing: .16em; --typo-start-spacing: .26em; --typo-shift: .08em; font-size: clamp(32px, 10vw, 49px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 274px); gap: 10px; margin-top: 18px; }
  .hero-strip { grid-template-columns: repeat(5, 150px); overflow-x: auto; min-height: 84px; padding-inline: 12px; scrollbar-width: none; }
  .hero-strip::-webkit-scrollbar { display: none; }
  .hero-strip-item { justify-content: flex-start; font-size: 11px; }

  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-copy { max-width: none; }
  .intro-copy .section-lead { font-size: 16px; }
  .services-section .eyebrow { font-size: 10px; gap: 12px; }
  .project-grid,
  .testimonial-grid,
  .stats-grid,
  .process-grid,
  .cta-panel { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .testimonials-section .testimonial-card:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
  .project-grid,
  .testimonial-grid { gap: 10px; }
  .project-card { display: grid; grid-template-columns: 35% 1fr; align-items: stretch; }
  .testimonials-section .testimonial-card { display: flex; flex-direction: column; align-items: stretch; }
  .project-card .video-thumb { height: 100%; min-height: 112px; aspect-ratio: auto; }
  .testimonials-section .testimonial-card .video-thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .project-body,
  .testimonial-body { padding: 13px 14px; }
  .testimonials-section .testimonial-body { width: 100%; }
  .project-body h3 { font-size: 16px; }
  .project-body p,
  .tags { display: none; }
  .play-button::before { width: 38px; height: 38px; }
  .play-button::after { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
  .testimonial-quote { font-size: 13px; margin-bottom: 12px; }
  .avatar-dot { width: 32px; height: 32px; }
  .stat-item { justify-content: flex-start; min-height: 88px; border-right: 0; border-bottom: 1px solid rgb(var(--rgb-border) / .95); padding: 18px var(--page-gutter); }
  .stat-item:last-child { border-bottom: 0; }
  .stat-number { font-size: 38px; }
  .process-section .section-head.centered { grid-template-columns: 1fr; }
  .process-section .section-head.centered::before,
  .process-section .section-head.centered::after { display: none; }
  .process-step { min-height: auto; border: 0; border-bottom: 1px solid var(--color-border); padding: 20px 0; }
  .process-step.with-icon { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: start; }
  .process-step.with-icon .process-icon { grid-column: 1; grid-row: 1; width: 38px; margin: 0; }
  .process-step.with-icon .step-number { grid-column: 1; grid-row: 2; margin-bottom: 0; font-size: 24px; }
  .process-step.with-icon h3 { grid-column: 2; grid-row: 1; margin: 2px 0 0; }
  .process-step.with-icon p { grid-column: 2; grid-row: 2; margin: 0; }
  .process-step + .process-step { border-left: 0; }
  .process-step::after { display: none; }
  .cta-panel { min-height: auto; }
  .final-cta .cta-copy { padding: 24px 18px 28px; }
  .final-cta .cta-copy .h2 { font-size: clamp(34px, 9vw, 44px); }
  .final-cta .cta-media { min-height: 210px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; padding: 22px var(--page-gutter); }
  .footer-nav { justify-content: flex-start; }
  .footer-meta { justify-content: flex-start; }
  .footer-social { justify-content: flex-start; }
  .cookie-notice { padding: 16px 18px; }
  .cookie-notice-inner { align-items: stretch; flex-direction: column; gap: 13px; }
  .cookie-notice p { font-size: 12px; }
  .cookie-notice-close { width: 100%; }
  .video-modal { --video-modal-gutter: 0px; padding: 58px 0 0; align-items: center; }
  .video-modal-dialog { width: 100%; }
  .video-modal-frame.is-image { height: calc(100dvh - 58px); }
  .video-modal-close { top: -52px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typo-intro { display: none; animation: none; }
  .page-reveal,
  .page-reveal.is-visible { opacity: 1; transform: none; filter: none; transition: none; }
  body.page-entering { animation: none; }
  body.page-leaving { opacity: 1; transition: none; }
}

@media (max-width: 480px) {
  :root { --page-gutter: 16px; }
  .btn { width: 100%; padding-inline: 16px; }
  .hero-shell { min-height: 640px; }
  .hero-content { padding-inline: 18px; }
  .brand-card { flex-basis: 100%; }
  .project-card { grid-template-columns: 37% 1fr; }
  .testimonials-section .testimonial-card { display: flex; flex-direction: column; grid-template-columns: none; }
  .card-label { font-size: 9px; }
  .text-link { font-size: 10px; }
  .placeholder-panel { padding: 32px 22px; }
}

@media (max-width: 768px) {
  .expand-panel { margin: 10px 0 18px; }
  .expand-panel-inner,
  .opinion-expanded { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px 26px; }
  .expand-media { grid-template-columns: 1fr; }
  .project-expand-media { columns: 1; }
  .expand-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .expand-copy h3 { font-size: 28px; }
  .testimonial-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .text-project-grid { grid-template-columns: 1fr; }
}
