:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --ink: #0e1b3d;
  --ink-soft: #40507a;
  --primary: #0a4dbf;
  --primary-strong: #053289;
  --line: #d4ddef;
  --deep: #071736;
  --deep-2: #0a2047;
  --ok: #0f8f67;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(4, 20, 50, 0.12);
  --shadow-soft: 0 10px 26px rgba(6, 31, 82, 0.1);
  --shadow-strong: 0 22px 44px rgba(6, 31, 82, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 15% -10%, rgba(44, 122, 233, 0.08), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(37, 104, 209, 0.06), transparent 32%);
}

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

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

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}

.section-text {
  color: var(--ink-soft);
  margin: 0;
  max-width: 720px;
}

.top-utility {
  background: #0a2048;
  color: #d9e6ff;
  border-bottom: 1px solid rgba(117, 153, 219, 0.3);
}

.utility-wrap {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 600;
}

.utility-wrap a {
  color: #d9e6ff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 221, 239, 0.85);
  box-shadow: 0 8px 24px rgba(7, 28, 66, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--deep);
}

.brand-logo {
  height: 46px;
  width: auto;
  max-width: none;
  display: block;
}

.brand-sub {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #4d5e88;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18px;
}

.nav-links > a,
.nav-links > .nav-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  min-height: 64px;
  padding: 8px 10px;
  border-radius: 12px;
  text-wrap: balance;
  color: #172c57;
  transition: color 0.25s ease, background 0.2s ease;
}

.nav-links > a:not(.btn):hover,
.nav-links > .nav-item > a:hover,
.nav-links > a[aria-current="page"]:not(.btn),
.nav-links > .nav-item > a[aria-current="page"] {
  background: #edf3ff;
}

.nav-links > a:hover,
.nav-links > .nav-item > a:hover,
.nav-links > a[aria-current="page"],
.nav-links > .nav-item > a[aria-current="page"] {
  color: var(--primary);
}

.nav-item {
  position: relative;
  display: flex;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid #d7e3f8;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(7, 30, 72, 0.12);
  padding: 6px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 45;
}

.submenu a {
  display: block;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #17386f;
}

.submenu a:hover {
  background: #edf3ff;
  color: #0a4dbf;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-links .btn {
  min-height: 64px;
  padding-inline: 20px;
  white-space: nowrap;
}

.nav-links .btn-primary {
  box-shadow: 0 8px 18px rgba(10, 77, 191, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), #2a77ea, #4e93f5, #1b66d9);
  background-size: 200% 200%;
  box-shadow: 0 12px 28px rgba(10, 77, 191, 0.35);
  animation: gradientFlow 8s ease infinite;
}

.btn-secondary {
  border-color: #a6b8e2;
  color: #e7efff;
  background: transparent;
}

.btn-light {
  border-color: var(--line);
  color: var(--primary);
  background: #fff;
}

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #071736;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease, transform 7s ease;
  will-change: opacity, transform;
}

.hero-bg.is-visible {
  opacity: 1;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 10%, rgba(46, 130, 255, 0.42), transparent 35%),
    linear-gradient(115deg, rgba(7, 23, 54, 0.94) 18%, rgba(8, 37, 88, 0.81) 52%, rgba(9, 54, 130, 0.66) 100%);
}

.hero-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(145, 196, 255, 0.22) 48%, transparent 68%);
  mix-blend-mode: screen;
  transform: translateX(-28%);
  animation: heroSweep 11s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  border: 1px solid rgba(96, 168, 255, 0.35);
  right: -180px;
  top: -120px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  border: 1px solid rgba(96, 168, 255, 0.3);
  right: -90px;
  top: -50px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: min(80vh, 720px);
  display: grid;
  align-items: center;
  padding: 74px 0 86px;
}

.hero-text {
  max-width: 1240px;
  animation: fadeUp 0.75s ease both;
}

.hero-eyebrow {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  opacity: 0.83;
}

.hero h1 {
  margin: 10px 0 18px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.05rem, 5.2vw, 4rem);
  line-height: 1.06;
  min-height: calc(3 * 1.06em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: #d7e4ff;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  max-width: 720px;
}

.proof-item {
  border: 1px solid rgba(171, 201, 255, 0.28);
  background: rgba(8, 28, 66, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-soft);
}

.proof-item strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 5px;
  color: #d4e2ff;
  font-size: 0.83rem;
}

