:root {
  /* ciemne tla */
  --dark:         #0d3b45;
  --dark-2:       #0a2e36;

  /* akcenty: --accent na jasnym tle, --accent-light WYLACZNIE na ciemnym */
  --accent:       #0f7c8a;
  --accent-hover: #0c6a76;
  --accent-light: #5de8f2;

  /* tekst */
  --title:        #1d2f3c;
  --ink:          #1d2f3c;
  --muted:        #5c7383;   /* tekst akapitowy - musi miec kontrast AA */
  --soft:         #8aa0ae;   /* metadane i podpisy ponizej 14px */
  /* panel uzywa #97a6b2, ale na froncie te etykiety sa realnym tekstem
     11px na bialym (2,5:1 - ponizej AA). Ciemniejszy odcien tej samej
     rodziny daje 4,6:1 i wyglada tak samo stonowanie. */
  --section:      #607684;

  /* powierzchnie */
  --bg:           #f7fafb;
  --card:         #ffffff;
  --card-border:  #e6ebef;
  --divider:      #eef1f5;
  --input-border: #e2e8f0;

  /* zielen i czerwien statusow */
  --ok-bg:        #f1faf5;
  --ok-border:    #a9dcc3;
  --ok-ink:       #0f6d43;
  --err-bg:       #fdf2f3;
  --err-border:   #f5c2c7;
  --err-ink:      #b3253c;

  /* aliasy wsteczne - wygaszane w kolejnych etapach */
  --a:    var(--title);
  --b:    var(--accent-hover);
  --c:    var(--accent);
  --line: var(--card-border);

  --shell: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

/* ── HEADER ────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 0;
}

.header-inner {
  position: relative;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 0 8px 0 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.6);
}

.header-inner nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* CTA w pasku nigdy nie moze byc przyciety ani wyjsc poza bialy kontener */
.header-ctas > .btn-ghost,
.header-ctas > .btn-primary {
  flex: 0 0 auto;
}

/* duplikat CTA widoczny wylacznie w rozwinietym menu mobilnym */
.nav-mobile-ctas {
  display: none;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--a);
  letter-spacing: .3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 9px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav a:hover {
  background: var(--bg);
  color: var(--a);
}

.btn-ghost {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background .15s;
}

.btn-ghost:hover {
  background: var(--bg);
}



.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

/* ── HAMBURGER ─────────────────────────────────────── */

.nav-toggle {
  display: none;          /* wlaczany w media query ponizej */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.nav-toggle:hover { background: var(--bg); }

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 20px;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,63,97,.25);
}

.btn-accent {
  background: var(--c);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 20px;
  transition: transform .15s, box-shadow .15s;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10,168,181,.35);
}

/* ── GRADIENT WRAP ─────────────────────────────────── */

.gradient-wrap {
  background: linear-gradient(170deg, #0f3f61 0%, #0b5f7f 40%, #0b5f7f 100%);
  color: #fff;
  padding-top: 72px;
}

/* ── HERO ──────────────────────────────────────────── */

.hero {
  padding: 80px 0 60px;
}

.hero .shell {
  overflow: hidden;
  padding-bottom: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.hero-text {
  text-align: center;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-text p {
  font-size: 19px;
  opacity: .88;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--title);
  font-weight: 800;
  font-size: 16px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  transition: background .15s;
}

.btn-hero-primary:hover {
  background: #eef3f5;
}

.btn-hero-outline {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
  transition: border-color .15s, background .15s;
}

.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

/* Industry tags in hero */
.hero-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
}

.hero-industry-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  transition: background .15s ease;
}

.hero-industry-tag:hover {
  background: rgba(255,255,255,.3);
}

/* Product screenshot */
.hero-visual {
  width: 100%;
  max-width: 1100px;
}

.product-screenshot-wrap {
  width: 100%;
}

.product-screenshot {
  width: 100%;
  display: block;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 18px 40px rgba(4,25,30,.28);
}

video.product-screenshot {
  height: auto;
  aspect-ratio: 1910 / 965;
  object-fit: cover;
  object-position: top center;
  background: var(--dark);
}

/* ── TRUST BAR ─────────────────────────────────────── */

.trust-bar {
  padding: 8px 0 64px;
}

.trust-bar-label {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 22px;
}

.trust-bar-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.trust-bar-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: trust-bar-scroll 22s linear infinite;
}

.trust-bar-track-wrap:hover .trust-bar-track {
  animation-play-state: paused;
}

.trust-logo {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  opacity: .55;
  white-space: nowrap;
  transition: opacity .15s ease;
}

.trust-logo:hover {
  opacity: .95;
}

@keyframes trust-bar-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-bar-track {
    animation: none;
  }
}

/* ── FEATURES ──────────────────────────────────────── */

.features {
  padding: 96px 0;
  background: var(--bg);
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--title);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}

