/* Font z projektu: CS Belway (Craft Supply Co.) – imię i nazwisko w hero oraz wielkie tytuły podstron.
   Uwaga: font nie ma polskich znaków poza Ł i Ó (brak Ą Ć Ę Ń Ś Ź Ż) – w dużych tytułach
   używaj słów bez tych liter, inaczej brakujące znaki pokażą się zamiennikiem (Anton). */
@font-face {
  font-family: "CS Belway";
  src: url("../fonts/CSBelway-Regular.woff2") format("woff2"),
       url("../fonts/CSBelway-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Maciej Kulhawik – strona główna
   Projekt: Figma „Kulhawik” (1920 px). Na desktopie wymiary
   skalują się względem szerokości ekranu przez --u (1 px projektu).
   ========================================================= */

:root {
  --red: #ae000a;
  --red-hover: #c8000c;
  --bg: #0a0a0a;
  --gray: #1a1a1a;
  --card: #111;
  --white: #f4f4f4;
  --muted: #a1a1a1;
  --line: rgba(244, 244, 244, .1);

  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-name: "Anton", "Bebas Neue", Impact, sans-serif;
  --f-input: "Inter", var(--f-body);
  /* imię w hero – Anton (zamiennik); dla CS Belway wartości w .has-belway */
  --name-first: 275;
  --name-first-sy: 1.29;
  --name-last: 540;
  --name-last-sy: 1.17;

  /* 1 px projektu 1920 px */
  --u: calc(min(100vw, 1920px) / 1920);
  --pad: calc(120 * var(--u));
  --radius: 24px;

  --fs-body: max(15px, calc(18 * var(--u)));
  --fs-h2: max(28px, calc(48 * var(--u)));
  --fs-display: calc(180 * var(--u));
  --fs-eyebrow: max(12px, calc(14 * var(--u)));
  --section-y: calc(112 * var(--u));

  /* faktura papieru kart do gry: drobne ziarno włókien + lekko nierówny odcień kartonu */
  --grain-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .26 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-tone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='280'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  /* papier awersu – ten sam w kartach w hero, formatach pokazów i odwracanych kartach */
  --paper: radial-gradient(130% 100% at 32% 20%, #f8f3ea 0%, #f1ebe0 58%, #e6ded0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }   /* WP dodaje do <img> atrybuty width/height – wysokość liczona z proporcji / CSS */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Typografia ---------- */
.eyebrow {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.3;
}
.eyebrow--bold { font-weight: 700; letter-spacing: .12em; }

.h2 {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.22;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.h2--medium { font-weight: 500; line-height: 1.2; letter-spacing: 0; }

.display {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 1.13;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.display--block { display: block; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }

.text { font-size: var(--fs-body); line-height: 1.8; }
.text--justify { text-align: justify; line-height: 1.6; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px;
  min-width: max(200px, calc(267 * var(--u)));
  border-radius: 26px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-hover); }
.btn--outline { border: 1px solid var(--white); }
.btn--outline:hover { background: var(--white); color: var(--bg); }
.btn--block { width: 100%; }
.btn--wide { width: min(100%, 471px); }
.btn--tall { height: 64px; border-radius: 35px; }
.btn--ring { box-shadow: 0 0 0 3px var(--white); }

.btn-cta {
  position: relative;
  display: inline-flex; align-items: center;
  height: 53px; width: 227px;
  padding-left: 42px;
  border-radius: 27px;
  background: var(--red);
  font-family: "Roboto", var(--f-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
  transition: background-color .2s;
}
.btn-cta:hover { background: var(--red-hover); }
.btn-cta__icon {
  position: absolute; right: 1px; top: 1px;
  width: 51px; height: 51px; border-radius: 50%;
  background: var(--white); color: var(--red);
  display: grid; place-items: center;
  transition: transform .3s;
}
.btn-cta__icon svg { width: 16px; height: 25px; margin-left: 3px; }
.btn-cta:hover .btn-cta__icon { transform: translateX(-4px); }

.arrows { display: flex; gap: calc(16 * var(--u)); }
.arrow {
  width: max(44px, calc(64 * var(--u)));
  aspect-ratio: 1;
  color: var(--white);
  border-radius: 50%;
  transition: background-color .2s, color .2s, opacity .2s;
}
.arrow svg { width: 100%; height: 100%; display: block; }
.arrow--next svg { transform: rotate(180deg); }
.arrow:hover { background: var(--white); color: var(--red); }
.showcase--video .arrow:hover, .testi .arrow:hover { color: var(--bg); }
.arrow:disabled { opacity: .3; pointer-events: none; }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: 1920px; margin: 0 auto;
  height: max(72px, calc(95 * var(--u)));
  padding-inline: var(--pad);
  display: flex; align-items: center;
}
.nav__logo { color: var(--red); flex-shrink: 0; }
.nav__logo svg { width: max(52px, calc(74 * var(--u))); height: auto; display: block; }
.nav__menu {
  flex: 1;
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 calc(69 * var(--u)) 0 calc(51 * var(--u));
}
.nav__list { display: flex; align-items: center; gap: max(28px, calc(64 * var(--u))); }
.nav__list a, .nav__dd-toggle {
  font-size: 16px; line-height: 24px; letter-spacing: .03em;
  text-transform: uppercase; color: #fff;
  position: relative;
}
.nav__list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list > li > a:hover::after { transform: scaleX(1); }
/* „Oferta” to link do strony oferty; strzałka obok rozwija listę podstron (na desktopie też po najechaniu) */
.nav__dropdown { position: relative; display: flex; align-items: center; gap: 6px; }
.nav__dd-toggle { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: -6px; cursor: pointer; }
.nav__dd-toggle svg { width: 10px; height: 7.5px; transition: transform .2s; }
.nav__dropdown:hover .nav__dd-toggle svg { transform: rotate(180deg); }
.nav__dropdown.is-open .nav__dd-toggle svg { transform: rotate(180deg); }
.nav__dd {
  position: absolute; top: calc(100% + 16px); left: -20px;
  min-width: 260px; padding: 12px 0;
  background: var(--gray); border: 1px solid var(--line); border-radius: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__dropdown.is-open .nav__dd,
.nav__dropdown:hover .nav__dd,
.nav__dropdown:focus-within .nav__dd { opacity: 1; visibility: visible; transform: none; }
.nav__dd::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav__dd a { display: block; padding: 10px 20px; font-size: 14px; }
.nav__dd a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
/* Hero na pełną wysokość ekranu. Kompozycja z Figmy (1920×1080) skaluje się tak, żeby zmieścić
   się w ekranie (--u z szerokości ORAZ wysokości), napisy są przyklejone do dołu, a zdjęcie
   postaci rośnie z ekranem – górna krawędź zdjęcia zawsze poza kadrem. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--bg);
}
@media (min-width: 1024px) {
  .hero { --u: min(calc(min(100vw, 1920px) / 1920), calc(max(100svh, 480px) / 1080)); }
}
.hero__stage { position: relative; width: 100%; height: 100%; }
/* miękkie wygaszenie dołu */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 16%;
  background: linear-gradient(rgba(10, 10, 10, 0), var(--bg));
  pointer-events: none;
}
.hero__glow {
  position: absolute; left: 50%; top: calc(100% - 999 * var(--u));
  width: calc(903 * var(--u)); aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(243, 243, 243, .075);
  filter: blur(calc(44 * var(--u)));
  mix-blend-mode: screen;
}
.hero__first, .hero__last {
  position: absolute;
  font-family: var(--f-name);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  transform-origin: top center;
  user-select: none;
}
.hero__first {
  left: calc(-10 * var(--u));
  top: calc(100% - 909 * var(--u));
  font-size: calc(var(--name-first) * var(--u));
  transform: scaleY(var(--name-first-sy));
  transform-origin: top left;
  letter-spacing: calc(-2 * var(--u));
}
.hero__last {
  left: 50%;
  top: calc(100% - 599 * var(--u));
  font-size: calc(var(--name-last) * var(--u));
  transform: translateX(-50%) scaleY(var(--name-last-sy));
  letter-spacing: calc(-4 * var(--u));
}
.hero__last--outline {
  color: transparent;
  -webkit-text-stroke: max(1px, calc(2.2 * var(--u))) var(--red);
  pointer-events: none;
}
.hero__photo {
  position: absolute; left: 50%; bottom: calc(-7 * var(--u));
  /* co najmniej wysokość ekranu, żeby górna krawędź zdjęcia nigdy nie weszła w kadr */
  height: max(calc(1097 * var(--u)), calc(100% + 24px));
  width: auto; aspect-ratio: 972 / 1097;
  max-width: none;
  object-fit: cover; object-position: top center;
  transform: translateX(-50%);
  /* miękkie wygaszenie krawędzi zdjęcia (ucięcie głowy u góry, dół przy wjeździe) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 86%, transparent 100%);
}

/* Scena 3D – kamera krąży wokół postaci. Każda warstwa i karta jest rzutowana osobno w main.js
   (bez preserve-3d), dzięki czemu płaszczyzny nie przecinają się, a kolejność ustala z-index. */
.hero__scene { position: absolute; inset: 0; z-index: 0; }
.hero__plane {
  position: absolute; inset: 0;
  pointer-events: none;
  transform-origin: 50% 52%;
  will-change: transform;
}
/* Cienie kart na postaci: warstwa o wymiarach zdjęcia (ustawiane w main.js), przycięta jego sylwetką */
.hero__shadows {
  position: absolute; left: 0; top: 0;
  pointer-events: none;
  /* --hero-mask: zdjęcie z hero ustawione w panelu (front-page.php) */
  -webkit-mask: var(--hero-mask, none) center / 100% 100% no-repeat;
  mask: var(--hero-mask, none) center / 100% 100% no-repeat;
}
.hero__shadow {
  position: absolute; left: 0; top: 0;
  width: var(--cw); aspect-ratio: 63 / 88;
  margin: calc(var(--cw) * -.7) 0 0 calc(var(--cw) * -.5);
  border-radius: calc(var(--cw) * .07);
  /* miękki cień z gradientu – bez filtra rozmycia, który trzeba by przeliczać w każdej klatce */
  background: radial-gradient(closest-side, rgba(20, 8, 6, .95) 45%, rgba(20, 8, 6, 0) 100%);
  opacity: 0;
  will-change: transform, opacity;
}
.hero__cards {
  position: absolute; left: 50%; top: 52%;
  width: 0; height: 0;
  pointer-events: none;
}

/* Reflektor – pojawienie się iluzjonisty (sterowane z main.js) */
.hero__dark { position: absolute; inset: 0; pointer-events: none; background: #000; }
.hero__beam {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 70%; margin-left: -35%;
  pointer-events: none; opacity: 0;
  filter: blur(calc(22 * var(--u)));
  mix-blend-mode: screen;
}
.hero__beam::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 18% at 50% 88%, rgba(255, 244, 230, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 246, 235, .34), rgba(255, 246, 235, .1) 55%, rgba(255, 246, 235, 0) 95%);
  clip-path: polygon(44% 0, 56% 0, 88% 100%, 12% 100%);
}

/* Karty do gry – awers i rewers (obie strony widoczne przy obrocie).
   Wygląd klasycznej talii jak na zdjęciach z pokazów: ciepły papier, szeryfowe indeksy,
   kształty symboli z zestawu ikon (#pip-*), rewers z ornamentem (card-back.svg). */
.pcard {
  --cw: max(80px, calc(124 * var(--u)));
  --shade: 0;     /* przyciemnienie kart z tyłu sceny (ustawiane w JS) */
  --sheen: 50%;   /* położenie odblasku światła (ustawiane w JS) */
  --blur: 0px;    /* głębia ostrości – karty daleko za postacią lekko rozmyte (JS) */
  --a: 0;         /* widoczność karty (ustawiana w JS) */
  position: absolute; left: 0; top: 0;
  width: var(--cw); aspect-ratio: 63 / 88;   /* proporcje prawdziwej karty pokerowej */
  margin: calc(var(--cw) * -.7) 0 0 calc(var(--cw) * -.5);
  /* uwaga: bez opacity/filter/will-change:opacity na .pcard – spłaszczają 3D i znika rewers */
  transform-style: preserve-3d;
  will-change: transform;
}
.pcard__face {
  position: absolute; inset: 0;
  opacity: var(--a);
  filter: blur(var(--blur));
  border-radius: calc(var(--cw) * .06);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
  /* matowy karton: miękko przyciemniony brzeg zamiast ostrej linii, łagodny cień */
  box-shadow:
    inset 0 0 0 .7px rgba(110, 90, 70, .38),
    inset 0 0 calc(var(--cw) * .07) rgba(90, 60, 35, .2),
    0 calc(var(--cw) * .04) calc(var(--cw) * .18) rgba(0, 0, 0, .5);
}
/* Światło na matowym papierze: tylko miękka, szeroka zmiana jasności (bez plastikowego połysku),
   ciepły odblask sceny z boku i przyciemnienie zależne od kąta do reflektora (--shade z JS) */
.pcard__face::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 15%, rgba(255, 246, 232, calc(var(--spec, .3) * .16)) 50%, transparent 85%) var(--sheen) 0 / 250% 100% no-repeat,
    linear-gradient(200deg, rgba(200, 60, 30, .07), transparent 40%),
    linear-gradient(20deg, rgba(40, 20, 10, .1), transparent 40%),
    rgba(10, 6, 4, var(--shade));
}
/* faktura kartonu: drobne ziarno włókien + lekko nierówny odcień (na awersie i rewersie) */
.pcard__front::before, .pcard__back::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit;
  background:
    var(--grain-fine) 0 0 / calc(var(--cw) * .9) repeat,
    var(--grain-tone) center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: .5;
}

/* --- awers: ciepły, matowy karton i farba drukarska --- */
.pcard__front {
  background: var(--paper);
  color: #221f1c;
}
.pcard__front.is-red { color: #b61f2c; }
.pcard__front svg { display: block; overflow: visible; }
/* indeksy w rogach: wąski, pogrubiony szeryf + mały symbol */
.pcard__idx {
  position: absolute; left: 4.5%; top: 3.8%;
  width: 15%;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--cw) * .012);
}
.pcard__idx b {
  display: block;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 700;
  font-size: calc(var(--cw) * .17);
  line-height: .9;
  letter-spacing: -.09em;
  transform: scaleX(.84);
}
.pcard__idx svg { width: calc(var(--cw) * .105); height: calc(var(--cw) * .105); }
.pcard__idx--b { left: auto; top: auto; right: 4.5%; bottom: 3.8%; transform: rotate(180deg); }
.pcard__pips { position: absolute; inset: 0; }
.pcard__pips svg {
  position: absolute;
  width: calc(var(--cw) * .2); height: calc(var(--cw) * .2);
  transform: translate(-50%, -50%);
}
.pcard__pips svg.is-flip { transform: translate(-50%, -50%) rotate(180deg); }
.pcard__ace { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pcard__ace svg { width: calc(var(--cw) * .3); height: calc(var(--cw) * .3); }
.pcard__ace.is-spade svg { width: calc(var(--cw) * .52); height: calc(var(--cw) * .52); }

/* --- rewers – ten sam wzór co odwracane karty w ofercie (card-back.svg odwzorowuje .flip__back) --- */
.pcard__back {
  transform: rotateY(180deg);
  background: #f6f3ec url("../img/card-back.svg") center / 100% 100% no-repeat;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: calc(36 * var(--u));
  z-index: 4;
  width: 28px; height: 46px; margin-left: -14px;
  border: 2px solid rgba(244, 244, 244, .7); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--white);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero__roles {
  position: absolute; right: calc(119 * var(--u)); top: calc(100% - 776 * var(--u));
  z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--f-head);
  font-size: calc(48 * var(--u));
  line-height: 1.49;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
  margin-right: -.1em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9), 0 0 4px rgba(0, 0, 0, .6);
}