.hero-benchmark {
  margin-top: 14px;
  max-width: 520px;
  border: 1px solid rgba(171, 201, 255, 0.25);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: rgba(7, 26, 63, 0.5);
}

.benchmark-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #d4e2ff;
}

.benchmark-head strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  color: #ffffff;
}

.benchmark-track {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.benchmark-fill {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3f8dff, #83b9ff);
  background-size: 200% 100%;
  animation: stripeSlide 3.8s linear infinite;
}

.process-section {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.process-track {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  background: #fff;
  border: 1px solid #d8e4f8;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  box-shadow: 0 14px 30px rgba(8, 37, 88, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.featured-case-section {
  background: #f7fbff;
}

.featured-case {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  background: #fff;
  border: 1px solid #dbe6f8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-case img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.featured-case-body {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.featured-case-body h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
  color: #0e2a5b;
}

.featured-case-body p {
  margin: 0;
  color: #3c537f;
}

.featured-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.featured-kpis div {
  border: 1px solid #d6e4fb;
  background: #f5f9ff;
  border-radius: 12px;
  padding: 10px;
}

.featured-kpis strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: #0a3f98;
}

.featured-kpis span {
  font-size: 0.8rem;
  color: #4d6698;
}

.process-step span {
  display: inline-flex;
  min-width: 40px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: #1a4a98;
  background: #e9f1ff;
  border: 1px solid #c8d8f7;
}

.process-step h3 {
  margin: 10px 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.14rem;
}

.process-step p {
  margin: 0;
  color: #405683;
  font-size: 0.93rem;
}

.logo-row {
  background: #fff;
  border-top: 1px solid #edf1fa;
  border-bottom: 1px solid #edf1fa;
}

.logo-marquee {
  overflow: hidden;
  padding: 16px 0 28px;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: logoScrollRight 36s linear infinite;
  will-change: transform;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-title {
  margin: 0;
  padding-top: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5e6f95;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 140px));
  gap: 14px;
}

.logo-item {
  border: 1px solid rgba(221, 229, 242, 0.92);
  border-radius: 18px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 10px 24px rgba(6, 31, 82, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-item:hover {
  border-color: #c5d6f5;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 31, 82, 0.08);
}

.logo-item img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

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

.pillar-card {
  background: #fff;
  border: 1px solid #dbe4f6;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 30px rgba(12, 34, 80, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: #bfd1f2;
  box-shadow: var(--shadow-strong);
}

.pillar-card h3 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.32rem;
}

.pillar-card p {
  margin: 0;
  color: var(--ink-soft);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b3f9d, #1f73e8);
  display: grid;
  place-items: center;
  color: #fff;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  align-items: start;
}

.co-robimy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(520px, 1.35fr);
  gap: 44px;
  align-items: start;
}

.co-robimy-intro .section-title {
  max-width: 520px;
  margin-bottom: 12px;
}

.co-robimy-intro .section-text {
  max-width: 470px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.62;
}

.co-robimy-link {
  letter-spacing: 0.8px;
  font-size: 0.78rem;
  min-height: 40px;
  padding: 10px 22px;
  border-width: 1.5px;
  border-radius: 18px;
  border-color: #b8ccef;
  color: #315c9f;
}

.co-robimy-link:hover {
  transform: none;
  box-shadow: none;
}

.co-robimy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 30px 36px;
}

.co-robimy-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.co-robimy-icon {
  width: 40px;
  height: 40px;
  color: #4a7ee0;
  display: grid;
  place-items: center;
}

.co-robimy-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.co-robimy-item h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.99rem;
  letter-spacing: -0.15px;
  color: #1b3f84;
}

.co-robimy-item p {
  margin: 0;
  max-width: 340px;
  color: #5a6c95;
  font-size: 0.84rem;
  line-height: 1.56;
}

.bullet-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  background: #fff;
  border: 1px solid #dce5f6;
  border-radius: 12px;
  padding: 12px 14px;
  color: #19356a;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(6, 31, 82, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bullet-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.case-section {
  color: #e9f0ff;
  background:
    radial-gradient(circle at 90% 20%, rgba(51, 135, 255, 0.27), transparent 40%),
    linear-gradient(130deg, #071736 10%, #082459 100%);
  background-size: 130% 130%;
  animation: ambientShift 20s ease-in-out infinite;
}

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
}

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

