*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.top-0{top:0}.z-10{z-index:10}.z-\[1\]{z-index:1}.mx-auto{margin-left:auto;margin-right:auto}.mb-0\.5{margin-bottom:.125rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-2{height:.5rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-full{height:100%}.min-h-\[400px\]{min-height:400px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-6xl{max-width:72rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-y-12{row-gap:3rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.text-balance{text-wrap:balance}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity,1))}.border-zinc-800\/50{border-color:rgba(39,39,42,.5)}.border-zinc-800\/80{border-color:rgba(39,39,42,.8)}.bg-black\/60{background-color:rgba(0,0,0,.6)}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(13 130 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-zinc-100{--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity,1))}.bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.bg-zinc-50\/90{background-color:hsla(0,0%,98%,.9)}.p-8{padding:2rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-16{padding-bottom:4rem}.pb-5{padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.pt-16{padding-top:4rem}.pt-20{padding-top:5rem}.pt-24{padding-top:6rem}.pt-\[112px\]{padding-top:112px}.text-left{text-align:left}.text-center{text-align:center}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[1\.75rem\]{font-size:1.75rem}.text-\[2rem\]{font-size:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-wider{letter-spacing:.05em}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity,1))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity,1))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity,1))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow-\[0_10px_34px_rgba\(0\2c 0\2c 0\2c 0\.06\)\]{--tw-shadow:0 10px 34px rgba(0,0,0,.06);--tw-shadow-colored:0 10px 34px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-xl{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\:text-zinc-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.placeholder\:text-zinc-400::placeholder{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity,1))}.hover\:text-\[\#0d82f2\]:hover{--tw-text-opacity:1;color:rgb(13 130 242/var(--tw-text-opacity,1))}.hover\:text-zinc-700:hover{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity,1))}.focus\:border-\[\#0d82f2\]:focus{--tw-border-opacity:1;border-color:rgb(13 130 242/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-\[\#0d82f2\]\/40:focus{--tw-ring-color:rgba(13,130,242,.4)}@media (min-width:640px){.sm\:mt-0{margin-top:0}.sm\:w-auto{width:auto}.sm\:max-w-none{max-width:none}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-\[2\.75rem\]{font-size:2.75rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:leading-none{line-height:1}}@media (min-width:768px){.md\:mb-12{margin-bottom:3rem}.md\:mb-14{margin-bottom:3.5rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-12{gap:3rem}.md\:gap-6{gap:1.5rem}.md\:rounded-3xl{border-radius:1.5rem}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:py-12{padding-top:3rem;padding-bottom:3rem}.md\:py-24{padding-top:6rem;padding-bottom:6rem}.md\:py-32{padding-top:8rem;padding-bottom:8rem}.md\:pb-10{padding-bottom:2.5rem}.md\:pb-12{padding-bottom:3rem}.md\:pb-24{padding-bottom:6rem}.md\:pt-24{padding-top:6rem}.md\:pt-32{padding-top:8rem}.md\:pt-40{padding-top:10rem}.md\:pt-\[144px\]{padding-top:144px}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-\[3\.5rem\]{font-size:3.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-7xl{font-size:4.5rem;line-height:1}.lg\:text-\[3\.5rem\]{font-size:3.5rem}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}}html,
body {
  margin: 0;
  padding: 0;
}

/* Cienki pasek postępu przewijania (kolor CTA) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background-color: #0d82f2;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

body {
  font-family: "Geist", sans-serif;
}

footer {
  position: relative;
  z-index: 40;
}

.font-serif {
  font-family: "Playfair Display", serif;
}

.card-nav-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.card-nav-container {
  width: min(calc(100vw - 2rem), 84rem);
  box-sizing: border-box;
  transition: width 0.35s ease;
}

.card-nav {
  display: block;
  height: 60px;
  padding: 0;
  background-color: #ffffff;
  border: 0.5px solid rgba(113, 113, 122, 0.25);
  border-radius: 0.75rem;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  will-change: height;
  transition: height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.5rem 0.45rem 0.55rem 1.1rem;
  z-index: 2;
  gap: 0;
}

.hamburger-menu {
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #09090b;
}

.hamburger-line {
  width: 30px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: 50% 50%;
}

.hamburger-menu.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.logo-container {
  display: flex;
  align-items: center;
  z-index: 3;
  pointer-events: auto;
}

.card-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  position: relative;
}

.card-nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: calc(100% - 2px);
  width: 0;
  border-radius: 6px;
  background-color: #f4f4f5;
  transform: translateY(-50%) translateX(0);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.card-nav-link {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 450;
  color: #52525b;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
  background: transparent;
}

.card-nav-link:hover {
  color: #09090b;
}

.card-nav-link:hover:not(.is-active) {
  background-color: #f4f4f5;
}

.card-nav-link.is-active {
  color: #09090b;
}

@media (prefers-reduced-motion: reduce) {
  .card-nav-indicator {
    transition-duration: 0.01ms;
  }
}

.logo {
  height: 1.2rem;
  width: auto;
  display: block;
}

.card-nav-cta-button {
  background-color: #0d82f2;
  background-image: none;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  height: 44px;
  align-self: center;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding-left 0.28s ease, padding-right 0.28s ease;
  align-items: center;
  display: inline-flex;
  text-decoration: none;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.card-nav-cta-button:hover {
  background-color: #1d8ef7;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14) inset;
  padding-left: 4px;
}

.card-nav-cta-label {
  white-space: nowrap;
}

.card-nav-cta-plop {
  flex-shrink: 0;
  width: 0;
  height: 34px;
  margin-right: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.65);
  transform-origin: left center;
  transition:
    width 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    margin-right 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease,
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-nav-cta-plop svg {
  width: 16px;
  height: 16px;
  fill: #0d82f2;
}

.card-nav-cta-button:hover .card-nav-cta-plop,
.card-nav-cta-button:focus-visible .card-nav-cta-plop {
  width: 34px;
  margin-right: 0.5rem;
  opacity: 1;
  transform: scale(1);
}

.hero-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
}

.hero-primary-cta.bg-primary {
  background-color: #0d82f2;
  background-image: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-primary-cta.bg-primary:hover {
  background-color: #1d8ef7;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.hero-primary-cta.bg-primary:focus-visible {
  outline: 2px solid rgb(13 130 242 / 0.9);
  outline-offset: 2px;
}

.hero-primary-cta--fit {
  width: fit-content;
  max-width: 100%;
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgb(212 212 216 / 0.8);
  border-radius: 8px;
  background-color: rgb(244 244 245 / 0.75);
}

.feature-item-title {
  font-size: 18px;
  font-weight: 600;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.875rem !important;
}

.feature-item-title svg {
  width: 2rem !important;
  height: 2rem !important;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.625rem;
  flex-shrink: 0;
}

#features article:nth-child(1) .feature-item-title svg {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

#features article:nth-child(9) .feature-item-title svg {
  background: rgba(255, 255, 255, 0.08);
}

.feature-item-desc {
  font-size: 16px;
  font-weight: 400;
  color: #52525b;
}

/* Bento grid */
#features .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 1rem !important;
}