/* Oryginalny font CS Belway – wymiary 1:1 z projektu Figma */
.has-belway {
  --f-name: "CS Belway", "Anton", Impact, sans-serif;
  --name-first: 450; --name-first-sy: 1;
  --name-last: 800;  --name-last-sy: 1;
}
@media (min-width: 1024px) {
  .has-belway .hero__first {
    left: calc(-22 * var(--u)); top: calc(100% - 986 * var(--u));
    width: calc(796 * var(--u)); text-align: center;
    line-height: normal; letter-spacing: calc(-9 * var(--u));
    transform: none;
  }
  .has-belway .hero__last {
    top: calc(100% - 732 * var(--u));
    line-height: normal; letter-spacing: calc(-16 * var(--u));
    transform: translateX(-50%);
  }
}
@media (max-width: 1023px) {
  .has-belway .hero__first, .has-belway .hero__last { letter-spacing: -.02em; }
}

/* ---------- Showcase (Media i gwiazdy / W akcji) ---------- */
.showcase { position: relative; overflow: hidden; }
.showcase--red { background: var(--red); padding: var(--section-y) 0 calc(112 * var(--u)); }
.showcase--video { background: var(--bg); padding: calc(142 * var(--u)) 0 calc(112 * var(--u)); }

.showcase__grid {
  position: relative;
  display: grid;
  grid-template-columns: 681fr 438fr 528fr;
  column-gap: calc(16 * var(--u));
  align-items: start;
}
.showcase--video .showcase__grid { grid-template-columns: 831fr 408fr 410fr; column-gap: calc(13 * var(--u)); }

