/* ============================================================
   NETFORMA — przewodnik.css
   Mobile-first, Satoshi, token-based palette
   ============================================================ */

/* ---------- 0. FONT ---------- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');

/* ---------- 1. TOKENS ---------- */
:root {
  --green:        #2F4F4F;
  --green-dark:   #1E3535;
  --orange:       #E8603C;
  --orange-deep:  #c94e2c;
  --bg:           #F6F3EE;
  --white:        #FFFFFF;
  --text:         #2C2C2A;
  --text-muted:   #5F5E5A;
  --text-light:   #9FBFBF;
  --text-dim:     #7FAFAF;
  --text-ghost:   #4A7070;
  --border:       #DDD6CA;
  --badge-bg:     #EAE6DF;
  --max-width:    1440px;

  --cream:        var(--bg);
  --cream-dark:   var(--border);

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;

  --shadow-card:  0 4px 24px rgba(47,79,79,.10);
  --shadow-panel: 0 8px 48px rgba(47,79,79,.18);

  --font-display: 'Satoshi', sans-serif;
  --font-body:    'Satoshi', sans-serif;

  --max-content:  1200px;
  --max-panel:    860px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ---------- 5. HERO ---------- */
.hero {
  display: block;
  min-height: auto;
  align-items: normal;
  overflow: visible;
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}

.hero__eyebrow {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}

.hero__title {
  font-size: clamp(3.2rem, 9vw, 5.5rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: clamp(1.5rem, 4vw, 2.8rem);
}

/* ---------- 6. NAV TILES ---------- */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--border);
  border-left: 0.5px solid var(--border);
}

.tile {
  background: var(--bg);
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: clamp(1.2rem, 3vw, 1.8rem)
           clamp(1rem, 2.5vw, 1.5rem)
           clamp(1.2rem, 3vw, 1.6rem);
  cursor: pointer;
  transition: background 0.16s;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
}

.tile:hover {
  background: #edeae4;
}

.tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tile__num {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.16s;
  padding-top: 2px;
  line-height: 1;
}

.tile:hover .tile__num {
  color: var(--orange);
}

.tile__svg {
  flex-shrink: 0;
  width: clamp(24px, 4vw, 32px);
  height: clamp(24px, 4vw, 32px);
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tile__bar {
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width 0.22s ease;
  margin-bottom: 2px;
}

.tile:hover .tile__bar {
  width: 1.5rem;
}

.tile__name {
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.tile__hint {
  font-size: clamp(13px, 4vw, 14px);
  color: var(--text-light);
  line-height: 1.5;
}

/* ---------- 7. SECTIONS ---------- */
.sections {
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 0.5px solid var(--border);
}

/* Left column */
.sec__left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sec__num {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
}

.sec__title {
  font-size: clamp(30px, 13vw, 80px);
  font-weight: 500;
  color: var(--green);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.sec__accent {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--orange);
  margin-top: 0.2rem;
}

.sec__svg {
  display: none; /* hidden on mobile, shown on desktop */
  margin-top: auto;
  padding-top: 2rem;
  opacity: 0.45;
}

/* Right column */
.sec__right {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

/* ---------- 8. Q&A BLOCKS ---------- */
.qa__item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.qa__item h3 {
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.qa__item p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- 9. FACT ROW ---------- */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1rem, 2.5vw, 1.3rem) 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 0.25rem;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.fact__num {
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
}

.fact__label {
  font-size: clamp(12px, 1.5vw, 12.5px);
  color: var(--text-light);
  line-height: 1.5;
  max-width: 130px;
}

/* ---------- 10. TAGS ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.6rem;
}

.tag {
  font-size: clamp(11.5px, 1.5vw, 12.5px);
  color: var(--text-muted);
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.tag--green {
  color: var(--green-dark);
  background: #d6e8e8;
}

.tag--orange {
  color: var(--orange-deep);
  background: #fdf0ec;
}

/* ---------- 11. DIVIDER LABEL ---------- */
.divider-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-bottom: 0.8rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.2rem;
}

/* ---------- 12. HIGHLIGHT QUOTE ---------- */
.highlight {
  border-left: 2px solid var(--orange);
  padding: 0.75rem 1rem;
  margin-top: 0.3rem;
}

.highlight p {
  font-size: clamp(13px, 2vw, 14px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- 13. CHECK LIST ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: clamp(13px, 1.7vw, 13.5px);
  color: var(--text-muted);
  line-height: 1.6;
}

.check-item__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 8px;
}


.qa__item:target h3 {
  animation: highlightTarget 3s ease;
}

@keyframes highlightTarget {
  0% {
    color: inherit;
  }
  20% {
    color: var(--orange);
  }
  80% {
    color: var(--orange);
  }
  100% {
    color: inherit;
  }
}

/* ---------- 16. BREAKPOINTS ---------- */

/* 480px — drobne korekty */
@media (min-width: 480px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* 768px — przejście do szerszego układu */
@media (min-width: 768px) {


  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* 1024px — pełny layout dwukolumnowy */
@media (min-width: 1024px) {

  .tiles {
    grid-template-columns: repeat(5, 1fr);
  }

  .section {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }

  .sec__left {
    gap: 1rem;
  }

  .sec__svg {
    display: block;
  }

  .section {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: start;        /* ← nowe: zapobiega rozciąganiu wiersza */
  }

  .sec__left {
    position: sticky;          /* ← nowe: przykleja kolumnę podczas scrollu */
    top: 80px;                 /* ← nowe: zatrzymuje się 80px od góry (pod navbar) */
    align-self: start;         /* ← nowe: element nie rozciąga się na całą wysokość sekcji */
    gap: 1rem;
  }
}

/* 1440px — max-width cap */
@media (min-width: 1440px) {
  .hero,
  .sections {
    padding-left: calc((100vw - var(--max-content)) / 2);
    padding-right: calc((100vw - var(--max-content)) / 2);
  }

}

/* ---------- 17. ACCESSIBILITY / REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

.tile:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