#features article {
  max-width: none !important;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 1.25rem;
  padding: 2rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.18s ease;
}

#features article:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Bento spans — each row sums to 3 cols, no gaps
   Row 1: 2+1  Row 2: 1+1+1  Row 3: 1+2  Row 4: 1+2 */
#features article:nth-child(1) { grid-column: span 2; }
#features article:nth-child(7) { grid-column: span 2; }
#features article:nth-child(9) { grid-column: span 2; }

/* Blue accent — Strony internetowe */
#features article:nth-child(1) {
  background: #0d82f2;
  border-color: #0a6fd0;
}
#features article:nth-child(1) .feature-item-title {
  color: #fff;
}
#features article:nth-child(1) svg {
  color: rgba(255,255,255,0.75);
}
#features article:nth-child(1) .feature-item-desc {
  color: rgba(255,255,255,0.8);
}

/* Dark accent — Wdrożenie AI */
#features article:nth-child(9) {
  background: #18181b;
  border-color: #27272a;
}
#features article:nth-child(9) .feature-item-title {
  color: #f4f4f5;
}
#features article:nth-child(9) svg {
  color: #a1a1aa;
}
#features article:nth-child(9) .feature-item-desc {
  color: #a1a1aa;
}

@media (max-width: 767px) {
  #features .grid {
    grid-template-columns: 1fr !important;
  }
  #features article {
    grid-column: span 1 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #features .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #features article:nth-child(1),
  #features article:nth-child(6),
  #features article:nth-child(7) {
    grid-column: span 1;
  }
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(250px, 500px) minmax(210px, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 0.25rem;
  row-gap: 0.35rem;
}

.process-step {
  max-width: 280px;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.process-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(212 212 216 / 1);
  background: #fff;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.process-step-ordinal {
  display: none;
}

.process-step-title {
  margin: 0;
  color: #09090b;
  font-size: 1.85rem;
  line-height: 1.15;
  font-weight: 500;
}

.process-step-desc {
  margin: 0;
  color: rgb(63 63 70 / 1);
  font-size: 0.9rem;
  line-height: 1.45;
}

.process-step--one {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  text-align: left;
  margin-top: -0.55rem;
}

.process-step--two {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  text-align: right;
  margin-right: 0.3rem;
  margin-left: 0;
}

.process-step--two .process-step-header {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.process-step--three {
  grid-column: 3;
  grid-row: 3;
  justify-self: start;
  text-align: left;
  margin-top: -0.25rem;
}

.stack-loader-canvas {
  grid-column: 2;
  grid-row: 1 / 4;
  justify-self: center;
  position: relative;
  width: min(84vw, 500px);
  height: min(116vw, 700px);
  min-height: 420px;
  overflow: visible;
  --stack-corner-overlap: 6px;
}

.stack-square {
  position: absolute;
  width: 42%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(26px) scale(0.78);
  transition:
    opacity 0.24s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0) saturate(100%) invert(48%) sepia(89%) saturate(3421%) hue-rotate(194deg) brightness(95%) contrast(90%);
}

.stack-square--top {
  top: 1%;
  left: calc(46% - var(--stack-corner-overlap));
}

.stack-square--middle {
  top: 31%;
  left: 4%;
}

.stack-square--bottom {
  top: calc(61.2% - var(--stack-corner-overlap));
  left: calc(46% - var(--stack-corner-overlap));
}

.process-flow.is-visible .stack-square {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process-flow.is-visible .stack-square--top {
  transition-delay: 0s;
}

.process-flow.is-visible .stack-square--middle {
  transition-delay: 0.2s;
}

.process-flow.is-visible .stack-square--bottom {
  transition-delay: 0.4s;
}

.process-flow.is-visible .process-step {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process-flow.is-visible .process-step--one {
  transition-delay: 0s;
}

.process-flow.is-visible .process-step--two {
  transition-delay: 0.2s;
}

.process-flow.is-visible .process-step--three {
  transition-delay: 0.4s;
}

.star-border-container {
  display: inline-block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.star-border-container .border-gradient-bottom {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: 0.7;
  bottom: -12px;
  right: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-border-color, white), transparent 10%);
  animation: star-movement-bottom var(--star-border-speed, 6s) linear infinite alternate;
  z-index: 0;
}

.star-border-container .border-gradient-top {
  position: absolute;
  opacity: 0.7;
  width: 300%;
  height: 50%;
  top: -12px;
  left: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-border-color, white), transparent 10%);
  animation: star-movement-top var(--star-border-speed, 6s) linear infinite alternate;
  z-index: 0;
}

