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

:root {
  --page-bg: #030100;
  --navy-950: #070f1c;
  --navy-900: #0b1830;
  --navy-800: #132645;
  --ink-900: #101a2b;
  --ink-700: #2a3a50;
  --ink-600: #42546c;
  --snow: #f7f8fb;
  --paper: #ffffff;
  --accent-orange: #ec772f;
  --accent-red: #df5827;
  --accent-navy: #6e171f;
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --page-gutter: clamp(1rem, 3vw, 2.25rem);
  --content-width: 1240px;
  --section-width: 1240px;
  --nav-height: clamp(4.6rem, 8.2vw, 5.8rem);
  --space-l: clamp(1rem, 1.8vw, 1.5rem);
  --space-xl: clamp(1.8rem, 4vw, 3.4rem);
  --hero-top-offset: clamp(5.5rem, 11vh, 8rem);
  --radius-s: 0.75rem;
  --radius-m: 1rem;
  --radius-l: 1.25rem;
  --text-xs: clamp(0.78rem, 0.82vw, 0.88rem);
  --text-sm: clamp(0.9rem, 1vw, 0.98rem);
  --text-md: clamp(1rem, 1.15vw, 1.1rem);
  --text-lg: clamp(1.18rem, 1.6vw, 1.42rem);
  --text-xl: clamp(1.8rem, 4.6vw, 3.3rem);
  --scroll-offset: calc(var(--nav-height) + 10px);
  --dotmatrix-ink: rgba(18, 35, 58, 0.12);
  --dotmatrix-accent: rgba(223, 88, 39, 0.2);
  --night-980: #060c18;
  --night-930: #0b172c;
  --night-880: #12233f;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

section[id] {
  scroll-margin-top: var(--scroll-offset);
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--page-bg);
  color: #eaf1ff;
  overflow-x: hidden;
}

body.is-splash-active {
  overflow: hidden;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(17, 29, 47, 0.26) 0%, rgba(3, 1, 0, 0.98) 58%),
    #030100;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.34s ease, visibility 0.34s ease;
}

.splash-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  width: clamp(5.8rem, 11vw, 8rem);
  aspect-ratio: 1;
}