.showcase__main { display: flex; flex-direction: column; }
.showcase__media {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.showcase__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.showcase__media img.is-fading { opacity: 0; }
/* miejsca na filmy (strona główna): miniatura wypełnia kafelek, przy zmianie filmu – krótkie wygaszenie */
.showcase__media[data-vslot] { transition: opacity .25s; }
.showcase__media[data-vslot].is-fading { opacity: 0; }
.showcase__media .yt { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.showcase__media--b .yt__play, .showcase__media--c .yt__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.showcase__media--b .yt__play svg, .showcase__media--c .yt__play svg { width: 22px; height: 22px; }
.showcase--red .showcase__media--a { aspect-ratio: 681 / 450; margin-top: calc(71 * var(--u)); }
.showcase--red .showcase__media--a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 55%, rgba(10,10,10,.9));
  pointer-events: none;
}
.showcase--red .showcase__media--b { aspect-ratio: 438 / 579; }
.showcase--red .showcase__media--c { aspect-ratio: 528 / 321; }
.showcase--video .showcase__media--a { aspect-ratio: 831 / 468; margin-top: calc(58 * var(--u)); }
.showcase--video .showcase__media--b,
.showcase--video .showcase__media--c { aspect-ratio: 408 / 230; margin-top: calc(80 * var(--u)); }
.showcase--video .showcase__media--c { aspect-ratio: 410 / 230; }

