/* =========================================================
   PACKAGING – wzorzec: „PACKAGING_FINAL_WZOR.png” (1672 × 941)
   Samodzielny arkusz – HOME, PRODUCTS i QUALITY nie są tu ładowane ani zmieniane.
   1u = 1/100 szerokości wzorca (16,72 px); wzorzec (941 px = 56,28u)
   + nagłówek (5,5u) mieszczą się w jednym ekranie.
   Nagłówek identyczny jak w PRODUCTS i QUALITY.
   ========================================================= */

:root {
  --hu: 1vw;                /* jednostka headera – identyczna na wszystkich stronach (wzorzec: CONTACT) */
  --u: min(1vw, calc((100vh - var(--hu) * 5.5) / 56.28));
  --bg: #000502;
  --lime: #b4ec0c;
  --lime-soft: #a6dc22;
  --text: #ffffff;
  --line: rgba(180, 236, 12, .18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Roboto", Arial, sans-serif;
  --header-h: calc(var(--hu) * 5.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pk {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }

/* =========================================================
   NAGŁÓWEK
   ========================================================= */
.pk-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 calc(var(--hu) * 3);
  background: linear-gradient(180deg, #000 0%, rgba(0, 4, 1, .96) 100%);
}

.pk-header::after {               /* cienka linia pod nagłówkiem */
  content: "";
  position: absolute;
  left: calc(var(--hu) * 21);
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 180, 120, .45) 12%, rgba(150, 180, 120, .45));
}

.pk-brand img {
  width: auto;
  height: min(calc(var(--hu) * 4.3), 80px);
}

.pk-nav { margin-left: calc(var(--hu) * 5.4); }

.pk-nav ul { display: flex; gap: calc(var(--hu) * 2.15); }

.pk-nav a {
  position: relative;
  display: block;
  padding: calc(var(--hu) * .6) 0;
  font-family: var(--sans);
  font-size: calc(var(--hu) * 1.1);
  font-weight: 400;
  white-space: nowrap;
  transition: color .2s;
}

.pk-nav a:hover,
.pk-nav a.is-active { color: var(--lime); }

.pk-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--hu) * -.55);
  height: calc(var(--hu) * .25);
  min-height: 3px;
  border-radius: 2px;
  background: var(--lime);
}

.pk-wa {
  display: flex;
  align-items: center;
  gap: calc(var(--hu) * .9);
  margin-left: auto;
}

.pk-wa svg {
  width: calc(var(--hu) * 2.6);
  height: calc(var(--hu) * 2.6);
  color: #25d366;
  flex-shrink: 0;
}

.pk-wa > span {
  display: flex;
  flex-direction: column;
  font-size: calc(var(--hu) * 1.08);
  line-height: 1.3;
}

.pk-lang {
  display: flex;
  gap: calc(var(--hu) * 2.1);
  margin-left: calc(var(--hu) * 4.4);
  font-size: calc(var(--hu) * 1.3);
  font-weight: 500;
}

.pk-lang a { position: relative; padding-bottom: calc(var(--hu) * .35); }
.pk-lang a.is-active { color: var(--lime); }

.pk-lang a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--hu) * -.3);
  height: calc(var(--hu) * .22);
  min-height: 2px;
  background: var(--lime);
}

.pk-burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.pk-hero {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  min-height: calc(var(--u) * 56.28);
  background:
    radial-gradient(ellipse 26% 22% at 4% 82%, rgba(14, 50, 2, .45), transparent 72%),
    linear-gradient(180deg, #000400 0%, #000501 60%, #000903 100%);
}

/* ---------- świetlista smuga (lewy dół) ---------- */
.pk-swoosh {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: calc(var(--u) * 31.1);
  height: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%), linear-gradient(90deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%), linear-gradient(90deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- scena z ludzikiem (przezroczysta po lewej stronie łuku) ---------- */
.pk-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: calc(var(--u) * 70.1);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%);
}

.pk-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 0 100%;
}

/* ---------- treść ---------- */
.pk-content {
  position: relative;
  z-index: 3;
  width: calc(var(--u) * 40);
  padding: calc(var(--u) * 8.75) 0 0 calc(var(--u) * 4.3);
}