.splash-asterisk {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.splash-dot {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2;
  transform-origin: center;
  transform-box: fill-box;
  transition: fill 0.08s linear, stroke 0.08s linear, filter 0.08s linear, transform 0.08s linear;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(170, 196, 228, 0.08) 0.75px, transparent 0.8px),
    radial-gradient(circle, rgba(170, 196, 228, 0.04) 0.75px, transparent 0.8px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
  opacity: 0.18;
}

body::after {
  content: none;
}

main {
  margin-top: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-shell {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: 1px solid transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "left center right";
  align-items: center;
  overflow: hidden;
  gap: var(--space-l);
  padding: clamp(0.9rem, 1.4vw, 1.15rem) var(--page-gutter);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, padding 0.28s ease;
}

.site-nav.is-compact .nav-shell {
  padding: clamp(0.9rem, 1.4vw, 1.15rem) var(--page-gutter);
}

.main-nav {
  grid-area: left;
  display: flex;
  align-items: center;
  justify-self: start;
  align-self: center;
  min-width: 0;
}

.brand {
  grid-area: center;
  justify-self: center;
  align-self: center;
  position: relative;
  display: inline-flex;
  width: clamp(8.6rem, 12.4vw, 11rem);
  aspect-ratio: 2915 / 656;
}

.btn-nav--desktop {
  grid-area: right;
  justify-self: end;
  align-self: center;
  white-space: nowrap;
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.brand-logo--dark {
  opacity: 0;
}

.brand-logo-animated {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-toggle span {
  display: block;
  width: 0.95rem;
  height: 2px;
  background: rgba(245, 249, 255, 0.9);
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.24s ease, background 0.24s ease;
}

.site-nav.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.site-nav.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.is-active {
  color: #ffffff;
}

.btn-nav {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f4f8ff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-s);
  padding: clamp(0.62rem, 1.1vw, 0.78rem) clamp(1.1rem, 1.6vw, 1.55rem);
  backdrop-filter: blur(5px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-nav:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.site-nav.is-scrolled .nav-shell {
  background: rgba(8, 3, 3, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(132%);
  backdrop-filter: blur(12px) saturate(132%);
}

.site-nav.is-scrolled .nav-shell::before {
  content: none;
}

.site-nav.is-contrast .nav-shell {
  background: rgba(246, 249, 255, 0.62);
  border-color: rgba(14, 24, 40, 0.12);
  box-shadow: 0 16px 38px rgba(6, 15, 31, 0.14);
}

.site-nav.is-contrast .brand-logo--light {
  opacity: 0;
}

.site-nav.is-contrast .brand-logo--dark {
  opacity: 1;
}

.site-nav.is-contrast .nav-links a {
  color: rgba(12, 26, 43, 0.72);
}

.site-nav.is-contrast .nav-links a:hover {
  color: rgba(12, 26, 43, 1);
}

.site-nav.is-contrast .nav-links a.is-active {
  color: rgba(12, 26, 43, 1);
}

.site-nav.is-contrast .btn-nav {
  color: #f8fafe;
  background: rgba(12, 26, 43, 0.88);
  border-color: rgba(12, 26, 43, 0.08);
}

.btn-nav--mobile {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: #030406;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  transform: translateY(var(--hero-bg-shift, 0px)) scale(1.015);
  transition: transform 0.1s linear;
  will-change: transform;
  background-image:
    linear-gradient(180deg, rgba(3, 1, 0, 0.32) 0%, rgba(3, 1, 0, 0.5) 100%),
    url("/assets/hero.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  content: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 1, 0, 0.22) 0%, rgba(3, 1, 0, 0.42) 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  animation: none;
  pointer-events: none;
}

.hero-inner {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.4rem);
  padding-top: var(--hero-top-offset);
  padding-bottom: clamp(5rem, 12vh, 8.5rem);
  padding-inline: 0;
}

.hero-copy {
  max-width: 72ch;
  width: min(72ch, 100%);
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(235, 241, 252, 0.82);
  margin-bottom: clamp(0.65rem, 1.2vh, 0.9rem);
}

.hero-title {
  font-family: "Merriweather", serif;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-inline: auto;
  color: #f9fbff;
  font-weight: 700;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-tagline {
  font-size: clamp(0.96rem, 1.14vw, 1.1rem);
  line-height: 1.72;
  max-width: 48ch;
  margin-inline: auto;
  color: rgba(230, 237, 251, 0.9);
  font-weight: 400;
  margin-top: clamp(0.7rem, 1.6vh, 1rem);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.hero-strip {
  margin-top: clamp(1rem, 2.1vh, 1.45rem);
  padding-top: clamp(0.8rem, 1.6vh, 1.1rem);
  border-top: 1px solid rgba(225, 236, 252, 0.2);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1.2vw, 0.8rem);
}

.hero-strip p {
  color: rgba(227, 236, 251, 0.85);
  font-size: clamp(0.76rem, 0.88vw, 0.86rem);
  line-height: 1.45;
  display: grid;
  gap: 0.2rem;
}

.hero-strip span {
  color: rgba(255, 177, 134, 0.92);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.6vw, 1rem);
  padding-top: clamp(0.9rem, 1.6vh, 1.2rem);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.btn-primary,
.btn-ghost {
  text-decoration: none;
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: clamp(0.72rem, 1.2vw, 0.92rem) clamp(1.2rem, 2vw, 1.9rem);
  transition: transform 0.24s ease, background 0.34s ease, border-color 0.34s ease, color 0.34s ease, box-shadow 0.34s ease, backdrop-filter 0.34s ease;
}

.btn-outline {
  text-decoration: none;
  border-radius: var(--radius-s);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: clamp(0.72rem, 1.2vw, 0.92rem) clamp(1.2rem, 2vw, 1.9rem);
  color: #eaf1ff;
  border: 1px solid rgba(213, 228, 252, 0.28);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 171, 120, 0.62);
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.96);
  color: #101a2b;
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #f3f8ff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.44);
  -webkit-backdrop-filter: blur(10px) saturate(138%);
  backdrop-filter: blur(10px) saturate(138%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  color: #e7eefb;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(5px);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
}

.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: clamp(190px, 34vh, 320px);
  background: linear-gradient(
    to top,
    rgba(3, 1, 0, 0.99) 0%,
    rgba(3, 1, 0, 0.92) 22%,
    rgba(3, 1, 0, 0.66) 42%,
    rgba(3, 1, 0, 0.28) 63%,
    rgba(3, 1, 0, 0.06) 82%,
    rgba(3, 1, 0, 0) 100%
  );
  pointer-events: none;
}

.section-intro {
  position: relative;
  z-index: 1;
  background: var(--page-bg);
  padding: clamp(5rem, 10vh, 8rem) clamp(1rem, 6vw, 4rem) clamp(4rem, 7vh, 6rem);
}

.section-intro::before {
  content: none;
}

.section-logos {
  position: relative;
  z-index: 1;
  background: var(--page-bg);
  padding: clamp(0.85rem, 2vh, 1.2rem) clamp(1rem, 6vw, 4rem) clamp(1.05rem, 2.4vh, 1.55rem);
}

.section-logos::before {
  content: none;
}

.logos-wrap {
  text-align: center;
}

.logos-note {
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(216, 228, 248, 0.62);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logos-note::after {
  content: "";
  width: 2.2rem;
  height: 0.58rem;
  background-image: radial-gradient(circle, rgba(219, 231, 250, 0.28) 0.7px, transparent 0.8px);
  background-size: 6px 6px;
  opacity: 0.6;
}

.logos-marquee {
  width: min(1120px, 94vw);
  margin: clamp(0.6rem, 1.4vh, 0.95rem) auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logosMarquee 28s linear infinite;
}

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

.logos-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(0.2rem, 1vw, 0.8rem);
}

.logos-item {
  width: clamp(124px, 13vw, 168px);
  height: clamp(42px, 5vw, 58px);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logos-item img {
  width: 74%;
  height: 64%;
  object-fit: contain;
  filter: grayscale(1) saturate(0) brightness(0.9) contrast(1.05);
  opacity: 0.62;
}

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(209, 223, 247, 0.72);
  margin-bottom: clamp(0.6rem, 1.2vh, 0.85rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(232, 77, 61, 0.84) 0 1.2px, transparent 1.25px),
    radial-gradient(circle at center, rgba(255, 122, 47, 0.42) 0 2.6px, transparent 2.7px);
}

.section-lead {
  margin-top: clamp(0.8rem, 1.2vh, 1rem);
}

.section-services {
  position: relative;
  background: var(--page-bg);
  padding: clamp(0.8rem, 1.8vh, 1.4rem) clamp(0.75rem, 3.4vw, 2.6rem) clamp(3.8rem, 8vh, 6rem);
}

.section-services::before {
  content: none;
}

.section-services::after {
  content: none;
}

.services-wrap {
  width: var(--section-width);
  text-align: left;
}

.services-rails {
  margin-top: clamp(1.2rem, 2.4vh, 1.8rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
}

.service-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(0.65rem, 1.4vh, 0.95rem);
  text-decoration: none;
  border: 1px solid rgba(205, 221, 248, 0.12);
  border-radius: 1.2rem;
  background: rgba(3, 1, 0, 0.96);
  padding: clamp(1rem, 1.8vh, 1.25rem);
  min-height: clamp(14rem, 30vh, 20rem);
  aspect-ratio: 3 / 4;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s ease, border-color 0.42s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-rail--with-image {
  background: rgba(3, 1, 0, 0.96);
}

.service-rail--img-01 {
  --service-image: url("/assets/img/services/stronyint.jpg");
}

.service-rail--img-02 {
  --service-image: url("/assets/img/services/instalacjesiec.jpg");
}

.service-rail--img-03 {
  --service-image: url("/assets/img/services/sprzetav.jpg");
}

.service-rail--img-04 {
  --service-image: url("/assets/img/services/konsult.jpg");
}

.service-rail--img-05 {
  --service-image: url("/assets/img/services/opieka.jpg");
}

.service-rail--img-06 {
  --service-image: url("/assets/img/services/instal.jpg");
}

.service-rail--img-07 {
  --service-image: url("/assets/img/services/instalacjeelek.jpg");
}

.service-rail--img-08 {
  --service-image: url("/assets/img/services/pomiary.jpg");
}

.service-rail:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 26px rgba(255, 255, 255, 0.2),
    0 0 44px rgba(255, 255, 255, 0.14);
}

.service-rail--with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--service-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(1) saturate(0.9) brightness(0.84);
  transform: scale(1.01);
  transition: filter 0.34s ease, transform 0.34s ease;
  pointer-events: none;
}

.service-rail--with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(3, 1, 0, 0.92) 0%, rgba(3, 1, 0, 0.56) 42%, rgba(3, 1, 0, 0.8) 100%);
  pointer-events: none;
}

.service-rail--with-image:hover::before {
  filter: grayscale(0) saturate(1.02) brightness(0.92);
  transform: scale(1.03);
}

.service-rail--empty {
  pointer-events: none;
}

.service-rail--empty::before {
  opacity: 0;
}

.service-rail--empty::after {
  display: none;
}

.service-rail-index {
  display: none;
}

.service-rail h3 {
  font-size: clamp(1.2rem, 1.65vw, 1.5rem);
  letter-spacing: -0.01em;
  color: #edf3ff;
  margin: 0;
  line-height: 1.2;
  max-width: 16ch;
  text-align: left;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.service-rail:hover h3 {
  transform: translateY(-1px);
  color: #ffffff;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.service-rail-arrow {
  font-size: clamp(1.18rem, 1.45vw, 1.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(238, 244, 255, 0.72);
  margin-top: auto;
  position: relative;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
}

.service-rail:hover .service-rail-arrow {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.44), 0 0 24px rgba(255, 255, 255, 0.24);
  transform: translateX(6px);
}

.section-cases {
  position: relative;
  background: var(--page-bg);
  padding: clamp(1rem, 2vh, 1.6rem) clamp(1rem, 6vw, 4rem) clamp(5rem, 9vh, 7rem);
}

.section-cases::before {
  content: none;
}

.section-cases::after {
  content: none;
}

.section-proof {
  background: var(--page-bg);
  padding: clamp(3.4rem, 7vh, 5.4rem) clamp(1rem, 6vw, 4rem);
  position: relative;
}

.section-proof::after {
  content: none;
}

.proof-wrap {
  text-align: left;
}

.proof-grid {
  margin-top: clamp(1.2rem, 2.4vh, 1.8rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.2vw, 1rem);
}

.proof-card {
  border: 1px solid rgba(208, 222, 247, 0.14);
  border-radius: var(--radius-m);
  background: rgba(3, 1, 0, 0.96);
  padding: clamp(0.95rem, 1.6vw, 1.25rem);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease;
}

.proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(255, 255, 255, 0.12);
}

.proof-value {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  color: #edf3ff;
}

.proof-label {
  margin-top: 0.45rem;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(214, 226, 246, 0.78);
}

.section-process {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(3, 1, 0, 0.98) 0%, rgba(3, 1, 0, 0.86) 28%, rgba(3, 1, 0, 0) 58%),
    linear-gradient(to top, rgba(3, 1, 0, 0.98) 0%, rgba(3, 1, 0, 0.86) 28%, rgba(3, 1, 0, 0) 58%),
    linear-gradient(180deg, rgba(3, 1, 0, 0.5) 0%, rgba(3, 1, 0, 0.5) 100%),
    url("/assets/przebieg.jpg");
  background-size: 100% 54%, 100% 54%, 100% 100%, cover;
  background-position: top center, bottom center, center center, center center;
  background-repeat: no-repeat;
  padding: clamp(0.9rem, 2vh, 1.5rem) clamp(1rem, 6vw, 4rem) clamp(4rem, 7.5vh, 5.8rem);
  overflow: hidden;
}

.section-process::before {
  content: none;
}

.section-process::after {
  content: none;
}

.process-wrap {
  text-align: left;
  position: relative;
  z-index: 1;
}

.section-process .section-label {
  color: rgba(209, 223, 247, 0.7);
}

.section-process .section-label::before {
  background: radial-gradient(circle at center, rgba(203, 220, 247, 0.32) 0 0.9px, transparent 1px),
    radial-gradient(circle at center, rgba(232, 77, 61, 0.2) 0 2.3px, transparent 2.4px);
}

.section-process h2 {
  color: #edf3ff;
}

.process-grid {
  position: relative;
  margin-top: clamp(1.5rem, 2.8vh, 2.1rem);
  padding-top: clamp(1.6rem, 2.8vh, 2.2rem);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.1rem);
  align-items: stretch;
}

