/* ============================================================
   VOLFRAM BIS — style strony
   Paleta: czerń #050505 + RAL 6018 (#57A639) wyłącznie jako akcent
   ============================================================ */

:root {
  --czern: #050505;
  --zielen: #57A639;          /* RAL 6018 — kolor firmowy */
  --zielen-butelkowa: #0E4A3A; /* głęboka butelkowa — dno gradientu strony */
  --neon: #4DFF91;             /* neonowa zieleń — wyłącznie CTA */
  --zielen-ciemna: #1E3D12;
  --zielen-gleboka: #2E5219;
  --zielen-jasna: #A8E08A;
  --zielen-swiatlo: #DFF5D0;
  --bialy: #EDEFEC;
  --jasnoszary: #D6DAD6;
  --szary: #A7AFA9;
  --szary-ciemny: #5C635F;
  --linia: #1A1E1B;
  --font-tekst: 'Montserrat', sans-serif;
  --font-znak: 'Syne', sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--czern); }
body {
  /* strona „nabiera koloru" w miarę scrollowania: czerń → grafitowa zieleń → butelkowa */
  background: linear-gradient(180deg, #050505 0%, #050505 32%, #08201A 68%, var(--zielen-butelkowa) 100%);
  color: var(--bialy);
  font-family: var(--font-tekst);
  font-weight: 300;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--zielen); color: var(--czern); }
:focus-visible { outline: 1px solid var(--zielen); outline-offset: 4px; }

/* pasek przewijania */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--czern); }
::-webkit-scrollbar-thumb { background: var(--zielen-ciemna); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--zielen); color: var(--czern); padding: 10px 18px; font-size: 13px;
}
.skip-link:focus { left: 0; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--czern);
  display: flex; align-items: center; justify-content: center;
}
.preloader-znak {
  font-weight: 100; font-size: clamp(6rem, 22vw, 16rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--zielen);
}
.preloader-licznik {
  position: absolute; bottom: 6vh; right: 7vw;
  font-weight: 100; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--szary-ciemny);
}

/* ============================================================
   KURSOR (tylko urządzenia z myszą — klasa .ma-mysz z JS)
   ============================================================ */
.kursor-kropka, .kursor-pierscien {
  display: none;
  position: fixed; top: 0; left: 0; z-index: 150;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
body.ma-mysz .kursor-kropka { display: block; width: 6px; height: 6px; background: var(--zielen-jasna); }
body.ma-mysz .kursor-pierscien {
  display: block; width: 34px; height: 34px;
  border: 1px solid rgba(87, 166, 57, 0.55);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
body.ma-mysz .kursor-pierscien.aktywny { width: 56px; height: 56px; border-color: var(--zielen-jasna); }

/* ============================================================
   SCENA — stała warstwa z bryłą V (canvas lub wideo)
   ============================================================ */
#scena { position: fixed; inset: 0; z-index: 0; }
#scena-v { width: 100%; height: 100%; }
#scena-wideo { display: none; width: 100%; height: 100%; object-fit: cover; }
body.tryb-wideo #scena-v { display: none; }
body.tryb-wideo #scena-wideo { display: block; }

/* ============================================================
   NAGŁÓWEK + MENU
   ============================================================ */
.naglowek {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 32px;
}
.znak {
  font-family: var(--font-znak); font-size: 13px; letter-spacing: .35em;
  color: var(--bialy); text-transform: lowercase;
}
.znak span { color: var(--szary-ciemny); }

.hamburger {
  background: none; border: none; cursor: pointer;
  width: 34px; height: 22px; position: relative;
}
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--bialy); transition: transform .4s ease, top .4s ease;
}
.hamburger span:nth-child(1) { top: 5px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger.otwarty span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.otwarty span:nth-child(2) { top: 10px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5vh;
  visibility: hidden; opacity: 0;
  transition: opacity .5s ease, visibility .5s ease;
}
.menu.otwarte { visibility: visible; opacity: 1; }
.menu-pozycja {
  position: relative;
  font-weight: 100; font-size: clamp(2.6rem, 8vw, 6rem); color: var(--bialy);
  letter-spacing: .02em; transition: color .3s ease;
}
.menu-pozycja:hover, .menu-pozycja:focus-visible { color: var(--zielen-jasna); }
.menu-pozycja::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--zielen);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.menu-pozycja:hover::after, .menu-pozycja.aktywna::after { transform: scaleX(1); }