.video::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0); transition: background-color .25s;
}
.video:hover::before { background: rgba(0,0,0,.2); }
.video:hover img { transform: scale(1.03); }

.showcase__arrows {
  position: absolute;
  right: var(--pad);
  top: calc(406 * var(--u));
  z-index: 3;
}
.showcase--video .showcase__arrows { top: calc(376 * var(--u)); }
.showcase__display {
  position: absolute;
  right: calc(var(--pad) + 111 * var(--u));
  top: calc(471 * var(--u));
  z-index: 2;
  pointer-events: none;
}
.showcase--red .showcase__display {
  right: calc(var(--pad) - 18 * var(--u));
  /* linia bazowa napisu na wysokości dolnej krawędzi zdjęcia po lewej (= dół siatki);
     .219em to odległość linii bazowej od dołu wiersza przy line-height 1.13 */
  top: auto; bottom: -.219em;
}
/* strzałki tuż nad napisem – przesuwają się razem z nim */
.showcase--red .showcase__arrows { top: auto; bottom: calc(.911 * var(--fs-display)); }
.showcase--video .showcase__display { top: calc(441 * var(--u)); right: calc(var(--pad) - 10 * var(--u)); }

/* ---------- Liczby / O mnie ---------- */
.stats { padding: var(--section-y) 0 calc(111 * var(--u)); }
.stats__grid {
  display: grid;
  grid-template-columns: 566fr 549fr 565fr;
  grid-template-rows: 1fr auto;
}
.stats__left {
  grid-column: 1; grid-row: 1;
  padding-top: calc(32 * var(--u));
  padding-right: calc(126 * var(--u));
  display: flex; flex-direction: column; gap: calc(61 * var(--u));
}
.stats__left .h2 { margin-right: calc(-80 * var(--u)); }
.stats__portrait {
  grid-column: 2; grid-row: 1 / 3;
  position: relative;
  aspect-ratio: 549 / 822;
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__portrait img { width: 100%; height: 100%; object-fit: cover; }
.stats__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 50%, var(--red) 100%);
}
.stats__right {
  grid-column: 3; grid-row: 1;
  padding: calc(115 * var(--u)) 0 0 calc(157 * var(--u));
  display: flex; flex-direction: column; align-items: flex-start;
  gap: calc(28 * var(--u));
}
.stats__right .btn { margin-top: calc(48 * var(--u)); }

.stats__nums { display: contents; }
.stat {
  grid-row: 2;
  display: flex; flex-direction: column-reverse;
  position: relative; z-index: 1;
  padding-bottom: calc(49 * var(--u));
  font-family: var(--f-head);
  font-weight: 500;
}
.stat dd {
  font-size: var(--fs-display);
  line-height: 1.13;
  letter-spacing: -.04em;
  color: var(--white);
  white-space: nowrap;
}
.stat dd sup { font-size: .711em; vertical-align: top; position: relative; top: .1em; letter-spacing: -.04em; }
.stat dd small { font-size: .711em; letter-spacing: -.04em; }
.stat dt {
  font-size: max(13px, calc(20 * var(--u)));
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-top: calc(-18 * var(--u));
  white-space: nowrap;
}
.stat--a { grid-column: 1; }
.stat--a dt { padding-left: calc(43 * var(--u)); }
.stat--b { grid-column: 2; align-items: center; margin-inline: calc(-30 * var(--u)); }
.stat--b dt { align-self: flex-start; padding-left: calc(74 * var(--u)); }
.stat--c { grid-column: 3; padding-left: calc(129 * var(--u)); }
.stat--c dt { padding-left: calc(50 * var(--u)); }

