/* Pierwsza Strefa — arkusz wspólny dla landingu i polityki prywatności */

/* --- Archivo, self-hosted (bez Google Fonts CDN) --- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/archivo-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/archivo-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/archivo-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/archivo-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* --- Zmienne --- */
:root {
  --bg:      #101418;
  --fg:      #F2F4F5;
  --accent:  #4A90A4;
  --muted:   #8A959C;

  --accent-lift: #6FB3C6;          /* rozjaśniony akcent na linki inline — kontrast AA */
  --surface: rgba(242, 244, 245, 0.035);
  --line:    rgba(242, 244, 245, 0.12);
  --line-strong: rgba(242, 244, 245, 0.22);

  --maxw: 62rem;
  --measure: 40rem;

  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.938rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --step-2:  clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3:  clamp(1.75rem, 1.35rem + 1.9vw, 3rem);
  --step-4:  clamp(2.125rem, 1.5rem + 3.1vw, 4.25rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-lift); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: rgba(111, 179, 198, 0.45); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.measure { max-width: var(--measure); }

/* --- Etykieta sekcji --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.75rem;
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* --- Nagłówek strony --- */
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.35rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; font-size: var(--step-0); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 1.4rem; height: 1.4rem; flex: none; }
.masthead-note { font-size: var(--step--1); color: var(--muted); }

/* --- Sekcje --- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px solid var(--line); }

/* --- Hero --- */
.hero { padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero h1 { font-size: var(--step-4); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: var(--step-1); color: var(--fg); margin-top: 1.75rem; max-width: 46ch; line-height: 1.45; }
.hero-sub { color: var(--muted); margin-top: 1.25rem; max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.75rem; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #08131A;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  padding: 0.95rem 1.9rem;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.cta:hover { background: #5AA5BA; text-decoration: none; }
.cta:active { transform: translateY(1px); }

.cta-note { font-size: var(--step--1); color: var(--muted); }

/* --- Cztery bloki audytu --- */
.blocks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 44rem) { .blocks { grid-template-columns: 1fr; } }
.block { background: var(--bg); padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.block-num { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.block h3 { font-size: var(--step-1); margin-bottom: 0.85rem; }
.block p { color: var(--muted); font-size: var(--step--1); line-height: 1.65; }

/* --- Pasek faktów --- */
.facts { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 3rem; }
.fact dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.4rem; }
.fact dd { margin: 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; }

/* --- Lista wykluczeń --- */
.excl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; margin-top: 0.5rem; }
.excl li { padding: 1.35rem 0 1.35rem 2.5rem; border-bottom: 1px solid var(--line); position: relative; color: var(--fg); }
.excl li:first-child { border-top: 1px solid var(--line); }
.excl li::before {
  content: '';
  position: absolute;
  left: 0.35rem; top: 1.95rem;
  width: 1rem; height: 1px;
  background: var(--accent);
}
.excl b { font-weight: 600; }
.excl span { color: var(--muted); }

/* --- Kto prowadzi --- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 46rem) { .about-grid { grid-template-columns: 1fr; } }
.about-body p + p { margin-top: 1.15rem; }
.about-body p { color: var(--muted); }
.about-body p:first-child { color: var(--fg); font-size: var(--step-1); line-height: 1.5; }

.credentials { list-style: none; margin: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line-strong); display: grid; gap: 1.1rem; }
.credentials li { display: grid; gap: 0.15rem; }
.credentials .k { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.credentials .v { font-size: var(--step--1); color: var(--fg); }

/* --- Formularz --- */
.form-shell { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1rem, 3vw, 2rem); }
.form-shell iframe { width: 100%; border: 0; display: block; min-height: 42rem; }
.rodo { margin-top: 2rem; font-size: var(--step--1); color: var(--muted); max-width: 52rem; }
.rodo p + p { margin-top: 0.75rem; }

/* --- Stopka --- */
footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: baseline; font-size: var(--step--1); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }

/* --- Dokument tekstowy (polityka prywatności) --- */
.doc { padding-block: clamp(3rem, 7vw, 5rem); }
.doc h1 { font-size: var(--step-3); }
.doc .updated { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }
.doc h2 { font-size: var(--step-1); margin-top: 3rem; margin-bottom: 1rem; scroll-margin-top: 2rem; }
.doc h3 { font-size: var(--step-0); font-weight: 600; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.doc p, .doc li { color: var(--muted); font-size: var(--step--1); line-height: 1.7; }
.doc p + p { margin-top: 0.9rem; }
.doc ul, .doc ol { padding-left: 1.25rem; margin: 0.9rem 0; display: grid; gap: 0.5rem; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: var(--step--1); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { color: var(--fg); font-weight: 600; }
.doc .lead { color: var(--fg); font-size: var(--step-0); }

/* Tabele na wąskich ekranach: wiersz staje się kartą */
@media (max-width: 40rem) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc tr { border: 1px solid var(--line); border-radius: 4px; padding: 0.25rem 1rem 0.75rem; margin-bottom: 1rem; background: var(--surface); }
  .doc td { border: 0; padding: 0.65rem 0 0; }
  .doc td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.2rem;
  }
  .doc td:first-child { color: var(--fg); font-weight: 600; }
}

.fill { color: var(--accent); font-weight: 600; }
