/* Finansmax — static landing (no AI gradients) */

/* === Design tokens: edytujesz głównie to === */
:root {
  /* Brand / akcje (kolory inspirowane dostarczoną wizytówką) */
  --brand: #2f9ccb;
  --brand-hover: #1f7fa8;
  --brand-contrast: #ffffff;

  /* Pasek/akcenty w stylu wizytówki */
  --stripe-1: var(--brand);
  --stripe-2: #b9c1cc;

  /* Neutrale / tła */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e5e7eb;

  /* Teksty */
  --text: #111827;
  --muted: #4b5563;
  --heading: #0b1f3b;
  --link: var(--brand);

  /* Stany */
  --focus: rgba(47, 156, 203, 0.35);
  --shadow: 0 12px 36px rgba(11, 31, 59, 0.10);

  /* Typografia i rytm */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans",
    sans-serif;
  --maxw: 1120px;

  /* Skale (łatwe korekty “feelu”) */
  --radius: 16px;
  --radius-sm: 12px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-6: 26px;
  --space-8: 34px;
  --space-12: 52px;
}

/* Opcjonalne warianty: zmieniasz data-theme na <html> */
:root[data-theme="blue-gray"] {
  --brand: #2f9ccb;
  --brand-hover: #1f7fa8;
  --stripe-2: #b9c1cc;
}

:root[data-theme="blue-deeper"] {
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --stripe-2: #c7ced8;
}

:root[data-theme="blue-only"] {
  --stripe-2: #d7dde6;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-hover);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-logo--sm {
  height: 34px;
}

.brand-name {
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--heading);
  font-weight: 560;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--brand-hover);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(11, 31, 59, 0.06);
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
}

.nav-toggle-lines::before {
  top: 1px;
}

.nav-toggle-lines::after {
  bottom: 1px;
}

.stripe {
  height: 4px;
  padding: 0;
  background: linear-gradient(90deg, var(--stripe-1) 0%, var(--stripe-2) 52%, var(--stripe-1) 100%);
  opacity: 0.55;
}

.stripe-line {
  height: 6px;
}

.stripe-blue {
  background: var(--stripe-1);
}

.stripe-gray {
  background: var(--stripe-2);
}

.stripe-thin {
  height: 4px;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  user-select: none;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--brand-contrast);
}

.btn-secondary {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(31, 127, 168, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(31, 127, 168, 0.35);
}

.btn-sm {
  padding: 10px 14px;
  font-size: 0.94rem;
}

.btn-wide {
  width: 100%;
}

/* Sections */
.section {
  padding: var(--space-12) 0;
}

.section-alt {
  background: #f0f3f7;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.section-head {
  max-width: 70ch;
  margin-bottom: var(--space-8);
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.18rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 12px;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 var(--space-4);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-6);
}

.card-title {
  margin: 0 0 8px;
}

.card-text {
  margin: 0 0 var(--space-4);
  color: var(--muted);
}

.card-actions {
  display: grid;
  gap: 10px;
  margin-top: var(--space-4);
}

.card-meta {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: calc(var(--space-12) - 10px) 0 var(--space-12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-8);
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: var(--space-6) 0 var(--space-6);
}

.hero-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-bullets li {
  margin: 6px 0;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-6);
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Lists */
.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}

.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.list-check li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid rgba(47, 156, 203, 0.35);
  background:
    linear-gradient(transparent, transparent),
    radial-gradient(circle at 35% 35%, rgba(47, 156, 203, 0.25), rgba(47, 156, 203, 0));
  position: relative;
  box-shadow: 0 6px 16px rgba(11, 31, 59, 0.06);
}

/* Callout */
.callout {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: var(--space-8);
}

.callout-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(47, 156, 203, 0.12);
  border: 1px solid rgba(47, 156, 203, 0.25);
  display: grid;
  place-items: center;
  color: var(--heading);
  font-weight: 800;
}

/* KSeF */
.ksef {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: start;
}

.ksef-panel .panel-title {
  margin-bottom: 8px;
}

.panel-rows {
  display: grid;
  gap: 10px;
  margin-top: var(--space-4);
}

.panel-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
}

.panel-k {
  font-weight: 700;
  color: var(--heading);
}

.panel-v {
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-no {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(47, 156, 203, 0.12);
  border: 1px solid rgba(47, 156, 203, 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 12px;
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--space-4);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-body {
  margin-top: 12px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
}

.contact-rows {
  margin: 0;
}

.contact-rows .row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.contact-rows .row:last-child {
  border-bottom: 0;
}

.contact-rows .k {
  font-weight: 700;
  color: var(--heading);
}

.contact-rows .v {
  color: var(--muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: var(--space-6);
}

/* Map / directions */
.map-card {
  margin-top: 0;
}

.map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.directions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: var(--space-4);
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.95rem;
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 14px;
  background: #fbfcfe;
  box-shadow: 0 6px 16px rgba(11, 31, 59, 0.05);
}

.directions-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-embed {
  margin-top: var(--space-4);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e5e7eb;
  aspect-ratio: 16 / 9;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-note {
  margin: var(--space-3) 0 0;
}

.map-status {
  min-height: 1.2em;
  margin: var(--space-3) 0 0;
}

/* Footer */
.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  background: #f3f6fa;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: var(--space-6);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-credit-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 0.9;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .ksef {
    grid-template-columns: 1fr;
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-logo {
    height: 36px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav.is-open {
    display: grid;
    grid-auto-rows: min-content;
    gap: 10px;
    padding: 12px 0 6px;
  }

  .site-nav a {
    padding: 10px 2px;
  }

  .cards-2,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .directions {
    grid-template-columns: 1fr;
  }

  .directions-actions {
    justify-content: stretch;
  }

  .directions-actions .btn {
    width: 100%;
  }
}

