

:root {
  
  --primary: #1f6fb0;        
  --primary-dark: #085896;   
  --primary-light: #2686d2;  
  --accent: #4ea3e0;
  --alert: #c8102e;          
  --dark: #0f172a;
  --bg: #f8fafc;
  --bg-alt: #eef2f7;         
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;          
  --muted-strong: #586675;   
  --line: #dbe3ec;

  --section-y: 88px;
  --section-y-tight: 64px;

  --step-display:  clamp(40px, 5.2vw, 64px);   
  --step-h1:       clamp(32px, 4.4vw, 52px);   
  --step-h2:       clamp(28px, 3.2vw, 40px);   
  --step-h2-sm:    clamp(24px, 2.2vw, 28px);   
  --step-h3:       22px;                       
  --step-h4:       20px;                       
  --step-lead:     18px;                       
  --step-body:     16px;                       
  --step-ui:       15px;                       
  --step-small:    14px;                       
  --step-micro:    12px;                       
  --step-stat:     clamp(30px, 3.4vw, 44px);   
  --step-error-code: clamp(72px, 12vw, 140px); 

  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 60px;
  --spacing-3xl: 80px;

  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 30px rgba(38,134,210,0.4);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.12);
  --shadow-primary: 0 15px 35px rgba(38,134,210,0.35);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

