@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-normal-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-normal-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-normal-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pole: #0b6a42;
  --pole-jasne: #108050;
  --pole-ciemne: #07512f;
  --pole-glebokie: #063f25;
  --akcja: #14a064;
  --ciemna: #04150f;
  --mieta: #5ce1b8;
  --mieta-2: #91f4d6;
  --zolty: #ffbb33;
  --zolty-tekst: #ffcc66;
  --krem: #fff3d6;
  --bialy: #ffffff;
  --jasne: #f5f5f5;
  --jasne-2: #f1f6f2;
  --czern: #0f0f0f;
  --tekst: #17231d;
  --tekst-2: #45524b;
  --tekst-3: #6c7872;
  --linia: #e2e7e4;
  --linia-mocna: #cbd4cf;

  --font-display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --shell: 1240px;
  --section: clamp(80px, 9vw, 136px);
  --header-h: 80px;
  --kafel: clamp(22px, 2.6vw, 36px);

  --shadow-s: 0 2px 8px rgba(4, 21, 15, 0.08);
  --shadow-m: 0 18px 40px -20px rgba(4, 21, 15, 0.45);
  --shadow-l: 0 40px 80px -36px rgba(4, 21, 15, 0.6);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bialy);
  color: var(--tekst);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

address {
  font-style: normal;
}

sub {
  font-size: 0.62em;
  line-height: 0;
  position: relative;
  bottom: -0.16em;
  vertical-align: baseline;
  letter-spacing: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--zolty);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--zolty-tekst);
  color: var(--czern);
}

[hidden] {
  display: none !important;
}

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

.nw {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--zolty);
  color: var(--czern);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.etykieta {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--pole);
}

.etykieta::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  vertical-align: 0.02em;
  background: var(--zolty);
}

.etykieta--jasna {
  color: var(--zolty-tekst);
}

.etykieta--mieta {
  color: var(--mieta);
}

.naglowek {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.bebas {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
}

.bebas--xl {
  font-size: clamp(56px, 7vw, 96px);
}

.zolte {
  color: var(--zolty-tekst);
}

.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--tekst-2);
  text-wrap: pretty;
}

.btn {
  --btn-bg: var(--zolty);
  --btn-fg: var(--czern);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.3s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: none;
}

.btn--zolty {
  --btn-bg: var(--zolty);
  --btn-fg: var(--czern);
}

.btn--zolty:hover {
  --btn-bg: #ffc94f;
  box-shadow: 0 12px 24px -12px rgba(242, 169, 0, 0.8);
}

.btn--bialy {
  --btn-bg: var(--bialy);
  --btn-fg: var(--pole);
}

.btn--bialy:hover {
  --btn-bg: var(--krem);
}

.btn--kontur {
  --btn-bg: transparent;
  --btn-fg: var(--bialy);
  --btn-bd: rgba(255, 255, 255, 0.9);
}

.btn--kontur:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
}

.btn--zielony {
  --btn-bg: var(--pole);
  --btn-fg: var(--bialy);
}

.btn--zielony:hover {
  --btn-bg: var(--pole-jasne);
}

.btn--kontur-ciemny {
  --btn-bg: transparent;
  --btn-fg: var(--tekst);
  --btn-bd: var(--linia-mocna);
}

.btn--kontur-ciemny:hover {
  --btn-bd: var(--tekst);
}

.btn--mieta {
  --btn-bg: var(--mieta);
  --btn-fg: var(--ciemna);
}

.btn--mieta:hover {
  --btn-bg: var(--mieta-2);
}

.btn--maly {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  gap: 8px;
}

.btn--maly svg {
  width: 18px;
  height: 18px;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--bialy);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    height 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--pole);
  box-shadow: 0 8px 24px -16px rgba(4, 21, 15, 0.6);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: auto;
  height: 32px;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.45);
}

.brand-campaign {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bialy);
  white-space: nowrap;
  padding-top: 3px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0px, 1vw, 8px);
}

.main-nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bialy);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--zolty-tekst);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a[aria-current='true']::after {
  transform: scaleX(1);
}

.main-nav .nav-cta {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  font-weight: 600;
  opacity: 1;
}

.main-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--bialy);
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 16px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1160px) {
  .menu-toggle {
    display: block;
    z-index: 3;
  }

  .brand {
    position: relative;
    z-index: 3;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 20px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--pole) url('../img/team/piksele-zielone.svg') center / cover no-repeat;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.3s ease,
      visibility 0s linear 0.3s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition:
      opacity 0.3s ease,
      visibility 0s;
  }

  .main-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-family: var(--font-display);
    font-size: clamp(34px, 9vw, 48px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    opacity: 1;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav a[aria-current='true'] {
    color: var(--zolty-tekst);
  }

  .main-nav .nav-cta {
    margin: 24px 0 0;
    justify-content: center;
    padding: 16px 24px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.2;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 68px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    height: 26px;
  }

  .brand-divider {
    height: 22px;
  }

  .brand-campaign {
    font-size: 22px;
  }
}

.site-footer {
  background: var(--bialy);
  color: var(--tekst-2);
  border-top: 1px solid var(--linia);
  font-size: 14px;
  line-height: 1.7;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px);
}

.footer-brand img {
  width: auto;
  height: 36px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 30em;
  color: var(--tekst-2);
}

.footer-brand address {
  margin-top: 16px;
  color: var(--tekst-3);
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pole);
}

.footer-col ul {
  display: grid;
  gap: 6px;
}

.footer-col a {
  color: var(--tekst-2);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--pole);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bok strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--pole);
}

.footer-bok p {
  color: var(--tekst-3);
  font-size: 13px;
}

.footer-bok a {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--tekst);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linia);
  font-size: 13px;
  color: var(--tekst-3);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-bottom a {
  color: var(--tekst-2);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--pole);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mini-mapa {
  position: relative;
  overflow: hidden;
  background: #1c2e22;
  isolation: isolate;
}

.mini-mapa > img,
.mini-mapa > canvas {
  position: absolute;
  left: var(--mx, -75%);
  top: var(--my, -60%);
  width: var(--mw, 250%);
  max-width: none;
  height: auto;
  aspect-ratio: 1200 / 1500;
}

.mini-mapa > img {
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

.znacznik {
  position: absolute;
  z-index: 2;
  left: var(--zx, 50%);
  top: var(--zy, 50%);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--zolty);
  box-shadow:
    0 0 0 3px #fff,
    0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.znacznik i {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--zolty);
  animation: znacznik-puls 2.4s var(--ease-out) infinite;
}

.znacznik::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid #fff;
  opacity: 0;
  animation: znacznik-puls 2.4s 1.2s var(--ease-out) infinite;
}

@keyframes znacznik-puls {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.piksele {
  position: relative;
  isolation: isolate;
}

.piksele > i {
  position: absolute;
  z-index: 2;
  width: var(--kafel);
  height: var(--kafel);
  background: var(--k, var(--zolty-tekst));
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
  transition-delay: calc(0.5s + var(--n, 0) * 0.08s);
}

.piksele > i:nth-of-type(2) {
  --n: 1;
}

.piksele > i:nth-of-type(3) {
  --n: 2;
}

.piksele > i:nth-of-type(4) {
  --n: 3;
}

.piksele > i:nth-of-type(5) {
  --n: 4;
}

.piksele > i:nth-of-type(6) {
  --n: 5;
}

.piksele.is-pending > i,
.is-pending .piksele > i {
  transform: scale(0);
}

.reveal {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}