/* ---------- Oferta ---------- */
.offer { background: var(--gray); padding: var(--section-y) 0 calc(112 * var(--u)); }
.offer .section-head { gap: calc(16 * var(--u)); }
.offer .h2 { max-width: none; }
.offer .display { margin-top: calc(-4 * var(--u)); letter-spacing: -.02em; }
.offer__grid {
  margin-top: calc(60 * var(--u));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(16 * var(--u));
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(244, 244, 244, .22);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: transform .3s, border-color .3s;
}
.card--featured { border: 2px solid var(--red); }
.card:hover { transform: translateY(-6px); }
.card__media { position: relative; aspect-ratio: 548 / 356; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 30%, var(--bg) 118%);
}
.tag {
  position: absolute; left: 0; top: 16px; z-index: 1;
  min-width: 177px; height: 34px; padding: 0 16px;
  display: grid; place-items: center;
  background: var(--red); border-radius: 2px;
  font-family: var(--f-head); font-weight: 500; font-size: 14px;
  letter-spacing: .15em; text-transform: uppercase;
}
.card__body {
  flex: 1;
  display: flex; flex-direction: column;
  gap: calc(48 * var(--u));
  padding: calc(40 * var(--u)) calc(36 * var(--u)) calc(44 * var(--u));
}
.card__title {
  font-family: var(--f-head); font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.28;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 2.56em;
}
.card .btn { margin-top: auto; }
.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; align-items: center; gap: 12px; line-height: 1.2; }
.bullets li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--white); flex-shrink: 0; }

/* ---------- CTA ---------- */
.cta-bar { background: linear-gradient(var(--gray) 50%, var(--bg) 50%); }
.cta-bar__inner {
  max-width: 1920px; margin: 0 auto;
  min-height: calc(208 * var(--u));
  padding: calc(60 * var(--u)) calc(122 * var(--u)) calc(60 * var(--u)) var(--pad);
  background: var(--red);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-bar__title {
  font-family: var(--f-head); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.28; letter-spacing: .01em;
  text-transform: uppercase;
}
.cta-bar__sub { opacity: .8; margin-top: 8px; line-height: 1.2; }
.cta-bar .btn:hover { background: var(--white); color: var(--red); }

/* ---------- Galeria ---------- */
.gallery { padding: calc(111 * var(--u)) 0 calc(121 * var(--u)); }
.gallery .wrap { display: flex; flex-direction: column; align-items: center; gap: calc(64 * var(--u)); }
.gallery__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__grid img {
  width: 100%; aspect-ratio: 548 / 368;
  object-fit: cover; border-radius: var(--radius);
  transition: transform .4s, filter .4s;
}
.gallery__grid img:hover { transform: scale(1.02); }

/* ---------- Opinie ---------- */
.testi { padding: var(--section-y) 0 calc(112 * var(--u)); overflow: hidden; }
.testi .wrap { position: relative; }
.testi__title { max-width: calc(509 * var(--u)); min-width: 300px; }
.testi__quote { position: relative; text-align: center; margin: calc(88 * var(--u)) auto 0; max-width: calc(1398 * var(--u)); }
.testi__mark {
  position: absolute; left: 50%; top: calc(-159 * var(--u));
  transform: translateX(-50%);
  font-family: var(--f-head); font-weight: 500;
  font-size: calc(250 * var(--u)); line-height: 1.2;
  color: var(--gray);
  z-index: 0;
}
.testi__quote blockquote {
  position: relative; z-index: 1;
  font-family: var(--f-head);
  font-size: max(17px, calc(24 * var(--u)));
  line-height: 1.6;
  color: #fff;
}
.testi__quote figcaption { margin-top: calc(24 * var(--u)); font-size: 14px; line-height: 1.75; }
.testi__track {
  margin-top: calc(186 * var(--u));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 15px) / 3);
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.testi__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: calc(46 * var(--u));
  padding: calc(44 * var(--u)) calc(44 * var(--u)) calc(48 * var(--u));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.review blockquote { line-height: 1.75; padding-bottom: calc(46 * var(--u)); border-bottom: 1px solid var(--line); flex: 1; }
.review figcaption { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.2; }
.review small { font-family: var(--f-head); font-weight: 500; font-size: 14px; letter-spacing: .15em; text-transform: uppercase; color: #fff; }
.testi__arrows { justify-content: flex-end; margin-top: calc(48 * var(--u)); }

/* ---------- Logotypy – przewijany pas (ten sam co w „O mnie”, src/partials/logos.html) ---------- */
.logos { background: var(--gray); }

/* ---------- FAQ ---------- */
.faq { padding: var(--section-y) 0 calc(150 * var(--u)); }
.faq .display { margin-top: calc(-16 * var(--u)); }
.faq__list { margin-top: calc(-26 * var(--u)); border-top: 1px solid var(--line); }
.faq__item { position: relative; border-bottom: 1px solid var(--line); }
.faq__item::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(-1 * var(--pad));
  background: var(--gray); border-radius: var(--radius);
  opacity: 0; transition: opacity .3s;
}
.faq__item[open] { border-bottom-color: transparent; }
.faq__item[open]::before { opacity: 1; }
.faq { position: relative; z-index: 0; }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 20px;
  padding: calc(36 * var(--u)) 0;
  min-height: 72px;
  font-family: var(--f-head); font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary { padding-bottom: calc(20 * var(--u)); }
.faq__num { color: var(--red); font-size: max(16px, calc(20 * var(--u))); letter-spacing: .03em; min-width: 1.6em; }
.faq__q { flex: 1; font-size: max(18px, calc(26 * var(--u))); line-height: 1.28; }
.faq__icon {
  position: relative; flex-shrink: 0;
  width: max(40px, calc(48 * var(--u))); aspect-ratio: 1;
  border: 3px solid var(--white); border-radius: 50%;
  transition: background-color .25s, border-color .25s, transform .3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40%; height: 2px; background: var(--white);
  transform: translate(-50%, -50%);
  transition: transform .3s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--red); border-color: var(--red); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover .faq__icon { border-color: var(--red); }