::selection { background: var(--primary); color: #fff; }
:root { accent-color: var(--primary); caret-color: var(--primary); }
* { scrollbar-color: var(--primary-light) var(--bg-alt); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border: 3px solid var(--bg-alt); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.stat h3, .price, .param-value { font-variant-numeric: tabular-nums; }

.container { max-width: 1200px; margin: auto; padding: 0 24px; }

header {
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: fixed;
  
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

header.has-shadow {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  grid-template-rows: auto auto;
  padding: 10px 0;
  gap: 24px;
  position: relative;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.logo img {
  height: 38px;
  background: transparent !important;
  display: block;
  width: auto;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.custom-logo {
  height: 38px;
  width: auto;
}

#primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  grid-column: 2;
  grid-row: 1 / 3;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--step-micro);
  font-weight: 600;
  position: relative;
  padding: 6px 8px;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: .3s;
}

nav a:hover::after,
nav a.current-menu-item::after { width: 50%; }

.btn {
  background: var(--primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step-small);
  transition: .3s;
  display: inline-block;
  box-shadow: var(--shadow-primary);
}

.nav-wrapper > .btn {
  grid-column: -2 / -1;
  grid-row: 1 / 3;
  align-self: center;
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  color: #fff;
}

.header-contact {
  display: contents;
}

.contact-phone {
  grid-column: 3;
  grid-row: 1;
}

.contact-email {
  grid-column: 3;
  grid-row: 2;
}

.contact-phone,
.contact-email {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: var(--step-micro);
  font-weight: 500;
  transition: .3s;
  white-space: nowrap;
}

.contact-phone:hover,
.contact-email:hover {
  color: var(--primary);
}

.contact-phone svg,
.contact-email svg {
  color: var(--primary);
  flex-shrink: 0;
}

.nav-dropdown { position: relative; }

.dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  color: var(--text);
  font-size: var(--step-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 8px;
  white-space: nowrap;
  position: relative;
}

.dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: .3s;
}

.nav-dropdown:hover .dropdown-trigger::after,
.dropdown-trigger.current-menu-item::after { width: 50%; }

.dropdown-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown.open .dropdown-trigger svg { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  min-width: 210px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown:hover .sub-menu,
.nav-dropdown.open .sub-menu { opacity: 1; visibility: visible; }

.sub-menu a {
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-size: var(--step-small);
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  transition: .2s;
}

.sub-menu a:hover { background: var(--bg); color: var(--primary); }
.sub-menu a::after { display: none; }

.sub-menu a.sub-menu-all {
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  margin-top: 6px;
  padding-top: 13px;
  font-weight: 600;
  color: var(--primary);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover { color: var(--primary-dark); background: #f1f5f9; }

.hero {
  padding: 168px 0 104px;
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-photo {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  z-index: -5;
  background: url('../img/hero-bg-animated.webp') right center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-breathe 14s ease-in-out infinite alternate;
  transition: translate .5s ease-out;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(38,134,210,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 90%, rgba(8,88,150,0.45) 0%, transparent 65%),
    linear-gradient(90deg, var(--dark) 0%, var(--dark) 35%, rgba(15,23,42,0.55) 55%, transparent 75%);
}

.hero-glow {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  z-index: -2;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(ellipse at 72% 62%, rgba(83,173,255,.28), transparent 28%),
    radial-gradient(ellipse at 88% 38%, rgba(92,175,255,.16), transparent 24%);
  filter: blur(10px);
  animation: hero-glow-pulse 7s ease-in-out infinite alternate;
  transition: translate .5s ease-out;
  will-change: transform, opacity;
}

#hero-particles {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  z-index: -1;
  pointer-events: none;
}

.hero-bat {
  position: absolute;
  top: 20%;
  left: -8%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-bat.hero-bat-flying {
  animation: hero-bat-fly 10s ease-in-out forwards;
}

.hero-bat-wings {
  transform-origin: center;
  animation: hero-bat-flap .16s ease-in-out infinite;
}

@keyframes hero-bat-fly {
  0%   { opacity: 0; transform: translate(0, 0) scale(.9); }
  8%   { opacity: .8; }
  50%  { transform: translate(60vw, -8vh) scale(1); }
  92%  { opacity: .8; }
  100% { opacity: 0; transform: translate(126vw, -2vh) scale(1.05); }
}

@keyframes hero-bat-flap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.55); }
}

.hero--static .hero-bat,
.hero--static .hero-bat.hero-bat-flying {
  animation: none;
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bat { display: none; }
}

.hero-dog {
  position: absolute;
  top: 28px;
  left: -8%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-dog.hero-dog-walking {
  animation: hero-dog-walk 6s linear forwards;
}

.hero-dog-legs {
  transform-origin: center;
  animation: hero-dog-trot .22s ease-in-out infinite;
}

@keyframes hero-dog-walk {
  0%   { opacity: 0; left: -8%; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { opacity: 0; left: 108%; }
}

@keyframes hero-dog-trot {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.7); }
}

.hero--static .hero-dog,
.hero--static .hero-dog.hero-dog-walking {
  animation: none;
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-dog { display: none; }
}

@keyframes hero-breathe {
  0%   { transform: scale(1.04) translate3d(-.4%, .2%, 0); }
  100% { transform: scale(1.085) translate3d(.8%, -.7%, 0); }
}

@keyframes hero-glow-pulse {
  0%   { transform: translate3d(-1.5%, .5%, 0) scale(.98); opacity: .34; }
  100% { transform: translate3d(2%, -1%, 0) scale(1.08); opacity: .66; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-photo, .hero-glow { animation: none; }
  #hero-particles { display: none; }
}

.hero--static .hero-bg-photo,
.hero--static .hero-glow {
  animation: none;
  transition: none;
  translate: 0 0;
}
.hero--static #hero-particles { display: none; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 80%);
  pointer-events: none;
}

.hero-tagline {
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #7cc0f2;
  margin: 0 0 18px;
}

.hero-inner {
  max-width: 760px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}

.hero h1 span {
  color: #7cc0f2;
}

.tw-cursor {
  display: inline-block;
  width: 0.56em;
  height: 0.86em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: currentColor;
  animation: tw-blink 0.8s steps(1) infinite;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-cursor { animation: none; opacity: 1; }
}

.hero-loop {
  font-size: 1.1rem;
  font-weight: 600;
  color: #7cc0f2;
  margin: 10px 0 0;
  min-height: 1.4em;
}

.hero-loop .tw-cursor {
  width: 0.4em;
  height: 0.9em;
}

.hero-subtitle {
  margin-top: 28px;
  color: rgba(255,255,255,0.78);
  font-size: var(--step-lead);
  font-weight: 400;
  line-height: 1.65;
  max-width: 580px;
}

.hero-subtitle-accent,
.hero-underline-seq {
  background-image: linear-gradient(#7cc0f2, #7cc0f2);
  background-repeat: no-repeat;
  background-position: left bottom -1px;
  background-size: 0% 2px;
  animation-name: hero-underline-draw;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.hero-subtitle-accent { animation-duration: 1s; }
.hero-underline-seq { animation-duration: .35s; }

.hero-subtitle-reveal .hero-subtitle-accent,
.hero-subtitle-reveal .hero-underline-seq {
  animation-play-state: running;
}

@keyframes hero-underline-draw {
  to { background-size: 100% 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle-accent, .hero-underline-seq { animation: none; background-size: 100% 2px; }
}

.hero .buttons { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step-ui);
  transition: .3s;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(38,134,210,0.4);
  animation: hero-cta-pulse 2s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(38,134,210,0.4); transform: scale(1); }
  50%      { box-shadow: 0 6px 36px rgba(38,134,210,0.9); transform: scale(1.035); }
}

.btn-hero-primary.hero-cta-pulse-ready {
  animation-play-state: running;
}

.hero--static .btn-hero-primary { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-hero-primary { animation: none; }
}

.btn-hero-primary:hover {
  animation-play-state: paused;
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 28px rgba(38,134,210,0.5);
}

.btn-hero-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step-ui);
  transition: .3s;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.btn-hero-dark:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  transform: translateY(-2px);
}

.section { padding: var(--section-y) 0; }

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

.section-title {
  text-align: center;
  font-size: var(--step-h2);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 48px;
}

.section-title + .section-subtitle {
  margin-top: -24px;
}

.section-subtitle {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: var(--step-lead);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px;
}
.grid--4col {
  
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  
  .nav-wrapper {
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
  }
  #primary-nav {
    grid-column: 2;
    gap: 16px;
  }
  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--4col {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  padding: 50px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  transition: .4s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  transition: .4s;
}

.card:hover .icon { transform: rotate(8deg) scale(1.1); }
.icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 15px; font-size: var(--step-h3); overflow-wrap: break-word; hyphens: auto; }
.card p { color: var(--muted); }

#uslugi .grid--4col { gap: 24px; }
#uslugi .card { padding: 40px 28px; }
#uslugi .card h3 {
  font-size: var(--step-h4);
  min-height: 2.6em;
  text-wrap: balance;
}

