/* ========================================================================
   L.E.A.D.S. - warstwa landingu kampanii.
   Dziedziczy cały system z style-onyks.css; tutaj żyją wyłącznie
   komponenty, których nie ma żadna inna strona.

   Poprzednia warstwa (style-leads-campaign.css) budowała hierarchię
   światłem na grafitcie: poświaty radialne, maski gradientowe na kadrze,
   szyna postępu z jarzącym się wypełnieniem. W Alabastrze hierarchię
   buduje typografia i włos linii, więc te środki nie mają odpowiednika
   i nie są tu odtwarzane.
   ======================================================================== */

/* ========================================================================
   NAWIGACJA - dodatkowe odnośniki
   ======================================================================== */

.nav-side {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 26px;
}

.nav-side a {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color .2s var(--ease-out);
}

.nav-side a:hover { color: var(--sepia); }

@media (max-width: 700px) { .nav-side { display: none; } }

/* Pasek postępu czytania był dekoracją stanu. Marka nie komentuje
   własnego przewijania - element zostaje w HTML, ale się nie pokazuje. */
.lp-progress { display: none; }

/* ========================================================================
   HERO
   ======================================================================== */

.lp-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(72px, 9vw, 132px)) 0 clamp(84px, 10vw, 148px);
  background: var(--paper);
  border-bottom: 1px solid var(--stone);
}

/* Poświata sceny nie ma odpowiednika w palecie jednomateriałowej. */
.lp-hero-glow { display: none; }

.lp-hero > .container { position: relative; z-index: 2; }

/* Kadr jest poziomy, więc nie wchodzi w kolumnę obok tekstu - wypełnia
   całą sekcję. Tekst zajmuje lewą część, gdzie w zdjęciu jest okno,
   a sylwetka po prawej zostaje odsłonięta. */
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 620px;
}

.lp-hero-content { max-width: 620px; }

.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--sepia);
  margin-bottom: 30px;
}

.lp-hero-title .accent-line {
  color: var(--ink-4);
}

.lp-hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-3);
  max-width: 540px;
  margin-bottom: 38px;
}

.lp-hero-sub strong { color: var(--sepia); font-weight: 500; }

.lp-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

/* Trzy warunki współpracy jako wiersze rejestru, nie odznaki. */
.lp-hero-meta {
  list-style: none;
  border-top: 1px solid var(--stone);
  max-width: 540px;
}

.lp-hero-meta li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(74, 74, 68, .75);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-3);
}

/* --- Kadr jako warstwa sekcji ----------------------------------------- */

.lp-hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.lp-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Kotwica przy lewej krawędzi: pod tekstem ląduje jasne okno,
     a sylwetka odsuwa się w prawą połowę sekcji. */
  object-position: 8% 42%;
  transform: none;
  filter: saturate(0.78) contrast(1.02) brightness(0.9);
}

/* Welon papieru: gęsty pod tekstem, przezroczysty nad sylwetką.
   Zdjęcie nie jest przycinane - schodzi pod materiał marki. */
.lp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(97deg,
    rgba(13, 13, 12, 0.98) 0%,
    rgba(13, 13, 12, 0.955) 34%,
    rgba(13, 13, 12, 0.85) 44%,
    rgba(13, 13, 12, 0.40) 57%,
    rgba(13, 13, 12, 0.12) 74%,
    rgba(13, 13, 12, 0.06) 100%);
}

@media (max-width: 1100px) {
  .lp-hero-media::after {
    background: linear-gradient(97deg,
      rgba(13, 13, 12, 0.985) 0%,
      rgba(13, 13, 12, 0.965) 46%,
      rgba(13, 13, 12, 0.60) 66%,
      rgba(13, 13, 12, 0.18) 100%);
  }
}

/* Na telefonie kadr poziomy przycięty do pionowego paska pokazywałby
   sam fragment ubrania. Zamiast dusić zdjęcie, schodzi ono pod tekst
   w swoich proporcjach - nic nie jest przycinane, welon niepotrzebny. */
@media (max-width: 1024px) {
  .lp-hero {
    padding-bottom: 0;
    overflow: visible;
  }

  .lp-hero-grid { max-width: none; }
  .lp-hero-cta .btn { flex: 1 1 240px; }

  .lp-hero-media {
    position: relative;
    inset: auto;
    margin-top: clamp(40px, 8vw, 56px);
  }

  .lp-hero-media img {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 3 / 2;
    object-position: 62% center;
  }

  .lp-hero-media::after { content: none; }
}

/* ========================================================================
   SZYNA ETAPÓW
   Włosowa linia z węzłami. Wypełnienie steruje leads-campaign.js
   przez --lp-fill; bez skryptu zostaje sama linia.
   ======================================================================== */

