/* ============================================================
   Numeria — Kurs księgowego
   Design tokens: ink-green ledger + brass accent
   ============================================================ */

:root {
  --paper:      #F5F6F1;
  --paper-2:    #ECEEE6;
  --ink:        #13362B;
  --ink-2:      #0C2017;
  --brand:      #1E5A45;
  --brand-soft: #E2EBE4;
  --gold:       #C8902B;
  --gold-soft:  #F0E2C6;
  --text:       #1A2A23;
  --muted:      #5A6A62;
  --line:       rgba(19, 54, 43, 0.14);
  --line-soft:  rgba(19, 54, 43, 0.08);
  --white:      #FFFFFF;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(12, 32, 23, 0.35);
  --shadow-sm: 0 6px 22px -12px rgba(12, 32, 23, 0.3);
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink-2); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.04); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 246, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text); position: relative; padding-block: 6px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase;
  transition: box-shadow .18s ease;
}
.lang-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang-btn .chev { transition: transform .2s ease; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; min-width: 168px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  border: 1px solid var(--line-soft);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 8px; font-size: 0.92rem; color: var(--text);
  text-align: left; transition: background .15s ease;
}
.lang-menu button:hover { background: var(--brand-soft); }
.lang-menu button[aria-current="true"] { color: var(--brand); font-weight: 700; }
.lang-menu .code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-left: auto; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 92px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); margin: 18px 0 20px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: 460px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-soft);
}
.hero-badge .b-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.hero-badge .b-label { font-size: 0.82rem; color: var(--muted); max-width: 130px; line-height: 1.35; }

/* ---------- Ledger stats ---------- */
.ledger {
  margin-top: 56px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.ledger-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger-cell {
  padding: 26px 18px 22px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.ledger-cell:last-child { border-right: none; }
.ledger-cell .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--ink);
  display: flex; align-items: baseline; gap: 2px;
}
.ledger-cell .suffix { color: var(--gold); }
.ledger-cell .label { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--ink); color: var(--paper); }
.about h2 { color: var(--paper); }
.about .eyebrow { color: var(--gold); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.about-copy p { color: rgba(245, 246, 241, 0.78); margin-top: 18px; }
.about-points { margin-top: 30px; display: grid; gap: 16px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; }
.about-points .tick {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand); color: var(--paper);
  display: grid; place-items: center; font-size: 0.85rem; margin-top: 2px;
}
.about-points strong { color: var(--paper); display: block; font-family: var(--font-display); }
.about-points span { color: rgba(245, 246, 241, 0.7); font-size: 0.95rem; }

/* ============================================================
   Program (modules)
   ============================================================ */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; border: 1px solid var(--line-soft);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative; overflow: hidden;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.module-card .mod-no {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.1em;
}
.module-card h3 { font-size: 1.22rem; margin: 12px 0 10px; }
.module-card p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   Features strip
   ============================================================ */
.features { background: var(--paper-2); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { text-align: left; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 28px; border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 18px;
}
.review-card .quote { color: var(--text); font-size: 1rem; line-height: 1.65; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.review-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.review-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-author .name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.review-author .role { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact .eyebrow { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; }
.contact-info p { color: rgba(245, 246, 241, 0.78); margin-top: 16px; }
.contact-list { margin-top: 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(245, 246, 241, 0.08); color: var(--gold);
  display: grid; place-items: center;
}
.contact-list .k { font-size: 0.78rem; color: rgba(245, 246, 241, 0.55); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.contact-list .v { color: var(--paper); font-size: 0.98rem; }
.contact-list a.v:hover { color: var(--gold); }

/* form */
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper);
  font-family: inherit; font-size: 0.98rem; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 90, 69, 0.12);
}
.field.invalid input, .field.invalid textarea { border-color: #C0492F; }
.field .err { display: none; color: #C0492F; font-size: 0.8rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; }
.form-consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.form-card .btn { width: 100%; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink-2); color: rgba(245, 246, 241, 0.72); padding-block: 56px 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(245,246,241,0.1); }
.footer-brand img { height: 32px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { margin-top: 16px; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: var(--paper); font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--gold); }

/* ============================================================
   Legal subpages
   ============================================================ */
.legal { padding-block: clamp(56px, 8vw, 90px); }
.legal-wrap { max-width: 800px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p { color: var(--text); margin-bottom: 14px; }
.legal ul.bullets { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: var(--text); }
.legal ul.bullets li { margin-bottom: 8px; }
.legal a.inline { color: var(--brand); text-decoration: underline; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media img { height: 320px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media img { height: 300px; }
  .modules-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 16px 22px 22px; box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .ledger-row { grid-template-columns: repeat(2, 1fr); }
  .ledger-cell:nth-child(2) { border-right: none; }
  .ledger-cell:nth-child(1), .ledger-cell:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .modules-grid, .reviews-grid, .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* focus visibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