.features-photo-wrap {
  max-width: 560px;
  margin: 48px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,63,97,.18);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.features-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
}

.features-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #123a56 0%, #0a2338 100%);
  border-radius: 16px;
  padding: 56px 56px 60px;
  box-shadow: 0 18px 40px rgba(4,25,30,.28);
}

.features-panel::before,
.features-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.features-panel::before {
  width: 320px;
  height: 320px;
  right: -100px;
  top: -120px;
  background: radial-gradient(circle, rgba(10,168,181,.35) 0%, rgba(10,168,181,0) 70%);
}

.features-panel::after {
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(93,232,242,.18) 0%, rgba(93,232,242,0) 70%);
}

.features-rows {
  position: relative;
  display: flex;
  flex-direction: column;
}

.features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 30px 0;
}

.features-row:first-child {
  padding-top: 0;
}

.features-row:last-child {
  padding-bottom: 0;
}

.features-row:not(:first-child) {
  border-top: 1px solid rgba(255,255,255,.14);
}

.feature-item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--accent-light);
  background: rgba(10,168,181,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.feature-item p {
  font-size: 14.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  margin: 0;
}

/* ── HOW IT WORKS ──────────────────────────────────── */

.how {
  padding: 96px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: rgba(255,255,255,.25);
}

.step {
  text-align: center;
  position: relative;
}

.how .section-label { color: var(--accent-light); }
.how .section-title { color: #fff; }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

/* ── CTA BANNER ────────────────────────────────────── */

.cta-banner {
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.cta-logo-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

.cta-text h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  margin-bottom: 10px;
  color: #fff;
}

.cta-text p {
  font-size: 19px;
  color: rgba(255,255,255,.92);
}

/* ── SEKCJE OGÓLNE ─────────────────────────────────── */

.content-section {
  padding: 96px 0;
  background: #fff;
}

/* Tło każdej sekcji ustawiane jawnie (nie przez nth-child) — naprzemiennie
   biały/tint, żeby dwie sąsiadujące sekcje nigdy nie miały tego samego
   koloru. Przy tym samym kolorze padding-bottom jednej + padding-top
   drugiej dają jedną, pozbawioną granicy "martwą" strefę. Kolejność na
   stronie: funkcje(tint) → branze(biały) → dla-kogo(tint) →
   aplikacja(biały) → cennik(tint) → o-nas(biały). */

/* ── BRANŻE ────────────────────────────────────────── */

.sectors-section {
  background: #fff;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, auto);
  gap: 20px;
  margin-top: 56px;
}

/* .sector-item to subgrid wzgledem wierszy rodzica - karta (biale
   pudelko) zajmuje wiersze 1-4, zdjecie jest OSOBNYM elementem w
   wierszu 5, poza pudelkiem karty, ale wciaz wyrownane do tej samej
   wysokosci we wszystkich 4 kolumnach. */
.sector-item {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
}

.sector-card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: transform .18s, box-shadow .18s;
}

.sector-card:hover {
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.sector-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--title);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  align-self: stretch;
}

.sector-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--c);
}

.sector-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-self: stretch;
}

.sector-photo {
  position: relative;
  align-self: stretch;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 120px;
  background-color: var(--bg);
}

.sector-photo-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: sector-photo-kenburns 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes sector-photo-kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .sector-photo-img { animation: none; }
}

.sector-block h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--section);
  margin-bottom: 8px;
}

.sector-block ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.sector-block li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.sector-block li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--c);
  font-weight: 900;
}

/* ── DLA KOGO ──────────────────────────────────────── */

.persona-section {
  background: var(--bg);
}

.persona-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}

.persona-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  flex: 0 1 calc(33.333% - 16px);
}

.persona-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 16px;
}

.persona-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.persona-card li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.persona-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c);
  font-weight: 900;
}

/* ── APLIKACJA ─────────────────────────────────────── */

.app-section {
  background: #fff;
}

.app-showcase {
  margin-top: 56px;
}

.app-showcase-frame {
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  border: 2px dashed var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.app-showcase-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--c));
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-showcase-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* ── CENNIK ────────────────────────────────────────── */

.pricing-section {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 28px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--c);
  box-shadow: 0 16px 48px rgba(10,168,181,.15);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--section);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--title);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.pricing-badge--free {
  background: var(--ok-ink);
}

.pricing-brutto {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.pricing-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c);
  font-weight: 900;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
}

.pricing-btn--primary {
  background: var(--accent);
  color: #fff;
}

.pricing-btn--primary:hover {
  background: var(--accent-hover);
}

.pricing-btn--outline {
  border: 2px solid var(--line);
  color: var(--a);
}

.pricing-btn--outline:hover {
  border-color: var(--c);
  color: var(--c);
}

.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── O NAS ─────────────────────────────────────────── */