.star-border-container .inner-content {
  position: relative;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-size: 16px;
  text-align: center;
  padding: 16px 26px;
  border-radius: 20px;
  z-index: 1;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.55);
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.38) 0%,
    rgb(255 255 255 / 0.18) 100%
  );
  backdrop-filter: blur(20px) saturate(160%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(1.08);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.7) inset,
    0 -1px 0 rgb(0 0 0 / 0.04) inset,
    0 8px 32px rgb(0 0 0 / 0.07),
    0 1px 3px rgb(0 0 0 / 0.06);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(39 39 42 / 1);
}

.gradual-blur {
  pointer-events: none;
  isolation: isolate;
}

@media (max-width: 768px) {
  .gradual-blur {
    display: none;
  }
}

.gradual-blur-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.gradual-blur-inner > div {
  -webkit-backdrop-filter: inherit;
  backdrop-filter: inherit;
}

.shiny-text {
  display: inline;
  line-height: inherit;
  vertical-align: baseline;
}

.gooey-container {
  isolation: isolate;
}

@supports not (backdrop-filter: blur(1px)) {
  .gradual-blur-inner > div {
    background: rgb(255 255 255 / 0.3);
    opacity: 0.5;
  }
}

@keyframes star-movement-bottom {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(-100%, 0%);
    opacity: 0;
  }
}

@keyframes star-movement-top {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(100%, 0%);
    opacity: 0;
  }
}

.card-nav-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-content: stretch;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.card-nav.open .card-nav-content {
  visibility: visible;
  pointer-events: auto;
}

.nav-card {
  height: auto;
  min-width: 0;
  min-height: 72px;
  border-radius: calc(0.75rem - 0.2rem);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  user-select: none;
  text-decoration: none;
}

.nav-option {
  font-size: 20px;
  line-height: 1.15;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.nav-option:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nav-option-icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.9;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f4f5;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Otwarty modal (case study / Calendly) — strona w tle bez przewijania i bez widocznego paska (klasy z script.js). */
html.case-modal-document-open,
html.calendly-modal-document-open {
  overflow: hidden !important;
  scrollbar-width: none;
}

html.case-modal-document-open::-webkit-scrollbar,
html.calendly-modal-document-open::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html.case-modal-document-open body,
html.calendly-modal-document-open body {
  overflow: hidden !important;
  scrollbar-width: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgb(212 212 216 / 1);
  background: rgb(244 244 245 / 0.6);
  color: rgb(39 39 42 / 1);
  font-size: 0.875rem;
}

.chip:hover {
  background: rgb(228 228 231 / 0.8);
  border-color: rgb(161 161 170 / 1);
}

@media (max-width: 768px) {
  .chip {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d4d4d8;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #0d82f2;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.faq-item.open {
  background: rgb(244 244 245 / 0.6);
}

.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-item.open .faq-content {
  opacity: 1;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.faq-item.open .faq-icon {
  color: rgb(39 39 42);
  transform: scale(1.06);
}

.opinions-carousel__viewport {
  outline: none;
  display: flex;
  flex-direction: column;
  min-height: clamp(19rem, 48vh, 30rem);
}

.opinions-carousel__viewport:focus-visible {
  box-shadow: inset 0 0 0 2px #0d82f2;
  border-radius: 0.75rem;
}

.opinions-carousel__track {
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}

.opinions-carousel__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.opinions-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(212 212 216);
  background: #fff;
  color: rgb(63 63 70);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.opinions-carousel__btn:hover {
  border-color: #0d82f2;
  color: #0d82f2;
  background: rgb(240 249 255 / 0.65);
}

.opinions-carousel__btn:focus-visible {
  outline: 2px solid #0d82f2;
  outline-offset: 2px;
}

.opinions-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgb(212 212 216);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.opinions-carousel__dot[aria-current="true"] {
  background: #0d82f2;
  transform: scale(1.2);
}

.opinions-carousel__track.opinions-carousel__track--resize-snap {
  transition: none !important;
}

@media (max-width: 640px) {
  .opinions-carousel__viewport {
    min-height: 0;
  }

  .opinions-carousel__slide blockquote {
    font-size: 1rem;
    line-height: 1.55;
  }
}

.ascii-orb-section {
  display: flex;
  justify-content: center;
}

.ascii-orb-shell {
  width: min(92vw, 920px);
  aspect-ratio: var(--ascii-ratio, 1 / 1);
  background: #f9fafb;
  overflow: visible;
}

#ascii-orb-canvas {
  display: block;
  width: 100%;
  height: 100%;
  color: #0d82f2;
  cursor: crosshair;
}

.ascii-orb-controls {
  margin: 1.5rem auto 0;
  max-width: 980px;
  border: 1px solid rgb(212 212 216 / 0.5);
  border-radius: 1rem;
  background: rgb(244 244 245 / 0.9);
  padding: 1rem;
}

.ascii-orb-controls-title {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgb(39 39 42 / 1);
}

.ascii-file-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  color: rgb(63 63 70 / 1);
}

.ascii-file-control input[type="file"] {
  width: min(100%, 280px);
  font-size: 0.75rem;
  color: rgb(161 161 170 / 1);
}

.ascii-orb-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
}

.ascii-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ascii-control span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgb(63 63 70 / 1);
}

.ascii-control output {
  color: rgb(37 99 235 / 1);
}

.ascii-control input[type="range"] {
  width: 100%;
  accent-color: #0d82f2;
}

.benefit-item {
  position: relative;
}

