/* =========================================================
   finstrefa — kariera.finstrefa.com
   Mobile-first. Brak zależności JS. Zoptymalizowane pod
   szybkie ładowanie na telefonie i pełną responsywność.
   ========================================================= */

:root{
  --ink: #101826;
  --ink-2: #182236;
  --ink-3: #16294A;
  --paper: #F6F2E9;
  --paper-dim: #E9E2D2;
  --gold: #C89B4A;
  --gold-dim: #8A723F;
  --teal: #3E8079;
  --teal-light: #5DCAA5;
  --teal-dim: #2C5C57;
  --line: rgba(246,242,233,0.14);
  --line-strong: rgba(246,242,233,0.28);
  --text-soft: rgba(246,242,233,0.72);
  --radius: 4px;
  --max-w: 1100px;
  --max-w-narrow: 760px;
}

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

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

body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3{
  font-family: 'Fraunces', Georgia, serif;
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

a{ color: inherit; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- utility ---------- */
.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow{ max-width: var(--max-w-narrow); }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-link:focus{ left: 0; }

.eyebrow{
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 1rem;
}
.eyebrow-gold{ color: var(--gold); }
.eyebrow-teal{ color: var(--teal-light); }

.c-gold{ color: var(--gold); font-style: italic; }
.c-teal{ color: var(--teal-light); font-style: italic; }

.rule{
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}

.h2-serif{
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--paper);
  margin-bottom: 1.2rem;
}
.h3-serif{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.4rem 0 1rem;
}
.center{ text-align: center; }

.underline-teal{
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.body-text{
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: var(--gold);
  color: var(--ink);
}
.btn-solid{
  background: var(--ink-3);
  color: var(--paper);
  border-color: var(--line-strong);
  text-align: center;
}
.btn-small{ padding: 0.7rem 1.2rem; font-size: 0.88rem; }
.btn-outline{
  background: transparent;
  border-width: 2px;
}
.btn-k{ border-color: var(--gold); color: var(--paper); }
.btn-s{ border-color: var(--teal); color: var(--paper); }

/* ---------- HERO ---------- */
.hero{
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.hero .h1{
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  margin: 1rem 0 1.3rem;
}
.hero .lead{
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 1.6rem;
}
.chevrons{
  display: block;
  width: 40px;
  height: auto;
  margin: 1.8rem 0 1rem;
}
.micro{
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- WORDMARK BAND ---------- */
.wordmark-band{
  background: var(--ink-3);
  padding: 3rem 0;
  text-align: center;
}
.wordmark{
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  color: var(--paper);
  font-weight: 500;
}

/* ---------- POINTER ---------- */
.pointer{
  background: var(--paper);
  color: var(--ink);
  padding: 3rem 0 2.5rem;
}
.pointer .h2-serif{ color: var(--ink); }
.pointer-arrow{
  display: block;
  width: 90px;
  height: auto;
  margin: 1.5rem auto 0;
}

/* ---------- PATHS ---------- */
.path-card{ padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.path-k{ background: var(--ink); }
.path-s{ background: var(--ink-2); }
.bullets{
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.bullets li{
  position: relative;
  padding-left: 1.3rem;
  color: var(--paper);
  font-size: 0.98rem;
  line-height: 1.55;
}
.bullets li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.bullets-k li::before{ background: var(--gold); }
.bullets-s li::before{ background: var(--teal); }

/* ---------- WHY ---------- */
.why{ background: var(--paper); color: var(--ink); padding: 3.5rem 0; }
.why-grid{ display: flex; flex-direction: column; gap: 2rem; }
.why-text .h2-serif{ color: var(--ink); }
.why-text p{ color: #3c3527; line-height: 1.65; }
.stat-card{
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stat-num{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}
.stat p{ color: var(--text-soft); font-size: 0.9rem; margin: 0; }

/* ---------- CHALLENGE ---------- */
.challenge{ background: var(--ink); padding: 3.5rem 0; border-top: 1px solid var(--line); }
.fit-table{
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.6rem;
}
.fit-head{ font-weight: 600; font-size: 0.95rem; margin-bottom: 0.8rem; }
.fit-head-yes{ color: var(--teal-light); }
.fit-head-no{ color: var(--text-soft); }
.fit-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.fit-list li{
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--paper);
}
.fit-list li::before{
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.fit-list-dim li{ color: var(--text-soft); }
.fit-list-dim li::before{
  border-radius: 0;
  width: 8px; height: 1.5px; top: 0.65em;
  background: rgba(246,242,233,0.4);
}

/* ---------- MARATHON ---------- */
.marathon{ background: var(--ink-2); padding: 3.5rem 0; border-top: 1px solid var(--line); }

/* ---------- CHOOSE ROLE ---------- */
.choose-role{ background: var(--ink); padding: 3.5rem 0; border-top: 1px solid var(--line); }
.role-buttons{
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.role-buttons .btn{ padding: 1.1rem 1.4rem; }
.role-caption{
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* ---------- DEADLINE ---------- */
.deadline{ background: var(--ink-2); padding: 3.5rem 0; border-top: 1px solid var(--line); }
.date-badge{
  display: inline-block;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  margin: 1.2rem 0 1.6rem;
}
.apply-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.apply-row:last-child{ border-bottom: 1px solid var(--line); }
.apply-label{ font-weight: 600; font-size: 1rem; font-style: italic; }

/* ---------- FORMS ---------- */
.forms{ background: var(--ink); padding: 3.5rem 0; }
.form-slot{ margin-bottom: 2.5rem; }
.form-slot:last-child{ margin-bottom: 0; }
.jotform-placeholder{
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}
.jotform-embed{
  width: 100%;
  min-height: 780px;
  border: none;
  border-radius: var(--radius);
  background: var(--paper);
  display: block;
}
@media (min-width: 760px){
  .jotform-embed{ min-height: 900px; }
}

/* ---------- FOOTER ---------- */
.site-footer{ background: #05080D; padding: 2rem 0; }
.footer-grid{
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.footer-grid .brand{
  font-family: 'Fraunces', Georgia, serif;
  color: var(--paper);
  font-size: 1rem;
  margin: 0;
}
.footer-links{ display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a{ text-decoration: underline; text-underline-offset: 3px; }
.footer-grid .meta{ margin: 0; }

/* =========================================================
   STICKY MOBILE CTA — tylko na wąskich ekranach, kciukiem
   w zasięgu, prowadzi do formularzy
   ========================================================= */
.mobile-cta{
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 1px solid var(--line-strong);
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.mobile-cta a{
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1.5px solid;
}
.mobile-cta .mc-s{ border-color: var(--teal); color: var(--teal-light); }
.mobile-cta .mc-k{ border-color: var(--gold); color: var(--gold); }
body{ padding-bottom: 4.2rem; } /* miejsce na pasek mobilny */

/* =========================================================
   DESKTOP / TABLET ENHANCEMENTS
   ========================================================= */
@media (min-width: 760px){
  body{ padding-bottom: 0; }
  .mobile-cta{ display: none; }

  .hero{ padding: 6rem 0 5rem; }
  .wordmark-band{ padding: 4rem 0; }
  .pointer{ padding: 4rem 0 3rem; }

  .paths{ display: grid; grid-template-columns: 1fr 1fr; }
  .path-card{ border-bottom: none; padding: 4.5rem 0; }
  .path-k{ border-right: 1px solid var(--line); }

  .why-grid{ flex-direction: row; align-items: stretch; gap: 3rem; }
  .why-text{ flex: 1.1; }
  .stat-card{ flex: 1; }

  .fit-table{ flex-direction: row; gap: 3rem; }
  .fit-table .fit-col{ flex: 1; }

  .role-buttons{ flex-direction: row; }
  .role-buttons a{ flex: 1; }

  .apply-row{ max-width: 480px; }
}

@media (min-width: 1000px){
  .why, .challenge, .marathon, .choose-role, .deadline, .forms{ padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .hero{ padding-top: 7rem; padding-bottom: 6rem; }
}