.pillar-grid .reveal:nth-child(1),
.process-track .reveal:nth-child(1),
.case-grid .reveal:nth-child(1) {
  transition-delay: 0.04s;
}

.pillar-grid .reveal:nth-child(2),
.process-track .reveal:nth-child(2),
.case-grid .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.pillar-grid .reveal:nth-child(3),
.process-track .reveal:nth-child(3),
.case-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.process-track .reveal:nth-child(4) {
  transition-delay: 0.28s;
}

.case-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(5, 22, 54, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(3, 16, 42, 0.24);
  filter: saturate(1.05);
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-body {
  padding: 18px;
}

.case-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.9px;
  font-weight: 700;
}

.case-body h3 {
  margin: 8px 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.22rem;
}

.case-body p {
  margin: 0;
  color: var(--ink-soft);
}

.case-kpi {
  margin: 10px 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #09378f;
}

.case-result {
  margin-top: 14px;
  color: var(--primary-strong);
  font-weight: 700;
}

.case-metrics {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.case-metrics li {
  color: #2d4679;
  font-size: 0.88rem;
  font-weight: 600;
}

.stats {
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stat {
  border: 1px solid #dce5f5;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 24px rgba(7, 35, 91, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: #bfd2f5;
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3.7vw, 2.5rem);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--primary-strong);
}

.counter {
  display: inline-block;
  min-width: 2.3ch;
}

.cta-band {
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(53, 140, 255, 0.27), transparent 40%),
    linear-gradient(130deg, #06132f, #07285e);
  background-size: 140% 140%;
  animation: ambientShift 22s ease-in-out infinite reverse;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.cta-mail {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(53, 145, 255, 0.38), transparent 35%),
    linear-gradient(120deg, #071736 0%, #0a2e73 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-image, none);
  background-size: cover;
  background-position: center right;
  opacity: 0.14;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: -40% -15% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 188, 255, 0.28) 0%, rgba(126, 188, 255, 0) 62%);
  filter: blur(6px);
  animation: glowPulse 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.page-hero .hero-inner {
  position: relative;
  z-index: 1;
  min-height: 430px;
  padding-bottom: 62px;
}

body.page-oferta {
  --page-hero-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80");
}

body.page-diagnoza {
  --page-hero-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80");
}

body.page-o-nas {
  --page-hero-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
}

body.page-kontakt {
  --page-hero-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
}

.steps,
.deliverables,
.effect-grid {
  display: grid;
  gap: 16px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.deliverables {
  grid-template-columns: repeat(3, 1fr);
}

.effect-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step,
.deliverable,
.effect-item,
.simple-card {
  background: #fff;
  border: 1px solid #dae4f6;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(7, 35, 91, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}

.step:hover,
.deliverable:hover,
.effect-item:hover,
.simple-card:hover {
  transform: translateY(-4px);
  border-color: #bfd2f5;
  box-shadow: var(--shadow-soft);
}

.step h4,
.deliverable h4,
.simple-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

#optymalizacja {
  scroll-margin-top: 110px;
}

.timeline {
  position: relative;
  background: #fff;
  border: 1px solid #d7e3f5;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 14px 28px rgba(6, 31, 82, 0.07);
  counter-reset: etap;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(180deg, rgba(43, 108, 223, 0.35), rgba(43, 108, 223, 0.1));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin-left: 56px;
  padding: 16px 18px;
  border: 1px solid #dfe8f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(7, 35, 91, 0.05);
}

.timeline-item::before {
  counter-increment: etap;
  content: counter(etap);
  position: absolute;
  left: -46px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #1f64d8, #4e90f4);
  box-shadow: 0 0 0 6px rgba(31, 100, 216, 0.16);
}

.timeline-item + .timeline-item {
  margin-top: 12px;
}

.timeline-item h4 {
  margin: 0;
  color: #142f63;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 0;
  color: #445b87;
  line-height: 1.55;
}

.dot {
  display: none;
}

footer {
  background: #f7faff;
  border-top: 1px solid #dbe5f6;
}

.site-footer {
  color: #5b6f97;
  padding: 56px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, 180px)) minmax(220px, 1fr);
  gap: 24px;
}

.footer-brand img {
  width: 180px;
  height: auto;
}

.footer-brand p {
  margin: 10px 0 0;
  max-width: 280px;
  font-size: 0.9rem;
}

