/* ==========================================================
   7Nutrition Team, landing dla ambasadorów
   Tokeny z 7Nutrition Design System (colors_and_type.css)
   ========================================================== */

@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/PublicSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #f9f9f9;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f3f3;
  --surface-container: #eeeeee;
  --surface-container-high: #e8e8e8;
  --surface-container-highest: #e2e2e2;

  --on-surface: #1a1c1c;
  --on-surface-variant: #474747;
  --on-surface-muted: #5c5c5c;

  --primary: #b20025;
  --primary-container: #dd1134;
  --primary-fixed: #ffdad8;
  --tertiary: #005f7b;
  --error: #ba1a1a;
  --outline-variant: #e4beba;

  --font-display: 'Public Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 3px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-sm: 0 8px 24px -4px rgba(26, 28, 28, 0.05);
  --shadow-md: 0 16px 32px -4px rgba(26, 28, 28, 0.06);
  --shadow-xl: 0 32px 64px -16px rgba(26, 28, 28, 0.12);

  --angle-brand: -22.8deg;
  --gradient-primary: linear-gradient(135deg, #b20025 0%, #dd1134 100%);

  --t: 300ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1280px;
  --gutter: 32px;
  --nav-h: 72px;
  --film-lift: 160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-container); }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--on-surface);
  text-wrap: balance;
}
p { margin: 0; line-height: 1.65; color: var(--on-surface-variant); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--on-surface); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Przejścia elementów interaktywnych ---------- */
a, button, .btn, input, textarea, .social a, .ig__tile::after {
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  position: relative; overflow: hidden;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.btn .icon { width: 20px; height: 20px; }
.btn--primary {
  color: #fff; background: var(--gradient-primary);
  box-shadow: 0 8px 24px -4px rgba(178, 0, 37, 0.25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.btn--primary:hover { color: #fff; }
.btn--primary:hover::after { opacity: 0.16; }
.btn--secondary {
  color: var(--on-surface); background: var(--surface-container-lowest);
  box-shadow: inset 0 0 0 1px rgba(228, 190, 186, 0.4), 0 4px 16px -4px rgba(26, 28, 28, 0.06);
}
.btn--secondary:hover { color: var(--on-surface); background-color: var(--surface-container-high); }
.btn--small { min-height: 40px; padding: 10px 20px; font-size: 0.8125rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Eyebrow, znacznik z kątem marki ---------- */
.eyebrow {
  display: block; margin-bottom: 16px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
}
.angle-tag {
  position: relative; display: inline-flex; align-items: center; overflow: hidden;
  padding: 10px 28px 10px 16px; margin-bottom: 28px;
  color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.angle-tag::before {
  content: ""; position: absolute; inset: 0; background: var(--on-surface);
  transform: skewX(var(--angle-brand)); transform-origin: 0 0;
}
.angle-tag span { position: relative; }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: box-shadow var(--t) var(--ease);
}
/* Tło belki jest w pseudoelemencie, żeby menu mobilne (dziecko belki) mogło mieć własny blur.
   Zagnieżdżony backdrop-filter nie działa, gdy rodzic sam go ma. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav.is-scrolled { box-shadow: 0 4px 24px -4px rgba(26, 28, 28, 0.06); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.875rem;
  color: var(--on-surface);
}
.nav__links a:hover { color: var(--primary); }
/* Przełącznik języka: pochylony wskaźnik (kąt marki) przesuwa się pod aktywny język */
.language-switch {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  display: inline-grid; grid-template-columns: 1fr 1fr; height: 32px; padding: 3px;
  border-radius: var(--radius-sm);
}
/* Skos tylko z prawej, jak w .person__sport: --slant = wysokość wskaźnika × tan(22,8°) */
.language-switch::before {
  --slant: 11px;
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--gradient-primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: transform 360ms var(--ease);
}
.language-switch[data-current="en"]::before { transform: translateX(100%); }
.language-switch a,
.nav__links .language-switch a,
.footer nav .language-switch a {
  display: flex; align-items: center; justify-content: center; min-width: 38px; padding: 0 15px 0 10px;
  font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.1em; color: var(--on-surface-muted);
}
.language-switch a:hover,
.nav__links .language-switch a:hover { color: var(--primary); }
.language-switch a[aria-current="page"],
.nav__links .language-switch a[aria-current="page"] { color: #fff; }
.language-switch a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 2px; }
@media (min-width: 861px) and (max-width: 1100px) { .nav__links { gap: 12px; } }
.nav__toggle .i-close { display: none; }
.nav.is-open .nav__toggle .i-menu { display: none; }
.nav.is-open .nav__toggle .i-close { display: inline-block; }
.nav__links .nav__social { display: none; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--on-surface); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 72px) 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 5.4vw, 4.5rem); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero__lead { max-width: 500px; font-size: 1.125rem; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; gap: 48px; margin-top: 56px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.fact span { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--on-surface-muted); max-width: 150px; }
.fact--social span { max-width: none; margin: 0; font-weight: 600; }
.fact--social .social { margin-top: 10px; }

.responsive-image { display: contents; }
.collage { position: relative; height: 640px; }
.collage__img {
  position: absolute; overflow: hidden; background: var(--surface-container-high);
  border-radius: var(--radius-sm);
}
.collage__img img { width: 100%; height: 100%; object-fit: cover; }
.collage__img {
  opacity: 0;
  animation: card-in 720ms cubic-bezier(0.22, 1.25, 0.36, 1) var(--d, 0s) both;
  will-change: transform, opacity;
}
@keyframes card-in {
  0%   { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(0.82); }
  35%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(var(--r, 0deg)) scale(1); }
}
.collage__a { --d: 0s;    --fx: 140px;  --fy: 120px; --fr: 10deg;  --r: 0deg; }
.collage__c { --d: 0.14s; --fx: -160px; --fy: 90px;  --fr: -16deg; --r: -2deg; }
.collage__b { --d: 0.28s; --fx: -120px; --fy: -150px; --fr: 14deg; --r: 2deg; }
.collage__slab { opacity: 0; transform-origin: 100% 50%; animation: slab-in 500ms cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }
.collage__tag { opacity: 0; animation: tag-in 420ms cubic-bezier(0.22, 1, 0.36, 1) 0.74s both; }
@keyframes slab-in { from { opacity: 0; transform: translateX(40px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes tag-in  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
.collage__a { top: 0; right: 0; width: 66%; height: 84%; box-shadow: var(--shadow-xl); }
.collage__b { bottom: 0; left: 0; width: 42%; height: 46%; box-shadow: var(--shadow-xl); }
.collage__b img { object-position: 62% 30%; }
.collage__c { top: 6%; left: 8%; width: 30%; height: 34%; box-shadow: var(--shadow-md); }
.collage__c img { object-position: 50% 15%; }
.collage__blob {
  position: absolute; z-index: -1; top: -30px; right: -40px; width: 300px; height: 300px;
  background: rgba(253, 134, 125, 0.16); border-radius: 50%; filter: blur(56px);
}
.collage__slab {
  position: absolute; z-index: 1; right: -5%; bottom: -6%; width: 44%; max-width: 250px; aspect-ratio: 68.5 / 94.79; pointer-events: none;
}
.collage__slab img { display: block; width: 100%; height: 100%; opacity: 0.42; }
.collage__tag {
  position: absolute; right: 6%; bottom: 3%; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: rgba(255, 255, 255, 0.85); border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm);
}
.collage__tag img { width: 22px; }
.collage__tag b { display: block; font-family: var(--font-display); font-size: 0.875rem; line-height: 1.2; }
.collage__tag small { font-size: 0.75rem; color: var(--on-surface-muted); }

/* ---------- Sekcje wspólne ---------- */
.section { padding: 96px 0; }
.section--low { background: var(--surface-container-low); }
#ambasadorzy { padding-bottom: calc(96px + var(--film-lift)); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.section__head p { font-size: 1.0625rem; }

/* ---------- Korzyści ---------- */
.benefits { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; align-items: stretch; }
.benefits__photo { position: relative; min-height: 560px; border-radius: var(--radius-sm); overflow: hidden; }
.benefits__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.benefits__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  padding: 32px 28px 32px; background: var(--surface-container-lowest);
  border-radius: var(--radius-sm); box-shadow: 0 4px 16px -4px rgba(26, 28, 28, 0.05);
}
.card__icon { position: relative; width: 64px; height: 56px; margin: -32px 0 12px -28px; overflow: hidden; display: flex; align-items: center; }
.card__icon::before {
  content: ""; position: absolute; inset: 0; width: 100%;
  background: var(--gradient-primary); transform: skewX(var(--angle-brand)); transform-origin: 100% 0;
}
.card__icon .icon { position: relative; margin-left: 13px; color: #fff; width: 26px; height: 26px; stroke-width: 1.75; }
.card h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { font-size: 0.9375rem; }

/* ---------- Profil ---------- */
#profil { padding-bottom: 0; position: relative; z-index: 2; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: start; }
.profile__text { padding-bottom: 96px; }
.profile h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 32px; max-width: 560px; }
.checks { display: grid; gap: 12px; }
.checks li {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  background: var(--surface-container-lowest); border-radius: var(--radius-sm);
}
.checks .icon { color: var(--primary); margin-top: 1px; }
.checks p { color: var(--on-surface); }
.profile__photo { position: relative; z-index: 2; aspect-ratio: 5 / 7; margin-top: 24px; margin-bottom: -900px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-xl); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; counter-reset: step; }
.step:nth-child(2) { margin-top: 48px; }
.step:nth-child(3) { margin-top: 96px; }
.step { padding: 8px 0; }
.step__n {
  position: relative; display: inline-flex; align-items: center; height: 68px; padding: 0 40px 0 22px; margin-bottom: 28px;
  overflow: hidden; color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
}
.step__n::before { content: ""; position: absolute; inset: 0; background: var(--gradient-primary); transform: skewX(var(--angle-brand)); transform-origin: 0 0; }
.step__n span { position: relative; }
.step h3 { font-size: 1.375rem; margin-bottom: 10px; letter-spacing: -0.01em; }

/* ---------- Ambasadorzy ---------- */
.team__head { max-width: 640px; margin-bottom: 56px; }
.team__head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.team__head p { font-size: 1.0625rem; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.team__col { display: flex; flex-direction: column; gap: 24px; }
.team__col:nth-child(2) { margin-top: 96px; }
.team__col:nth-child(3) { margin-top: 36px; }
.person {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-container-lowest); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.person__photo { position: relative; overflow: hidden; background: var(--surface-container-high); }
.person__photo--45 { aspect-ratio: 4 / 5; }
.person__photo--23 { aspect-ratio: 2 / 3; }
.person__photo--32 { aspect-ratio: 3 / 2; }
.person__photo--1 { aspect-ratio: 1 / 1; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo--empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.person__photo--empty img { width: 96px; height: auto; opacity: 0.14; object-fit: contain; }
.person:hover .person__photo--empty img { transform: none; }
.person__photo--empty > span:not(.angle-tag) { font-size: 0.8125rem; color: var(--on-surface-muted); }
.person__tag { position: absolute; left: 0; bottom: 20px; margin: 0; z-index: 1; }
/* Karta ambasadora: zdjęcie na całą kartę, dyscyplina i imię na ciemnym gradiencie u dołu */
.person:not(.person--cta) { position: relative; }
/* Zdjęcie wypełnia całą kartę, także gdy karta jest wyższa niż proporcje zdjęcia (np. obok karty CTA) */
.person:not(.person--cta) .person__photo { flex: 1 1 auto; }
.person:not(.person--cta) .person__photo img { position: absolute; inset: 0; }
.person:not(.person--cta) .person__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.5) 26%, rgba(10, 10, 10, 0) 52%);
}
.person:not(.person--cta) .person__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 20px 22px;
}
.person__id { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.person:not(.person--cta) h3 { color: #fff; font-size: 1.5rem; line-height: 1.15; }
.person__sport {
  position: relative; display: inline-flex; align-items: center; padding: 6px 18px 6px 20px; margin-left: -20px;
  color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.person__sport::before { content: ""; position: absolute; inset: 0; background: var(--primary); transform: skewX(var(--angle-brand)); transform-origin: 0 0; z-index: -1; }
.person:not(.person--cta) .social { flex: none; margin-top: 0; }
.person:not(.person--cta) .social a { color: #fff; background-color: rgba(255, 255, 255, 0.16); border-radius: 50%; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color 200ms var(--ease); }
.person:not(.person--cta) .social a:hover { background-color: var(--primary); }
.person__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; }
.person h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.person p { font-size: 0.9375rem; }
.social { display: flex; gap: 8px; margin-top: 10px; }
.social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-surface); background-color: var(--surface-container-high); border-radius: var(--radius-sm);
}
.social a:hover { color: #fff; background-color: var(--primary); }
.social svg { width: 22px; height: 22px; }
.person--cta { position: relative; flex: 1; justify-content: flex-end; background: var(--gradient-primary); box-shadow: 0 16px 32px -8px rgba(178, 0, 37, 0.25); }
.person--cta::before { content: ""; position: absolute; top: 24px; right: -48px; transform: translateY(var(--wm, 0px)); width: 92%; aspect-ratio: 1 / 1.1; background: url("../img/7N-Sygnet.svg") no-repeat center / contain; filter: brightness(0) invert(1); opacity: 0.12; pointer-events: none; }
.person--cta .person__body { position: relative; }
.person--cta .person__body { padding: 32px 26px 36px; gap: 14px; }
.person--cta .eyebrow { color: rgba(255, 255, 255, 0.85); margin-bottom: 0; }
.person--cta h3 { color: #fff; }
.person--cta p { color: rgba(255, 255, 255, 0.9); }
.person--cta .btn { align-self: flex-start; margin-top: 8px; color: var(--on-surface); background: #fff; }
.person--cta .btn:hover { color: var(--on-surface); background-color: var(--primary-fixed); }

/* ---------- Instagram ---------- */
/* ---------- Film ---------- */
.film { position: relative; display: flow-root; overflow-x: clip; background: var(--on-surface); color: #fff; padding: 0 0 104px; }
/* Ekran wystaje w górę nad poprzednią sekcję, dlatego ta ma większy dolny odstęp */
.film__stage { position: relative; z-index: 2; margin-top: calc(var(--film-lift) * -1); }
.film .wrap { position: relative; }
/* Duża siódemka wystaje spod ekranu w dół, do następnej sekcji. Ruch myszy ustawia animations.js. */
.film__seven { position: absolute; z-index: 1; right: calc(var(--gutter) - 44px); bottom: -244px; width: 300px; pointer-events: none; }
.film__seven img { display: block; width: 100%; height: auto; will-change: transform; }
.film__frame {
  position: relative; z-index: 1; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-sm); background: #000; box-shadow: 0 32px 64px -16px rgba(26, 28, 28, 0.35);
}
.film__frame img, .film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__frame img { object-fit: cover; }
.film__frame::after { content: ""; position: absolute; inset: 0; background: rgba(26, 28, 28, 0.28); transition: background-color var(--t) var(--ease); pointer-events: none; }
.film__frame:hover::after { background-color: rgba(26, 28, 28, 0.12); }
.film__frame.is-playing::after { display: none; }
.film__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden;
  background: var(--gradient-primary); border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px -8px rgba(178, 0, 37, 0.55);
}
@keyframes filmPulse {
  0% { box-shadow: 0 16px 40px -8px rgba(178, 0, 37, 0.55), 0 0 0 0 rgba(221, 17, 52, 0.5); }
  70%, 100% { box-shadow: 0 16px 40px -8px rgba(178, 0, 37, 0.55), 0 0 0 30px rgba(221, 17, 52, 0); }
}
.film__play { animation: filmPulse 2.4s ease-out infinite; }
.film__play::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity var(--t) var(--ease); }
.film__frame:hover .film__play::after { opacity: 0.16; }
.film__play .icon { position: relative; z-index: 1; width: 40px; height: 40px; margin-left: 4px; }

.ig__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.ig__head .section__head { margin-bottom: 0; }
.ig__social span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--on-surface-muted); }
.ig__social .social { margin-top: 10px; }
.ig__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ig__tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-container-high); }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease-in-out; }
.ig__tile:hover img { transform: scale(1.05); }
.ig__tile::after {
  content: "";
  background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / 18px no-repeat;
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); opacity: 0;
}
.ig__tile:hover::after, .ig__tile:focus-visible::after { opacity: 1; }
.ig__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.ig__foot p { font-size: 0.9375rem; }
.ig__foot code { font-family: var(--font-body); font-weight: 700; color: var(--on-surface); }