.faq__a {
  padding: 0 0 calc(36 * var(--u)) calc(33 * var(--u) + 1.6em);
  line-height: 1.75;
  max-width: 1400px;
}

/* ---------- Formularz ---------- */
.contact { background: var(--gray); padding: var(--section-y) 0; }
.contact .section-head { gap: 0; }
.contact__title { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: 0; color: #fff; margin-top: calc(20 * var(--u)); }
.contact__lead { color: var(--muted); max-width: 760px; margin-top: calc(32 * var(--u)); }
.form {
  margin: calc(56 * var(--u)) auto 0;
  max-width: calc(1384 * var(--u));
  min-width: min(100%, 880px);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(10 * var(--u) + 12px); row-gap: 32px;
}
.form__col { display: flex; flex-direction: column; gap: calc(36 * var(--u)); }
.form__col:last-child { gap: calc(32 * var(--u)); }
/* lekkie pola – sama linia zamiast dużych ramek, żeby formularz nie wyglądał na „dużo do wypełnienia” */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-family: var(--f-head); font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.3;
}
.field input, .field textarea {
  width: 100%; height: 48px;
  padding: 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(244, 244, 244, .22);
  border-radius: 0;
  color: var(--white);
  font: 18px/1.2 var(--f-input);
  outline: none;
  transition: border-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 244, 244, .3); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #ff4a53; }