.benefit-item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: var(--benefit-progress, 0%);
  background: #0d82f2;
  border-radius: 999px;
  transition: height 0.12s linear;
}

.benefit-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.benefit-item.active .benefit-content {
  opacity: 1;
}

.cta-fade-top {
  background: linear-gradient(to bottom, rgb(255 255 255) 0%, transparent 100%);
}

.cta-fade-bottom {
  background: linear-gradient(to top, rgb(255 255 255) 0%, transparent 100%);
}


/* --- Case studies filter buttons --- */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.case-filter-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: rgb(24 24 27);
  transform: translateX(0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.case-filters.is-ready .case-filter-indicator {
  opacity: 1;
}

.case-filter-btn {
  position: relative;
  z-index: 1;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgb(63 63 70);
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.case-filter-btn:hover:not(.case-filter-btn--active) {
  background: rgb(228 228 231);
  border-color: rgb(212 212 216);
}

.case-filter-btn--active {
  color: rgb(255 255 255);
  background: transparent;
  border-color: transparent;
}

.case-filter-btn--active:hover {
  color: rgb(255 255 255);
  background: transparent;
  border-color: transparent;
}

/* --- Case studies 2-column grid --- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 0;
}

.case-grid-card {
  position: relative;
  border-radius: 1.125rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-grid-card--leaving {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.case-grid-card--entering {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.case-grid-card--entered {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-grid-card__img {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0.5rem;
  transition: transform 0.4s ease;
}

.case-grid-card:hover .case-grid-card__img,
.case-grid-card:focus-visible .case-grid-card__img {
  transform: scale(1.04);
}

.case-grid-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.78) 0%,
    rgb(0 0 0 / 0.35) 45%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.35rem;
}

.case-grid-card__info {
  flex: 1;
  min-width: 0;
}

.case-grid-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(255 255 255);
  line-height: 1.3;
  margin: 0 0 0.25rem;
}

.case-grid-card__subtitle {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.72);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-grid-card__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(24 24 27);
  background: rgb(255 255 255);
  border-radius: 999px;
  pointer-events: none;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.case-grid-card:hover .case-grid-card__btn,
.case-grid-card:focus-visible .case-grid-card__btn {
  background: rgb(241 245 249);
}

.case-grid-card:active .case-grid-card__btn {
  transform: scale(0.97);
}

.case-grid-card:focus-visible {
  box-shadow: 0 0 0 3px rgb(13 130 242 / 0.7);
}

.case-grid-card[aria-hidden="true"] {
  display: none;
}

@media (max-width: 640px) {
  .case-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-grid-card {
    width: 100%;
    border-radius: 1.125rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .case-grid-card__overlay {
    padding: 1.15rem 1rem 1.25rem;
  }
}

/* --- Legacy case-stack (kept for reference, hidden) --- */
.case-stack {
  position: relative;
  padding: 3vh 0 2.5rem;
}

.case-stack-card {
  position: sticky;
  top: 14vh;
  margin: 0 0 30px;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgb(212 212 216 / 0.75);
  background: linear-gradient(180deg, rgb(255 255 255 / 1) 0%, rgb(249 250 251 / 1) 100%);
  box-shadow: 0 22px 48px rgb(0 0 0 / 0.08);
  transform-origin: top center;
  will-change: transform, filter;
  backface-visibility: hidden;
}

.case-stack-card--clickable {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.case-stack-card--clickable:hover {
  border-color: rgb(161 161 170 / 0.95);
  box-shadow: 0 26px 56px rgb(0 0 0 / 0.12);
}

.case-stack-card--clickable:focus {
  outline: none;
}

.case-stack-card--clickable:focus-visible {
  outline: 2px solid rgb(13 130 242 / 0.95);
  outline-offset: 3px;
}

.case-stack-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(255 255 255 / 1);
  background: rgb(10 98 196 / 1);
  border-radius: 0.45rem;
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.case-stack-card--clickable:hover .case-stack-card__cta {
  background: rgb(13 115 218 / 1);
}

.case-stack-card--clickable:active .case-stack-card__cta {
  transform: scale(0.98);
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ciaśniejszy ramek = większy panel względem ekranu */
  padding: clamp(0.35rem, 1.25vw, 1rem);
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: none;
}

.case-modal[hidden] {
  display: none;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.case-modal--open .case-modal__backdrop {
  opacity: 1;
}

.case-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  height: calc(100vh - 40px);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 1.25rem;
  border: none;
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.15);
  padding: clamp(0.85rem, 1.4vw, 1.25rem) clamp(0.75rem, 1.4vw, 1.25rem) clamp(0.75rem, 1.1vw, 1.1rem);
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.985);
  transition:
    opacity 0.34s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  transform-origin: center center;
}

.case-modal--open .case-modal__panel {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .case-modal {
    padding: 0;
  }

  .case-modal__panel {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-inline: 0;
    padding: 1rem 0.9rem 0.9rem;
  }
}

.case-modal__split {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .case-modal__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    column-gap: 1.75rem;
    row-gap: 0;
  }
}

.case-modal__col {
  min-width: 0;
  min-height: 0;
}

.case-modal__col--left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .case-modal__col--left {
    flex-shrink: 1;
    gap: 1.15rem;
  }
}

.case-modal__col--right {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-top: var(--modal-head-height, 5rem);
}

@media (min-width: 1024px) {
  .case-modal__col--right {
    flex: unset;
    overflow: hidden;
  }
}