.sytuacje-section { background: var(--card); }

.sytuacje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 30px;
}

.sytuacja {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 34px 30px;
  text-decoration: none;
  color: inherit;
  transition: .3s;
}

.sytuacja:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
  border-left-color: var(--primary-dark);
}

.sytuacja-quote {
  font-size: var(--step-h4);
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 14px;
}

.sytuacja-quote::before { content: "\201E"; }
.sytuacja-quote::after  { content: "\201D"; }

.sytuacja-desc {
  flex: 1;
  color: var(--muted);
  font-size: var(--step-ui);
  line-height: 1.65;
  margin-bottom: 20px;
}

.sytuacja-cta {
  font-weight: 700;
  font-size: var(--step-ui);
  color: var(--primary);
}

.sytuacja:hover .sytuacja-cta { color: var(--primary-dark); }

@media (max-width: 768px) {
  .sytuacje-grid { gap: 20px; }
  .sytuacja { padding: 26px 24px; }
}

.portfolio { padding: var(--section-y) 0; background: #ffffff; }

.portfolio-item {
  background: var(--card);
  padding: 45px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: .4s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-item:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.portfolio-thumb-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 20px; display: block; }

@media (hover: hover) {
  .portfolio-item .portfolio-thumb-img { filter: grayscale(1); transition: filter .4s; }
  .portfolio-item:hover .portfolio-thumb-img { filter: grayscale(0); }
}

.portfolio-item h3 { margin-bottom: 12px; font-size: var(--step-h4); font-weight: 700; }
.portfolio-track .portfolio-item h3 { text-align: center; }
.portfolio-item p { color: var(--muted); }

.portfolio-item .portfolio-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-tag {
  background: #eaf3fb;
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--step-small);
  font-weight: 600;
}

.portfolio-slider {
  --pf-gap: 40px;
  --pf-visible: 3;
}