.field textarea { height: auto; min-height: 104px; padding: 12px 0; line-height: 1.5; resize: vertical; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 20px; color: var(--muted);
  cursor: pointer;
  margin-top: auto;
}
.consent input {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0; width: 20px; height: 20px; margin: 0;
  border-radius: 4px; background: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s;
}
.consent input:checked { background: var(--red); }
.consent input:checked::after {
  content: ""; width: 10px; height: 5px; margin-top: -3px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.consent input.is-invalid { outline: 2px solid #ff4a53; outline-offset: 2px; }
.consent a { text-decoration: underline; }
.consent a:hover { color: var(--white); }
.form__status { font-size: 15px; min-height: 1.4em; line-height: 1.4; margin-top: -12px; }
.form__status.is-error { color: #ff6b72; }
.form__status.is-ok { color: #7fdc9c; }

/* ---------- Social media ---------- */
.social { overflow: hidden; }
.social__inner {
  position: relative;
  height: calc(1034 * var(--u));
}
.social__head { position: absolute; left: var(--pad); top: calc(112 * var(--u)); gap: calc(16 * var(--u)); }
.scard {
  position: absolute;
  width: calc(406 * var(--u)); height: calc(600 * var(--u));
  border-radius: var(--radius); overflow: hidden;
  background: var(--gray);
  transition: transform .35s, box-shadow .3s;
}
.scard:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(174, 0, 10, .6); }
.scard img {
  position: absolute; inset: 0 0 auto 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
}
.scard--facebook img { object-position: center top; }
/* cztery karty w kolejności liczby obserwujących, schodkami w górę */
.scard--tiktok { left: var(--pad); top: calc(253 * var(--u)); }
.scard--facebook { left: calc(var(--pad) + 425 * var(--u)); top: calc(220 * var(--u)); }
.scard--youtube { left: calc(var(--pad) + 850 * var(--u)); top: calc(140 * var(--u)); }
.scard--instagram { left: calc(var(--pad) + 1275 * var(--u)); top: calc(60 * var(--u)); }
.scard__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: calc(28 * var(--u));
  background: var(--gray);
  display: flex; flex-direction: column; gap: calc(16 * var(--u));
}
.scard__id { display: flex; align-items: center; gap: 14px; padding-bottom: calc(16 * var(--u)); border-bottom: 1px solid var(--line); }
.scard__id div { display: flex; flex-direction: column; gap: 2px; font-size: max(13px, calc(16 * var(--u))); line-height: 1.2; }
.scard__id strong { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; }
.scard__icon { width: max(28px, calc(40 * var(--u))); height: max(28px, calc(40 * var(--u))); flex-shrink: 0; }
.scard__icon--fb { width: max(13px, calc(18 * var(--u))); height: max(24px, calc(34 * var(--u))); margin: 0 calc(11 * var(--u)); }
.scard__icon--yt { height: max(24px, calc(34 * var(--u))); }
.scard__stat { display: flex; align-items: center; justify-content: space-between; }
.scard__stat b { font-family: "Roboto", var(--f-body); font-weight: 700; font-size: max(20px, calc(28 * var(--u))); line-height: 1.2; }
.scard__stat small { font-family: var(--f-head); font-size: max(11px, calc(14 * var(--u))); letter-spacing: .02em; text-transform: uppercase; opacity: .5; }
.social__display { position: absolute; right: calc(104 * var(--u)); top: calc(740 * var(--u)); z-index: 2; pointer-events: none; }

/* ---------- Stopka ---------- */
.footer { background: var(--gray); padding: calc(96 * var(--u)) 0 48px; }
.footer .wrap { display: flex; flex-direction: column; gap: 48px; }
.footer__top {
  border-top: 1px solid var(--red);
  padding-top: calc(96 * var(--u));
  display: flex; justify-content: space-between; gap: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 20px; max-width: 547px; }
.footer__logo { width: max(88px, calc(128 * var(--u))); height: auto; color: var(--red); }
.footer__brand p { font-family: var(--f-head); font-size: max(15px, calc(18 * var(--u))); line-height: 1.68; text-transform: uppercase; }
.footer__social { display: flex; align-items: center; gap: 22px; margin: 18px 0 0 -10px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; transition: color .2s; }
.footer__social a:hover { color: var(--red); }
.footer__social svg { width: 24px; height: 24px; }
.footer__social svg.fb { width: 13px; }
.footer__social svg.yt { width: 28px; }
.footer__cols { display: flex; gap: max(40px, calc(80 * var(--u))); font-size: 14px; line-height: 1.2; }
.footer__cols > div { display: flex; flex-direction: column; gap: 2px; }
.footer__cols a, .footer__cols span { padding: 7px 0; }
.footer__cols .footer__h { margin-bottom: 8px; }
.footer__cols a:hover { color: var(--red); }
.footer__h { font-family: var(--f-head); font-weight: 500; color: var(--red); letter-spacing: .04em; text-transform: uppercase; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; line-height: 1.2;
}
.footer__bottom p { opacity: .45; }
.footer__bottom a { display: inline-block; padding: 8px 0; }
.footer__bottom a:hover { text-decoration: underline; }
/* wyraźny powrót na górę na dole każdej strony (oprócz pływającego przycisku) */
.footer__up {
  display: inline-flex; align-items: center; gap: 10px; align-self: center;
  padding: 10px 18px; border: 1px solid rgba(244, 244, 244, .35); border-radius: 26px;
  font-family: var(--f-head); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); transition: border-color .2s, background-color .2s;
}
.footer__up svg { width: 18px; height: 18px; }
.footer__up:hover { border-color: var(--red); background: var(--red); }
.footer__home { display: inline-block; }

/* ---------- Animacje wejścia ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero__roles span { animation: fade .8s 2.4s ease both; }
  .hero__roles span:nth-child(2) { animation-delay: 2.55s; }
  .hero__roles span:nth-child(3) { animation-delay: 2.7s; }
  @keyframes fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   Tablet i mniejsze
   ========================================================= */
@media (max-width: 1180px) {
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: 16px; padding: 0 10px;
  }
  .nav__burger span { height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav .btn-cta { margin-left: auto; }
  .nav__menu {
    position: fixed; inset: 72px 0 0 0;
    margin: 0; padding: 32px 24px 48px;
    background: var(--bg);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  /* backdrop-filter tworzy blok zawierający dla position:fixed – wyłączamy, by menu zajęło cały ekran */
  .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 10, 10, .96); }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a {
    display: flex; width: 100%; padding: 18px 0;
    font-family: var(--f-head); font-size: 26px; line-height: 1.2; justify-content: space-between;
  }
  .nav__list > li > a::after { display: none; }
  .nav__dropdown { flex-wrap: wrap; gap: 0; }
  .nav__dropdown > a { flex: 1; width: auto; }
  .nav__dd-toggle { width: 52px; height: 52px; margin-right: -14px; }
  .nav__dd-toggle svg { width: 16px; height: 12px; }
  .nav__dropdown:hover .nav__dd-toggle svg { transform: none; }
  .nav__dropdown.is-open .nav__dd-toggle svg { transform: rotate(180deg); }
  .nav__dd { flex-basis: 100%; }
  .nav__dd {
    position: static; min-width: 0; padding: 0 0 12px; background: none; border: 0;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__dropdown:hover .nav__dd { display: none; }
  .nav__dropdown.is-open .nav__dd { display: block; }
  .nav__dd a { padding: 10px 0 10px 16px; font-size: 17px; color: var(--muted); }
  .nav__dd::before { display: none; }
}

@media (max-width: 1023px) {
  :root {
    --u: calc(100vw / 1024);
    --pad: clamp(20px, 5vw, 48px);
    --fs-display: clamp(40px, 15vw, 150px);
    --fs-h2: clamp(28px, 5vw, 40px);
    --section-y: clamp(64px, 11vw, 96px);
  }

  /* Hero – telefon/tablet (pionowo) */
  .hero { min-height: 560px; }
  .hero__glow { width: 110vw; top: 12%; }
  .hero__first {
    left: 50%; top: 17%;
    font-size: calc(var(--name-first) / 761 * 92vw);
    transform: translateX(-50%) scaleY(var(--name-first-sy));
    transform-origin: top center;
    letter-spacing: -.005em;
  }
  .hero__last {
    top: auto; bottom: 7%;
    font-size: calc(var(--name-last) / 1980 * 104vw);
    transform: translateX(-50%) scaleY(var(--name-last-sy));
    transform-origin: bottom center;
  }
  /* zdjęcie od samej góry ekranu – głowa w całości, bez wygaszania; górna krawędź zdjęcia (ucięte włosy)
     wypada tuż nad ekranem. Wielkość zależy tylko od wysokości ekranu, nie od szerokości –
     na wąskim telefonie przycinane są boki, a postać zostaje tej samej wielkości */
  .hero__photo {
    top: auto; bottom: 0;
    width: auto; height: calc(100% + 24px);
    aspect-ratio: 957 / 1080;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24px);
  }
  .hero__roles {
    top: auto; bottom: 3%; right: 50%;
    transform: translateX(50%);
    flex-direction: row; gap: 0 .9em;
    font-size: clamp(12px, 3.4vw, 22px);
    margin-right: 0;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(0,0,0,.6);
  }
  .pcard { --cw: clamp(46px, 14vw, 96px); }
  .hero__scroll { display: none; }

  /* Showcase */
  .showcase--red, .showcase--video { padding: var(--section-y) 0; }
  .showcase__grid, .showcase--video .showcase__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .showcase__main { grid-column: 1 / -1; gap: 32px; }
  .showcase--red .showcase__media--a, .showcase--video .showcase__media--a { margin-top: 0; aspect-ratio: 16 / 10; }
  .showcase--red .showcase__media--b, .showcase--red .showcase__media--c,
  .showcase--video .showcase__media--b, .showcase--video .showcase__media--c { margin-top: 0; aspect-ratio: 4 / 3; }
  .showcase__display, .showcase--red .showcase__display, .showcase--video .showcase__display {
    position: static; grid-column: 1 / -1; order: 5; margin-top: 8px; text-align: left;
  }
  .showcase__arrows, .showcase--video .showcase__arrows { position: static; grid-column: 1 / -1; order: 6; justify-content: flex-start; }
  .arrows { gap: 12px; }

  /* Liczby */
  .stats { padding: var(--section-y) 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 40px 24px; }
  .stats__left { grid-column: 1 / -1; grid-row: auto; padding: 0; gap: 24px; }
  .stats__left .h2 { margin-right: 0; }
  .text--justify { text-align: left; }
  .stats__portrait { grid-column: 1; grid-row: auto; aspect-ratio: 3 / 4; }
  .stats__right { grid-column: 2; grid-row: auto; padding: 0; gap: 20px; align-self: center; }
  .stats__right .btn { margin-top: 12px; }
  .stats__nums { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat, .stat--a, .stat--b, .stat--c { grid-column: auto; grid-row: auto; padding: 0; margin: 0; align-items: flex-start; }
  .stat dd { font-size: clamp(40px, 9vw, 96px); }
  .stat dt, .stat--a dt, .stat--b dt, .stat--c dt { padding-left: 0; margin-top: 4px; font-size: 12px; letter-spacing: .1em; white-space: normal; }

  /* Oferta */
  .offer { padding: var(--section-y) 0; }
  .offer__grid { margin-top: 40px; grid-template-columns: 1fr; gap: 20px; max-width: 620px; margin-inline: auto; }
  .card__body { gap: 28px; padding: 28px 24px 32px; }
  .card__title { min-height: 0; }
  .card .btn { margin-top: 4px; }

  /* CTA */
  .cta-bar__inner { flex-direction: column; align-items: flex-start; padding: 40px var(--pad); border-radius: 20px; gap: 24px; }

  /* Galeria */
  .gallery { padding: 0 0 var(--section-y); }
  .showcase--video { padding-bottom: 48px; }
  .gallery .wrap { gap: 40px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__grid img { border-radius: 16px; }

  /* Opinie */
  .testi { padding: var(--section-y) 0; }
  .testi__title { max-width: 16em; }
  .testi__quote { max-width: none; margin-top: 88px; }
  .testi__mark { font-size: 180px; top: -120px; }
  .testi__track { margin-top: 48px; grid-auto-columns: min(86%, 420px); gap: 12px; }
  .review { gap: 24px; padding: 28px 24px; }
  .review blockquote { padding-bottom: 24px; }
  .testi__arrows { margin-top: 24px; }

  /* FAQ */
  .faq { padding: var(--section-y) 0; }
  .faq .display { margin-top: 0; }
  .faq__list { margin-top: 32px; }
  .faq__item summary { padding: 22px 0; gap: 14px; align-items: center; }
  .faq__item[open] summary { padding-bottom: 12px; }
  .faq__item::before { inset: 0 calc(-1 * var(--pad) + 8px); border-radius: 16px; }
  .faq__a { padding: 0 0 24px calc(14px + 1.6em); }

  /* Formularz */
  .contact { padding: var(--section-y) 0; }
  .contact__title { margin-top: 12px; }
  .contact__lead { margin-top: 16px; }
  .form { grid-template-columns: 1fr; min-width: 0; max-width: 620px; margin-top: 40px; }
  .form__col, .form__col:last-child { gap: 24px; }
  .consent { margin-top: 0; }

  /* Social */
  .social { padding: var(--section-y) 0; }
  .social__inner { height: auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
  .social__head { position: static; margin-bottom: 12px; }
  .scard, .scard--tiktok, .scard--facebook, .scard--youtube, .scard--instagram {
    position: relative; left: auto; top: auto; width: 100%; height: auto;
    display: flex; flex-direction: column;
    max-width: 480px;
  }
  .scard img, .scard--facebook img { position: static; height: auto; aspect-ratio: 1; }
  .scard__panel { position: static; padding: 20px 22px 22px; gap: 14px; }
  .scard__id { padding-bottom: 14px; }
  .social__display { position: static; order: -1; margin: -8px 0 12px; }
  .social__head { order: -2; }

  .footer { padding-top: 48px; }
  .footer__top { flex-direction: column; padding-top: 48px; }
  .footer__cols { flex-wrap: wrap; gap: 32px 48px; }
  .footer__bottom { padding-top: 24px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .social__inner { grid-template-columns: repeat(2, 1fr); }
  .social__head, .social__display { grid-column: 1 / -1; }
  .scard__panel { padding: 16px; }
  .scard__stat small { font-size: 10px; }
}

@media (max-width: 639px) {
  .nav .btn-cta { width: auto; padding: 0 64px 0 20px; height: 46px; font-size: 13px; }
  .nav .btn-cta__icon { width: 44px; height: 44px; }
  .btn-cta__icon svg { width: 12px; height: 19px; }
  .showcase__grid, .showcase--video .showcase__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .showcase__media { border-radius: 16px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__portrait, .stats__right { grid-column: 1; }
  .stats__portrait { aspect-ratio: 4 / 5; }
  .stats__nums { grid-template-columns: 1fr; gap: 20px; }
  .stat { flex-direction: row-reverse; align-items: baseline !important; justify-content: flex-end; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px !important; }
  .stat dd { font-size: 64px; }
  .stat dt { max-width: 14em; white-space: normal; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; }
}