.case-modal__media {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-modal__text {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 0.15rem;
}

.case-modal__text::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (min-width: 1024px) {
  .case-modal__text {
    max-height: 100%;
  }
}

@media (max-width: 1023px) {
  .case-modal__panel {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .case-modal__split {
    flex: none;
    min-height: auto;
  }

  .case-modal__col--right {
    flex: none;
    min-height: auto;
    padding-top: 0;
  }

  .case-modal__media {
    flex: none;
    min-height: auto;
  }

  .case-modal__text {
    flex: none;
    min-height: auto;
    overflow: visible;
  }
}

.case-modal__close {
  position: absolute;
  top: calc(0.65rem + 8px);
  right: calc(0.65rem + 8px);
  width: calc(1.875rem + 2px);
  height: calc(1.875rem + 2px);
  border-radius: 0.375rem;
  border: 1px solid rgb(212 212 216 / 0.8);
  background: rgb(244 244 245 / 0.9);
  color: rgb(39 39 42 / 1);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.case-modal__close:hover {
  background: rgb(228 228 231 / 0.95);
  border-color: rgb(161 161 170 / 0.9);
}

.case-modal__close:focus-visible {
  outline: 2px solid rgb(13 130 242 / 0.95);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .case-modal__close {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top, 0px));
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    z-index: 125;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
    border-radius: 0.5rem;
  }

  .case-modal__head {
    margin-right: 2.85rem;
  }
}

.case-modal__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 2.35rem 0 0;
  flex-shrink: 0;
}

.case-modal__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 600;
  color: rgb(9 9 11 / 1);
}

@media (min-width: 640px) {
  .case-modal__title {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  }
}

.case-modal__kicker {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(82 82 91 / 1);
}

.case-modal__tags,
.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.case-modal__tag,
.case-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid rgb(212 212 216 / 0.85);
  background: rgb(244 244 245 / 0.8);
  color: rgb(39 39 42 / 1);
}

.case-modal__media,
.case-modal__text .case-modal__content {
  color: rgb(39 39 42 / 1);
}

.case-modal__gallery {
  display: flex;
  flex-direction: column;
  /* stretch — nie center: przy center szerokość dziecka schodzi do 0 i znika pole aspect-ratio */
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
}

/* Galeria case study — tylko zdjęcia (bez mocków MacBook / iPhone) */
.case-modal__gallery-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.case-modal__gallery-viewport.is-gallery-viewport-portrait {
  min-height: min(58vh, 640px);
}

.case-modal__gallery-stage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.case-modal__gallery-layers {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f4f4f5;
  border-radius: 0.5rem;
  overflow: hidden;
}

.case-modal__gallery-viewport.is-gallery-viewport-portrait .case-modal__gallery-layers {
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 680px);
  max-width: min(100%, 420px);
  margin-inline: auto;
}

@media (max-width: 768px) {
  .case-modal__gallery-layers {
    min-height: clamp(15rem, 40vh, 25rem);
  }

  .case-modal__gallery-viewport.is-gallery-viewport-portrait .case-modal__gallery-layers {
    max-height: min(76vh, 740px);
    max-width: min(100%, 460px);
  }
}

/* Dwie warstwy — crossfade */
.case-modal__gallery-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  border: 0;
  transition: opacity 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  pointer-events: none;
  z-index: 1;
}

.case-modal__gallery-layer.is-gallery-visible {
  opacity: 1;
  z-index: 2;
}

/* Tailwind Preflight przy prefers-reduced-motion ustawia * { transition-duration: 0.01ms !important } —
   tutaj nadpisujemy m.in. galerię w modalu case study oraz karuzelę opinii — pełne przejścia. */
@media (prefers-reduced-motion: reduce) {
  .case-modal .case-modal__gallery-layer {
    transition-duration: 0.36s !important;
    transition-property: opacity !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .case-modal .case-modal__thumb {
    transition-duration: 0.2s !important;
    transition-property: border-color, opacity, transform !important;
  }

  .case-modal .case-modal__close,
  .calendly-modal .case-modal__close {
    transition-duration: 0.2s !important;
    transition-property: background, border-color !important;
  }

  .case-modal .case-modal__backdrop {
    transition-duration: 0.3s !important;
    transition-property: opacity !important;
    transition-timing-function: ease-out !important;
  }

  .case-modal .case-modal__panel {
    transition-duration: 0.34s !important;
    transition-property: opacity, transform !important;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1) !important;
  }

  .calendly-modal .calendly-modal__panel {
    transition-duration: 0.34s !important;
    transition-property: opacity !important;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1) !important;
  }

  .opinions-carousel__track {
    transition-duration: 0.55s !important;
    transition-property: transform !important;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1) !important;
  }

  .opinions-carousel__btn {
    transition-duration: 0.2s !important;
    transition-property: border-color, color, background, box-shadow !important;
    transition-timing-function: ease !important;
  }

  .opinions-carousel__dot {
    transition-duration: 0.2s !important;
    transition-property: background, transform !important;
    transition-timing-function: ease !important;
  }

  .case-filter-indicator {
    transition-duration: 0.38s !important;
    transition-property: transform, width, opacity !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .case-grid-card,
  .case-grid-card.case-grid-card--leaving,
  .case-grid-card.case-grid-card--entering,
  .case-grid-card.case-grid-card--entered {
    transition-duration: 0.32s !important;
    transition-property: opacity, transform !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
}

.case-modal__gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1023px) {
  .case-modal__gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
    max-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgb(0 0 0) 8%,
      rgb(0 0 0) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgb(0 0 0) 8%,
      rgb(0 0 0) 92%,
      transparent 100%
    );
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
  }

  .case-modal__gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .case-modal__thumb {
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

.case-modal__thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.45rem;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: rgb(244 244 245 / 1);
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.case-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-modal__thumb:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.case-modal__thumb.is-active {
  border-color: rgb(13 130 242 / 0.95);
  opacity: 1;
}

.case-modal__thumb:focus-visible {
  outline: 2px solid rgb(13 130 242 / 0.95);
  outline-offset: 2px;
}

.case-modal__h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(82 82 91 / 1);
}