.process-grid::before {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(0.78rem, 1.2vh, 0.92rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 214, 244, 0.08) 0%, rgba(223, 88, 39, 0.42) 50%, rgba(196, 214, 244, 0.08) 100%);
}

.process-grid::after {
  content: none;
}

.process-card {
  position: relative;
  border: 1px solid rgba(206, 222, 248, 0.14);
  border-radius: 1.15rem;
  background: rgba(3, 1, 0, 0.96);
  padding: clamp(1rem, 1.6vh, 1.2rem) clamp(1rem, 1.2vw, 1.2rem) clamp(1.1rem, 1.8vh, 1.35rem);
  min-height: clamp(11.5rem, 18vh, 14.5rem);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease, background 0.42s ease;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "body";
  column-gap: 0;
  row-gap: 0.42rem;
  align-items: start;
  text-align: left;
}

.process-card::after {
  content: none;
  position: absolute;
  left: 50%;
  top: clamp(-0.98rem, -1.8vh, -0.7rem);
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(232, 77, 61, 0.95) 0 1.2px, rgba(232, 77, 61, 0.32) 1.2px 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.process-card:nth-child(even) {
  margin-top: 0;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(9, 4, 3, 0.98);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(255, 255, 255, 0.12);
}

.process-index {
  display: none;
}

.process-card h3 {
  grid-area: title;
  align-self: start;
  font-size: clamp(1.18rem, 1.45vw, 1.42rem);
  letter-spacing: -0.01em;
  color: #edf3ff;
  margin: 0;
}

.process-card p {
  grid-area: body;
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  line-height: 1.72;
  color: rgba(214, 226, 246, 0.78);
  margin-top: 0.2rem;
}

.cases-grid {
  margin-top: clamp(1.6rem, 3vh, 2.2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
}

.case-card {
  border: 1px solid rgba(206, 222, 248, 0.14);
  border-radius: var(--radius-m);
  background: rgba(14, 29, 48, 0.74);
  padding: clamp(1rem, 1.8vw, 1.4rem);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 77, 61, 0.3);
  box-shadow: 0 18px 32px rgba(10, 22, 40, 0.1);
}

.case-card h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #edf3ff;
  margin-bottom: 0.5rem;
}

