:root {
  --paper: #ffffff;
  --paper-2: #f2f4ef;
  --ink: #0a0a0a;
  --green: #149314;
  --green-deep: #0c6b0f;
  --green-soft: #e4f4e1;
  --line: rgba(10, 10, 10, 0.12);
  --font-d: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-b: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --hdr-h: 66px;
  --wheel-d: clamp(360px, 42vw, 540px);
  --radius-md: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  color-scheme: light;
}

img { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.grn { color: var(--green); }

/* ===== HEADER ===== */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 3px solid var(--green);
}

.hdr__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hdr__logo { width: 38px; height: 38px; object-fit: contain; }

.hdr__nav { display: flex; gap: 26px; }

.hdr__nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 4px 0;
  transition: color 0.2s;
}

.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.hdr__nav a:hover { color: var(--green); }
.hdr__nav a:hover::after,
.hdr__nav a.is-current::after { transform: scaleX(1); }

.hdr__lang {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  flex-shrink: 0;
}

.hdr__lang-sep {
  color: var(--line);
  font-size: 0.72rem;
  user-select: none;
}

.hdr__lang-btn {
  background: none;
  border: none;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.38;
  padding: 4px 3px;
  transition: opacity 0.2s, color 0.2s;
}

.hdr__lang-btn:hover { opacity: 0.75; }

.hdr__lang-btn.is-active {
  opacity: 1;
  color: var(--green);
}

.hdr__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hdr__burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.hdr__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hdr__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  padding: calc(var(--hdr-h) + 4vh) 32px 6vh;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero__left { position: relative; z-index: 2; }

.hero__h {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero__box {
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 22px 24px;
  max-width: 520px;
  background: var(--paper);
}

.hero__box p { font-size: 1.02rem; }
.hero__box p + p { margin-top: 16px; }

.hero__scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__arrow {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.hero__right { position: relative; }

.hero__photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}

.hero__photo img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.reticle {
  position: absolute;
  top: 18px; right: 18px;
  width: clamp(64px, 9vw, 104px);
  height: auto;
  max-width: 28%;
  color: var(--green);
  mix-blend-mode: difference;
  opacity: 0.9;
  pointer-events: none;
}

.hero__banner {
  position: absolute;
  left: -18px;
  top: 8%;
  background: var(--green);
  color: var(--ink);
  padding: 12px 26px 12px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);
}

.hero__banner-main { font-family: var(--font-d); font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }
.hero__banner-sub { font-family: var(--font-d); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; }

/* ===== SECTIONS ===== */
.sec, .hero { scroll-margin-top: var(--hdr-h); }
.sec { padding: 14vh 0; position: relative; }
.sec--photo, .sec--social { background: var(--paper-2); }
.sec--kontakt { padding-bottom: 0; }

.sec__head { margin-bottom: 56px; }

.sec__idx {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

.sec__title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 6px 0 14px;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-width: 100%;
}

.sec__lead { color: #444; font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 560px; }

/* ===== REELS ===== */
.reels-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px max(32px, calc((100vw - 1180px) / 2 + 32px)) 20px;
  scrollbar-width: none;
}
.reels-track::-webkit-scrollbar { display: none; }

.reel {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 23vw, 290px);
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  scroll-snap-align: center;
}

.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; }

.reel__label {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); pointer-events: none;
}

.reel__play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.18); transition: background 0.3s;
}
.reel__play::before {
  content: ""; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: transform 0.3s;
}
.reel:hover .reel__play::before { transform: scale(1.12); }
.reel:hover .reel__play { background: rgba(0, 0, 0, 0.02); }
.reel.is-playing .reel__play, .reel.is-playing .reel__label { display: none; }

.reel--wide {
  width: clamp(300px, 52vw, 560px);
  aspect-ratio: 16 / 9;
}

/* ===== GALERIA WIDEO ===== */
.v-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.v-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  text-align: left;
}

.v-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.v-item__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.3s;
}

.v-item__play::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}