/* Akapity sekcji (Wyzwanie / Wdrożenie / Efekt) — to samo wcięcie co lista w Podejście */
.case-modal__content .case-modal__h3 + p {
  padding-left: 1.15rem;
}

.case-modal__list {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: rgb(82 82 91 / 1);
  font-size: 0.95rem;
  line-height: 1.55;
}

.case-modal__list li {
  margin-bottom: 0.35rem;
}

/* Case study — story cards (propozycja A) */
.case-modal__block {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(212 212 216 / 0.65);
  background: rgb(244 244 245 / 0.55);
}

.case-modal__block--goal {
  background: rgb(239 246 255 / 1);
  border-color: rgb(191 219 254 / 0.85);
}

.case-modal__block--goal .case-modal__block-text {
  font-weight: 400;
  color: rgb(63 63 70 / 1);
}

.case-modal__block--goal .case-modal__block-text strong {
  color: rgb(24 24 27 / 1);
  font-weight: 600;
}

.case-modal__block--challenge {
  background: rgb(13 130 242 / 1);
  border-color: rgb(13 130 242 / 1);
}

.case-modal__block--challenge .case-modal__block-icon {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(255 255 255 / 0.28);
  color: rgb(255 255 255 / 1);
}

.case-modal__block--challenge .case-modal__block-title,
.case-modal__block--challenge .case-modal__block-text {
  color: rgb(255 255 255 / 1);
  font-weight: 400;
}

.case-modal__block--effect {
  background: rgb(236 253 245 / 0.75);
  border-color: rgb(52 211 153 / 0.35);
  margin-bottom: 0;
}

.case-modal__block-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.case-modal__block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.95);
  border: 1px solid rgb(212 212 216 / 0.6);
  color: rgb(13 130 242 / 1);
}

.case-modal__block--effect .case-modal__block-icon {
  color: rgb(5 150 105 / 1);
  border-color: rgb(52 211 153 / 0.45);
}

.case-modal__block-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(82 82 91 / 1);
}

.case-modal__block-text {
  margin: 0;
  color: rgb(82 82 91 / 1);
  font-size: 0.875rem;
  line-height: 1.5;
}

.case-modal__block-text strong {
  display: block;
  margin-top: 0.35rem;
  color: rgb(24 24 27 / 1);
  font-weight: 600;
}

.case-modal__h3--section {
  margin-top: 0.25rem;
}

.case-modal__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

@media (min-width: 540px) {
  .case-modal__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-modal__feature-grid:not(.case-modal__feature-grid--bento) .case-modal__feature-card--wide,
  .case-modal__feature-grid--bento .case-modal__feature-card--process {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .case-modal__feature-grid--bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: stretch;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--process {
    grid-column: 2;
    grid-row: 1;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--pricing {
    grid-column: 2;
    grid-row: 2;
  }

  .case-modal__feature-grid--bento-3 .case-modal__feature-card--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .case-modal__feature-grid--bento-3 .case-modal__feature-card--process {
    grid-column: 2;
    grid-row: 1;
  }

  .case-modal__feature-grid--bento-3 .case-modal__feature-card--pricing {
    grid-column: 2;
    grid-row: 2;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--faq {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    align-items: start;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--faq .case-modal__feature-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--faq .case-modal__feature-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--faq .case-modal__feature-text {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--process .case-modal__steps,
  .case-modal__feature-grid--bento-3 .case-modal__feature-card--hero .case-modal__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--process .case-modal__step-arrow,
  .case-modal__feature-grid--bento-3 .case-modal__feature-card--hero .case-modal__step-arrow {
    display: none;
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--process .case-modal__step,
  .case-modal__feature-grid--bento-3 .case-modal__feature-card--hero .case-modal__step {
    padding: 0.35rem 0.45rem;
    border-radius: 0.45rem;
    background: rgb(255 255 255 / 0.72);
    border: 1px solid rgb(212 212 216 / 0.5);
  }

  .case-modal__feature-grid--bento .case-modal__feature-card--hero {
    min-height: 100%;
  }
}

.case-modal__feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(212 212 216 / 0.65);
  background: rgb(244 244 245 / 0.55);
}

.case-modal__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.95);
  border: 1px solid rgb(212 212 216 / 0.6);
  color: rgb(13 130 242 / 1);
}

.case-modal__feature-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(24 24 27 / 1);
}

.case-modal__feature-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(82 82 91 / 1);
}

.case-modal__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.case-modal__step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.case-modal__step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: rgb(255 255 255 / 0.95);
  border: 1px solid rgb(212 212 216 / 0.65);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: rgb(9 9 11 / 1);
}

.case-modal__step-label {
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 500;
  color: rgb(39 39 42 / 1);
}

.case-modal__step-arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1;
  color: rgb(161 161 170 / 1);
  user-select: none;
}

@media (max-width: 539px) {
  .case-modal__steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .case-modal__step-arrow {
    display: none;
  }

  .case-modal__step {
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    background: rgb(255 255 255 / 0.7);
    border: 1px solid rgb(212 212 216 / 0.5);
  }
}

/* Modal Calendly: desktop — wyśrodkowany panel; mobile — fullscreen; × w pasku nad iframe (bez nachodzenia na ribbon Calendly) */
.calendly-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.calendly-modal[hidden] {
  display: none;
}

.calendly-modal:focus {
  outline: none;
}

.calendly-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.calendly-modal--open .calendly-modal__backdrop {
  opacity: 1;
}

.calendly-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(100%, 1040px);
  height: min(92vh, 940px);
  min-height: min(88vh, 860px);
  max-height: min(94dvh, 980px);
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 1.35rem;
  border: 1px solid rgb(212 212 216 / 0.65);
  background: #ffffff;
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.15);
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.calendly-modal--open .calendly-modal__panel {
  opacity: 1;
}