.case-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(214, 226, 246, 0.78);
}

.section-contact {
  background-image:
    linear-gradient(180deg, rgba(3, 1, 0, 0.62) 0%, rgba(3, 1, 0, 0.86) 100%),
    url("/assets/img/footer.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: clamp(6.5rem, 15vh, 10.8rem) clamp(0.8rem, 4vw, 2.8rem) clamp(8rem, 17vh, 12.8rem);
  min-height: clamp(36rem, 80vh, 56rem);
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(120px, 20vh, 220px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 1, 0, 0.98) 0%, rgba(3, 1, 0, 0.72) 46%, rgba(3, 1, 0, 0) 100%);
}

.section-contact::after {
  content: none;
}

.section-services > .content-wrap,
.section-cases > .content-wrap,
.section-proof > .content-wrap,
.section-process > .content-wrap,
.section-contact > .content-wrap {
  position: relative;
  z-index: 1;
}

.contact-simple-wrap {
  width: var(--section-width);
  text-align: center;
}

.contact-simple-wrap h2 {
  font-size: clamp(2.25rem, 5.6vw, 3.9rem);
}

.contact-simple-wrap .section-lead {
  max-width: 48ch;
  font-size: clamp(1.06rem, 1.34vw, 1.28rem);
  margin-inline: auto;
}

