/* ====== ZMIENNE I RESET ====== */
:root {
  --bg: #f6f7fb;
  --ink: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --ring: #e5e7eb;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --radius: 22px;
  --nav-h: 64px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

/* ====== GLOBAL ====== */
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(at 20% 10%, rgba(255, 255, 255, 0.88), transparent 50%),
    radial-gradient(at 80% 0%, rgba(255, 255, 255, 0.88), transparent 40%),
    radial-gradient(at 50% 100%, rgba(255, 255, 255, 0.88), transparent 45%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  background-attachment: fixed;
}
a {
  color: inherit;
}
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
section {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ====== NAWIGACJA ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(150%) blur(6px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--ring);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}
.menu a {
  font-size: 14px;
  color: #334155;
  text-decoration: none;
}
.menu a:hover {
  color: var(--accent);
}
.menu .cta-top {
  border: 1px solid var(--accent);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.25);
}
.menu .cta-top:hover {
  filter: brightness(1.03);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] {
  color: var(--accent);
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ring);
  }
  .menu a {
    padding: 14px 24px;
    border-top: 1px solid var(--ring);
  }
  .menu .cta-top {
    margin: 12px 24px;
  }
  .menu.open {
    display: flex;
  }
}

/* ====== HERO ====== */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 980px;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 2;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  border: 1px solid var(--ring);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.2;
  margin: 16px 0 8px;
  font-weight: 800;
}
.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #374151;
  margin: 0 0 8px;
}
.sub {
  font-size: 16px;
  color: #4b5563;
  margin: 0 0 28px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}
.cta:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ====== TRUSTED BY ====== */
.trust {
  padding-block: 24px;
  border-top: 1px solid var(--ring);
  border-bottom: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.6);
}
.trust-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.trust p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}
.logo {
  height: 70px;
  border: 1px dashed var(--ring);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 12px;
}

/* ====== SEKCJE ====== */
.section {
  padding-block: 64px;
}
.section h2 {
  font-size: 28px;
  margin: 0 0 16px;
}
.section p.lead {
  margin-bottom: 24px;
}

/* ====== SIATKI ====== */
.grid {
  display: grid;
  gap: 24px;
}
.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .grid-5,
  .grid-3,
  .grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ====== KARTY USŁUG ====== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--ring);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 320px;
}
.card h3 {
  margin: 6px 0 6px;
  font-size: 20px;
}
.card .muted {
  font-size: 14px;
  color: #4b5563;
}
.card a {
  margin-top: auto;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}
.card a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

/* ====== PODEJŚCIE / FILARY ====== */
.pillars {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 18px;
}
.pillar h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.pillar p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

/* ====== PROCES ====== */
.steps {
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}
.badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12),
    rgba(14, 165, 233, 0.12)
  );
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
}

/* ====== REALIZACJE ====== */
.work-card {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  overflow: hidden;
}
.work-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-body {
  padding: 16px;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-demo {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(14, 165, 233, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(14, 165, 233, 0.35);
}
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
}

/* ====== TECHNOLOGIE ====== */
.tech {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .tech {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .tech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tech .logo {
  height: 46px;
}

/* ====== FAQ ====== */
details {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 14px;
}
details + details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  /* color: #ink; */
}
details[open] summary {
  color: var(--accent);
}

/* ====== KONTAKT ====== */
.contact {
  padding-block: 72px;
  background: #ffffff;
  border-top: 1px solid var(--ring);
}
.contact h2 {
  font-size: 28px;
  margin: 0 0 18px;
}
form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
label {
  font-size: 14px;
  color: #374151;
}
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ring);
  border-radius: 14px;
  font-size: 16px;
  background: #fff;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr;
  }
}
.btn {
  justify-self: start;
  background: #111827;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.footnote {
  font-size: 12px;
  color: #6b7280;
}

/* ====== STOPKA ====== */
footer {
  border-top: 1px solid var(--ring);
  background: #fff;
  color: #334155;
}
.foot {
  display: grid;
  gap: 12px;
  padding-block: 26px;
  font-size: 14px;
}

/* ====== FLOATING CTA ====== */
.floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 20px rgba(14, 165, 233, 0.28);
  font-weight: 700;
  text-decoration: none;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.floating-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ====== INTERAKCJE ====== */
.card,
.cta,
.btn {
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}
.cta:hover {
  filter: brightness(1.04);
}
.btn:hover {
  opacity: 0.92;
}

.logo {
  border: 1px dashed var(--ring);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0px 8px; /* trochę luzu */
}

.logo img {
  max-height: 81px; /* wysokość dopasowana do boxa */
  max-width: 100%; /* nie wychodzi poza box */
  object-fit: contain;
}