/* ============================================================
   SCENY
   ============================================================ */
main { position: relative; z-index: 1; }
.scena { min-height: 100vh; padding: 18vh 8vw; position: relative; }

/* ---------- 01 · serce ---------- */
.scena-start { height: 100vh; padding: 0; }
.hero-nav {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 7vw;
  mix-blend-mode: difference;
}
.hero-nav a {
  font-weight: 200; font-size: clamp(2rem, 5.5vw, 4.2rem); color: #E9EDEA;
  position: relative;
}
.hero-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 1px; background: var(--zielen);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.hero-nav a:hover::after, .hero-nav a:focus-visible::after,
.hero-nav a.aktywna::after { transform: scaleX(1); }

.hero-podpis {
  position: absolute; bottom: 9vh; left: 50%; transform: translateX(-50%);
  font-weight: 300; font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--szary); white-space: nowrap;
}
/* najmocniejszy dowód zaufania — w ramce, na pierwszym ekranie */
.hero-autoryzacja {
  position: absolute; bottom: 15vh; left: 50%; transform: translateX(-50%);
  font-weight: 300; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--zielen); padding: 11px 24px;
  border: 1px solid rgba(87, 166, 57, 0.35); white-space: nowrap;
}
.rog {
  position: absolute; bottom: 26px;
  font-weight: 300; font-size: 11px; letter-spacing: .2em; color: var(--szary-ciemny);
}
.rog-lewy { left: 32px; }
.rog-prawy { right: 32px; }
.rog-srodek { left: 50%; transform: translateX(-50%); bottom: 30px; width: 26px; height: 1px; background: #3A3E3C; }

/* ---------- 02 · manifest ---------- */
.scena-manifest { display: flex; align-items: center; }
.manifest-tresc { max-width: 880px; margin: 0 auto; }
/* linie manifestu są domyślnie widoczne — przygasza je dopiero JS,
   gdy buduje animację scrolla (odporność na brak bibliotek) */
.manifest-linia {
  font-weight: 100; font-size: clamp(1.5rem, 3.8vw, 3rem); line-height: 1.6;
  color: var(--bialy);
}
.manifest-final { margin-top: 1.2em; font-weight: 200; }
.manifest-final span { color: var(--zielen); }

/* ---------- wspólne dla scen treści ---------- */
.scena-numer {
  font-weight: 300; font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--zielen); margin-bottom: 3.2rem;
}
.scena-tresc h2 {
  font-weight: 100; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.3;
  max-width: 820px; margin-bottom: 2.4rem;
}
.scena-opis {
  font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 2.1;
  color: var(--jasnoszary); max-width: 640px;
}

/* ---------- 03 · o nas: liczby ---------- */
.liczby { display: flex; flex-wrap: wrap; gap: 8vw; margin-top: 12vh; }
.liczba-wartosc, .liczba-plus { font-weight: 100; font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: 1; }
.liczba-plus { color: var(--zielen); }
.liczba-etykieta {
  display: block; margin-top: 10px;
  font-weight: 300; font-size: 12px; letter-spacing: .15em; color: var(--szary);
}

/* ---------- 04 · możliwości: lista ---------- */
.uslugi { list-style: none; border-top: 1px solid var(--linia); }
.usluga { padding: 3rem 0; border-bottom: 1px solid var(--linia); }
.usluga h3 {
  font-weight: 100; font-size: clamp(1.6rem, 4.2vw, 3.1rem); color: var(--szary);
  transition: color .4s ease; display: flex; align-items: center;
}
.usluga h3::before {
  content: ''; display: inline-block; width: 0; height: 1px;
  background: var(--zielen); margin-right: 0; transition: width .4s ease, margin-right .4s ease;
}
.usluga p {
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--jasnoszary);
  transition: max-height .5s ease, opacity .5s ease, margin-top .5s ease;
}
.usluga:hover h3, .usluga:focus-within h3 { color: var(--bialy); }
.usluga:hover h3::before, .usluga:focus-within h3::before { width: 44px; margin-right: 22px; }
.usluga:hover p, .usluga:focus-within p { max-height: 5em; opacity: 1; margin-top: 14px; }