.pk-eyebrow {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.6);
  font-size: calc(var(--u) * 1.05);
  font-weight: 400;
  letter-spacing: .78em;
  text-transform: uppercase;
}

.pk-eyebrow::after {
  content: "";
  width: calc(var(--u) * 14.8);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(180, 236, 12, .15));
}

.pk-title {
  margin-top: calc(var(--u) * 1.6);
  margin-left: calc(var(--u) * -1.4);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: calc(var(--u) * 8);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

.pk-subtitle {
  margin-top: calc(var(--u) * 1.3);
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--u) * 2.35);
  line-height: 1.27;
  color: var(--lime-soft);
}

.pk-lead {
  margin-top: calc(var(--u) * 1.2);
  font-size: calc(var(--u) * 1.5);
  line-height: 1.32;
  color: #f0f2ee;
}

/* ---------- cztery elementy ---------- */
.pk-features {
  display: grid;
  grid-template-columns: repeat(5, calc(var(--u) * 7.2));
  margin-top: calc(var(--u) * 2.9);
  margin-left: calc(var(--u) * -1.2);
}

.pk-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 calc(var(--u) * .2) calc(var(--u) * .3);
}

.pk-features li + li { border-left: 1px solid var(--line); }

.pk-features svg {
  width: calc(var(--u) * 3.4);
  height: calc(var(--u) * 3.4);
  color: var(--lime);
  filter: drop-shadow(0 0 6px rgba(180, 236, 12, .35));
}

.pk-features h2 {
  margin-top: calc(var(--u) * 1.4);
  font-family: var(--sans);
  font-weight: 400;
  font-size: calc(var(--u) * 1);
  line-height: 1.38;
  white-space: nowrap;
}

/* =========================================================
   TABLET / TELEFON
   ========================================================= */
@media (max-width: 1000px), (max-aspect-ratio: 1/1) {
  :root { --u: 10px; --hu: 10px; --header-h: 72px; }

  .pk-header { padding: 0 18px; }
  .pk-header::after { left: 0; }
  .pk-brand img { height: 44px; }

  .pk-wa > span { display: none; }
  .pk-wa svg { width: 34px; height: 34px; }
  .pk-lang { margin-left: 18px; gap: 14px; font-size: 1.05rem; }

  .pk-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    margin-left: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .pk-burger span { height: 3px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .pk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .pk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .pk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

  .pk-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 18px 18px;
    background: rgba(0, 5, 2, .98);
    border-bottom: 1px solid var(--line);
  }
  .pk-nav.is-open { display: block; }
  .pk-nav ul { flex-direction: column; gap: 0; }
  .pk-nav a { padding: 12px 0; font-size: 1.15rem; }
  .pk-nav a.is-active::after { right: auto; width: 56px; bottom: 6px; }

  .pk-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .pk-content {
    order: 1;
    width: 100%;
    max-width: 640px;
    padding: 40px 20px 36px;
  }

  .pk-eyebrow { font-size: .85rem; gap: 18px; letter-spacing: .5em; }
  .pk-eyebrow::after { width: 70px; }
  .pk-title { font-size: clamp(3rem, 15vw, 5.4rem); margin: 10px 0 0 -4px; }
  .pk-subtitle { font-size: clamp(1.3rem, 5.4vw, 1.9rem); }
  .pk-subtitle br, .pk-lead br { display: none; }
  .pk-lead { font-size: 1.05rem; line-height: 1.45; margin-top: 16px; }

  .pk-features { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 28px 0 0; }
  .pk-features li { padding: 0 2px; }
  .pk-features svg { width: 34px; height: 34px; }
  .pk-features h2 { font-size: max(12px, clamp(.5rem, 2.5vw, .85rem)); margin-top: 10px; }

  .pk-swoosh { display: none; }

  /* scena pod treścią */
  .pk-scene {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1172 / 941;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* mobile: 4 najdłuższe podpisy ikon – minimalnie mniejsze, by mieściły się w kolumnie */
@media (max-width: 1000px), (max-aspect-ratio: 1/1) {
  html[lang="pl"] .pk-features li:nth-child(1) h2 { font-size: 11.5px; } /* zabezpieczenie */
  html[lang="en"] .pk-features li:nth-child(3) h2 { font-size: 11px; }   /* during transport */
}