.calendly-modal__topbar {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.5rem;
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
  padding-bottom: 0.35rem;
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  background: #ffffff;
  pointer-events: auto;
  z-index: 11;
}

.calendly-modal .case-modal__close {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  pointer-events: auto;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .calendly-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
  }

  .calendly-modal__panel {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .calendly-modal__topbar {
    min-height: unset;
    align-items: center;
    padding-top: max(0.5rem, calc(env(safe-area-inset-top, 0px) + 0.35rem));
    padding-right: max(0.5rem, calc(env(safe-area-inset-right, 0px) + 0.35rem));
    padding-bottom: 0.5rem;
    padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  }
}

.calendly-modal__body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
}

.calendly-modal__embed {
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 0;
  pointer-events: auto;
}

.calendly-modal__embed .calendly-inline-widget {
  width: 100% !important;
  min-width: 320px !important;
  height: 100% !important;
  min-height: 100% !important;
}

.calendly-modal__embed iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.case-stack-end {
  height: 2px;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-carousel-scene {
  position: relative;
  width: min(100%, 1000px);
  height: clamp(240px, 42vw, 420px);
  perspective: 1400px;
  perspective-origin: center;
}

.gallery-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: min(100%, 760px);
  height: 100%;
  margin: 0 auto;
  border-radius: 0.9rem;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.6s ease, opacity 0.45s ease, filter 0.45s ease;
  will-change: transform, opacity, filter;
  border: 1px solid rgb(212 212 216 / 0.55);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.1);
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide.is-hidden {
  pointer-events: none;
}

.gallery-carousel-btn {
  display: none;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: 1px solid rgb(161 161 170 / 0.8);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  color: rgb(24 24 27 / 1);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 26px rgb(0 0 0 / 0.12);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-carousel-btn:hover {
  transform: translateY(-1px) scale(1.04);
  background: rgb(13 130 242 / 0.9);
  border-color: rgb(191 219 254 / 1);
  color: rgb(255 255 255 / 1);
  box-shadow: 0 10px 30px rgb(13 130 242 / 0.42);
}

.gallery-carousel-btn:focus-visible {
  outline: 2px solid rgb(13 130 242 / 1);
  outline-offset: 2px;
}

#hero-section {
  position: relative;
  isolation: isolate;
  height: 100vh;
  min-height: 100vh;
}

.dither-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  /* pan-y: przewijanie strony działa przy geście po canvasie; none blokowało scroll na mobile */
  touch-action: pan-y;
}

#hero-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg--css-fallback {
  background: radial-gradient(ellipse 80% 60% at 30% 60%, #1a76de1a 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 75% 30%, #0096ff12 0%, transparent 70%),
              #000;
  animation: hero-fog-drift 10s ease-in-out infinite alternate;
}

@keyframes hero-fog-drift {
  to {
    background: radial-gradient(ellipse 80% 60% at 65% 45%, #4a6da01e 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 25% 65%, #1a76de16 0%, transparent 70%),
                #000;
  }
}

#cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  touch-action: none;
}

#cta-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#hero-section .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

#hero-section .hero-content > * {
  pointer-events: auto;
}

/* Hero: canvas nie przejmuje dotyku (shader i tak wyłączony w JS na touch). */
@media (pointer: coarse), ((hover: none) and (max-width: 1366px)) {
  #hero-bg {
    pointer-events: none;
  }
}

@media (max-width: 768px) {
  #hero-section .hero-content {
    transform: translateY(-2.5vh);
  }
}

@media (max-width: 900px) {
  .gallery-carousel {
    gap: 0.5rem;
  }

  .gallery-slide {
    width: min(100%, 640px);
  }

.case-stack-card {
    top: 10vh;
    padding: 1.2rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .card-nav-wrapper {
    top: 0.75rem;
  }

  .card-nav-container {
    width: min(calc(100vw - 2rem), 84rem);
  }

  .card-nav-top {
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    grid-template-columns: auto auto 1fr auto;
  }

  .hamburger-menu {
    display: flex;
    grid-column: 1;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }

  .card-nav-links {
    display: none;
  }

  .card-nav-cta-button {
    display: none;
  }

  .process-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .process-flow::before {
    content: "";
    position: absolute;
    left: calc(1.5rem + 1rem);
    top: calc(1.25rem + 1rem);
    bottom: calc(1.25rem + 1rem);
    width: 2px;
    background: rgb(212 212 216);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
  }

  .stack-loader-canvas {
    display: none;
  }

  .process-step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2rem 1fr;
    column-gap: 0.875rem;
    row-gap: 0.45rem;
    max-width: 100%;
    width: 100%;
    justify-self: stretch;
    text-align: left;
    margin: 0;
    background: #f4f4f5;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .process-step-header {
    display: contents;
    margin-bottom: 0;
  }

  .process-step-badge {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    background: #fff;
  }

  .process-step-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .process-step-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.9rem;
  }

  .process-step--one,
  .process-step--two,
  .process-step--three {
    grid-column: auto;
    grid-row: auto;
  }

  .card-nav-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0.5rem 0.5rem 0;
    bottom: 0;
    align-content: initial;
  }

  .nav-option-icon {
    display: none;
  }

  .nav-card {
    height: 60px;
    min-height: 60px;
    padding: 12px 14px;
  }

  .nav-option {
    font-size: 14px;
    line-height: 1.2;
  }

  .ascii-orb-controls-grid {
    grid-template-columns: 1fr;
  }

  .gallery-carousel-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
}

@media (min-width: 640px) {
  .card-nav-container {
    width: min(calc(100vw - 3rem), 84rem);
  }
}