.contact-merged {
  margin-top: clamp(1.8rem, 3.2vh, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.72rem, 1.8vh, 1.2rem);
}

.contact-merged-logo {
  width: clamp(11.8rem, 18vw, 15.8rem);
  height: auto;
  opacity: 0.9;
  margin-bottom: clamp(0.55rem, 1.2vh, 1rem);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.contact-merged-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.36)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.2));
  animation: footerWhiteGlowPulse 1.6s ease-in-out infinite alternate;
}

.contact-merged-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: clamp(1.38rem, 2.25vw, 1.96rem);
  line-height: 1.2;
  font-weight: 600;
  color: #edf3ff;
  padding: clamp(0.78rem, 1.5vh, 1.05rem) clamp(1rem, 1.9vw, 1.35rem);
  border-bottom: 0;
  overflow: hidden;
  border-radius: 0.82rem;
  transition: transform 0.26s ease, color 0.26s ease, text-shadow 0.26s ease;
}

.contact-merged-link::before {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 170, 108, 0) 0%, rgba(255, 170, 108, 0.95) 45%, rgba(232, 77, 61, 0.95) 62%, rgba(232, 77, 61, 0) 100%);
  transform: translateX(-105%);
  transition: transform 0.34s ease;
  pointer-events: none;
}

.contact-merged-link::after {
  content: none;
}

