/* Finagrako — design tokens
   Kierunek: monochromatyczny „private finance” (Titan) + wiersze księgi rachunkowej (Midday). */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Geist Mono";
  src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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 {
  --ink: #111111;
  --black: #000000;
  --canvas: #ffffff;
  --sage: #f3efeb;
  --stone: #e9eaeb;
  --line: #d8d3cc;
  --muted: #615e5b;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-card: 32px;
  --r-md: 20px;
  --r-sm: 10px;
  --r-pill: 160px;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss02", "ss03";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--black); color: var(--canvas); padding: 10px 18px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
main > .container:last-child { margin-bottom: var(--section); }

/* ---------- Typografia ---------- */

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.display {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 1.04;
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.1;
}
.h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: var(--r-pill);
  font: 500 16px/1.2 var(--font);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--black); color: var(--canvas); border: 1px solid var(--black); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--sage); border-color: var(--sage); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 76px;
}
.brand { display: grid; line-height: 1.1; text-decoration: none; margin-right: auto; }
.brand-name { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 18px; border-radius: var(--r-pill);
  text-decoration: none; font-size: 16px;
}
.site-nav a:hover { background: var(--sage); }
.site-nav a[aria-current="page"] { background: var(--stone); }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 12px; min-height: 0; }
  .header-call .num { display: none; }
  .site-nav { order: 3; width: 100%; margin-inline: -12px; }
  .site-nav ul { gap: 0; }
  .site-nav a { padding: 8px 12px; font-size: 15px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 104px) 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; }
.hero-copy .lead { max-width: 46ch; }
.hero-meta { font-size: 15px; color: var(--muted); }
.hero-meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-meta a:hover { border-color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Karta dokumentu (świadectwo) ---------- */

.doc-card {
  background: var(--sage);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 40px);
}
.doc-card .doc-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.doc-card .doc-number {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(2.25rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.doc-card .doc-issuer { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.facts { margin: 0; }
.facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 14px; border-top: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 15px; text-align: right; }

/* ---------- Wiersze księgi (usługi) ---------- */

.ledger { border-bottom: 1px solid var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr) 40px;
  gap: 24px; align-items: baseline;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.ledger-row .num { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.ledger-row .desc { color: var(--muted); }
.ledger-row .arrow { justify-self: end; font-size: 20px; transition: transform .15s ease; }
a.ledger-row:hover .arrow { transform: translateX(4px); }
a.ledger-row:hover .h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 8px 12px; padding-block: 22px; }
  .ledger-row .desc { grid-column: 2 / 3; grid-row: 2; }
  .ledger-row .arrow { grid-column: 3; grid-row: 1; }
}

/* ---------- Karta KSeF ---------- */

.feature-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--sage); border-radius: var(--r-card);
  padding: clamp(16px, 2.5vw, 28px);
}
.feature-card img { border-radius: var(--r-md); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-card .feature-copy { padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 28px) clamp(8px, 2vw, 24px) 0; display: grid; gap: 20px; }
.check-inline { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.check-inline::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 900px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .feature-copy { padding: 8px 8px 16px; }
}

/* ---------- O mnie (zapowiedź) ---------- */

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.split .prose { font-size: 1.125rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat strong { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Referencje ---------- */

.testimonial {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500;
  text-wrap: balance;
}
.testimonial figcaption { margin-top: 28px; display: grid; gap: 4px; }
.testimonial figcaption strong { font-weight: 600; }
.testimonial figcaption span { font-family: var(--mono); font-size: 14px; color: var(--muted); }

.letter-thumb {
  display: block; text-decoration: none;
  background: var(--sage); border-radius: var(--r-md); padding: 16px;
}
.letter-thumb img { border-radius: 4px; border: 1px solid var(--line); width: 100%; aspect-ratio: 826 / 1169; background: var(--canvas); }
.letter-thumb span { display: block; margin-top: 12px; font-size: 14px; text-align: center; }
.letter-thumb:hover span { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .testimonial { grid-template-columns: 1fr; }
  .letter-thumb { max-width: 240px; }
}

/* ---------- Ciemna karta CTA ---------- */

.cta-card {
  background: var(--ink); color: var(--canvas);
  border-radius: var(--r-card);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 64px); align-items: end;
}
.cta-card .eyebrow { color: #a9a4a0; }
.cta-card p { color: #d6d2ce; font-size: 1.125rem; max-width: 48ch; }
.cta-card .btn-primary { background: var(--canvas); color: var(--black); border-color: var(--canvas); }
.cta-card .btn-primary:hover { background: var(--sage); border-color: var(--sage); }
.cta-card .btn-ghost { color: var(--canvas); border-color: rgba(255, 255, 255, 0.28); }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.cta-card :focus-visible { outline-color: var(--canvas); }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }

@media (max-width: 900px) { .cta-card { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Nagłówek podstrony ---------- */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.page-head .lead { max-width: 56ch; margin-top: 24px; }

/* ---------- Oferta ---------- */

.offer-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.offer-toc { position: sticky; top: 100px; }
.offer-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offer-toc a {
  display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 15px;
}
.offer-toc a span { font-family: var(--mono); color: var(--muted); font-size: 13px; padding-top: 2px; }
.offer-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.service { padding-bottom: clamp(48px, 7vw, 88px); }
.service-title { display: flex; gap: 18px; align-items: baseline; margin-bottom: 14px; }
.service-title .num { font-family: var(--mono); font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.service > p { color: var(--muted); font-size: 1.125rem; max-width: 60ch; margin-bottom: 24px; }

.checklist { border-bottom: 1px solid var(--line); }
.checklist li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  padding-block: 14px; border-top: 1px solid var(--line);
}
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .offer-layout { grid-template-columns: 1fr; }
  .offer-toc { position: static; }
}

/* ---------- O mnie ---------- */

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-layout .doc-card { position: sticky; top: 100px; }
.prose-block { padding-bottom: clamp(40px, 5vw, 64px); }
.prose-block h2 { margin-bottom: 18px; }
.prose-block p { font-size: 1.125rem; max-width: 62ch; }

.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-card { background: var(--sage); border-radius: var(--r-md); padding: 28px; }
.info-card .mono { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.info-card p { font-size: 1rem; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-layout .doc-card { position: static; }
}
@media (max-width: 560px) { .info-cards { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { border-bottom: 1px solid var(--line); }
.contact-item {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 24px; align-items: baseline;
  padding-block: 26px; border-top: 1px solid var(--line);
}
.contact-item .label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact-item .value { font-size: clamp(1.35rem, 2.6vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-decoration: none; font-style: normal; }
.contact-item a.value:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-item .hint { grid-column: 2; color: var(--muted); font-size: 15px; }
.contact-item .hint a { text-underline-offset: 3px; }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .contact-item { grid-template-columns: 1fr; }
  .contact-item .hint { grid-column: 1; }
}

/* ---------- Stopka ---------- */

.site-footer { border-top: 1px solid var(--stone); padding-block: 56px 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 32px; }
.footer-grid h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid address { font-style: normal; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid li + li { margin-top: 6px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--stone); color: var(--muted); font-size: 14px; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