.footer-col h4,
.footer-contact h4 {
  margin: 0 0 10px;
  color: #152f63;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-weight: 600;
  color: #274a85;
}

.footer-contact p {
  margin: 0;
  color: #2f4b7d;
}

.footer-contact a {
  color: #214883;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #dbe5f6;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.footer-bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8d7f2;
  border-radius: 999px;
  color: #1e467f;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  border-color: #0a4dbf;
  color: #0a4dbf;
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: linear-gradient(120deg, #0a4dbf, #2a77ea);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(10, 77, 191, 0.35);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-35%);
    opacity: 0.18;
  }
  50% {
    transform: translateX(14%);
    opacity: 0.42;
  }
  100% {
    transform: translateX(38%);
    opacity: 0.16;
  }
}

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

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes stripeSlide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes ambientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes glowPulse {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(-18px, 10px, 0) scale(1.07);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

  .nav-wrap {
    gap: 16px;
  }

  .nav-links {
    font-size: 0.79rem;
    gap: 6px;
  }

  .nav-links a {
    min-height: 60px;
    padding: 8px;
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
    
  .logo-item img {
    max-height: 24px;
  }
  
  .logo-item {
    min-height: 68px;
    padding: 10px 12px;
  }
  
  .pillar-grid,
  .case-grid,
  .stats-grid,
  .process-track,
  .steps,
  .deliverables,
  .effect-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .co-robimy-layout,
  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .co-robimy-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px 22px;
  }

  .featured-case {
    grid-template-columns: 1fr;
  }

  .featured-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .top-utility {
    display: none;
  }

  .brand-logo {
    height: 36px;
  }

  .section {
    padding: 36px 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    right: 4%;
    left: 4%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .nav-links > a,
  .nav-links > .nav-item > a,
  .nav-links .btn {
    padding: 12px 14px;
    border-top: 1px solid #edf2fd;
    border-radius: 0;
    justify-content: flex-start;
  }

  .submenu {
    position: static;
    min-width: 100%;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .submenu a {
    padding: 10px 20px;
    border-top: 1px solid #edf2fd;
    border-radius: 0;
  }

  .nav-links.open {
    max-height: 560px;
  }

  .hero-inner {
    min-height: auto;
    padding: 30px 0 36px;
  }

  .hero::before,
  .hero::after,
  .hero-sheen {
    display: none;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 70% 10%, rgba(46, 130, 255, 0.28), transparent 30%),
      linear-gradient(115deg, rgba(7, 23, 54, 0.96) 16%, rgba(8, 37, 88, 0.88) 56%, rgba(9, 54, 130, 0.72) 100%);
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    margin: 6px 0 12px;
  }

  .hero p {
    font-size: 0.92rem;
  }

  .hero-proof {
    margin-top: 16px;
    gap: 10px;
  }

  .proof-item strong {
    font-size: 1.05rem;
  }

  .proof-item {
    padding: 9px 11px;
  }

  .hero-benchmark {
    display: none;
  }

  .benchmark-head {
    font-size: 0.76rem;
  }

  .benchmark-head strong {
    font-size: 0.98rem;
  }

  .page-hero::before {
    opacity: 0.12;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-right {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-right > span {
    display: none;
  }

  .floating-cta {
    right: 14px;
    bottom: 14px;
    padding: 11px 15px;
    font-size: 0.86rem;
  }

  .pillar-grid,
  .case-grid,
  .stats-grid,
  .process-track,
  .steps,
  .deliverables,
  .effect-grid {
    grid-template-columns: 1fr;
  }

  .co-robimy-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .co-robimy-link {
    width: 100%;
  }

  .co-robimy-item {
    grid-template-columns: 34px 1fr;
    gap: 9px;
  }

  .co-robimy-icon {
    width: 34px;
    height: 34px;
  }

  .co-robimy-icon svg {
    width: 24px;
    height: 24px;
  }

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

  .logo-marquee {
    padding: 6px 0 14px;
  }

  .logo-track {
    gap: 12px;
    animation-duration: 16s;
  }

  .logo-grid {
    gap: 8px;
  }

  .logo-item {
    min-height: 60px;
    padding: 10px 12px;
  }

  .logo-item img {
    max-height: 16px;
  }

  .featured-case {
    border-radius: 14px;
  }

  .featured-case img {
    min-height: 150px;
  }

  .case-section {
    display: none;
  }

  .featured-kpis {
    grid-template-columns: 1fr;
  }

  .featured-case-body {
    padding: 14px;
    gap: 10px;
  }

  .featured-case-body h3 {
    font-size: 1.12rem;
  }

  .featured-case-body p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .featured-kpis div {
    padding: 8px 9px;
  }

  .featured-kpis strong {
    font-size: 1.05rem;
  }

  .featured-kpis span {
    font-size: 0.74rem;
  }

  .pillar-card,
  .process-step,
  .case-card,
  .stat,
  .simple-card,
  .featured-case-body,
  .step,
  .deliverable,
  .effect-item {
    padding: 13px;
  }

  .pillar-card h3,
  .simple-card h3,
  .case-body h3,
  .process-step h3,
  .step h4,
  .deliverable h4 {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .pillar-card p,
  .case-body p,
  .process-step p,
  .step p,
  .deliverable li,
  .effect-item {
    font-size: 0.92rem;
  }

  .timeline {
    padding: 14px 12px;
  }

  .timeline::before {
    left: 26px;
    top: 22px;
    bottom: 22px;
  }

  .timeline-item {
    margin-left: 36px;
    padding: 12px 12px;
  }

  .timeline-item::before {
    left: -30px;
    top: 14px;
    width: 22px;
    height: 22px;
    font-size: 0.74rem;
    box-shadow: 0 0 0 4px rgba(31, 100, 216, 0.16);
  }

  .timeline-item h4 {
    font-size: 0.98rem;
  }

  .bullet-list {
    gap: 9px;
    margin-top: 14px;
  }

  .bullet-list li {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .process-track,
  .steps,
  .deliverables,
  .effect-grid,
  .pillar-grid,
  .case-grid,
  .stats-grid {
    gap: 12px;
  }

  .case-card img {
    aspect-ratio: 16 / 11;
  }

  .case-body {
    padding: 14px;
  }

  .case-kpi {
    font-size: 1.6rem;
    margin: 8px 0 8px;
  }

  .case-metrics {
    gap: 5px;
    margin-top: 10px;
  }

  .case-result {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .stat {
    padding: 14px;
  }

  .stat p {
    margin: 6px 0 0;
    font-size: 0.9rem;
  }

  .section-text {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .page-hero .hero-inner,
  .hero-inner {
    padding-bottom: 34px;
  }

  .featured-case-section,
  .case-section,
  .stats,
  .cta-band {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .case-card img {
    aspect-ratio: 16 / 10;
  }

  .case-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .section-title {
    font-size: clamp(1.42rem, 6.6vw, 2rem);
    margin-bottom: 10px;
  }
}

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

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-inner {
    padding: 24px 0 28px;
  }

  .hero h1 {
    font-size: clamp(1.48rem, 6.2vw, 1.9rem);
    line-height: 1.02;
  }

  .hero p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-cta {
    gap: 10px;
    margin-top: 14px;
  }

  .hero-cta .btn {
    padding: 11px 14px;
    font-size: 0.84rem;
  }

  .hero-cta .btn-secondary {
    display: none;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .proof-item {
    padding: 8px 9px;
  }

  .proof-item strong {
    font-size: 0.98rem;
  }

  .proof-item span {
    margin-top: 4px;
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .logo-title {
    padding-top: 14px;
    font-size: 0.72rem;
  }

  .logo-grid {
    grid-template-columns: repeat(4, minmax(78px, 1fr));
    gap: 10px;
  }

  .logo-item {
    min-height: 16px;
    font-size: 0.68rem;
  }

  .featured-case img {
    min-height: 138px;
  }

  .featured-case-body {
    padding: 12px;
    gap: 8px;
  }

  .featured-case-body h3 {
    font-size: 1.05rem;
  }

  .featured-case-body p,
  .section-text {
    font-size: 0.88rem;
  }

  .featured-kpis {
    gap: 8px;
  }

  .featured-kpis div {
    padding: 7px 8px;
  }

  .featured-kpis strong {
    font-size: 0.98rem;
  }

  .featured-kpis span {
    font-size: 0.7rem;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: clamp(1.36rem, 6vw, 1.8rem);
  }

  .pillar-card,
  .process-step,
  .case-card,
  .stat,
  .simple-card,
  .featured-case-body,
  .step,
  .deliverable,
  .effect-item {
    padding: 12px;
  }
}