@media (min-width: 1024px) {
  .card-nav-container {
    width: min(calc(100vw - 4rem), 84rem);
  }

  .process-flow {
    display: block;
    max-width: 1120px;
    min-height: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .stack-loader-canvas {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 500px;
    height: 700px;
  }

  .process-step {
    position: absolute;
    width: 280px;
    max-width: 280px;
    transform: translateY(-50%);
    transition: opacity 0.24s ease;
  }

  .process-step--one {
    top: 112px;
    left: calc(50% + 204px);
    text-align: left;
    margin: 0;
  }

  .process-step--two {
    top: 322px;
    left: calc(50% - 250px);
    transform: translate(-100%, -50%);
    text-align: right;
    margin: 0;
  }

  .process-step--two .process-step-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .process-step--three {
    top: 527px;
    left: calc(50% + 204px);
    text-align: left;
    margin: 0;
  }

  .process-flow.is-visible .process-step {
    opacity: 1;
    transform: translateY(-50%);
  }

  .process-flow.is-visible .process-step--two {
    transform: translate(-100%, -50%);
  }
}

.card-nav-wrapper.is-scrolled .card-nav-container {
  width: min(calc(100vw - 2rem), 68rem);
}

@media (min-width: 640px) {
  .card-nav-wrapper.is-scrolled .card-nav-container {
    width: min(calc(100vw - 3rem), 68rem);
  }
}

@media (min-width: 1024px) {
  .card-nav-wrapper.is-scrolled .card-nav-container {
    width: min(calc(100vw - 4rem), 68rem);
  }
}

/* ─── Floating phone button ─── */
.fab-phone {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 60;
  height: 3.75rem;
  width: 3.75rem;
  border-radius: 1rem;
  background-color: #0d82f2;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 130, 242, 0.35);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.fab-phone svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.fab-phone__number {
  font-family: "Geist", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    margin-right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  margin-right: 0;
}

.fab-phone:hover {
  width: auto;
  box-shadow: 0 12px 32px rgba(13, 130, 242, 0.45);
}

.fab-phone:hover .fab-phone__number {
  max-width: 10rem;
  opacity: 1;
  margin-right: 0.5rem;
}

.fab-phone:active {
  transform: scale(0.97);
}

@media (max-width: 640px), (hover: none) {
  .fab-phone {
    width: 3.75rem;
    padding: 0;
  }

  .fab-phone:hover,
  .fab-phone:focus-visible {
    width: 3.75rem;
    box-shadow: 0 8px 24px rgba(13, 130, 242, 0.35);
  }

  .fab-phone__number {
    display: none;
  }
}

/* ─── Hero entrance animation (page load) ─── */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-enter {
  animation: hero-fade-up 1.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-enter--nav { animation-delay: 0.1s; animation-duration: 2.4s; }
.hero-enter--1 { animation-delay: 0.27s; }
.hero-enter--2 { animation-delay: 0.54s; }
.hero-enter--3 { animation-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  @keyframes hero-fade-up {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .hero-enter {
    animation-duration: 0.9s;
  }
}

/* ─── Section entrance animations ─── */
[data-section-enter] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-section-enter].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-section-enter] {
    transform: none;
    transition: opacity 0.9s ease;
  }
}
/* GridMotion w sekcji galerii — pełna szerokość, stała wysokość bloku */
#gallery-section {
  width: 100%;
  max-width: none;
}

#gallery-grid-motion.grid-motion-root {
  position: relative;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  height: 80vh;
  min-height: 28rem;
  max-height: 56rem;
  overflow: hidden;
  z-index: 0;
  /* Porzzwala przewijać stronę gestem pionowym na obszarze galerii. */
  touch-action: pan-y;
  /* Sekcja jest dekoracyjna — nie przechwytuje dotyku, więc scroll działa zawsze. */
  pointer-events: none;
  border-radius: 0.75rem;
}

@media (max-width: 640px) {
  #gallery-grid-motion.grid-motion-root {
    height: 70vh;
    min-height: 22rem;
    border-radius: 0;
  }
}

#gallery-grid-motion.grid-motion-root .gm-noscroll {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#gallery-grid-motion.grid-motion-root .gm-intro {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery-grid-motion.grid-motion-root .gm-intro::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 250px;
  pointer-events: none;
  z-index: 4;
}

#gallery-grid-motion.grid-motion-root .gridMotion-container {
  gap: 1.357rem;
  flex: none;
  position: relative;
  width: 203.643vw;
  height: auto;
  min-height: 100%;
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: 100%;
  transform: rotate(-15deg);
  transform-origin: center center;
  z-index: 2;
}

#gallery-grid-motion.grid-motion-root .gm-row {
  display: grid;
  gap: 1.357rem;
  grid-template-columns: repeat(7, 1fr);
  will-change: transform, filter;
}

#gallery-grid-motion.grid-motion-root .gm-row__item {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

#gallery-grid-motion.grid-motion-root .gm-row__item-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 13.574px;
  border: 1px solid rgb(0 0 0 / 0.08);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(0.75rem, 1.5vw, 1.5rem);
  opacity: 1;
  transition: opacity 0.25s ease;
}

#gallery-grid-motion.grid-motion-root .gm-noscroll.loading .gm-row__item-inner {
  opacity: 0;
}

#gallery-grid-motion.grid-motion-root .gm-row__item-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
  position: absolute;
  top: 0;
  left: 0;
}

#gallery-grid-motion.grid-motion-root .gm-row__item-content {
  padding: 1rem;
  text-align: center;
  z-index: 1;
}

#gallery-grid-motion.grid-motion-root .gm-fullview {
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

#gallery-grid-motion.grid-motion-root .gm-fullview .gm-row__item-inner {
  border-radius: 0;
}

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