/* Strona tymczasowa Altruiq — kolory i typografia jak w pełnym serwisie (src/styles/global.css). */

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  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: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations');
  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: 'Source Serif 4 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

:root {
  --brand: #b14a28;
  --brand-deep: #8e3a1e;
  --ink: #2a1b14;
  --ink-soft: #3d2b21;
  --muted: #6b5546;
  --cream: #fbebd8;
  --cream-raised: #fffdf9;
  --cream-line: #e7d9c4;
  --cream-line-strong: #d8c4a9;
  --paper: #fff3e6;
  --paper-dim: #ffd9a8;
  --footer-text: #b5a493;
  --accent: #f2b705;
  --ok: #1e7a4a;
  --error: #9b1c1c;

  --container: 1180px;
  --gutter: clamp(16px, 4.2vw, 60px);
  --section-y: clamp(56px, 6vw, 92px);
  --section-y-sm: clamp(44px, 5vw, 70px);

  --font-sans: 'Bricolage Grotesque Variable', 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --step-hero: clamp(2.5rem, 1.2rem + 5.6vw, 5rem);
  --step-h2: clamp(1.75rem, 1.05rem + 3vw, 2.625rem);
  --step-h2-sm: clamp(1.5rem, 1.05rem + 2.2vw, 2.25rem);
  --step-h3: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  --step-body: clamp(0.9688rem, 0.93rem + 0.16vw, 1.0625rem);
  --step-small: 0.9375rem;
  --step-eyebrow: 0.8125rem;
}

*, *::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 { transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shell { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-sm); }
.tone-brand { background: var(--brand); color: var(--paper); }
.tone-deep { background: var(--brand-deep); color: var(--paper); }
.tone-cream { background: var(--cream); color: var(--ink); }