.v-item:hover img { transform: scale(1.04); }
.v-item:hover .v-item__play { background: rgba(0, 0, 0, 0.08); }
.v-item:hover .v-item__play::before { transform: scale(1.1); }

.v-item__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.v-item--yt .v-item__play::before { background-color: #ff0000; }

.vlightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  padding: 48px 64px;
}

.vlightbox.is-open { display: flex; }

.vlightbox__inner { width: min(92vw, 1100px); text-align: center; }

.vlightbox__inner video,
.vlightbox__inner iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: none;
  border: none;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.vlightbox__inner video.is-active,
.vlightbox__inner iframe.is-active { display: block; }

.vlightbox__caption { margin-top: 16px; color: #aaa; font-size: 0.95rem; }

.vlightbox__close,
.vlightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  transition: background 0.2s;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.vlightbox__close:hover,
.vlightbox__nav:hover { background: var(--green); }

.vlightbox__close { top: 20px; right: 24px; }
.vlightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.vlightbox__nav--prev { left: 20px; }
.vlightbox__nav--next { right: 20px; }

/* ===== GALLERY ===== */
.filters {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(10, 10, 10, 0.06); margin-bottom: 36px;
}
.filter {
  background: transparent; border: none; color: #333;
  font-family: var(--font-d); font-weight: 600; font-size: 0.84rem;
  padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: all 0.25s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--green); color: #fff; }

.gallery { columns: 3 300px; column-gap: 14px; }

.g-item {
  position: relative; display: block; width: 100%; margin-bottom: 14px;
  border: none; padding: 0; background: var(--paper-2); border-radius: 12px;
  overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.g-item img { width: 100%; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.g-item::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0;
  padding: 40px 16px 14px; font-size: 0.85rem; font-weight: 500; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78)); opacity: 0; transition: opacity 0.35s;
}
.g-item:hover::after { opacity: 1; }
.g-item:hover img { transform: scale(1.04); }
.g-item.is-hidden { display: none; }

/* ===== TECH ===== */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 30px;
  background: var(--paper); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, box-shadow 0.4s;
}
.tech-card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 24px 50px rgba(0,0,0,0.08); }
.tech-card__no { font-family: var(--font-d); font-weight: 800; color: var(--green); font-size: 0.85rem; }
.tech-card h3 { font-family: var(--font-d); font-weight: 800; font-size: 1.45rem; margin: 10px 0 8px; letter-spacing: -0.01em; }
.tech-card p { color: #555; font-size: 0.98rem; }

/* ===== SOCIAL ===== */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 30px 28px; border-radius: 16px; background: var(--ink); color: #fff;
  text-decoration: none; overflow: hidden; min-height: 150px;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.social-card::before {
  content: ""; position: absolute; inset: 0; background: var(--green);
  transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.22,1,0.36,1); z-index: 0;
}
.social-card:hover { transform: translateY(-6px); }
.social-card:hover::before { transform: translateY(0); }
.social-card > * { position: relative; z-index: 1; }
.social-card__name { font-family: var(--font-d); font-weight: 800; font-size: 1.6rem; }
.social-card__handle { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.social-card__go { margin-top: auto; font-size: 1.6rem; }

/* ===== KONTAKT ===== */
.kontakt__inner { text-align: center; padding: 6vh 0 16vh; }
.kontakt__title {
  font-family: var(--font-d); font-weight: 900; font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 0.92; letter-spacing: -0.03em; margin: 10px 0 20px;
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
}
.kontakt__lead { color: #555; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 480px; margin: 0 auto 36px; }
.btn-big {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-family: var(--font-d); font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  padding: 18px 40px; border-radius: 999px; transition: transform 0.25s, background 0.25s;
}
.btn-big:hover { transform: scale(1.04); background: var(--green-deep); }

.kontakt__logo {
  margin-top: clamp(56px, 10vh, 112px);
  display: flex;
  justify-content: center;
}

.kontakt__logo img {
  width: clamp(200px, 38vw, 420px);
  height: auto;
  object-fit: contain;
}

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #777; font-size: 0.8rem; }

/* ===== WHEEL MENU ===== */
.wheel {
  position: fixed;
  z-index: 80;
  width: var(--wheel-d);
  height: var(--wheel-d);
  left: calc(var(--wheel-d) * -0.40);
  bottom: calc(var(--wheel-d) * -0.40);
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.22));
}