/* ---------- Formularz ---------- */
.apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: stretch; }
.apply__side { position: relative; align-self: start; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.apply__side h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.apply__photo { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; }
.apply__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.form {
  padding: 48px; background: var(--surface-container-lowest); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; font-weight: 600; color: var(--on-surface); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 0.9375rem; color: var(--on-surface);
  background: var(--surface-container-high); border: 0; border-radius: var(--radius-sm); outline: none;
  transition: background 200ms ease-in-out, box-shadow 200ms ease-in-out;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #767676; }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: 0 0 0 2px rgba(178, 0, 37, 0.25); }
.field.is-invalid input, .field.is-invalid textarea { background: #fff0f0; box-shadow: 0 0 0 2px rgba(178, 0, 37, 0.4); }
.form__note { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; color: var(--on-surface-variant); }
.req { color: var(--primary); }
.label__opt { font-weight: 400; color: var(--on-surface-variant); }
.field-group { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-group legend { padding: 0; margin-bottom: 6px; font-size: 0.75rem; font-weight: 600; color: var(--on-surface); }
.legend__hint { font-weight: 400; color: var(--on-surface-variant); }
.field-group__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-check { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--on-surface); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.check a { text-decoration: underline; }
.check input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.field-check.is-invalid .check input { outline: 2px solid var(--primary); outline-offset: 2px; }
.field__count { align-self: flex-end; font-size: 0.75rem; color: var(--on-surface-muted); }
.field__err { display: none; font-size: 0.75rem; color: var(--primary); }
.field.is-invalid .field__err, .field-group.is-invalid .field__err, .field-check.is-invalid .field__err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.form__status { display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 0.9375rem; }
.form__status.is-ok { display: block; background: #dde8df; color: #21442f; }
.form__status.is-err { display: block; background: #ffdad6; color: #93000a; }

/* ---------- Stopka ---------- */
.footer { padding: 56px 0 40px; background: var(--on-surface); color: #fff; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 28px; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer nav a { font-family: var(--font-body); font-weight: 500; font-size: 0.875rem; color: rgba(255, 255, 255, 0.72); }
.footer nav a { display: inline-flex; align-items: center; gap: 6px; }
.footer nav a:hover { color: #fff; }
.footer nav .language-switch a { color: rgba(255, 255, 255, 0.64); }
.footer nav .language-switch a:hover { color: #fff; }
.footer nav .language-switch a[aria-current="page"] { color: #fff; }
.footer nav .language-switch a:focus-visible { outline-color: #fff; }
.icon--ext { width: 14px; height: 14px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.footer small a { color: rgba(255, 255, 255, 0.78); text-decoration: underline; text-underline-offset: 3px; }
.footer small a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.footer small { display: block; color: rgba(255, 255, 255, 0.56); font-size: 0.75rem; }
.footer__social { margin-top: 0; }
.footer__social a { color: #fff; background-color: rgba(255, 255, 255, 0.08); }
.footer__social a:hover { color: #fff; background-color: var(--primary); }

/* ---------- Animacje GSAP: stany początkowe (klasa .js dodaje inline skrypt w <head>) ---------- */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 60; pointer-events: none; background: var(--gradient-primary); transform: scaleX(0); transform-origin: 0 50%; }
.js .nav, .js .hero .angle-tag, .js .hero h1, .js .hero__lead, .js .hero__actions .btn, .js .hero__facts .fact,
.js .collage__img, .js .collage__slab, .js .collage__tag, .js .collage__blob { opacity: 0; }
.js .collage__img, .js .collage__slab, .js .collage__tag { animation: none; }
.btn:hover .icon { transform: translateX(4px); }
.btn .icon { transition: transform var(--t) var(--ease); }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 10px; height: 16px; margin: -8px 0 0 -5px; border-radius: 1px; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .hero__grid, .profile, .apply { grid-template-columns: 1fr; gap: 48px; }
  #profil { padding-bottom: 64px; }
  .profile__text { padding-bottom: 0; }
  .profile__photo { margin: 0; aspect-ratio: 4 / 5; }
  .collage { height: 560px; max-width: 560px; order: -1; }
  .benefits { grid-template-columns: 1fr; }
  .benefits__photo { min-height: 0; aspect-ratio: 3 / 2; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__col:nth-child(3) { grid-column: 1 / -1; flex-direction: row; margin-top: 0; }
  .team__col:nth-child(3) .person { flex: 1; }
  .person--cta::before { width: 58%; right: -32px; top: 20px; }
  .ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
}
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 24px; background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 24px -12px rgba(26, 28, 28, 0.08);
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .nav.is-open .nav__links {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition-delay: 0s;
  }
  .nav__links > a { display: block; width: 100%; padding: 14px 0; font-size: 1rem; }
  .nav__links .language-switch { height: 40px; margin: 10px 0 12px; }
  .nav__links .language-switch a { min-width: 52px; font-size: 0.8125rem; }
  .nav__links .language-switch::before { --slant: 14px; }
  .nav__links .nav__social { display: flex; padding: 16px 0 0; margin-top: 8px; width: 100%; border-top: 1px solid rgba(26, 28, 28, 0.08); }
  /* Z GSAP: rozwijanie i stagger prowadzi animations.js, CSS tylko pilnuje stanu bazowego */
  .js .nav__links {
    transition: none; transform: none; opacity: 1;
    visibility: hidden; clip-path: inset(0% -40px 100% -40px);
  }
  .js .nav.is-open .nav__links { visibility: visible; clip-path: inset(0% -40px -40% -40px); }
  .nav__cta .btn { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .hero__facts { gap: 32px; margin-top: 40px; }
  .collage { height: 460px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  :root { --film-lift: 72px; }
  .film { padding: 0 0 72px; }
  #ambasadorzy { padding-bottom: calc(64px + var(--film-lift)); }
  .film__seven { right: calc(var(--gutter) - 18px); bottom: -128px; width: 150px; }
  .film__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .film__play .icon { width: 30px; height: 30px; }
  .benefits__cards { grid-template-columns: 1fr; }
  .card__icon { margin-top: -32px; }
  .form { grid-template-columns: 1fr; padding: 28px 20px; }
  .field-group__row { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .team__col:nth-child(3) .person { flex: none; }
  .team__col:nth-child(3) .person--cta { flex: none; }
  .person--cta::before { width: 62%; right: -24px; top: 14px; }
  .team__col, .team__col:nth-child(2), .team__col:nth-child(3) { margin-top: 0; flex-direction: column; grid-column: auto; }
  .ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .language-switch::before { transition: none; }
  .film__play { animation: none; }
  .collage__img, .collage__slab, .collage__tag { animation: none; opacity: 1; }
}

/* ---------- Strony pomocnicze: potwierdzenie wysyłki bez JS, 404, polityka prywatności ---------- */
.notice { min-height: 100vh; display: grid; place-items: center; }
.notice__in { max-width: 600px; display: grid; gap: 24px; justify-items: start; }
.notice__in h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-top { padding: 24px 0; border-bottom: 1px solid var(--surface-container-high); background: var(--surface-container-lowest); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--on-surface-variant); line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li > p { margin: 0; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal .legal__back { margin-top: 40px; }
.legal .btn { color: var(--on-surface); text-decoration: none; }
.legal__table { overflow-x: auto; margin: 0 0 24px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.legal th, .legal td { border: 1px solid var(--surface-container-high); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-container-low); color: var(--on-surface); }
.contacts { max-width: var(--wrap); }
.contacts .contacts__updated { margin: 0; font-size: 0.875rem; }
.contacts th { padding: 14px 24px; }
.contacts td { vertical-align: middle; padding: 20px 24px; line-height: 1.6; }
.contacts td:last-child a { white-space: nowrap; word-break: normal; }
.contacts__person { display: flex; align-items: center; gap: 16px; font-weight: 600; white-space: nowrap; color: var(--on-surface); }
.contacts__avatar { flex: none; width: 48px; height: 48px; max-width: none; border-radius: 50%; object-fit: cover; background: var(--surface-container-high); }
@media (max-width: 640px) {
  .contacts .legal__table { overflow: visible; }
  .contacts table, .contacts tbody { display: block; min-width: 0; }
  .contacts thead { display: none; }
  .contacts tr { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--surface-container-high); }
  .contacts td { display: contents; }
  .contacts__person { display: contents; }
  .contacts__avatar { grid-row: 1 / 3; align-self: center; }
  .contacts__person span { grid-column: 2; align-self: end; white-space: normal; }
  .contacts td:last-child a { grid-column: 2; grid-row: 2; align-self: start; font-size: 0.875rem; }
  .contacts td:nth-child(2) { display: block; grid-column: 1 / -1; grid-row: 3; margin-top: 14px; padding: 0; border: 0; }
}