.contact-merged-link:hover {
  transform: translateY(-2px);
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.52),
    0 0 24px rgba(255, 255, 255, 0.32);
  animation: footerWhiteGlowPulse 1.6s ease-in-out infinite alternate;
}

.contact-merged-link:hover::before {
  transform: translateX(0%);
}

.contact-merged-link:hover::after {
  color: rgba(255, 200, 162, 0.94);
  transform: translateX(3px);
}

.contact-merged-copy {
  margin-top: clamp(1.8rem, 3.4vh, 2.8rem);
  font-size: clamp(1rem, 1.1vw, 1.14rem);
  color: rgba(206, 222, 248, 0.62);
}

@media (min-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.66rem, 1.1vw, 0.9rem);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .services-rails {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 0.62rem;
    padding-top: 0;
  }

  .process-grid::before {
    content: none;
  }

  .process-card {
    min-height: 0;
    padding: 0.95rem 0.88rem 1rem;
    column-gap: 0.6rem;
  }

  .process-card:nth-child(even) {
    margin-top: 0;
  }

  .process-card::after {
    content: none;
  }

  .service-rail {
    min-height: 12.5rem;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 640px) {
  .services-rails {
    grid-template-columns: 1fr;
  }
}

.content-wrap {
  width: min(var(--content-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding-inline: 0;
  text-align: center;
}

.section-intro h2 {
  font-size: var(--text-xl);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: clamp(0.8rem, 1.8vh, 1.2rem);
  color: #edf3ff;
}

.section-intro p {
  font-size: var(--text-md);
  line-height: 1.8;
  color: rgba(214, 226, 246, 0.78);
}

.section-services h2,
.section-process h2,
.section-cases h2,
.section-contact h2,
.section-proof h2,
.section-faq h2,
.section-final-cta h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  letter-spacing: -0.015em;
  font-weight: 800;
  color: #edf3ff;
}

.section-lead {
  font-size: var(--text-md);
  color: rgba(214, 226, 246, 0.78);
  line-height: 1.66;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.reveal-stagger > .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-stagger > .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-stagger > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-stagger > .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.process-grid .process-card.reveal.is-visible {
  animation: none;
}

@keyframes beamA {
  from {
    opacity: 0.36;
    transform: translateX(-59%) rotate(-9deg) scaleY(0.99);
  }
  to {
    opacity: 0.52;
    transform: translateX(-57.5%) rotate(-7.5deg) scaleY(1.03);
  }
}

@keyframes beamB {
  from {
    opacity: 0.32;
    transform: translateX(-41%) rotate(8deg) scaleY(0.985);
  }
  to {
    opacity: 0.48;
    transform: translateX(-43%) rotate(6deg) scaleY(1.02);
  }
}

@keyframes grainShift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(22%, 18%, 0);
  }
}

@keyframes matrixDrift {
  from {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.03) translate3d(-0.6%, -0.4%, 0);
  }
}

@keyframes matrixTwinkle {
  0% {
    opacity: 0.1;
    filter: brightness(0.9) saturate(0.92);
  }
  34% {
    opacity: 0.2;
    filter: brightness(1.05) saturate(1.08);
  }
  68% {
    opacity: 0.14;
    filter: brightness(0.98) saturate(1);
  }
  100% {
    opacity: 0.18;
    filter: brightness(1.02) saturate(1.06);
  }
}