.lp-rail {
  position: relative;
  height: 1px;
  margin: 56px auto 0;
  max-width: 900px;
  background: var(--stone);
}

.lp-rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--lp-fill, 0) * 100%);
  background: var(--sepia);
  transition: width .6s var(--ease-out);
}

.lp-rail-node {
  position: absolute;
  top: 50%;
  left: calc(var(--n) * (100% / 2));
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}

.lp-rail--steps .lp-rail-node { left: calc(var(--n) * (100% / 3)); }

@media (max-width: 900px) { .lp-rail { display: none; } }

/* ========================================================================
   INWESTYCJA
   ======================================================================== */

.investment-section {
  padding: var(--space-section) 0;
  background: var(--chalk);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.investment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(44px, 5vw, 76px);
  align-items: start;
}

.investment-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-3);
  max-width: 560px;
}

/* Kolejność prac jako rejestr: etap po lewej, treść po prawej. */
.value-equation {
  margin-top: 42px;
  border-top: 1px solid var(--stone);
}

.value-equation-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.value-equation-row span {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-5);
}

.value-equation-row strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.35;
  color: var(--sepia);
}

/* Karta ceny - jedyna plama sepii w sekcji. */
.investment-card {
  padding: 44px 40px;
  background: var(--sepia);
  color: #5A5852;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.investment-card-kicker {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-5);
  padding-bottom: 22px;
  border-bottom: 1px solid #D2CFC8;
}

.investment-price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 0 26px;
}

.investment-price strong {
  font-family: var(--font-display);
  font-size: clamp(46px, 4.6vw, 62px);
  font-weight: 200;
  line-height: 0.96;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.investment-price span {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-5);
}

.investment-media {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: #5A5852;
  padding-bottom: 26px;
  border-bottom: 1px solid #D2CFC8;
}

.investment-list {
  list-style: none;
  padding: 26px 0 30px;
}

.investment-list li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--paper);
}

.investment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 1px;
  background: var(--ink-5);
}

.investment-card .btn-primary {
  background: var(--paper);
  color: var(--sepia);
  border-color: var(--paper);
}

.investment-card .btn-primary:hover { background: #000000; border-color: #000000; }

.investment-note {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ink-5);
  margin-top: 20px;
}

@media (max-width: 900px) {
  .investment-grid { grid-template-columns: 1fr; }
  .investment-card { padding: 34px 26px; }
  .value-equation-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ========================================================================
   FORMULARZ KWALIFIKUJĄCY
   ======================================================================== */

.application-expectation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-bottom: 44px;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.application-expectation span {
  flex: 1 1 200px;
  padding: 18px 20px;
  text-align: center;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-right: 1px solid var(--stone);
}

.application-expectation span:last-child { border-right: none; }

@media (max-width: 640px) {
  .application-expectation span { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--stone); }
  .application-expectation span:last-child { border-bottom: none; }
}

/* Wskaźnik etapu - dwa kroki, nie pasek postępu. */
.qualification-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--stone);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-5);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}

.progress-step b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--stone);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.progress-step.is-active {
  color: var(--sepia);
  border-bottom-color: var(--sepia);
}

.progress-step.is-active b {
  background: var(--sepia);
  border-color: var(--sepia);
  color: var(--paper);
}

.form-step-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 200;
  line-height: 1.18;
  color: var(--sepia);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.form-step-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-3);
  margin-bottom: 36px;
}

.qualification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 32px;
}

.qualification-grid .is-full,
.qualification-grid fieldset.is-full { grid-column: 1 / -1; }

.qualification-grid .form-group { margin-bottom: 0; }

.leads-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.leads-form legend {
  display: block;
  width: 100%;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
}

.choice { position: relative; background: var(--chalk); }

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice label {
  display: block;
  padding: 17px 20px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}

.choice label:hover { background: var(--paper); }

.choice input:checked + label {
  background: var(--sepia);
  color: var(--paper);
  font-weight: 400;
}

.choice input:focus-visible + label {
  outline: 2px solid var(--sepia);
  outline-offset: -2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.form-back { flex: 0 0 auto; }

@media (max-width: 640px) {
  .qualification-grid { grid-template-columns: 1fr; gap: 22px; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ========================================================================
   PANEL BRAKU DOPASOWANIA
   ======================================================================== */

.not-fit-panel { text-align: left; }

.not-fit-label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-5);
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--stone);
}

.not-fit h3 {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 200;
  line-height: 1.2;
  color: var(--sepia);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.not-fit p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-3);
  margin-bottom: 32px;
}

