/* =========================================================
   FM Partner Group — landing page styles
   Styl: korporacyjny, techniczny, minimalistyczny
   Paleta: granat / biel / jasny szary
   ========================================================= */

:root {
  --navy-900: #0a1a32;
  --navy-800: #0b1f3a;
  --navy-700: #112a4d;
  --navy-600: #1b3a66;
  --navy-500: #2a4d80;
  --navy-100: #e6ecf5;
  --gray-50:  #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #e2e6ec;
  --gray-300: #cdd3dc;
  --gray-500: #6b7480;
  --gray-700: #374151;
  --gray-900: #11161f;
  --white:    #ffffff;

  --radius: 4px;
  --radius-lg: 8px;

  --container: 1200px;
  --section-y: clamp(64px, 8vw, 112px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-soft: 0 1px 2px rgba(10,26,50,0.04), 0 8px 24px rgba(10,26,50,0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--navy-900); }

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
p { margin: 0 0 16px; color: var(--gray-700); }

.lead {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 56ch;
}
.section-lead {
  max-width: 70ch;
  margin-bottom: 40px;
  color: var(--gray-700);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--navy-600);
}
.eyebrow-light {
  color: #9fb6d6;
  border-left-color: #9fb6d6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.btn-primary:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-ghost:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-text strong { font-weight: 800; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--navy-800);
  position: relative;
  border-radius: 2px;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  background: var(--white);
}
.brand-mark::before { left: 6px; top: 6px; width: 16px; height: 2px; }
.brand-mark::after  { left: 6px; top: 12px; width: 10px; height: 2px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--navy-900); border-bottom-color: var(--navy-800); }
.nav-cta {
  background: var(--navy-800);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--navy-900); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle .bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy-900);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--white);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; font-size: 1.2rem; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.95rem;
}
.hero-meta li span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,31,58,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,31,58,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--gray-200);
}
.section-alt { background: var(--gray-50); }
.section-dark {
  background: var(--navy-800);
  color: var(--white);
  border-bottom: none;
}
.section-dark p, .section-dark li { color: #c9d4e6; }
.h2-light { color: var(--white); }
.lead-light { color: #c9d4e6; max-width: 60ch; }

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.grid-2-tight { gap: 40px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

/* ---------- Cards / Lists ---------- */
.card-list { display: grid; gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-bottom: 12px; }

.list-check, .list-arrow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-check li, .list-arrow li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.97rem;
  color: var(--gray-700);
}
.list-check li:last-child, .list-arrow li:last-child { border-bottom: none; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--navy-700);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--navy-700) 0 4px, transparent 4px);
}
.list-arrow li::before {
  content: "›";
  position: absolute;
  left: 4px; top: 6px;
  color: var(--navy-700);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Problems ---------- */
.problem {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.problem .num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy-600);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.problem h3 { margin-bottom: 8px; }
.problem p { font-size: 0.95rem; margin: 0; }

/* ---------- Solution ---------- */
.benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
}
.benefits li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.benefits li strong { color: var(--white); font-size: 1.05rem; }
.benefits li span { color: #c9d4e6; font-size: 0.95rem; }

/* ---------- Domains ---------- */
.domain {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
}
.domain-icon {
  width: 48px; height: 48px;
  color: var(--navy-700);
  margin-bottom: 20px;
}
.domain-icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.domain h3 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.stat-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat-num span {
  font-size: 0.55em;
  color: var(--navy-500);
  margin-left: 4px;
  vertical-align: top;
}
.stat p { margin: 0; font-size: 0.95rem; color: var(--gray-700); }

/* ---------- Process ---------- */
.process {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.process li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
}
.process .step {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--navy-800);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.process h3 { margin-bottom: 8px; font-size: 1.05rem; }
.process p { font-size: 0.92rem; margin: 0; }

/* ---------- Cases ---------- */
.case {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.case-thumb {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, var(--navy-100) 0 12px, transparent 12px 24px),
    var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}
.case h3 { padding: 20px 22px 6px; margin: 0; }
.case p { padding: 0 22px 22px; margin: 0; font-size: 0.95rem; }

/* ---------- Trust / logos ---------- */
.trust { margin-top: 64px; text-align: center; }
.trust h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.logo-placeholder {
  height: 72px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  background: var(--white);
}

/* ---------- Pillars ---------- */
.pillar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.pillar-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy-600);
  margin-bottom: 16px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: 0.95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 14px;
}
.contact-list li {
  display: flex; flex-direction: column;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.contact-list a { color: var(--navy-900); font-weight: 600; }

/* ---------- Form ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(27,58,102,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.field-check label { font-weight: 400; line-height: 1.5; }

.form-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 4px 0 0;
  text-align: center;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c9d4e6;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.brand-footer { color: var(--white); }
.brand-footer .brand-mark { background: var(--white); }
.brand-footer .brand-mark::before,
.brand-footer .brand-mark::after { background: var(--navy-900); }
.footer-tag {
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8aa0c2;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-self: end;
}
.footer-links a {
  color: #c9d4e6;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--white); }
.copy {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #8aa0c2;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(10,26,50,0.15);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; color: var(--gray-700); }
.cookie-banner .btn { flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--gray-100); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 14px 0; }
  .nav-cta { margin-top: 8px; text-align: center; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .hero-meta { gap: 18px 32px; }
  .stats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }

  .form { padding: 24px; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