/* na ekranach dotykowych opisy są zawsze widoczne */
@media (hover: none) {
  .usluga h3 { color: var(--bialy); }
  .usluga p { max-height: none; opacity: 1; margin-top: 10px; }
}

/* ---------- zaplecze: park maszynowy i uprawnienia ---------- */
.zaplecze-siatka {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem; max-width: 1020px;
}
.zaplecze-etykieta {
  font-weight: 300; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--szary-ciemny); margin-bottom: 4px;
}
.zaplecze-lista { list-style: none; }
.zaplecze-lista li {
  border-top: 1px solid var(--linia); padding: 14px 0;
  font-weight: 200; font-size: 15px; color: var(--bialy);
}
.zaplecze-lista li:last-child { border-bottom: 1px solid var(--linia); }
.zaplecze-lista li span { color: var(--szary); font-size: 13px; }
.zaplecze-wyroznione {
  color: var(--zielen) !important; font-weight: 300 !important;
  border-top-color: var(--zielen-gleboka) !important;
}

/* ---------- realizacje: lista faktów ---------- */
.realizacje { list-style: none; max-width: 920px; }
.realizacja { border-top: 1px solid var(--linia); padding: 1.4rem 0; }
.realizacja:last-child { border-bottom: 1px solid var(--linia); }
.realizacja-tytul { font-weight: 200; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--bialy); }
.realizacja-opis { font-weight: 300; font-size: 13px; line-height: 1.7; color: var(--szary); margin-top: 4px; }
.realizacje-stopka { margin-top: 1.6rem; font-weight: 200; font-size: 13px; color: var(--szary); }