.about-section {
  background: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--c);
  transition: color .15s;
}

.about-cta:hover { color: var(--a); }

.about-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,63,97,.18);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.about-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ── DOKUMENTY PRAWNE (Polityka prywatności / Regulamin / RODO) ──── */

.legal-hero { background: #fff; }

.legal-note {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--ink);
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 20px;
  color: var(--ink);
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--a); }

/* ── CENTRUM POMOCY ────────────────────────────────── */

.help-hero { background: #fff; }

.help-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.help-quicklink {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 14px;
  border: 2px solid var(--line);
  color: var(--a);
  font-weight: 800;
  font-size: 14px;
  transition: border-color .15s, color .15s, transform .15s;
}

.help-quicklink:hover {
  border-color: var(--c);
  color: var(--c);
}

/* Wideo */

.help-video-section { background: var(--bg); }

.help-script {
  max-width: 720px;
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
}

.help-script summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: var(--a);
  padding: 14px 0;
  list-style: none;
}

.help-script summary::-webkit-details-marker { display: none; }

.help-script summary::after {
  content: '+';
  float: right;
  font-weight: 900;
  color: var(--c);
}

.help-script[open] summary::after { content: '−'; }

.help-script-list {
  list-style: decimal;
  padding: 0 0 18px 20px;
  display: grid;
  gap: 8px;
}

.help-script-list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.help-video-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  margin: 56px 0 24px;
}

.video-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-tile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}

.video-tile-card:hover {
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.video-tile-frame {
  background: #0f172a;
}

.video-tile-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-tile-content {
  padding: 20px;
}

.video-tile-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 6px;
}

.video-tile-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* FAQ */

.faq-section { background: #fff; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
  padding: 18px 0;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 900;
  font-size: 18px;
  color: var(--c);
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer a {
  color: var(--c);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Trust Center */

.trust-section { background: var(--bg); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.trust-section .trust-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.trust-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.trust-card-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--title);
}

.trust-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.trust-list li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.trust-list li strong {
  color: var(--ink);
}

.trust-list a {
  color: var(--a);
  font-weight: 700;
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

.badge--ready {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.badge--soon {
  background: #e6f4f6;
  color: var(--accent-hover);
}

.badge--pending {
  background: #f1f5f7;
  color: var(--muted);
}

@media (max-width: 900px) {
  .video-tiles-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-section .trust-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-section .trust-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
  }
}

/* ── PROGRAM PARTNERSKI ────────────────────────────── */

.partner-section {
  background: var(--bg);
}

.partner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.partner-text .section-sub {
  margin-bottom: 0;
}

.partner-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,63,97,.18);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
}

.partner-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.partner-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.partner-for {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--section);
  margin-bottom: 16px;
}

.partner-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.partner-list li {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
}

.partner-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c);
  font-weight: 900;
  font-size: 16px;
}

/* ── PLATFORMA (WIĘCEJ NIŻ RCP) ───────────────────────── */

.platform-section {
  background: #fff;
}

.platform-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.platform-head .platform-lead {
  margin-bottom: 0;
}

.platform-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.platform-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,63,97,.18);
  border: 1px solid var(--line);
  aspect-ratio: 1729 / 910;
}

.platform-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.platform-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.platform-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  align-content: center;
}

.platform-list li {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}

.platform-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c);
  font-weight: 900;
}

/* ── CASE STUDY ────────────────────────────────────────── */

.case-study-section {
  background: linear-gradient(170deg, #0f3f61 0%, #0b5f7f 40%, #0b5f7f 100%);
  color: #fff;
  padding: 96px 0;
}

.case-study-section .section-label {
  color: var(--accent-light);
}

.case-study-section .section-title {
  color: #fff;
}

.case-study-section .section-sub {
  color: rgba(255,255,255,.85);
  max-width: 720px;
}

.case-study-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 24px;
}

.case-study-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  aspect-ratio: 4 / 3;
}

.case-study-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.case-study-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 18px 40px rgba(4,25,30,.28);
  color: var(--ink);
}

.case-study-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 20px;
}

.case-study-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.case-study-list li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}