@keyframes matrixScanLine {
  0% {
    background-position: 0 -24%, 0 0;
    opacity: 0.6;
  }
  45% {
    opacity: 0.95;
  }
  100% {
    background-position: 0 124%, 0 0;
    opacity: 0.6;
  }
}

@keyframes skyDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0.8%, -0.5%, 0) scale(1.012);
  }
}

@keyframes starTwinkleA {
  0% {
    opacity: 0.24;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.34;
    transform: translate3d(0.25%, -0.25%, 0);
  }
  100% {
    opacity: 0.26;
    transform: translate3d(-0.18%, 0.18%, 0);
  }
}

@keyframes starTwinkleB {
  0% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.3;
    transform: translate3d(-0.2%, 0.2%, 0);
  }
  100% {
    opacity: 0.2;
    transform: translate3d(0.2%, -0.16%, 0);
  }
}

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

@keyframes heroFloatA {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes heroFloatB {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes roadmapRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes ambientDrift {
  from {
    transform: translate3d(-1.4%, -0.8%, 0) scale(1);
  }
  to {
    transform: translate3d(1.2%, 0.9%, 0) scale(1.02);
  }
}

@keyframes orbPulse {
  from {
    opacity: 0.64;
    transform: translateX(-50%) scale(0.985);
  }
  to {
    opacity: 0.76;
    transform: translateX(-50%) scale(1.018);
  }
}

@keyframes softWhiteGlowPulse {
  from {
    box-shadow:
      0 18px 32px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 18px rgba(255, 255, 255, 0.14),
      0 0 30px rgba(255, 255, 255, 0.08);
  }
  to {
    box-shadow:
      0 22px 38px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 30px rgba(255, 255, 255, 0.24),
      0 0 48px rgba(255, 255, 255, 0.14);
  }
}

@keyframes footerWhiteGlowPulse {
  from {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.4),
      0 0 18px rgba(255, 255, 255, 0.24);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.24));
  }
  to {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.56),
      0 0 28px rgba(255, 255, 255, 0.34);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.34));
  }
}

@media (max-width: 760px) {
  .nav-shell {
    position: relative;
    grid-template-columns: auto auto;
    grid-template-areas: "center right";
    justify-content: space-between;
    gap: 0.7rem;
  }

  .brand {
    grid-area: center;
    justify-self: start;
  }

  .main-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    padding: 0.8rem;
    border-radius: var(--radius-m);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 16, 30, 0.68);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-nav.is-menu-open .main-nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
  }

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

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .nav-links a {
    display: inline-flex;
    width: 100%;
    padding: 0.6rem 0.45rem;
  }

  .btn-nav--desktop {
    display: none;
  }

  .btn-nav--mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: min(360px, 100%);
    justify-content: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vh, 1.4rem);
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    margin-inline: auto;
  }

  .hero-tagline {
    margin-inline: auto;
  }

  .service-rail,
  .service-rail:nth-child(even),
  .service-rail:hover {
    transform: none;
  }

  .logos-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logos-track {
    animation-duration: 22s;
  }

  .logos-item {
    width: clamp(106px, 30vw, 136px);
    height: clamp(36px, 11vw, 46px);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-merged {
    flex-direction: column;
    align-items: center;
  }

  .process-grid {
    margin-top: clamp(1.2rem, 2.2vh, 1.6rem);
    padding-top: 0;
    grid-template-columns: 1fr;
    gap: clamp(0.5rem, 1.4vh, 0.7rem);
  }

  .process-grid::before {
    content: none;
  }

  .process-grid::after {
    content: none;
  }

  .process-card {
    padding: clamp(0.72rem, 1.8vh, 0.9rem) clamp(0.72rem, 2.1vw, 0.88rem) clamp(0.72rem, 1.8vh, 0.9rem);
  }

  .process-index {
    position: static;
    transform: none;
    width: 1.65rem;
    height: 1.65rem;
    margin-bottom: 0.4rem;
  }

  .btn-primary,
  .btn-outline,
  .btn-ghost {
    width: 100%;
  }

  .contact-merged-link {
    font-size: clamp(1.18rem, 4.6vw, 1.42rem);
  }
}

body.nav-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .logos-track {
    animation: none;
  }
}