.portfolio-track {
  display: flex;
  gap: var(--pf-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  
  padding: 14px 0 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.portfolio-track::-webkit-scrollbar { display: none; }

.portfolio-track > .portfolio-item {
  flex: 0 0 calc((100% - (var(--pf-visible) - 1) * var(--pf-gap)) / var(--pf-visible));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.portfolio-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.portfolio-nav[hidden] { display: none; }

.portfolio-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: .2s;
}

.portfolio-arrow svg { width: 20px; height: 20px; }

.portfolio-arrow:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.portfolio-arrow:disabled {
  opacity: .35;
  cursor: default;
}

@media (max-width: 1024px) {
  .portfolio-slider { --pf-visible: 2; }
}

@media (max-width: 768px) {
  .portfolio-slider { --pf-gap: 20px; --pf-visible: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-track { scroll-behavior: auto; }
}

.stats {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--dark);
  color: #fff;
  text-align: center;
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  left: -300px;
  bottom: -300px;
  opacity: 0.08;
}

.stats .section-title { color: #fff; }

.stats-note {
  max-width: 760px;
  margin: -40px auto 0;
  color: #94a3b8;
  font-size: var(--step-lead);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
  margin-top: 60px;
}

.stat h3 { font-size: var(--step-stat); color: #7cc0f2; font-weight: 900; line-height: 1.1; }
.stat p { color: #94a3b8; margin-top: 8px; font-size: var(--step-body); }

#o-nas {
  padding: var(--section-y) 0;
}

#o-nas .section-title.has-accent-line { margin-bottom: 0; }
#o-nas .section-title.has-accent-line::after { margin: 16px auto 40px; }

.about-content {
  text-align: center;
  max-width: 1096px;
  margin: auto;
  font-size: var(--step-lead);
  color: var(--muted);
}

#o-nas .about-content,
.about-lead .about-content {
  position: relative;
  padding: 48px;
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: var(--step-lead);
  line-height: 1.75;
}

#o-nas .about-content::before,
.about-lead .about-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(38,134,210,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-content > * { position: relative; }

.about-content strong { color: var(--text); }

.about-content .intro-line {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about-content .intro-line {
    white-space: normal;
  }
}

.about-content p { margin-bottom: 24px; }
.about-content p:last-child { margin-bottom: 0; }

.about-content p:not(:last-child)::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  margin: 24px auto 0;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.55;
  transform: rotate(45deg);
}

.about-content .sentence {
  display: block;
  text-wrap: balance;
}

.about-content p:first-child .sentence:first-child {
  font-size: var(--step-h2-sm);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  #o-nas .about-content,
  .about-lead .about-content {
    padding: 32px 22px;
    border-radius: 20px;
    font-size: var(--step-body);
  }
}

#faq {
  padding: var(--section-y) 0;
}
.faq-list { max-width: 800px; margin: auto; }

.faq-item {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 40px;
  margin-bottom: 20px;
  transition: .3s;
}

.faq-item:hover { border-color: var(--primary); }
.faq-item h4 { font-size: var(--step-lead); font-weight: 700; margin-bottom: 10px; }
.faq-item p { color: var(--muted); }

section#kontakt {
  padding: var(--section-y) 0;
}

#kontakt .section-title {
  margin-bottom: 30px;
}
.contact-wrapper {
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.contact-summary {
  color: var(--muted);
  font-size: var(--step-lead);
  margin-bottom: 40px;
}

.contact-summary a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-summary a:hover { color: var(--primary-dark); }

.contact-btn {
  margin-top: 30px;
}

footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 50px 0;
  font-size: var(--step-small);
  color: #94a3b8;
}

.single-hero {
  padding: 180px 0 80px;
  background: linear-gradient(135deg, #ffffff, #eef2f7);
  text-align: center;
}

.single-hero h1 { font-size: var(--step-h1); font-weight: 900; max-width: 800px; margin: auto; }
.single-hero p { color: var(--muted); font-size: var(--step-lead); margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }

@media (min-width: 900px) {
  .single-hero p.single-hero-nowrap { max-width: none; white-space: nowrap; }
}

.single-content {
  max-width: 900px;
  margin: 20px auto 80px;
  padding: 0 24px;
  font-size: var(--step-lead);
  line-height: 1.8;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 40px;
  font-size: var(--step-ui);
}

.back-link:hover { color: var(--primary-dark); }

.single-hero-icon {
  margin: 0 auto 30px;
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

.single-cta {
  margin-top: 60px;
  text-align: center;
}

.single-cta p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px; 
}

@media (max-width: 768px) {
  .hero p { font-size: var(--step-lead); }
  
  .section-title { margin-bottom: 36px; }
  .section,
  .portfolio,
  .stats { padding: var(--section-y) 0; }
  #primary-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; }
  
  #primary-nav.open { display: flex; position: absolute; grid-column: 1 / -1; grid-row: 1 / -1; top: 100%; left: 0; right: 0; background: #fff; padding: 20px 24px; border-bottom: 1px solid #e2e8f0; }
  #primary-nav.open a.nav-link { padding: 12px 0; text-align: left; display: block; }
  .nav-wrapper > .header-contact { display: none; }
  .hamburger { display: block; }
  
  .nav-wrapper > .btn { grid-column: 3; }
  .hamburger { grid-column: 4; grid-row: 1 / 3; align-self: center; justify-self: end; }
  .sub-menu { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; opacity: 1; visibility: visible; display: none; }
  .nav-dropdown.open .sub-menu { display: block; }
  .dropdown-trigger { width: 100%; justify-content: space-between; padding: 14px 0; text-align: left; }
  
  .hero .buttons { flex-direction: column; gap: 12px; }
  .btn-hero-primary, .btn-hero-dark { text-align: center; }
  #kontakt .contact-summary { font-size: var(--step-ui); }
  #kontakt .contact-summary a { white-space: nowrap; }
}

@media (max-width: 480px) {
  .nav-wrapper {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    
    row-gap: 8px;
  }
  
  .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .hamburger { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav-wrapper > .btn {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    padding: 9px 17px;
    font-size: var(--step-micro);
  }
}

.section-title.has-accent-line { margin-bottom: 20px; }
.section-title.has-accent-line::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 40px;
  border-radius: 2px;
}

.usluga-hero {
  background: #f8fafc;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.usluga-hero::before { display: none; }

.usluga-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.usluga-hero-content h1 {
  font-size: var(--step-h1);
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 20px;
}

.usluga-hero-desc {
  font-size: var(--step-lead);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 480px;
}

.usluga-hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usluga-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: var(--primary);
}

.usluga-badge svg {
  width: 44px;
  height: 44px;
  stroke: var(--primary);
  stroke-width: 1.5;
}

.usluga-badge span {
  font-size: var(--step-micro);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.usluga-hero-image { display: flex; justify-content: center; align-items: center; }

.usluga-hero-img {
  width: 100%;
  max-width: 560px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.offers-section { background: #fff; }

.offers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.offers-grid .card {
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offers-grid .card .icon {
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--primary);
  margin-bottom: 16px;
}

.offers-grid .card .icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  stroke-width: 1.5;
}

.offers-grid .card h3 {
  font-size: var(--step-small);
  line-height: 1.4;
  margin-bottom: 8px;
}

.offers-grid .card p {
  font-size: var(--step-micro);
  line-height: 1.5;
}

.offers-grid .card:hover .icon { transform: none; }

.zakres-divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 32px;
}

.zakres-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zakres-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--step-body);
  font-weight: 500;
  color: var(--text);
}

.zakres-list li i,
.zakres-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
  stroke: var(--primary);
}

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