.case-study-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .platform-inner { grid-template-columns: 1fr; gap: 40px; }
  .platform-list { grid-template-columns: 1fr; }
  .partner-inner { grid-template-columns: 1fr; gap: 40px; }
  .case-study-inner { grid-template-columns: 1fr; gap: 32px; }
  .persona-card { flex-basis: calc(50% - 12px); }

  /* Branże na tabletach/telefonach: poziomy suwak zamiast kolumny */
  .sector-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px 12px;
  }

  /* Na waskim ekranie karta ma zmienna wysokosc (rozna dlugosc tresci
     per branza), wiec zdjecie "za" karta ladowalo w innym miejscu przy
     kazdym slajdzie i przy dluzszych kartach wychodzilo pod dol ekranu.
     Zdjecie idzie wiec NAD karte - stala pozycja, zawsze widoczne od
     razu przy wejsciu na slajd, bez przewijania w dol. */
  .sector-item {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .sector-photo {
    order: -1;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .sector-card {
    display: block;
    grid-template-rows: none;
  }
}

@media (max-width: 560px) {
  .sector-item { flex-basis: 90%; }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .persona-card { flex-basis: 100%; }
}

/* ── FOOTER ────────────────────────────────────────── */

.site-footer {
  background: #0f3f61;
  color: rgba(255,255,255,.88);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 22px;
  margin-bottom: 14px;
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.btn-accent.footer-cta {
  background: #0aa8b5;
  color: #fff;
}

.btn-accent.footer-cta:hover {
  background: #099aa6;
}

.footer-cta {
  display: inline-block;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.88);
  transition: color .15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,.75);
  transition: color .15s;
}

.footer-bottom-links a:hover { color: #fff; }

/* ── RESPONSIVE — NAGLOWEK ─────────────────────────────
   Pomiar (Nunito Sans 700/800, 14px):
     logo          ~134 px  (ikona 30 + gap 8 + "TimeGrid" 20px/900)
     8 linkow menu ~575 px  (tekst ~400 + 8x18 padding + 7x2 gap)
     CTA           ~286 px  ("Zaloguj sie" 112 + gap 6 + "Wyprobuj..." 168)
   Siatka to 1fr auto 1fr, wiec kolumna logo rowna sie kolumnie CTA:
     potrzebne = 286 + 575 + 286 ~ 1147 px
   Dostepne = min(viewport, --shell 1180) - 2x24 (shell) - 24 (header-inner).
   Przy 1240 px dostepne 1108 px -> pelne menu miesci sie tylko na desktopie.
   Dlatego:
     <= 1120 px  -> hamburger,
     1121-1240   -> menu zwezone (~990 px przy 1049 px dostepnych). */

@media (min-width: 1121px) and (max-width: 1240px) {
  .logo { font-size: 18px; }
  .nav { gap: 0; }
  .nav a { font-size: 13px; padding: 6px 7px; }
  .header-ctas .btn-ghost { font-size: 13px; padding: 8px 12px; }
  .header-ctas .btn-primary { font-size: 13px; padding: 8px 14px; }
}

@media (max-width: 1120px) {
  .nav-sep { display: none; }

  /* nav wypada z przeplywu siatki -> zostaja logo + CTA */
  .header-inner { grid-template-columns: 1fr auto; }

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

  /* "Zaloguj sie" przenosi sie do panelu (jest tam jako .nav-mobile-ctas) */
  .header-ctas > .btn-ghost { display: none; }

  /* specyficznosc musi przebic bazowe ".header-inner nav { display:flex }" */
  .header-inner .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block;
    background: #fff;                 /* jasne tlo + ciemny tekst var(--ink) */
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
    padding: 10px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }

  .header-inner .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav .nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    color: var(--ink);
    white-space: normal;
  }

  .nav-mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-mobile-ctas .btn-ghost,
  .nav-mobile-ctas .btn-primary {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-mobile-ctas .btn-ghost {
    border: 1px solid var(--line);
  }
}

/* 601-1120 px: glowne CTA zostaje w pasku, wiec w panelu jest zbedne */
@media (min-width: 601px) and (max-width: 1120px) {
  .nav-mobile-ctas .btn-primary { display: none; }
}

/* <=600 px: w pasku zostaja tylko logo + hamburger, oba CTA sa w panelu */
@media (max-width: 600px) {
  .header-ctas > .btn-primary { display: none; }
  .logo { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-toggle-bars span { transition: none; }
}

/* ── RESPONSIVE ────────────────────────────────────── */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

/* ── PANEL PARTNERA — FORMULARZE ───────────────────── */

.partner-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  max-width: 520px;
  margin: 0 auto;
}

.partner-form .form-row {
  margin-bottom: 18px;
}

.partner-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 7px;
}

.partner-form input[type="text"],
.partner-form input[type="email"],
.partner-form input[type="password"] {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.partner-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,124,138,.14);
}

.partner-form button[type="submit"] {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

.partner-form-foot {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.partner-form-errors {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-ink);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.partner-form-errors ul {
  list-style: disc;
  padding-left: 18px;
}

.partner-form-status {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-ink);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
}

.partner-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.partner-panel-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.partner-panel-company {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.partner-referral-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.partner-referral-link {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: "Inter", monospace;
  color: var(--ink);
  background: var(--bg);
  margin-top: 10px;
  word-break: break-all;
}

.partner-referred-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.partner-referred-table th,
.partner-referred-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.partner-referred-table th {
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 800;
}

.partner-referred-table tr:last-child td {
  border-bottom: none;
}

.partner-panel-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 20px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
