:root {
  /* Neutralna charcoalowa czerń z referencji (dla ciemnych pasów: CTA, footer) */
  --navy: #1b1a2e;
  --navy-700: #161527;
  --navy-600: #2b2942;
  /* Błękit + indygo (v3 — odejście od fioletu, akcent własny, odróżnia od Saldeo) */
  --blue: #3560b8;
  --blue-2: #605cbb;
  --blue-grad: linear-gradient(135deg, #3560b8, #605cbb);
  --indigo-deep: #2c3e7a; /* indygo pośrednie — tła ciemnych sekcji (między navy a błękitem) */
  --blue-soft: #e4e9f5;
  --blue-border: #d2dbee;
  --grey-900: #262320;
  --grey-600: #5f5a52;
  --grey-400: #726c62;
  --grey-200: #e7e4de;
  --grey-100: #f7f3ec;
  --white: #fffdf9;
  --line: #e7e4de; /* ciepłe obramowania (używane m.in. na podstronie obiegu) */
  --radius: 18px;
  --shadow: 0 12px 40px rgba(60, 50, 30, 0.10);
  --shadow-sm: 0 4px 16px rgba(60, 50, 30, 0.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

html { overflow-x: clip; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* karty wychodzące poza kadr nie tworzą poziomego scrolla (clip, bo hidden psuje sticky menu) */
}

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

h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: 12px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* punkt zaczepienia dla rozwijanego menu mobilnego */
  height: 70px;
  /* pigułka nieco szersza niż kadr treści (10px na stronę), by logo wyrównać w linii z H1 zachowując odstęp od krawędzi */
  max-width: calc(var(--maxw) + 20px);
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(27, 26, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
/* Desktop: dłuższa pigułka; padding = 24 (linia H1) + 40 (wystawka), więc logo i przycisk zostają na miejscu */
@media (min-width: 1081px) {
  .nav__inner { max-width: calc(var(--maxw) + 80px); padding: 0 64px; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #205abd, var(--navy));
  display: inline-block;
}
.logo__img {
  height: 38px;
  width: auto;
  display: block;
}
.logo__img--footer {
  height: 34px;
  width: auto;
  display: block;
}
.logo__accent { color: #205abd; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  color: var(--grey-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.18s;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.nav__menu-cta { display: none; } /* Kontakt w rozwijanym menu — tylko na mobile */

/* Hamburger */
.nav__toggle {
  display: none; /* pokazywany dopiero, gdy znikają linki (≤860px) */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px; /* pill, jak w referencji */
  padding: 13px 26px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-grad);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 113, 235, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 113, 235, 0.45); }
/* Outline pill — jak przycisk „Learn More" */
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-200);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--nav { background: var(--blue-grad); color: var(--white); padding: 11px 22px; box-shadow: 0 8px 18px rgba(37, 113, 235, 0.30); }
.btn--nav:hover { transform: translateY(-2px); }
.btn--light {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn--light:hover { transform: translateY(-2px); }
/* Outline pill na ciemnym tle (sekcja CTA) */
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.30);
}
.btn--ghost-light:hover { border-color: var(--white); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 16px; }

/* HERO */
.hero {
  position: relative;
  background:
    radial-gradient(900px 440px at 10% -8%, rgba(99, 102, 241, 0.38) 0%, rgba(99, 102, 241, 0.16) 45%, transparent 78%),
    radial-gradient(1000px 520px at 92% -4%, rgba(37, 113, 235, 0.36) 0%, rgba(37, 113, 235, 0.14) 45%, transparent 80%),
    radial-gradient(760px 520px at 62% 112%, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0.08) 45%, transparent 80%),
    linear-gradient(180deg, #dde9fc, var(--white) 74%);
  margin-top: -94px;
  padding: 146px 0 68px;
  /* clip + margines: przycina rozsypkę, ale pozwala kartom wystawać poza dolną linię */
  overflow: clip;
  overflow-clip-margin: 140px;
  z-index: 1; /* karty na granicy widoczne nad kolejną sekcją */
}
/* Subtelnie pulsująca/przesuwająca się poświata — tło "żyje" */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 680px at 26% 36%, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.06) 55%, transparent 82%),
    radial-gradient(380px 380px at 72% 58%, rgba(37, 113, 235, 0.24) 0%, rgba(37, 113, 235, 0.09) 50%, transparent 80%),
    radial-gradient(300px 300px at 55% 85%, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0.06) 50%, transparent 80%);
  animation: heroGlow 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroGlow {
  from { transform: translate3d(-3%, 0, 0) scale(0.96); }
  to   { transform: translate3d(3%, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
/* Animowane tło — faktury i dokumenty zlatujące się w pierścień */
.hero__docs {
  position: absolute;
  inset: 0;
  pointer-events: none; /* nie blokuje CTA */
  z-index: 2; /* animacja NAD zdjęciem */
}
.doc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 102px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(32, 28, 46, 0.10);
  padding: 9px 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  will-change: transform, opacity;
}
.doc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc__dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--bar, var(--blue));
}
.doc__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bar, var(--blue));
}
.doc__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.doc__lines i { height: 3px; border-radius: 2px; background: var(--grey-200); }
.doc__lines i:nth-child(1) { width: 100%; }
.doc__lines i:nth-child(2) { width: 84%; }
.doc__lines i:nth-child(3) { width: 92%; }
.doc__lines i:nth-child(4) { width: 58%; }
.doc__amt {
  margin-top: auto;
  font-size: 9px;
  font-weight: 800;
  color: var(--navy);
}