.eyebrow { font-size: var(--step-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.tone-cream .eyebrow { color: var(--brand); }
.tone-brand .eyebrow, .tone-deep .eyebrow { opacity: 0.8; font-weight: 500; }
.h1 { font-size: var(--step-hero); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.h2 { font-size: var(--step-h2); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.h2--sm { font-size: var(--step-h2-sm); line-height: 1.08; letter-spacing: -0.03em; }
.h3 { font-size: var(--step-h3); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-family: var(--font-serif); font-size: var(--step-lead); line-height: 1.7; text-wrap: pretty; }
.tone-cream .lead { color: var(--ink-soft); }

.btn {
  display: inline-block;
  padding: 15px 28px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--light { background: var(--paper); color: var(--brand); }
.btn--light:hover { background: var(--paper-dim); }
.btn--brand { background: var(--brand); color: var(--paper); }
.btn--brand:hover { background: var(--brand-deep); }
.btn--outline { background: transparent; color: var(--paper); border-color: currentColor; }
.btn--outline:hover { background: rgba(255, 243, 230, 0.1); }
.arrow-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.arrow-link:hover { border-bottom-color: currentColor; }
.tone-cream .arrow-link { color: var(--brand); }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 50; background: var(--paper); color: var(--brand); padding: 12px 20px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* nagłówek */
.site-header { border-bottom: 1px solid rgba(255, 243, 230, 0.22); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; color: var(--paper); }
.logo { width: 150px; height: auto; }
.logo__org { color: var(--paper-dim); }
.lang-switch { font-weight: 700; font-size: var(--step-small); text-decoration: none; padding: 8px 14px; border: 2px solid rgba(255, 243, 230, 0.5); }
.lang-switch:hover { border-color: var(--paper); }

/* hero */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(56px, 7vw, 96px); }
.hero__inner > * { max-width: 940px; }
.hero__inner > .hero__title { max-width: none; container-type: inline-size; text-wrap: wrap; }
.hero__half { display: block; }
.hero__half > span { white-space: nowrap; }
/* Hasło ma 2 albo 4 wiersze, nigdy 3: gdy dłuższa połowa nie mieści się w wierszu, obie dzielą się na kawałki.
   Progi zmierzone dla Bricolage Grotesque przy --step-hero: dłuższa połowa ma ok. 12,0 (PL) i 11,3 (EN)
   wysokości kroju, mieści się od ok. 910 px (PL) i 745 px (EN) szerokości nagłówka (z paskiem przewijania) — progi z zapasem. */
@container (max-width: 949.98px) { :lang(pl) .hero__half > span { display: block; } }
@container (max-width: 779.98px) { :lang(en) .hero__half > span { display: block; } }
.hero__lead { margin-top: 28px; max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* status */
.status { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.steps { display: grid; gap: 0; counter-reset: none; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 243, 230, 0.2); }
.step:first-child { border-top: 1px solid rgba(255, 243, 230, 0.2); }
.step__num { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid rgba(255, 243, 230, 0.5); font-weight: 800; font-size: 0.875rem; }
.step__label { font-weight: 700; font-size: 1.0625rem; }
.step__state { font-size: var(--step-small); opacity: 0.8; text-align: right; }
.step--current .step__num { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.step--current .step__state { opacity: 1; color: var(--accent); font-weight: 700; }
.status__note { margin-top: 20px; opacity: 0.88; }

/* dwie kolumny: opis + formularz */
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cols__aside .lead { margin-top: 20px; }
.notes { margin-top: 24px; display: grid; gap: 12px; font-size: var(--step-small); color: var(--muted); }
.notes li { padding-left: 22px; position: relative; }
.notes li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--accent); }

/* formularze */
.form { display: grid; gap: 20px; background: var(--cream-raised); border: 1px solid var(--cream-line); padding: clamp(20px, 3vw, 36px); color: var(--ink); }
.form--on-brand { background: rgba(255, 243, 230, 0.08); border-color: rgba(255, 243, 230, 0.3); color: var(--paper); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--step-small); }
.req { font-weight: 400; color: var(--muted); }
.form--on-brand .req { color: inherit; opacity: 0.8; }
input[type='text'], input[type='email'], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--cream-line-strong);
  padding: 12px 14px;
  border-radius: 0;
}
textarea { resize: vertical; min-height: 160px; }
input[type='file'] { width: 100%; font: inherit; font-size: var(--step-small); color: var(--ink-soft); }
input[type='file']::file-selector-button { font: inherit; font-weight: 700; margin-right: 14px; padding: 10px 16px; border: 2px solid var(--brand); background: transparent; color: var(--brand); cursor: pointer; }
input[type='file']::file-selector-button:hover { background: var(--cream); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }
.form--on-brand input[type='email'] { border-color: transparent; }
.form--on-brand input[type='email']:focus { border-color: var(--accent); }
.hint { font-size: 0.875rem; color: var(--muted); }
.form--on-brand .hint { color: inherit; opacity: 0.85; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--step-small); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.form--on-brand .check input { accent-color: var(--accent); }
.check a { text-underline-offset: 3px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 18px; margin-bottom: 20px; border-left: 6px solid; background: var(--cream-raised); color: var(--ink); }
.notice--ok { border-color: var(--ok); }
.notice--error { border-color: var(--error); }

/* strona z komunikatem i informacja o danych */
.message { min-height: 50vh; }
.message__inner, .doc__inner { display: grid; gap: 22px; justify-items: start; }
.message__inner > *, .doc__inner > * { max-width: 760px; }
.doc__inner > .table-wrap { max-width: none; justify-self: stretch; }
.doc__inner { gap: 18px; }
.doc .h3 { margin-top: 18px; }
.doc a:not(.arrow-link) { color: var(--brand); text-underline-offset: 3px; }
.list { display: grid; gap: 8px; }
.list li { padding-left: 22px; position: relative; }
.list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--brand); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-small); background: var(--cream-raised); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--cream-line); }
th { font-weight: 800; background: var(--cream); }

/* stopka */
.site-footer { background: var(--ink); color: var(--footer-text); font-size: 0.9063rem; line-height: 1.9; padding-block: clamp(40px, 5vw, 56px); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-name { color: var(--paper); display: block; }
.footer-label { color: var(--paper); font-weight: 700; }
.row { display: block; }
.site-footer a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--paper); border-bottom-color: currentColor; }

@media (max-width: 860px) {
  .status, .cols { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .step { grid-template-columns: 40px minmax(0, 1fr); }
  .step__state { grid-column: 2; text-align: left; }
  .hero__actions .btn { width: 100%; }
  .logo { width: 128px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { border: 1px solid var(--cream-line); margin-bottom: 12px; }
  td { border: 0; border-bottom: 1px solid var(--cream-line); }
  td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); display: block; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
}