/* ---------- 05 · obszar działania: konstelacja ---------- */
.mapa { max-width: 780px; }
.mapa svg { width: 100%; height: auto; }
.mapa-brzeg { stroke: #22262A; stroke-width: 1; fill: none; }
.mapa-linie path { stroke: var(--zielen-gleboka); stroke-width: .7; fill: none; }
.miasto circle { fill: #4C9432; }
.miasto text { fill: #9AA8A0; font-family: var(--font-tekst); font-size: 7px; letter-spacing: .5px; }
.miasto-duze circle { fill: var(--zielen); }
.miasto-duze text { fill: #9FB8A8; font-size: 8px; }
.siedziba circle { fill: var(--zielen-jasna); }
.siedziba text { fill: var(--zielen-jasna); font-size: 8px; }
.siedziba-obwodka {
  fill: none; stroke: var(--zielen); stroke-width: .7;
  transform-box: fill-box; transform-origin: center;
  animation: puls 2.6s ease-out infinite;
}
@keyframes puls {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* miejsca realizacji pulsują cieńszą obwódką */
.realizacja-obwodka {
  fill: none; stroke: var(--zielen); stroke-width: .6;
  transform-box: fill-box; transform-origin: center;
  animation: puls 3s ease-out infinite;
}
.mapa-legenda { margin-top: 1.2rem; font-weight: 200; font-size: 12px; color: var(--szary); }

/* ---------- 06 · kontakt ---------- */
.kontakt-siatka {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 3rem; margin-bottom: 12vh;
}
.scena-tresc .kontakt-etykieta {
  font-weight: 300; font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--zielen); margin: 2.4rem 0 .9rem; max-width: none;
}
.kontakt-grupa .kontakt-etykieta:first-child { margin-top: 0; }
.kontakt-grupa p { font-weight: 200; font-size: 15px; line-height: 1.8; color: var(--jasnoszary); }
.kontakt-osoba { color: var(--bialy); margin-top: .9rem; }
.kontakt-drobne { font-size: 13px; color: var(--szary); }
.kontakt-grupa a { border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.kontakt-grupa a:hover, .kontakt-grupa a:focus-visible { color: var(--zielen-jasna); border-color: var(--zielen-jasna); }

/* formularz — pola jako cienkie linie */
.formularz {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3rem;
  max-width: 840px; margin-bottom: 10vh;
}
.pole { display: flex; flex-direction: column; }
.pole-szerokie { grid-column: 1 / -1; }
.pole label {
  font-weight: 300; font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--szary-ciemny); margin-bottom: 10px;
}
.pole input, .pole select, .pole textarea {
  background: transparent; border: none; border-bottom: 1px solid #2A2E2C;
  color: var(--bialy); font-family: var(--font-tekst); font-weight: 200; font-size: 15px;
  padding: 10px 2px; border-radius: 0; transition: border-color .3s ease;
}
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: none; border-color: var(--zielen); }
.pole select option { background: var(--czern); color: var(--bialy); }
.pole textarea { resize: vertical; min-height: 90px; }

.pole-zgoda { flex-direction: row; align-items: flex-start; gap: 12px; }
.pole-zgoda input { width: 16px; height: 16px; accent-color: var(--zielen); margin-top: 3px; flex: none; }
.pole-zgoda label {
  text-transform: none; letter-spacing: 0; margin: 0;
  font-weight: 200; font-size: 12px; line-height: 1.7; color: var(--szary);
}

.formularz-przycisk {
  grid-column: 1 / -1; justify-self: start;
  background: transparent; border: 1px solid #2A2E2C; cursor: pointer;
  color: var(--bialy); font-family: var(--font-tekst); font-weight: 300;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  padding: 17px 36px; transition: border-color .3s ease, color .3s ease;
}
.formularz-przycisk span { color: var(--zielen); margin-left: 6px; }
.formularz-przycisk:hover, .formularz-przycisk:focus-visible {
  border-color: var(--zielen); color: var(--zielen-jasna);
  box-shadow: 0 0 18px rgba(77, 255, 145, 0.22);
}
.formularz-status { grid-column: 1 / -1; font-weight: 200; font-size: 13px; color: var(--zielen-jasna); min-height: 1.5em; }

/* mapa Google w ciemnej tonacji */
.mapa-google { max-width: 840px; border: 1px solid var(--linia); }
.mapa-google iframe { filter: invert(0.92) hue-rotate(180deg) grayscale(0.25); }

/* ---------- stopka ---------- */
.stopka {
  position: relative; z-index: 1;
  padding: 2.4rem 8vw 2.6rem;
  background: #101214; /* matowy grafit */
  border-top: 1px solid var(--zielen); /* cienka zielona linia separacyjna */
  text-align: center; font-weight: 300; font-size: 12px; letter-spacing: .08em; color: #8C9590;
}
.stopka-linki { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 16px; }
.stopka-linki a {
  font-weight: 300; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #AEB6B0; transition: color .3s ease;
}
.stopka-linki a:hover, .stopka-linki a:focus-visible { color: var(--zielen-jasna); }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 720px) {
  .naglowek { padding: 20px 22px; }
  .scena { padding: 14vh 7vw; }
  .hero-nav { flex-direction: column; gap: 4.5vh; }
  .hero-podpis { font-size: 10px; letter-spacing: .3em; width: 90%; text-align: center; white-space: normal; }
  .hero-autoryzacja { bottom: 17vh; font-size: 10px; letter-spacing: .2em; padding: 9px 14px; white-space: normal; width: max-content; max-width: 88%; text-align: center; }
  .rog-lewy { left: 22px; }
  .rog-prawy { right: 22px; }
  .liczby { gap: 3rem 4rem; margin-top: 8vh; }
  .formularz { grid-template-columns: 1fr; }
  .miasto text { font-size: 8px; }
}

/* ============================================================
   OGRANICZENIE RUCHU (dostępność)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .siedziba-obwodka, .realizacja-obwodka { animation: none; opacity: .6; }
  .manifest-linia { opacity: 1 !important; }
  #scena { opacity: .45; } /* bez animacji scrolla bryła jest na stałe przygaszona */
  *, *::before, *::after { transition-duration: .01ms !important; }
}