.hero__inner {
  position: relative;
  z-index: 3; /* tekst nad animacją i zdjęciem */
}
.hero__text { max-width: min(600px, 52vw); }

/* Zdjęcie jako panel po prawej — POD animacją dokumentów (bez białej ramki) */
.hero__media {
  position: absolute;
  /* prawy brzeg zdjęcia w tej samej odległości od krawędzi co H1 od lewej (margines kontenera) */
  right: 24px; /* prawy brzeg zdjęcia = gutter kontenera (hero__inner) */
  top: 50%;
  transform: translateY(-50%);
  height: clamp(260px, 38vh, 360px);
  aspect-ratio: 1 / 1;            /* kwadrat */
  width: auto;
  z-index: 1; /* nad poświatą, pod dokumentami (2) i tekstem (3) */
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* proporcje kontenera = proporcje zdjęcia → brak przycięcia */
  display: block;
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 0;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 26px rgba(255, 255, 255, 1), 0 0 48px rgba(255, 255, 255, 0.92), 0 0 84px rgba(255, 255, 255, 0.72), 0 0 124px rgba(255, 255, 255, 0.5);
}
.hero h1 {
  font-size: clamp(26px, 3.3vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--grey-600);
  max-width: 700px;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px; /* przerwa od guzika do dolnej krawędzi jak wcześniej */
}
.hero__note { color: var(--grey-400); font-size: 14px; }
.hero__badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
}
.hero__badges li {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
  background: var(--white);
  border: 1px solid var(--grey-200);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* SECTIONS */
.section { padding: 88px 0; }
.section__head { max-width: 760px; margin-bottom: 52px; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.kicker--light { color: #c2c9e6; }
.section h2 {
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 800;
  margin-bottom: 18px;
}
.lead { font-size: 18px; color: var(--grey-600); }

/* PROBLEM */
.problem { background: var(--white); padding-top: 104px; }
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cbd3e6;
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--grey-600); font-size: 15px; }
.problem__punch {
  margin-top: 44px;
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* PROCESS / TIMELINE */
.process { background: var(--grey-100); }
.timeline { list-style: none; max-width: 800px; }
.timeline__item {
  position: relative;
  display: flex;
  gap: 26px;
  padding-bottom: 34px;
}
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--grey-200);
}
.timeline__step {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  z-index: 1;
}
.timeline__body {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 22px 26px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}
.timeline__body h3 {
  font-size: 19px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline__body p { color: var(--grey-600); font-size: 15px; }
.timeline__body em { color: var(--navy-600); font-style: normal; font-weight: 600; }
.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tag--free { background: #e7f5ec; color: #1f7a43; }
.tag--paid { background: var(--blue-soft); color: var(--blue); }

/* WHY */
.why { background: var(--white); }
.why__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.why__content .btn { margin-top: 28px; }
.why__list { list-style: none; display: grid; gap: 16px; }
.why__list li {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--grey-600);
}
.why__list strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--indigo-deep), #1e1d38);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { color: var(--white); margin-bottom: 18px; font-size: clamp(22px, 2.8vw, 31px); }
.cta p { color: #c3ccdf; font-size: 18px; margin-bottom: 34px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer {
  background: var(--navy);
  color: #9aa6c2;
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy { margin: 0; font-size: 13px; }
.footer p { font-size: 14px; }
.footer__company { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer__logo { height: 30px; width: auto; display: block; margin-bottom: 4px; }
.footer__legal { font-size: 12.5px; color: #8a95b0; margin: 0 0 6px; }
.footer__meta { font-size: 13px; margin: 0; }
.footer__meta a { color: #c3ccdf; text-decoration: none; }
.footer__meta a:hover { color: #fff; }
.footer__bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 720px) {
  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer__company { align-items: center; }
}

/* ORBITA — obszary automatyzacji */
.board-section {
  background: linear-gradient(135deg, var(--indigo-deep), #1e1d38);
  color: #fff;
  overflow: hidden;
}
.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.board-section h2 { color: #fff; }
.lead--light { color: #c3ccdf; }

/* ——— TABLICA KARTECZEK (obszary automatyzacji) ——— */
.board {
  position: relative;
  max-width: 680px;
  margin: 44px auto 0;
}
.notes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 24px;
}
.note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  aspect-ratio: 1 / 1;
  padding: 18px 16px;
  border-radius: 3px;
  color: #1b1a22;
  background: color-mix(in srgb, var(--c) 20%, #fdfdf7);
  border: 1px solid color-mix(in srgb, var(--c) 30%, #ffffff);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.note:nth-child(4n+1) { transform: rotate(-2.5deg); }
.note:nth-child(4n+2) { transform: rotate(1.8deg); }
.note:nth-child(4n+3) { transform: rotate(-1.2deg); }
.note:nth-child(4n+4) { transform: rotate(2.6deg); }
.note:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
  z-index: 5;
}
/* zagięty róg */
.note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent color-mix(in srgb, var(--c) 38%, #ffffff) transparent;
}
/* pinezka */
.note__pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8, var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}
.note__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--c) 26%, #ffffff);
  color: color-mix(in srgb, var(--c) 78%, #1b1a22);
}
.note__icon svg { width: 22px; height: 22px; }
.note__label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #23223a;
}

/* OD ZAŁOŻYCIELA */
.founder { background: var(--grey-100); }
.founder__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 52px;
  align-items: center;
}
.founder__media {
  /* grunt zdjęcia (tło/cień) wypalony w grafice z Photoshopa — CSS bez dodatków */
}
.founder__media img {
  width: 100%;
  height: auto;
  display: block;
}
.founder__content .kicker { display: block; }
.founder__content h2 {
  font-size: clamp(22px, 2.8vw, 31px);
  margin-bottom: 20px;
}
.founder__content p {
  color: var(--grey-600);
  margin-bottom: 16px;
  max-width: 62ch;
}
.founder__content p:last-child { margin-bottom: 0; }

/* Dekoracyjne kropki (kropki.png) rozsiane po stronie.
   overflow-x: clip → nie wychodzą poza szerokość (brak poziomego scrolla),
   overflow-y: visible → mogą „siadać" na łączeniach sekcji. */
.dots-accent { position: relative; overflow-x: clip; overflow-y: visible; }
.dots-accent > .container { position: relative; z-index: 1; }
.dots-accent::before,
.dots-accent::after {
  position: absolute;
  width: 140px;
  height: 140px;
  background: url("kropki.png") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}
.dots-accent::before { content: ""; }
.dots-accent::after  { content: none; } /* drugi klaster — włączany per sekcja */

/* Różne kombinacje: obroty, lustrzane odbicia, część na szwach sekcji.
   Offsety nieujemne → klastry są kompletne (overflow-x: clip nic nie ucina). */
.problem.dots-accent::before { content: none; }                                                  /* domyślny wyłączony */
.problem.dots-accent::after  { content: ""; left: 24px; bottom: -46px; transform: scaleX(-1); opacity: 0.5; } /* szew Realia↔Co automatyzujemy, lewa, lustro */
.process.dots-accent::before { content: none; }                                                  /* domyślny wyłączony */
.process.dots-accent::after  { content: ""; left: 24px; right: auto; bottom: -46px; transform: scaleX(-1); opacity: 0.5; background-image: url("kwadraty.png?v=4"); } /* szew Metoda↔Dlaczego: KWADRATY, lewa, lustro */

/* Liczby (40+/70%): kropki po prawej na dole — przeniesione znad szwu Metoda↔Dlaczego */
.stats.dots-accent { overflow: visible; z-index: 3; } /* na wierzch, żeby kropek nie ucinała następna sekcja */
.stats.dots-accent::before { content: none; }
.stats.dots-accent::after  { content: ""; right: 24px; bottom: -46px; opacity: 0.5; z-index: 3; } /* szew Liczby↔Metoda, prawa */

/* Kontakt: kwadraty po prawej na dole, na granicy nad „Napisz lub zostaw numer” */
.contact.dots-accent { position: relative; overflow: visible; z-index: 3; }
.contact.dots-accent::before { content: ""; right: 24px; left: auto; top: -46px; opacity: 0.5; background-image: url("kwadraty.png?v=4"); z-index: 3; }
.contact.dots-accent::after  { content: none; }

/* CTA: kropki po lewej, na granicy nad „Zróbmy pierwszy krok” */
.cta.dots-accent { position: relative; overflow: visible; z-index: 3; }
.cta.dots-accent::before { content: ""; left: 24px; right: auto; top: -46px; transform: scaleX(-1); opacity: 0.5; z-index: 3; }
.cta.dots-accent::after  { content: none; }
.founder.dots-accent::before { left: 24px; bottom: -46px; transform: scaleX(-1); opacity: 0.5; } /* szew Założyciel↔FAQ, lewa, lustro */

/* Funkcje: zdejmij domyślne kropki (przy „Droga dokumentu”), w zamian kwadraty po prawej na szwie z „Co automatyzujemy” */
.features.dots-accent::before { content: none; }
.features.dots-accent::after  { content: ""; right: 24px; top: -20px; opacity: 0.5; background-image: url("kwadraty.png?v=4"); }

/* Ukryj klastry kropek na mobile — na wąskich ekranach zaśmiecają */
@media (max-width: 768px) {
  .dots-accent::before,
  .dots-accent::after { display: none; }
}

/* LICZBY */
.stats { background: var(--blue-soft); border-top: 1px solid var(--blue-border); border-bottom: 1px solid var(--blue-border); }
.stats__inner {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 280px;
  max-width: 380px;
  text-align: center;
  padding: 8px 40px;
}
.stats__inner > .stat + .stat { border-left: 1px solid var(--grey-200); }
@media (max-width: 600px) {
  .stats__inner > .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--grey-200);
    padding-top: 28px;
    margin-top: 4px;
  }
}
.stat__num {
  display: block;
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue);
  background: var(--blue-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  display: block;
  margin-top: 14px;
  color: var(--grey-600);
  font-size: 15px;
  line-height: 1.5;
}
.stat__label sup { color: var(--blue); }
.stats__note {
  text-align: center;
  color: var(--grey-400);
  font-size: 12.5px;
  margin-top: 18px;
}

/* FORMULARZ KONTAKTOWY */
.contact { background: var(--grey-100); }
.contact__inner { max-width: 760px; margin: 0 auto; }
.contact__intro { text-align: center; margin-bottom: 32px; }
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--grey-900);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey-400) 50%), linear-gradient(135deg, var(--grey-400) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.contact__hint { margin: -2px 0 0; font-size: 13px; color: var(--grey-400); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 113, 235, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--grey-600);
}
.contact__consent input { margin-top: 3px; flex-shrink: 0; }
.contact__consent a { color: var(--blue); text-decoration: underline; }
.contact__form .btn { align-self: flex-start; }
.contact__hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.contact__status { margin: 0; font-size: 14px; font-weight: 600; }
.contact__status.is-ok { color: #1f7a43; }
.contact__status.is-err { color: #c0392b; }
@media (max-width: 600px) {
  .contact__row { grid-template-columns: 1fr; }
  .contact__form .btn { align-self: stretch; }
}

/* FAQ */
.faq { background: var(--white); }
.faq__list { max-width: 780px; margin: 40px auto 0; }
.faq__item {
  border: 1px solid var(--grey-200);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq__item:hover { border-color: #cbd3e6; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #cbd3e6; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--grey-400);
  border-bottom: 2px solid var(--grey-400);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}
.faq__item[open] summary { color: var(--blue); }
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq__a {
  padding: 0 22px 20px;
  color: var(--grey-600);
  font-size: 15px;
}

/* RESPONSIVE — zakres pośredni (tekst + obraz w hero) */
@media (min-width: 861px) and (max-width: 1080px) {
  .hero__text { max-width: 50vw; }
  .hero__media { height: clamp(220px, 32vh, 320px); }
  .hero h1 { font-size: clamp(24px, 3.4vw, 36px); }
  .nav { padding: 12px 24px; } /* odstęp pigułki od krawędzi na tablecie */
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .cards--3 { grid-template-columns: 1fr; }
  .why__inner { grid-template-columns: 1fr; gap: 36px; }
  .nav { padding: 12px 16px; } /* odstęp pigułki od krawędzi ekranu na mobile/tablecie */
  .nav__toggle { display: flex; }
  .nav__cta { display: none; } /* samodzielny Kontakt chowany — jest w rozwijanym menu */
  .nav__links a.nav__menu-cta { display: inline-flex; align-self: flex-start; margin-top: 4px; color: var(--white); }
  .nav__links a.nav__menu-cta:hover { background: var(--blue-grad); }
  /* rozwijane menu pod pigułką */
  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(27, 26, 46, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav__links a:not(.btn) { padding: 10px 12px; border-radius: 10px; font-size: 16px; }
  .nav__links a:not(.btn):hover { background: rgba(37, 113, 235, 0.08); }
  .nav__inner.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .hero__docs { display: none; } /* animacja dokumentów ukryta na mobile (za szeroka) */
  .section { padding: 64px 0; }
  .hero { padding: 118px 0 64px; } /* 94px pigułki + odstęp, bo margin-top -94 wsuwa hero pod nav */
  /* sztywne <br> psują łamanie na wąskim ekranie — tekst ma zawijać się sam */
  .hero h1 br, .hero__sub br, .problem h2 br { display: none; }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__text { max-width: none; order: 1; }
  .hero__cta { order: 3; justify-content: center; margin-top: 64px; margin-bottom: 0; }
  .hero__media {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    height: auto;
    width: 260px;
    max-width: 68%;
    margin: 30px auto 0;
    border-radius: 16px;
  }
  .notes { grid-template-columns: repeat(3, 1fr); }

  .founder__inner { grid-template-columns: 1fr; gap: 28px; }
  .founder__media { max-width: 340px; margin: 0 auto; width: 100%; }
}

/* Telefon — mniejsze logo i niższa pigułka (tablet zostaje z pełnym 38px) */
@media (max-width: 600px) {
  .nav__inner { height: 60px; padding: 0 22px; }
  .logo__img { height: 30px; }
}

/* Telefon — 3 kolumny, pomniejszone karteczki, żeby mieściły się na ekranie */
@media (max-width: 560px) {
  .board-section { padding: 64px 0 72px; }
  /* 2 kolumny i niższe karteczki: tekst czytelny (13px zamiast 10px), bez wymuszonego kwadratu */
  .notes { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .note { padding: 14px 10px; gap: 8px; border-radius: 2px; aspect-ratio: auto; min-height: 112px; }
  .note__icon { width: 30px; height: 30px; border-radius: 7px; }
  .note__icon svg { width: 16px; height: 16px; }
  .note__label { font-size: 13px; line-height: 1.3; }
  .note__pin { width: 11px; height: 11px; top: -6px; }
  .note::after { border-width: 0 0 12px 12px; }
}

/* STOPKA — linki */
.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__links a {
  color: #9aa6c2;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.footer__links a:hover { color: #fff; }

/* STRONY PRAWNE (polityka prywatności) */
.legal { padding: 56px 0 72px; }
.legal__inner { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.legal__updated { color: var(--grey-400); font-size: 14px; margin-bottom: 36px; }
.legal h2 {
  font-size: 21px;
  margin: 34px 0 12px;
  color: var(--navy);
}
.legal h3 { font-size: 17px; margin: 22px 0 8px; color: var(--navy); }
.legal p, .legal li { color: var(--grey-600); font-size: 15.5px; line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal .legal__note {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 28px;
}
.legal a.legal__back { display: inline-block; margin-top: 32px; font-weight: 600; color: #fff; }

/* Zwężenie przycisku w nawigacji na telefonach (rozmiar logo ustawia blok ≤600px) */
@media (max-width: 560px) {
  .btn--nav { padding: 9px 16px; font-size: 14px; }
}


/* ===== Przeniesione z index.html (inline) — konsolidacja: paleta akcentu, hero, stepper, ikony, listy (2026-09-21) ===== */
/* Przyciski: neutralny ciepły cień zamiast niebieskiego glow */
.btn--primary { box-shadow: 0 10px 24px rgba(60, 50, 30, 0.16); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(60, 50, 30, 0.22); }
.btn--nav { box-shadow: 0 8px 18px rgba(60, 50, 30, 0.14); }
.nav__links a:not(.btn):hover { background: rgba(69, 97, 156, 0.08); }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 3px rgba(53, 96, 184, 0.16); }
/* Hero (index) — pastelowa poswiata + baza w krem */
.hero {
  background:
    radial-gradient(900px 440px at 10% -8%, rgba(96,92,187,0.34) 0%, rgba(96,92,187,0.14) 45%, transparent 78%),
    radial-gradient(1000px 520px at 92% -4%, rgba(53,96,184,0.32) 0%, rgba(53,96,184,0.13) 45%, transparent 80%),
    radial-gradient(760px 520px at 62% 112%, rgba(120,140,205,0.22) 0%, rgba(120,140,205,0.08) 45%, transparent 80%),
    linear-gradient(180deg, #e7eaf6, var(--white) 74%);
}
.hero::before {
  background:
    radial-gradient(680px 680px at 26% 36%, rgba(74,108,176,0.10) 0%, rgba(74,108,176,0.04) 55%, transparent 82%),
    radial-gradient(380px 380px at 72% 58%, rgba(69,97,156,0.13) 0%, rgba(69,97,156,0.05) 50%, transparent 80%),
    radial-gradient(300px 300px at 55% 85%, rgba(120,140,190,0.10) 0%, rgba(120,140,190,0.04) 50%, transparent 80%);
}
/* Sekcja „Obszary automatyzacji" (index) — zdjecie biura pod gradientem */
.board-section {
  background:
    linear-gradient(135deg, rgba(44,62,122,0.70), rgba(30,29,56,0.82)),
    url("office-background.webp?v=1") center/cover no-repeat;
}
/* Ilustracja zamiast kafelka-ikony */
.card__icon--img { background: transparent; width: auto; height: auto; border-radius: 0; justify-content: center; margin: -6px 0 24px; }
.card__icon--img img { width: 152px; height: auto; display: block; }
/* „Funkcje w praktyce" — większe ikony + więcej powietrza */
#funkcje .card__icon--img img { width: 176px; }
#funkcje .card__icon--img { margin: 6px 0 28px; }
#funkcje .card { padding: 34px 30px; }
#funkcje .cards { gap: 28px; }
/* Interaktywny stepper „Metoda wspolpracy" */
#proces .timeline { position: relative; }
#proces .timeline__item { align-items: center; }
#proces .timeline__item:not(:last-child)::before { display: none; }
#proces .timeline__prog { position: absolute; left: 23px; top: 0; bottom: 0; width: 3px; background: var(--grey-200); border-radius: 2px; z-index: 0; pointer-events: none; }
#proces .timeline__prog-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--blue), var(--blue-2)); border-radius: 2px; }
#proces .timeline__step { background: #78715f; transition: background .35s ease, box-shadow .35s ease; }
#proces .timeline__item.is-active .timeline__step { background: var(--blue); box-shadow: 0 6px 16px rgba(53,96,184,.30); }
/* Listy funkcji */
.feat-detail { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 9px; }
.feat-detail li { position: relative; padding-left: 22px; font-size: .95rem; line-height: 1.5; }
.feat-detail li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.card__foot { font-weight: 600; margin-top: 4px; }

/* Telefon — belka partnerów w jednym rzędzie, mniejsze loga (zamiast słupka na pół ekranu) */
@media (max-width: 600px) {
  .partners__logos { gap: 18px 22px !important; flex-wrap: wrap; }
  .partners__logos img { height: 24px !important; max-width: 40%; object-fit: contain; }
  .partners__logos img[alt="Enovatio"] { height: 20px !important; }
  .partners__logos img[alt="Ksefopis"] { height: 20px !important; }
}

/* Wąski telefon — duże przyciski mieszczą się w kolumnie (tekst może się zawinąć) */
@media (max-width: 420px) {
  .btn--lg { white-space: normal; text-align: center; max-width: 100%; padding-left: 22px; padding-right: 22px; }
}