.wspolpraca-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.wspolpraca-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 180px;
  padding: 0 8px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-h4);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.step-icon-wrap {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.step-icon-wrap i {
  width: 40px;
  height: 40px;
  stroke: var(--text);
  stroke-width: 1.5;
}

.step-name {
  font-size: var(--step-ui);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: var(--step-micro);
  color: var(--muted);
  line-height: 1.5;
}

.wspolpraca-arrow {
  align-self: flex-start;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--step-h3);
  flex-shrink: 0;
  padding: 0 4px;
}

.usluga-cta {
  background: var(--dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.usluga-cta::before {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.07;
  pointer-events: none;
}

.usluga-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.usluga-cta-content {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.usluga-cta-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(38, 134, 210, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usluga-cta-icon i {
  width: 34px;
  height: 34px;
  stroke: var(--primary);
}

.usluga-cta-text h2 {
  font-size: var(--step-h2-sm);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.usluga-cta-text h2.text-orange {
  color: #f97316;
}

.usluga-cta-text p {
  font-size: var(--step-small);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.usluga-cta-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: var(--step-small);
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s;
  white-space: nowrap;
}

.btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-white svg { flex-shrink: 0; }

@media (max-width: 900px) {
  .offers-grid           { grid-template-columns: repeat(3, 1fr); }

  .wspolpraca-steps { flex-wrap: wrap; gap: 24px; }
  .wspolpraca-arrow { display: none; }
  .wspolpraca-step  { max-width: 140px; }
}

@media (max-width: 768px) {
  .usluga-hero { padding: 130px 0 60px; }
  .usluga-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .usluga-hero-image { order: -1; }
  .usluga-hero-desc { font-size: var(--step-body); margin-bottom: 28px; }
  .usluga-hero-badges { grid-template-columns: repeat(2, 1fr); }

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

  .usluga-cta-inner   { flex-direction: column; text-align: center; }
  .usluga-cta-content { flex-direction: column; text-align: center; }
  .usluga-cta-buttons { flex-direction: column; width: 100%; }
  .btn-outline-white  { justify-content: center; }
}

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

.dlaczego-inner {
  display: grid;
  grid-template-columns: 1fr 360px 300px;
  gap: 0;
  align-items: stretch;
}

.dlaczego-why {
  padding: 60px 48px 60px 0;
}

.dlaczego-why h2 {
  font-size: var(--step-h2);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  text-align: left;
}

.dlaczego-photo {
  overflow: hidden;
  border-radius: 14px 0 0 14px;
}

.dlaczego-photo-full {
  grid-column: 2 / 4;
  border-radius: 0 14px 14px 0;
}

.dlaczego-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.dlaczego-tags-title {
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}

.dlaczego-tag {
  background: rgba(31, 111, 176, 0.1);
  color: var(--primary);
  font-size: var(--step-micro);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

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

.dlaczego-uses {
  background: var(--dark);
  color: #fff;
  border-radius: 0 14px 14px 0;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dlaczego-uses h3 {
  font-size: var(--step-h2-sm);
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--primary);
}

.dlaczego-uses ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dlaczego-uses li {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--step-ui);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dlaczego-uses li:last-child { border-bottom: none; }

@media (max-width: 1100px) {
  .dlaczego-inner { grid-template-columns: 1fr 300px 260px; }
}

@media (min-width: 901px) {
  .zakres-nowrap { white-space: nowrap; }
}

@media (max-width: 900px) {
  .dlaczego-inner { grid-template-columns: 1fr; gap: 0; }
  .dlaczego-why { padding: 48px 0 40px; }
  .dlaczego-photo { border-radius: 14px; height: 280px; }
  .dlaczego-uses { border-radius: 14px; margin-top: 0; }
}

@media (max-width: 768px) {
}

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.contact-page-card {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
}
.contact-page-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}
.contact-page-card h2 {
  font-size: var(--step-lead);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.contact-page-card p {
  color: var(--muted);
  line-height: 1.8;
}
.contact-page-card a {
  color: var(--primary);
  text-decoration: none;
}
.contact-page-card a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}

.about-hero {
  padding: 160px 0 80px;
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(38,134,210,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero-inner { position: relative; }

.about-hero h1 {
  font-size: var(--step-h1);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 24px;
}

.about-hero p {
  font-size: var(--step-lead);
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-lead {
  padding: 72px 0 48px;
  background: var(--bg);
}

.about-services { background: #fff; }

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-service-card {
  background: var(--bg);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 44px 40px;
  transition: .35s;
}

.about-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.about-service-card h3 {
  font-size: var(--step-h4);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.about-service-card p { color: var(--muted); line-height: 1.75; }

.about-diff { background: var(--bg); }

.about-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.about-diff-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: .3s;
}

.about-diff-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.about-diff-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(38,134,210,0.3);
}

.about-diff-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke: #fff;
}

.about-diff-item h3 {
  font-size: var(--step-lead);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.about-diff-item p {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.7;
}

.about-mission {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  position: relative;
  overflow: hidden;
}

.about-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(38,134,210,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.about-mission-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-mission-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-primary);
}

.about-mission-icon svg { width: 28px; height: 28px; color: #fff; stroke: #fff; }

.about-mission h2 {
  font-size: var(--step-h2);
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
}

.about-mission p {
  font-size: var(--step-lead);
  color: #94a3b8;
  line-height: 1.8;
}

.about-cta {
  padding: var(--spacing-3xl) 0;
  background: var(--bg);
  border-top: 1px solid #e2e8f0;
}

.about-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-cta h2 {
  font-size: var(--step-h2);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
}

.about-cta p {
  font-size: var(--step-lead);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .about-services-grid { grid-template-columns: 1fr; }
  .about-diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-hero p { font-size: var(--step-lead); }
  .about-service-card { padding: 28px 24px; }
  .about-diff-item { padding: 24px 20px; }
}

.klienci-section { background: #fff; }

.klienci-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.klient {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-height: 96px;
  transition: .3s;
}

.klient:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.klient img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .65;
  transition: .3s;
}

.klient:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.usluga-hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-primary);
}

.usluga-hero-mark svg {
  width: 120px;
  height: 120px;
  stroke: #fff;
  stroke-width: 1.25;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: .2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-uslugi { margin-top: 12px; }

.footer-dane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  text-align: left;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-dane h2 {
  color: #fff;
  font-size: var(--step-lead);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-dane p { margin-bottom: 12px; }
.footer-dane p:last-child { margin-bottom: 0; }

.footer-dane-sub { color: #cbd5e1; }

.footer-dane a {
  color: #cbd5e1;
  text-decoration: none;
  transition: .2s;
}

.footer-dane a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .klienci-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .klienci-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
  .klient { padding: 12px; min-height: 72px; }
  .klient img { max-height: 40px; }
  .usluga-hero-mark { max-width: 280px; }
  .usluga-hero-mark svg { width: 84px; height: 84px; }
  .footer-links { gap: 16px; }
  .footer-dane { grid-template-columns: 1fr; gap: 32px; }
}

.single-hero-tags {
  justify-content: center;
  margin-top: 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: .2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .screen-reader-text { display: none; }

.contact-form-section { background: #f1f5f9; }

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.hmpl-contact-form {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--step-ui);
  font-family: inherit;
  transition: .2s;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #5b6b7f; }

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: var(--card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38,134,210,.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
}

.btn-form {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: var(--step-ui);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-form:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 16px;
  font-size: var(--step-small);
  line-height: 1.6;
}

.form-message.is-success { color: #15803d; }
.form-message.is-error   { color: #dc2626; }

.contact-gdpr-info {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.7;
}

.contact-gdpr-info p { margin: 0 0 12px; }
.contact-gdpr-info p:last-child { margin-bottom: 0; }
.contact-gdpr-info strong { color: var(--text); }
.contact-gdpr-info a { color: var(--primary); text-decoration: none; }
.contact-gdpr-info a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hmpl-contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.legal-content {
  max-width: 72ch;
  margin: 20px auto 80px;
  padding: 0 24px;
  font-size: var(--step-lead);
  line-height: 1.75;
  color: var(--text);
}

.legal-content h2 {
  font-size: var(--step-h3);
  font-weight: 700;
  color: var(--dark);
  margin: 44px 0 14px;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 24px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--dark); }
.legal-content a { color: var(--primary); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.legal-content .legal-updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: var(--step-ui);
  color: var(--muted);
}

.scroll-progress {
  position: fixed;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.scroll-progress.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-progress-bar {
  position: relative;
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: rgba(100, 116, 139, 0.3);
  overflow: hidden;
  transition: width 150ms ease, background 150ms ease;
}

.scroll-progress.is-visible:hover .scroll-progress-bar,
.scroll-progress.is-visible:focus-within .scroll-progress-bar {
  width: 4px;
  background: rgba(100, 116, 139, 0.5);
}

.scroll-progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: height 80ms linear;
}

@media (max-width: 1024px) {
  .scroll-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn:active,
.btn-white:active,
.btn-hero-primary:active,
.btn-hero-dark:active,
.btn-outline-white:active,
.btn-form:active:not(:disabled) {
  transform: translateY(0);
  transition-duration: 60ms;
}

.legal-content a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 180ms ease-out;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  text-decoration: none;
  background-size: 100% 1px;
}

.hero-alert {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.14);
  background: color-mix(in srgb, var(--alert) 14%, transparent);
  border: 1px solid rgba(255, 138, 158, 0.45);
  color: #ffd7de;
  font-size: var(--step-ui);
  line-height: 1.4;
}

.hero-alert svg { width: 18px; height: 18px; flex-shrink: 0; color: #ff8a9e; }

.hero-alert a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid #ff8a9e;
  white-space: nowrap;
}

.hero-alert a:hover { border-bottom-color: #fff; }

.card-price {
  margin-top: 14px;
  font-weight: 800;
  font-size: var(--step-ui);
  color: var(--primary);
}

.parametry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 40px 0 0;
}

.parametr {
  background: var(--card);
  padding: 24px 26px;
}

.param-label {
  display: block;
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.param-value {
  display: block;
  font-size: var(--step-h3);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.param-note {
  display: block;
  margin-top: 6px;
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.5;
}

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

.opinie-grid {
  display: grid;
  
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.opinia {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.opinia blockquote {
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  position: relative;
}

.opinia figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.opinia-author { font-weight: 800; font-size: var(--step-ui); }
.opinia-source { font-size: var(--step-small); color: var(--primary); font-weight: 600; }
.opinia-role   { font-size: var(--step-small); color: var(--muted); }

.opinie-source-note {
  margin-top: 32px;
  text-align: center;
  font-size: var(--step-small);
  color: var(--muted);
}

.opinie-source-note a { color: var(--primary); font-weight: 600; }

.kontakt-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 48px;
  align-items: start;
}

.kontakt-lead {
  font-size: var(--step-lead);
  line-height: 1.6;
  margin-bottom: 28px;
}

.kontakt-facts { list-style: none; display: grid; gap: 22px; }

.kontakt-facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--step-body);
}

.kontakt-facts svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.kontakt-facts a { color: var(--text); font-weight: 700; text-decoration: none; }
.kontakt-facts a:hover { color: var(--primary-dark); }
.kontakt-facts small { display: block; color: var(--muted); font-size: var(--step-small); font-weight: 400; margin-top: 2px; }

.kontakt-form-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

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

.nav-mobile-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: var(--step-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  text-decoration: none;
}

.nav-mobile-contact svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.nav-mobile-hours { font-size: var(--step-small); color: var(--muted); padding-bottom: 4px; }

.scroll-progress-bar::after {
  content: "";
  position: absolute;
  inset: -2px -11px;
}

@media (max-width: 768px) {
  .nav-mobile-contact {
    display: block;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 8px;
  }
}

@media (max-width: 900px) {
  .kontakt-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-y: 64px; }

  .kontakt-form-wrap { padding: 24px 20px; }
  .parametry { grid-template-columns: 1fr; }
  .hero-alert { width: 100%; }
}

.section--tight { padding: var(--section-y-tight) 0 0; }
.parametry-section + .section { padding-top: var(--section-y); }

.error-page {
  padding: 180px 0 var(--section-y);
  text-align: center;
}

.error-code {
  font-size: var(--step-error-code);
  font-weight: 900;
  line-height: 1;
  color: var(--line);
  letter-spacing: -0.04em;
}

.error-page h1 {
  font-size: var(--step-h2);
  font-weight: 800;
  margin-top: -12px;
  text-wrap: balance;
}

.error-lead {
  max-width: 60ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: var(--step-lead);
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.error-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  margin: 44px auto 0;
  max-width: 820px;
}

.error-links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
}

.error-links a:hover { border-color: var(--primary); color: var(--primary-dark); }

.error-phone { margin-top: 40px; color: var(--muted); }
.error-phone a { color: var(--primary); font-weight: 800; text-decoration: none; }
.error-phone small { color: var(--muted); }

.single-content h2 { font-size: var(--step-h3); font-weight: 800; margin: 32px 0 12px; }
.single-content h2:first-of-type { margin-top: 0; }

.portfolio-item h2 { margin-bottom: 12px; font-size: var(--step-h4); font-weight: 700; }
.portfolio-track .portfolio-item h2 { text-align: center; }

.card h2 { margin-bottom: 15px; font-size: var(--step-h3); overflow-wrap: break-word; hyphens: auto; }

.section--alt .section-subtitle,
.section--alt .card p,
.section--alt .about-content,
.section--alt .kontakt-facts small,
.opinie-section .section-subtitle,
.opinie-section .opinie-source-note,
.opinie-section .opinia-role { color: var(--muted-strong); }

.kontakt-lead { color: var(--text); }

.card--all {
  background: var(--bg-alt);
  border-style: dashed;
}

.card--all h3 { color: var(--primary-dark); }