.not-fit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .not-fit-actions .btn { width: 100%; }
}

/* ========================================================================
   PRZEBUDOWA 2026-08-18 - System pozyskiwania klientow

   Strona przestala byc landingiem jednego pakietu i opisuje wdrozenie
   oraz prowadzenie. Nowe elementy: zdanie domykajace sekcje, etykieta
   nad lista w karcie, trzyetapowy formularz i blok poziomu inwestycji.
   ======================================================================== */

/* Zdanie pod listą w hero - ton ciszy, nie kolejny punkt rejestru. */
.lp-hero-note {
  margin-top: 20px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Jedno zdanie domykające sekcję. Waży więcej niż akapit, mniej niż tytuł. */
.lp-closing {
  margin-top: 44px;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 200;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-title--center + .lp-closing,
.hm-rows + .lp-closing { margin-top: 46px; }

/* Etykieta nad wyliczeniem w karcie procesu. */
.process-card .process-desc + .process-desc { margin-top: 14px; }

/* Sześć kroków kwalifikacji: trzy kolumny w dwóch rzędach. */
.steps-grid--six { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .steps-grid--six { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .steps-grid--six { grid-template-columns: 1fr; }
}

/* Blok autora: akapity po wyliczeniu kompetencji. */
.author-body--after { margin-top: 30px; }

/* --- Formularz w trzech etapach --------------------------------------- */

.qualification-progress--four { grid-template-columns: repeat(4, 1fr); }

/* Etap zaliczony zostaje czytelny, ale nie krzyczy. */
.progress-step.is-done { color: var(--ink-4); }
.progress-step.is-done b { border-color: var(--rule-strong); color: var(--text-2); }

@media (max-width: 640px) {
  .qualification-progress--four {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .qualification-progress--four .progress-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }
}

/* Pytania z trzema i więcej odpowiedziami czyta się w kolumnie. */
.choice-grid--stack { grid-template-columns: 1fr; }

/* Poziom inwestycji pokazany przed pytaniem o budżet. */
.investment-levels {
  margin: 6px 0 18px;
  border-top: 1px solid var(--stone);
}

.investment-level {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.investment-level-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.investment-level-value {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--sepia);
}

@media (max-width: 560px) {
  .investment-level { grid-template-columns: 1fr; gap: 6px; }
}

/* Panel braku dopasowania dostał listę zamiast samego akapitu. */
.not-fit .hm-rows { margin-top: 18px; margin-bottom: 22px; }

/* Podpowiedź przy pytaniu: pełne zdanie, więc nie wersaliki etykiety. */
.form-hint {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-4);
}

.leads-form fieldset .form-hint { margin-top: 16px; }

/* Akapit po wyliczeniu w karcie wdrożenia potrzebuje oddechu. */
.process-deliverables + .process-desc { margin-top: 18px; }

/* Pytanie po nocie o kosztach potrzebuje własnego oddechu - inaczej
   legenda czyta się jak dalszy ciąg zdania o landingu. */
.form-hint + .qualification-grid { margin-top: 30px; }

/* Najdłuższe wezwanie nie mieści się w jednej linii na telefonie.
   Zamiast skracać treść, pozwalamy przyciskowi złamać wiersz. */
@media (max-width: 700px) {
  .lp-hero-cta .btn,
  .form-actions .btn,
  .not-fit-actions .btn {
    white-space: normal;
    line-height: 1.45;
  }
  .lp-hero-cta .btn { width: 100%; }
}

/* Ten sam problem co na pozostałych stronach: w paśmie 1025-1240 px kadr
   zostaje tłem, więc kolumna tekstu musi trzymać się lewej połowy,
   a welon papieru kryć aż do sylwetki. */
@media (min-width: 1025px) and (max-width: 1240px) {
  .lp-hero-content { max-width: 54%; }
  .lp-hero-sub { max-width: 100%; }

  .lp-hero-media::after {
    background: linear-gradient(97deg,
      rgba(13, 13, 12, 0.985) 0%,
      rgba(13, 13, 12, 0.975) 46%,
      rgba(13, 13, 12, 0.92) 56%,
      rgba(13, 13, 12, 0.55) 68%,
      rgba(13, 13, 12, 0.16) 84%,
      rgba(13, 13, 12, 0.08) 100%);
  }
}

/* To samo na lejku: po zejściu kadru pod tekst kolumna dostaje pełną szerokość. */
@media (max-width: 1024px) {
  .lp-hero-content { max-width: none; }
  .lp-hero-sub { max-width: 62ch; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .lp-hero-cta,
  .lp-hero-meta { max-width: 640px; }
}