.wheel__svg { width: 100%; height: 100%; overflow: visible; }

.wheel__svg .slice { cursor: pointer; pointer-events: auto; }
.wheel__svg .slice .seg {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 3;
  transition: fill 0.35s;
}
.wheel__svg .slice .lbl {
  fill: var(--ink);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: fill 0.35s;
}
.wheel__svg .slice:hover .seg { fill: var(--green-deep); }
.wheel__svg .slice.is-active .seg { fill: var(--ink); }
.wheel__svg .slice.is-active .lbl { fill: #fff; }

.wheel__core { fill: var(--ink); }
.wheel__ring { fill: none; stroke: var(--ink); stroke-width: 4; }
.wheel__dot { fill: var(--green); }

.wheel__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(0.55rem, calc(var(--wheel-d) * 0.038), 0.78rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #fff;
  pointer-events: none;
  opacity: 0.9;
  white-space: nowrap;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.96); padding: 48px;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__figure img { max-width: 92vw; max-height: 82vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox__figure figcaption { margin-top: 14px; color: #aaa; font-size: 0.9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.1); border: none; color: #fff; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem;
  transition: background 0.2s; z-index: 2; backdrop-filter: blur(8px);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--green); }
.lightbox__close { top: 20px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: calc(var(--hdr-h) + 6vh); }
  .hero__right { order: -1; }
  .tech-grid, .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --wheel-d: 196px; --hdr-h: 58px; }
  .container { padding: 0 22px; }
  .hdr { padding: 0 18px; }
  .hdr__nav {
    position: fixed; top: var(--hdr-h); right: 0; left: 0;
    flex-direction: column; align-items: center; gap: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(18px);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    border-bottom: 1px solid var(--line);
  }
  .hdr__nav.is-open { max-height: 480px; }
  .hdr__nav a { width: 100%; text-align: center; padding: 16px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
  .hdr__lang { width: 100%; justify-content: center; padding: 14px 0; margin-left: 0; border-bottom: 1px solid var(--line); }
  .hdr__burger { display: flex; }

  .hero {
    padding: calc(var(--hdr-h) + 3vh) 22px 4vh;
    gap: 24px;
  }

  .hero__photo { max-height: 62vh; aspect-ratio: 4 / 5; }

  .reticle {
    width: 56px;
    max-width: 22%;
    top: 12px;
    right: 12px;
  }

  .hero__banner {
    left: 0;
    top: auto;
    bottom: -12px;
    padding: 10px 18px 10px 14px;
    max-width: calc(100% - 24px);
  }

  .hero__banner-main { font-size: clamp(0.95rem, 4.5vw, 1.35rem); }

  .reels-track { padding: 4px 22px 20px; }
  .reel { width: clamp(180px, 58vw, 240px); }

  .gallery { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 10px; }

  .v-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tech-grid, .social-grid { grid-template-columns: 1fr; }
  .hero__h { font-size: clamp(3rem, 16vw, 5rem); }
  .sec__title { font-size: clamp(1.8rem, 7.4vw, 3rem); hyphens: none; overflow-wrap: normal; }
  .sec__head { margin-bottom: 40px; }
  .kontakt__title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .kontakt__logo img { width: clamp(160px, 55vw, 280px); }
  .vlightbox { padding: 12px; }
  .vlightbox__nav--prev { left: 8px; }
  .vlightbox__nav--next { right: 8px; }
  .lightbox { padding: 12px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  /* koło: kompaktowe i wtulone w róg, żeby nie zasłaniało treści */
  .wheel {
    left: calc(var(--wheel-d) * -0.55);
    bottom: calc(var(--wheel-d) * -0.55);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.3));
  }
  .wheel__svg .slice .lbl { font-size: 52px; }
  .wheel__svg .slice .seg { stroke-width: 4; }
  .wheel__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__arrow { animation: none; }
}
