/*
 * InnovaSolutions. Jasno i spokojnie, żeby budziło zaufanie: ciepły papier, stalowy niebieski z logo,
 * jeden krój (Archivo) w lekkich grubościach. Motywem przewodnim jest sygnet z logo rysowany liniami.
 */

:root {
  --paper: #f3f2ee;
  --white: #fff;
  --mist: #e7ebee;
  --sand: #e9e4da;
  --ink: #16212c;
  --text: #2a3540;
  --muted: #5f6974;
  --line: rgba(22, 33, 44, 0.12);
  --steel: #4a6d8c;
  --steel-deep: #233a4f;
  --steel-soft: #c9d6e1;
  --star: #b8820f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(18px, 4vw, 64px);
  --radius: clamp(20px, 2.2vw, 32px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17.5px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
::selection {
  background: var(--steel);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 4px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 16px;
}
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow {
  max-width: 820px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow .gem {
  width: 18px;
  flex: none;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.6;
}
.gem line {
  vector-effect: non-scaling-stroke;
}
.draft-bar {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fbf0d3;
  color: var(--ink);
  font-size: 14px;
}

/* ---------- Przyciski i linki ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--steel-deep);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background: var(--steel);
}
.arr {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
a:hover > .arr {
  transform: translateX(5px);
}
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.tlink:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
a[href^="tel:"] {
  white-space: nowrap;
}

/* ---------- Pasek ---------- */

.bar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px var(--gutter);
}
.bar-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1320px;
  height: 60px;
  margin: 0 auto;
  padding: 0 8px 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.bar[data-solid] .bar-in,
body[data-menu-open] .bar-in {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(22, 33, 44, 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.logo-in {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: auto;
  height: 32px;
  color: #466f91;
}
.logo-word {
  width: auto;
  height: 11.5px;
  color: #4d4e4f;
}
/* Diament w logo co kilka sekund łapie światło, a po najechaniu przechyla się jak kryształ.
   Maską jest favicon.svg: ten sam sygnet z marginesem 10 jednostek, stąd rozmiar ponad 100% */
.logo-gem {
  position: relative;
  display: flex;
  transition: transform 0.9s var(--ease);
}
.logo-gem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(96, 160, 214, 0.9) 45%, #e8f3ff 50%, rgba(96, 160, 214, 0.9) 55%, transparent 64%) 0 0 / 250% 100% no-repeat;
  -webkit-mask: url(/favicon.svg) center / 110.09% 111.38% no-repeat;
  mask: url(/favicon.svg) center / 110.09% 111.38% no-repeat;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .logo-gem::after {
    animation: logo-glint 8s ease-in-out 1.2s infinite;
  }
  .logo:hover .logo-gem {
    transform: perspective(220px) rotateY(24deg) rotateX(-6deg);
  }
  .logo:hover .logo-gem::after {
    animation: logo-glint-now 1s var(--ease);
  }
}
@keyframes logo-glint {
  0%,
  80% {
    background-position-x: 0%;
  }
  100% {
    background-position-x: 100%;
  }
}
@keyframes logo-glint-now {
  from {
    background-position-x: 0%;
  }
  to {
    background-position-x: 100%;
  }
}
.gem .gem-outer {
  stroke-width: 2.2;
}
.gem .gem-inner {
  stroke-width: 1;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  transition: background 0.25s, color 0.25s;
}
.nav a:hover,
.nav a[aria-current] {
  background: rgba(74, 109, 140, 0.1);
  color: var(--ink);
}
.bar-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14.5px;
  transition: border-color 0.3s;
}
.bar-tel:hover {
  border-color: var(--steel);
}
.bar-tel small {
  color: var(--muted);
  font-size: 13px;
}
.bar-tel b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bar-tel i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--steel-deep);
  color: #fff;
  font-style: normal;
}
.bar-tel i svg {
  width: 16px;
  height: 16px;
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.menu-btn span {
  position: relative;
  width: 16px;
  height: 8px;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.menu-btn span::before {
  top: 0;
}
.menu-btn span::after {
  bottom: 0;
}
.menu-btn[aria-expanded="true"] span::before {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span::after {
  transform: translateY(-3.25px) rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .bar-tel:hover i svg {
    animation: ring 0.8s var(--ease);
  }
}
@keyframes ring {
  20% {
    transform: rotate(-14deg);
  }
  45% {
    transform: rotate(11deg);
  }
  70% {
    transform: rotate(-5deg);
  }
}

/* ---------- Nagłówek strony głównej ---------- */

.hero {
  padding: 136px 0 clamp(48px, 6vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.hero h1 {
  margin: 26px 0 28px;
  font-size: clamp(36px, 3.7vw, 60px);
  line-height: 1.06;
}
.hero h1 .l {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero h1 .l > span {
  display: block;
}
.hero h1 .l:nth-child(2) {
  color: var(--steel);
}
.hero .lead {
  max-width: 33rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.35;
}
.rating b {
  color: var(--ink);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rating em {
  display: block;
  color: var(--star);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.14em;
}
.hero .rating {
  max-width: 33rem;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.frame {
  position: relative;
  width: 100%;
  max-height: calc(100svh - 190px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2b2a25;
  box-shadow: 0 40px 80px -48px rgba(22, 33, 44, 0.55);
  isolation: isolate;
}
.frame .poster,
.frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame video {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.frame video[data-on] {
  opacity: 1;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 33, 44, 0) 45%, rgba(22, 33, 44, 0.55));
  pointer-events: none;
}
.frame-gem {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 7%;
  width: 30%;
  color: rgba(255, 255, 255, 0.85);
}
.board {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.35;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.board small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.faces {
  display: flex;
  flex: none;
}
.faces img {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}
.faces img + img {
  margin-left: -12px;
}
.clip-dots {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
}
.clip-dots span {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.clip-dots span::after {
  content: "";
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.clip-dots span[data-on]::after {
  animation: tick var(--hold, 9s) linear forwards;
}
.video-toggle {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(22, 33, 44, 0.45);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s;
}
.video-toggle:hover {
  background: rgba(22, 33, 44, 0.7);
}
.video-toggle svg {
  width: 14px;
  height: 14px;
}
.video-toggle:focus-visible {
  outline-color: #fff;
}
[data-paused] .clip-dots span[data-on]::after {
  animation-play-state: paused;
}
@keyframes tick {
  to {
    transform: scaleX(1);
  }
}

/* Wejście nagłówka */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .l > span {
    transform: translateY(105%);
    animation: rise 1.2s var(--ease) forwards;
    animation-delay: calc(0.15s + var(--i) * 0.12s);
  }
  .js .fade-in {
    opacity: 0;
    animation: fade 1s var(--ease) forwards;
    animation-delay: var(--d, 0.5s);
  }
  .js .frame-gem line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s var(--ease) forwards;
    animation-delay: calc(0.6s + var(--i) * 0.03s);
  }
}
@keyframes rise {
  to {
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Programy na taśmie ---------- */

.programs {
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.programs-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.programs li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px 22px 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.programs li::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--steel);
  opacity: 0.55;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .programs-track {
    animation: slide 46s linear infinite;
  }
  .programs:hover .programs-track,
  .programs:focus-visible .programs-track,
  .programs[data-paused] .programs-track {
    animation-play-state: paused;
  }
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sekcje ---------- */

.sec {
  padding: clamp(84px, 10vw, 160px) 0;
}
.sec-white {
  background: var(--white);
}
.sec-mist {
  background: var(--mist);
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 60px;
  margin-bottom: clamp(36px, 4vw, 64px);
}
.sec-head .h2 {
  margin-top: 22px;
}
.sec-head .lead {
  max-width: 30rem;
}

/* Dlaczego my */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(36px, 6vw, 110px);
}
.why .h2 {
  margin: 22px 0 32px;
}
.why-text p + p {
  margin-top: 1em;
}
.figures {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}
.figure {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.figure dt {
  display: flex;
  color: var(--ink);
  font-size: clamp(56px, 6vw, 92px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.figure dt sup {
  margin: 0.12em 0 0 0.04em;
  color: var(--steel);
  font-size: 0.42em;
  font-weight: 300;
}
.figure dd {
  max-width: 26ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}
.digit {
  display: inline-block;
  height: 0.95em;
  overflow: hidden;
}
.digit > span {
  display: block;
  transition: transform 1.6s var(--ease);
}
.digit > span > span {
  display: block;
  height: 0.95em;
}
.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--steel);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider .gem {
  width: 34px;
}

/* Usługi: karty nachodzą na siebie przy przewijaniu */
.stack {
  display: grid;
  gap: 20px;
}
.card {
  position: sticky;
  top: calc(100px + var(--n) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: min(620px, 76vh);
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 -18px 40px -32px rgba(22, 33, 44, 0.4);
  transform-origin: 50% 0;
}
.card:nth-child(4n + 2) {
  background: var(--mist);
}
.card:nth-child(4n + 3) {
  border-color: transparent;
  background: var(--steel-deep);
  color: rgba(255, 255, 255, 0.78);
}
.card:nth-child(4n + 3) h3,
.card:nth-child(4n + 3) .tlink {
  color: #fff;
}
.card:nth-child(4n + 3) li {
  border-color: rgba(255, 255, 255, 0.16);
}
.card:nth-child(4n + 3) li::before {
  background: var(--steel-soft);
}
.card:nth-child(4n + 4) {
  background: var(--sand);
}
.card-body {
  display: flex;
  flex-direction: column;
}
/* Etykieta etapu nad tytułem karty: jasna pigułka z rombem z logo */
.stage {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.stage i {
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--steel);
  transform: rotate(45deg);
}
.card:nth-child(4n + 3) .stage {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.card:nth-child(4n + 3) .stage i {
  background: var(--steel-soft);
}
.card h3 {
  margin: auto 0 18px;
  padding-top: 40px;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.02;
}
.card p {
  max-width: 36rem;
  font-size: 17px;
}
.card ul {
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}
.card li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.card li::before,
.prose ul li::before,
.scope li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--steel);
  transform: rotate(45deg);
}
.card .tlink {
  align-self: flex-start;
}
.card-media {
  position: relative;
  min-height: 260px;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--mist);
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.js .card:not([data-on]) .card-media img {
  transform: scale(1.08);
}
.card-media.gemfill {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.5);
}
.card:nth-child(4n + 3) .card-media.gemfill {
  background: rgba(255, 255, 255, 0.06);
}
.card-media.gemfill .gem {
  width: 58%;
  color: var(--steel);
}
.card:nth-child(4n + 3) .card-media.gemfill .gem {
  color: var(--steel-soft);
}

/* Linie sygnetu rysują się, gdy element wjedzie na ekran */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animated] line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease);
    transition-delay: calc(var(--i) * 28ms);
  }
  .js [data-on] [data-animated] line,
  .js [data-animated][data-on] line {
    stroke-dashoffset: 0;
  }
}

/* Współpraca: oś kroków po lewej, ilustracja bieżącego kroku po prawej */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
}
.process .h2 {
  margin: 22px 0 48px;
}
.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}
.steps::after {
  width: 2px;
  left: 22.5px;
  background: var(--steel);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 26px;
  padding: 0 0 clamp(36px, 4vw, 56px);
}
.step:last-child {
  padding-bottom: 0;
}
.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step small {
  display: block;
  padding-top: 12px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
}
.step h3 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  transition: color 0.5s;
}
.step p {
  max-width: 30rem;
  color: var(--muted);
  transition: color 0.5s;
}
.js .step:not([data-active]) h3 {
  color: #8d969f;
}
.js .step:not([data-active]) p {
  color: #a3abb2;
}
.js .step[data-done] .step-no {
  border-color: var(--steel);
  color: var(--steel);
}
.js .step[data-active] .step-no {
  border-color: var(--steel-deep);
  background: var(--steel-deep);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(74, 109, 140, 0.12);
}
.process-art {
  position: sticky;
  top: 16vh;
  align-self: start;
  display: grid;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--steel);
  overflow: hidden;
}
.pstep {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: 74%;
  stroke-width: 2.2;
  overflow: visible;
  transition: opacity 0.5s, transform 0.7s var(--ease);
}
.pstep-final .orbit polygon {
  opacity: 1;
}
.js .pstep {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}
.js .process-art[data-stage="1"] [data-pstep="1"],
.js .process-art[data-stage="2"] [data-pstep="2"],
.js .process-art[data-stage="3"] [data-pstep="3"] {
  opacity: 1;
  transform: none;
}
.pstep .thick {
  stroke-width: 4;
}
.pstep .faint {
  opacity: 0.25;
}
.pstep .fill-card {
  fill: var(--white);
  stroke: none;
}
.pstep .fill-steel {
  fill: var(--steel);
  fill-opacity: 0.12;
  stroke: none;
}
.pstep .p-dot {
  fill: currentColor;
  stroke: none;
}
.pstep .bar {
  fill: currentColor;
  fill-opacity: 0.18;
}
.pstep .tick {
  stroke-width: 2.6;
}
.pstep .p-pop,
.pstep .p-grow,
.pstep .p-dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.pstep .p-grow {
  transform-origin: 0 50%;
}
.pstep .o {
  stroke-width: 2.4;
}
.pstep .in {
  stroke-width: 1.1;
}
.pstep polygon {
  fill: currentColor;
  stroke: none;
  opacity: var(--a);
}
.process-art figcaption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.pbar {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  background: var(--steel);
  transform: scaleX(var(--p, 0.33));
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

/* Ilustracja kroku rysuje się od nowa przy każdym wejściu na ten krok */
@media (prefers-reduced-motion: no-preference) {
  .js [data-play] .p-draw {
    stroke-dasharray: 1;
    animation: p-draw 0.9s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
  .js [data-play] .p-pop {
    animation: p-pop 0.7s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
  .js [data-play] .p-grow {
    animation: p-grow 0.9s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
  .js [data-play] .p-dot {
    animation: p-pop 0.5s var(--ease) both, p-blink 1.4s ease-in-out infinite;
    animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.6s);
  }
  .js [data-play] .o {
    stroke-dasharray: 1;
    animation: p-draw 1s var(--ease) both;
    animation-delay: calc(var(--i) * 80ms);
  }
  .js [data-play] .in {
    stroke-dasharray: 1;
    animation: p-draw 0.8s var(--ease) both;
    animation-delay: calc(0.6s + var(--i) * 22ms);
  }
  .js [data-play] polygon {
    animation: p-fill 0.8s ease both;
    animation-delay: calc(1.4s + var(--i) * 16ms);
  }
}
@keyframes p-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes p-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  70% {
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes p-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}
@keyframes p-fill {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--a);
  }
}
@keyframes p-blink {
  50% {
    opacity: 0.25;
  }
}

/* Zespół */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px);
}
.person figure {
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.person figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transition: transform 1.2s var(--ease);
}
.person:hover figure img {
  transform: scale(1.04);
}
.person h3 {
  margin-top: 24px;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.05;
}
.person .role {
  margin-top: 8px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
}
.person .bio {
  max-width: 36rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}
.person .bio p + p {
  margin-top: 0.8em;
}
.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 18px;
}

/* Opinie */
.qbox {
  display: grid;
  margin-top: clamp(40px, 5vw, 72px);
}
.q {
  grid-area: 1 / 1;
}
.js .q {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s, transform 0.8s var(--ease);
  pointer-events: none;
}
.js .q[data-on] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.q p {
  max-width: 26em;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.q p::before {
  content: "„";
  color: var(--steel);
}
.q p::after {
  content: "”";
  color: var(--steel);
}
.q cite {
  display: block;
  margin-top: 26px;
  color: var(--muted);
  font-style: normal;
  font-size: 15.5px;
}
.q cite b {
  color: var(--ink);
  font-weight: 500;
}
.qnav {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}
.qnav button {
  position: relative;
  width: 44px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(22, 33, 44, 0.14);
  overflow: hidden;
  cursor: pointer;
}
.qnav button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--steel-deep);
  transform: scaleX(0);
  transform-origin: left;
}
.qnav button[aria-current="true"]::after {
  animation: tick 7s linear forwards;
}
.qnav[data-paused] button[aria-current="true"]::after {
  animation-play-state: paused;
}

/* Pytania */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 110px);
}
.faq-grid .h2 {
  margin-top: 22px;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.faq summary i {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s;
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary i {
  border-color: var(--steel-deep);
  background: var(--steel-deep);
  color: #fff;
}
.faq details[open] summary i::after {
  transform: translate(-50%, -50%);
}
.faq summary:hover i {
  border-color: var(--steel);
}
.faq .answer {
  max-width: 44rem;
  padding: 0 60px 26px 0;
  color: var(--muted);
}

/* Kontakt */
.contact {
  padding: clamp(28px, 4vw, 48px) 0 0;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 96px);
  border-radius: var(--radius);
  background: var(--steel-deep);
  color: rgba(255, 255, 255, 0.74);
}
.contact-panel .eyebrow {
  color: var(--steel-soft);
}
.contact-panel h2 {
  margin: 22px 0 18px;
  color: #fff;
}
.contact-panel .lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.72);
}
.contact-gem {
  position: absolute;
  right: -7%;
  top: -18%;
  width: min(40%, 460px);
  color: rgba(201, 214, 225, 0.16);
  pointer-events: none;
}
.mail {
  position: relative;
  display: inline-block;
  margin-top: 40px;
  color: #fff;
  font-size: clamp(26px, 4.4vw, 68px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.mail:hover::after {
  transform: scaleX(0);
}
.contacts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}
.contacts a {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.contacts a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}
.contacts small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}
.contacts b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 300;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Podstrony ---------- */

.page-hero {
  padding: 150px 0 clamp(48px, 6vw, 88px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.nowrap {
  white-space: nowrap;
}
/* Bieżąca strona zostaje w linii z ukośnikiem i w razie potrzeby zawija się sama, zamiast spadać pod spód */
.crumbs [aria-current] {
  flex: 1 1 0;
  min-width: 0;
}
.crumbs a:hover,
.crumbs [aria-current] {
  color: var(--ink);
}
.page-hero .eyebrow {
  margin-top: 40px;
}
.page-title {
  max-width: 18ch;
  margin-top: 18px;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1.02;
}
.page-lead {
  max-width: 40rem;
  margin-top: 26px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.prose > * + * {
  margin-top: 1em;
}
.prose-lg {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
}
.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.prose a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.prose ul,
.prose ol {
  padding-left: 0;
  list-style: none;
}
.prose li {
  position: relative;
  padding-left: 24px;
}
/* Romb na środku pierwszej linii: w tekście interlinia jest większa niż w kartach usług */
.prose ul li::before {
  top: calc(0.5lh - 3.5px);
}
.prose li + li {
  margin-top: 6px;
}
.prose ol {
  counter-reset: li;
}
.prose ol li::before {
  counter-increment: li;
  content: counter(li) ".";
  position: absolute;
  left: 0;
  color: var(--steel);
}
.side-card {
  position: sticky;
  top: 110px;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.side-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
}
.side-card p {
  color: var(--muted);
  font-size: 16px;
}
.side-card .btn {
  width: 100%;
  margin-top: 22px;
}
.side-people {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.side-people a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.side-people a:hover b {
  color: var(--steel);
}
.side-people b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.scope li {
  position: relative;
  padding: 16px 0 16px 24px;
  border-bottom: 1px solid var(--line);
}
.wide-figure {
  margin-top: clamp(48px, 6vw, 96px);
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.wide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.next-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.next-services a {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 180px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.next-services a:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
}
.next-services small {
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
}
.next-services span {
  margin-top: auto;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.doc-date {
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
}
/* 404: napis z trójkątnych ścianek jak diament w logo; bez JS zostaje zwykły, cienki napis */
.page-404 {
  overflow: clip;
  padding: 120px 0 clamp(56px, 7vw, 100px);
}
.e404 {
  color: var(--ink);
  font-size: clamp(120px, 24vw, 340px);
  font-weight: 200;
  letter-spacing: -0.06em;
  line-height: 0.8;
}
.crystal {
  display: none;
  width: 100%;
  aspect-ratio: 1200 / 440;
  touch-action: pan-y;
  cursor: crosshair;
}
.js .crystal {
  display: block;
}
.js .e404 {
  display: none;
}
.e404-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
  margin-top: clamp(24px, 3vw, 48px);
}
.e404-body .page-title {
  margin-top: 0;
}
.e404-body .lost {
  margin-top: 0;
}
@media (max-width: 860px) {
  .crystal {
    aspect-ratio: 1200 / 620;
  }
  .e404-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Stopka ---------- */

.site-footer {
  padding: clamp(48px, 6vw, 80px) 0 28px;
  color: var(--muted);
  font-size: 14.5px;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.foot-top p {
  max-width: 22rem;
  margin-top: 16px;
}
.foot-h {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.foot-col a {
  display: block;
  padding: 3px 0;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-col dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
}
.foot-col dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
}
.foot-bottom a:hover {
  color: var(--ink);
}

/* Powrót na górę z obwódką postępu */
.to-top {
  position: fixed;
  z-index: 40;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 30px -14px rgba(22, 33, 44, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
}
.to-top[data-on] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  transform: rotate(-90deg);
}
.to-top .ring circle {
  stroke: var(--steel);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.to-top .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.to-top:hover .arrow {
  transform: translateY(-3px);
}

/* Treść pojawia się raz, spokojnie */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .js [data-in][data-on] {
    opacity: 1;
    transform: none;
  }
}

/* Płynne przejścia między podstronami */
@view-transition {
  navigation: auto;
}

/* ---------- Węższe ekrany ---------- */

@media (max-width: 1080px) {
  /* Logo po lewej, słuchawka po prawej, menu pośrodku paska */
  .menu-btn {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 24px 48px -28px rgba(22, 33, 44, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
  }
  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 18px;
  }
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .next-services {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .bar-tel small {
    display: none;
  }
  .hero {
    padding-top: 112px;
  }
  .hero-grid,
  .why-grid,
  .process-grid,
  .team-grid,
  .faq-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .frame {
    max-height: none;
    aspect-ratio: 4 / 3.6;
  }
  .frame-gem {
    width: 24%;
  }
  .card {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .card-media {
    order: -1;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .card h3 {
    margin-top: 12px;
    padding-top: 18px;
  }
  /* Na telefonie ilustracja jest niskim paskiem przyklejonym pod menu, żeby zmieniała się razem z krokami */
  .process-art {
    top: 84px;
    z-index: 2;
    order: -1;
    width: 100%;
    height: 200px;
    aspect-ratio: auto;
    margin-bottom: 8px;
    box-shadow: 0 18px 36px -26px rgba(22, 33, 44, 0.45);
  }
  .pstep,
  .pstep[data-pstep="3"] {
    width: auto;
    height: 128px;
    margin-top: -18px;
  }
  .process-art figcaption {
    left: 18px;
    right: 18px;
    bottom: 14px;
    font-size: 13px;
  }
  .contacts,
  .scope {
    grid-template-columns: 1fr;
  }
  .side-card {
    position: static;
  }
  .page-hero {
    padding-top: 120px;
  }
  .faq .answer {
    padding-right: 0;
  }
}
@media (min-width: 861px) {
  .hero h1 .l {
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .logo-word,
  .bar-tel b {
    display: none;
  }
  .bar-tel {
    padding: 4px;
  }
  .foot-top {
    grid-template-columns: 1fr;
  }
}
@media print {
  .bar,
  .to-top,
  .programs,
  .frame {
    display: none !important;
  }
}

/* ---------- Animowane ilustracje usług ---------- */

.card-media {
  display: grid;
  place-items: center;
  color: var(--steel);
}
.card:nth-child(4n + 1) .card-media {
  background: var(--paper);
}
.card:nth-child(4n + 2) .card-media {
  background: rgba(255, 255, 255, 0.6);
}
.card:nth-child(4n + 3) .card-media {
  background: rgba(255, 255, 255, 0.06);
  color: var(--steel-soft);
}
.card:nth-child(4n + 4) .card-media {
  background: rgba(255, 255, 255, 0.5);
}
.art {
  width: 86%;
  max-height: 88%;
  stroke-width: 2;
  overflow: visible;
}
.art .thick {
  stroke-width: 4;
}
.art .faint {
  opacity: 0.35;
}
.art .fill-soft {
  fill: currentColor;
  fill-opacity: 0.08;
  stroke: none;
}
.art .fill-card {
  fill: var(--white);
  stroke: none;
}
.card:nth-child(4n + 3) .art .fill-card {
  fill: var(--steel-deep);
}
.art .dot,
.art .milestone {
  fill: currentColor;
  stroke: none;
}
.art .dot-bg {
  fill: var(--paper);
}
.card:nth-child(4n + 3) .art .dot-bg {
  fill: var(--steel-deep);
}
.art .bar {
  fill: currentColor;
  fill-opacity: 0.16;
}
.art .tick {
  stroke-width: 2.6;
}
.art .a-pop,
.art .a-slide,
.art .a-grow-y,
.art .a-grow-x,
.art .a-idea {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.art .a-grow-y {
  transform-origin: 50% 100%;
}
.art .a-grow-x {
  transform-origin: 0 50%;
}

/* Jeden cykl trwa 10 s: rysowanie, chwila na obejrzenie, spokojne wygaszenie i od nowa */
@media (prefers-reduced-motion: no-preference) {
  .js .art .a-draw {
    stroke-dasharray: 1;
    animation: a-draw 10s var(--ease) infinite both;
  }
  .js .art .a-pop {
    animation: a-pop 10s var(--ease) infinite both;
  }
  .js .art .a-slide {
    animation: a-slide 10s var(--ease) infinite both;
  }
  .js .art .a-grow-y {
    animation: a-grow-y 10s var(--ease) infinite both;
  }
  .js .art .a-grow-x {
    animation: a-grow-x 10s var(--ease) infinite both;
  }
  .js .art .a-idea {
    animation: a-idea 10s ease-in-out infinite both;
  }
  .js .art * {
    animation-delay: var(--d, 0s);
  }
  .js .card:not([data-on]) .art * {
    animation-play-state: paused;
  }
}
@keyframes a-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  12%,
  80% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  90%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes a-pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  6% {
    opacity: 1;
    transform: scale(1.1);
  }
  10%,
  80% {
    opacity: 1;
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes a-slide {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }
  8%,
  80% {
    opacity: 1;
    transform: none;
  }
  90%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes a-grow-y {
  0% {
    transform: scaleY(0);
  }
  12%,
  80% {
    transform: scaleY(1);
    opacity: 1;
  }
  90%,
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}
@keyframes a-grow-x {
  0% {
    transform: scaleX(0);
  }
  30%,
  80% {
    transform: scaleX(1);
    opacity: 1;
  }
  90%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes a-idea {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
  10%,
  30%,
  50%,
  70% {
    opacity: 1;
    transform: scale(1);
  }
  20%,
  40%,
  60% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  80% {
    opacity: 0;
  }
}

/* ---------- Wariant 2: film na całym nagłówku ---------- */

.hero-film {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 140px 0 clamp(40px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  isolation: isolate;
}
.hero-film .hero-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #2b2a25;
}
.hero-film .hero-bg .poster,
.hero-film .hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-film .hero-bg video {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-film .hero-bg video[data-on] {
  opacity: 1;
}
.hero-film .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Jasne filmy (niebo, okno) też muszą zostawić czytelny tytuł: mocniej po lewej, gdzie stoi tekst */
  background:
    linear-gradient(90deg, rgba(18, 30, 42, 0.86) 0%, rgba(18, 30, 42, 0.74) 38%, rgba(18, 30, 42, 0.34) 68%, rgba(18, 30, 42, 0.14) 100%),
    linear-gradient(180deg, rgba(18, 30, 42, 0.45) 0%, rgba(18, 30, 42, 0) 32%, rgba(18, 30, 42, 0.6) 100%);
}
.hero-film .clip-dots {
  top: auto;
  bottom: 34px;
  left: auto;
  right: calc(var(--gutter) + 48px);
  z-index: 2;
}
.hero-film .video-toggle {
  top: auto;
  bottom: 18px;
  right: var(--gutter);
  background: rgba(255, 255, 255, 0.12);
}
.hero-film .video-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
}
.hero-film .hero-grid {
  width: 100%;
  align-items: end;
}
.hero-film h1,
.hero-film .rating b {
  color: #fff;
}
.hero-film h1 .l:nth-child(2) {
  color: var(--steel-soft);
}
.hero-film .eyebrow {
  color: var(--steel-soft);
}
.hero-film .lead,
.hero-film .rating {
  color: rgba(255, 255, 255, 0.78);
}
.hero-film .rating {
  border-top-color: rgba(255, 255, 255, 0.22);
}
.hero-film .rating em {
  color: #e9b949;
}
.hero-film .btn {
  background: #fff;
  color: var(--ink);
}
.hero-film .btn:hover {
  background: var(--steel-soft);
}
.hero-film .tlink {
  color: #fff;
}
.board-film {
  position: static;
  align-self: end;
  justify-self: end;
  width: max-content;
  max-width: 100%;
}
body.film-top:not([data-menu-open]) .bar:not([data-solid]) .nav a,
body.film-top:not([data-menu-open]) .bar:not([data-solid]) .menu-btn {
  color: #fff;
}
body.film-top:not([data-menu-open]) .bar:not([data-solid]) .nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}
body.film-top:not([data-menu-open]) .bar:not([data-solid]) .logo-mark {
  color: #fff;
}
body.film-top:not([data-menu-open]) .bar:not([data-solid]) .logo-word {
  color: rgba(255, 255, 255, 0.9);
}
body.film-top:not([data-menu-open]) .bar:not([data-solid]) .menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
@media (max-width: 860px) {
  .hero-film {
    min-height: 92svh;
  }
  /* Na telefonie tekst zajmuje całą szerokość, więc przyciemnienie jest równe w poziomie */
  .hero-film .hero-bg::after {
    background: linear-gradient(180deg, rgba(18, 30, 42, 0.62) 0%, rgba(18, 30, 42, 0.72) 55%, rgba(18, 30, 42, 0.82) 100%);
  }
  .board-film {
    justify-self: start;
  }
}
.eu-stars {
  width: 22px;
  height: 22px;
  flex: none;
}
/* Oś biegnie od środka pierwszego do środka ostatniego numeru (długość liczy skrypt) */
.steps::before,
.steps::after {
  bottom: auto;
  height: var(--rail, calc(100% - 48px));
}

/* ---------- Krok 3: finał, który zaprasza do kontaktu ---------- */

.process-art {
  transition: background 0.9s var(--ease), color 0.9s var(--ease);
}
.process-art[data-stage="3"] {
  background: var(--steel-deep);
  color: var(--steel-soft);
}
.process-art[data-stage="3"] figcaption {
  color: rgba(255, 255, 255, 0.7);
}
.process-art[data-stage="3"] .pbar {
  background: rgba(255, 255, 255, 0.18);
}
.process-art[data-stage="3"] .pbar i {
  background: #ffcc00;
}
.pstep-final {
  position: relative;
  width: 76%;
  aspect-ratio: 1;
  margin-top: -40px;
}
.pstep-final svg {
  position: absolute;
  overflow: visible;
}
.pstep-final .orbit {
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #ffcc00;
}
.pstep-final .final-gem {
  inset: 19%;
  width: 62%;
  height: 62%;
  color: #e3ebf2;
  stroke-width: 2.2;
}
.pstep-final .final-gem polygon {
  fill: #c9d6e1;
}
.pstep-final .sparks {
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #fff;
}
.pstep-final .sparks path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.art-cta {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  color: #fff;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 300;
  letter-spacing: -0.01em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.8s var(--ease), visibility 0.6s;
}
.art-cta .btn {
  min-height: 48px;
  padding: 0 22px;
  background: #fff;
  color: var(--ink);
}
.art-cta .btn:hover {
  background: #ffcc00;
}
.process-art[data-stage="3"] .art-cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 2.6s;
}
.no-js .art-cta,
.process-art:not([data-stage="3"]) .art-cta {
  transition-delay: 0s;
}

@media (prefers-reduced-motion: no-preference) {
  /* Gwiazdy UE wskakują po kolei, potem cały krąg powoli się obraca */
  .js [data-play] .orbit polygon {
    transform-box: fill-box;
    transform-origin: center;
    animation: p-pop 0.5s var(--ease) both;
    animation-delay: calc(1.9s + var(--i) * 70ms);
  }
  .js [data-play] .orbit {
    animation: orbit 60s linear 2.8s infinite;
  }
  /* Błysk przesuwa się po ściankach od lewej do prawej, co kilka sekund */
  .js [data-play] .final-gem polygon {
    animation: p-fill 0.8s ease both, shine 5s ease-in-out infinite;
    animation-delay: calc(1.2s + var(--i) * 14ms), calc(2.8s + var(--x) * 0.9s);
  }
  /* Sygnet delikatnie oddycha i kołysze się w przestrzeni */
  .js [data-play].pstep-final .final-gem {
    animation: sway 7s ease-in-out 2.6s infinite;
  }
  .js [data-play] .sparks path {
    animation: spark 3.2s ease-in-out infinite;
    animation-delay: calc(2.6s + var(--s));
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shine {
  0%,
  70%,
  100% {
    opacity: var(--a);
  }
  80% {
    opacity: 0.9;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: perspective(700px) rotateY(-10deg) rotateX(4deg) scale(1);
  }
  50% {
    transform: perspective(700px) rotateY(10deg) rotateX(-3deg) scale(1.03);
  }
}
@keyframes spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
  70% {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
  }
}
@media (max-width: 860px) {
  .pstep-final {
    width: auto;
    height: 150px;
    margin-top: -26px;
  }
  .art-cta {
    position: static;
    grid-area: 1 / 1;
    align-self: end;
    padding: 0 18px 46px;
    font-size: 15px;
  }
  .process-art[data-stage="3"] .pstep-final {
    opacity: 0.35;
  }
  .art-cta .btn {
    min-height: 42px;
  }
}

/* ---------- Karta „Bezpośredni kontakt z ekspertami”: klikalna, z lekkim pulsowaniem ---------- */

.board {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.board:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(22, 33, 44, 0.45);
}
.board-text {
  flex: 1;
  line-height: 1.35;
}
.board-text small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.faces {
  position: relative;
}
.faces img {
  position: relative;
  z-index: 1;
}
.pulse {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(74, 109, 140, 0.35);
  transform: translate(-50%, -50%);
}
.board-go {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--steel-deep);
  color: #fff;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.board:hover .board-go {
  transform: translateX(3px);
  background: var(--steel);
}
@media (prefers-reduced-motion: no-preference) {
  .pulse {
    animation: pulse 2.6s ease-out infinite;
  }
}
@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35, 1.9);
  }
}
/* Na filmie karta jest ciemnym szkłem, żeby nie odcinała się jasną plamą */
.board-film {
  background: rgba(18, 30, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.board-film .board-text small {
  color: rgba(255, 255, 255, 0.68);
}
.board-film .board-go {
  background: #fff;
  color: var(--ink);
}
.board-film .pulse {
  background: rgba(255, 255, 255, 0.35);
}
.board-film:hover {
  background: rgba(18, 30, 42, 0.72);
}

/* Krok 3: żółte gwiazdy UE i więcej miejsca między kręgiem a sygnetem */
.pstep-final .orbit polygon {
  fill: #ffcc00;
}
.pstep-final .final-gem {
  inset: 23%;
  width: 54%;
  height: 54%;
}
@media (max-width: 860px) {
  .art-cta {
    position: absolute;
    left: auto;
    right: 16px;
    bottom: 40px;
    padding: 0;
  }
  .art-cta p {
    display: none;
  }
  .process-art[data-stage="3"] .pstep-final {
    opacity: 1;
  }
}
/* Zagięty róg kartki: delikatnie wypełniony, jak odwrócony papier */
.art .fold {
  fill: currentColor;
  fill-opacity: 0.14;
}
.art .stamp .faint {
  opacity: 0.45;
}
@media (max-width: 860px) {
  .board-film {
    width: auto;
    justify-self: stretch;
  }
}

/* ---------- „Dlaczego warto”: spokojniejsza miara tytułu i liczby z mikroanimacjami ---------- */

.why .h2 {
  max-width: 21ch;
  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.08;
}
.why-text {
  max-width: 36rem;
}
.figures {
  border-top: 0;
  gap: 0;
}
.figure {
  position: relative;
  padding: 30px 0 32px;
  border-bottom: 0;
  cursor: default;
}
.fig-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}
.fig-line i {
  position: absolute;
  inset: 0;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d);
}
.fig-line b {
  position: absolute;
  right: 0;
  top: -5px;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--steel);
  border-radius: 2px;
  background: var(--paper);
  transform: rotate(45deg) scale(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.8, 0.5, 1), background 0.3s;
  transition-delay: calc(var(--d) + 0.8s);
}
.figure[data-on] .fig-line i {
  transform: scaleX(0.28);
}
.figure[data-on] .fig-line b {
  transform: rotate(45deg) scale(1);
}
.figure:hover .fig-line i {
  transform: scaleX(1);
  transition-delay: 0s;
}
.figure:hover .fig-line b {
  background: var(--steel);
  transform: rotate(225deg) scale(1.15);
  transition-delay: 0.25s;
}
.figure dt {
  align-items: flex-end;
  gap: 0;
}
.fig-num {
  display: inline-flex;
  align-items: flex-end;
  line-height: 0.95;
}
.reel {
  display: inline-block;
  height: 0.95em;
  overflow: hidden;
}
.reel .tape {
  display: block;
  transform: translateY(calc(var(--i, 0) * -0.95em));
}
.reel[data-spin] .tape {
  transition: transform var(--dur, 1.6s) cubic-bezier(0.16, 1, 0.3, 1);
}
.reel .tape > span {
  display: block;
  height: 0.95em;
}
.fig-sep {
  display: inline-block;
}
.figure dt .fig-plus {
  display: inline-block;
  margin: 0.08em 0 0 0.06em;
  align-self: flex-start;
  transition: transform 0.6s var(--ease);
}
.figure:hover .fig-plus {
  transform: rotate(180deg);
}
.figure dd {
  transition: color 0.3s;
}
.figure:hover dd {
  color: var(--ink);
}

/* Znaki przy liczbach */
.fig-accent {
  display: inline-flex;
  align-self: flex-end;
  gap: 4px;
  margin: 0 0 0.16em 18px;
  font-size: 16px;
  letter-spacing: 0;
}
.fig-years i {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--steel-soft);
  transform-origin: bottom;
  transition: background 0.3s, transform 0.4s var(--ease);
  transition-delay: calc(var(--n, 0) * 40ms);
}
.fig-areas {
  display: inline-grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
}
.fig-areas i {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--steel-soft);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}
.fig-stars i {
  color: var(--steel-soft);
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  transition: color 0.3s, transform 0.4s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .figure:hover .fig-years i {
    background: var(--steel);
    transform: scaleY(1.5);
  }
  .figure:hover .fig-areas i {
    border-color: var(--steel);
    background: var(--steel);
  }
  .figure:hover .fig-stars i {
    color: var(--star);
    transform: translateY(-2px);
  }
}
.figure[data-on] .fig-stars i {
  color: var(--star);
}
.figure[data-on] .fig-areas i {
  border-color: var(--steel);
}
.figure[data-on] .fig-years i {
  background: var(--steel);
  opacity: 0.55;
}
.fig-years i:nth-child(2) { --n: 1; }
.fig-years i:nth-child(3) { --n: 2; }
.fig-years i:nth-child(4) { --n: 3; }
.fig-years i:nth-child(5) { --n: 4; }
.fig-years i:nth-child(6) { --n: 5; }
.fig-years i:nth-child(7) { --n: 6; }
.fig-years i:nth-child(8) { --n: 7; }
.fig-years i:nth-child(9) { --n: 8; }
.fig-years i:nth-child(10) { --n: 9; }
.fig-areas i:nth-child(2),
.fig-stars i:nth-child(2) { transition-delay: 70ms; }
.fig-areas i:nth-child(3),
.fig-stars i:nth-child(3) { transition-delay: 140ms; }
.fig-areas i:nth-child(4),
.fig-stars i:nth-child(4) { transition-delay: 210ms; }
.fig-stars i:nth-child(5) { transition-delay: 280ms; }

/* Krok 1: drugi dymek leży na pierwszym, z pełnym tłem i lekkim cieniem */
.pstep .fill-mist {
  fill: #e4eaef;
  stroke: none;
}
.pstep .bubble-shadow {
  fill: rgba(22, 33, 44, 0.09);
  stroke: none;
}

/* ---------- Ilustracje rozliczania i szkoleń: kolejne etapy po sobie, cykl 12 s ---------- */

.art .pending {
  stroke: var(--steel-soft);
}
.card:nth-child(4n + 3) .art .pending {
  stroke: rgba(201, 214, 225, 0.35);
}
.art .check-bg {
  fill: currentColor;
  stroke: none;
}
.art .check {
  stroke: var(--white);
  stroke-width: 2.8;
}
.card:nth-child(4n + 3) .art .check {
  stroke: var(--steel-deep);
}
.art .thin {
  stroke-width: 2;
}
.art .faint-dot {
  fill: var(--steel-soft);
  stroke: none;
}
.art .bulb {
  stroke: var(--white);
  stroke-width: 1.8;
}
.art .s-in,
.art .s-pop,
.art .s-grow,
.art .s-grow-y {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.art .s-grow {
  transform-origin: 0 50%;
}
.art .s-grow-y {
  transform-origin: 50% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .js .art .s-in {
    animation: s-in 12s var(--ease) infinite both;
  }
  .js .art .s-draw {
    stroke-dasharray: 1;
    animation: s-draw 12s var(--ease) infinite both;
  }
  .js .art .s-pop {
    animation: s-pop 12s var(--ease) infinite both;
  }
  .js .art .s-grow {
    animation: s-grow 12s var(--ease) infinite both;
  }
  .js .art .s-grow-y {
    animation: s-grow-y 12s var(--ease) infinite both;
  }
}
@keyframes s-in {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }
  5%,
  88% {
    opacity: 1;
    transform: none;
  }
  94%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes s-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  6%,
  88% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  94%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes s-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  3% {
    opacity: 1;
    transform: scale(1.15);
  }
  5%,
  88% {
    opacity: 1;
    transform: scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes s-grow {
  0% {
    transform: scaleX(0);
  }
  6%,
  88% {
    transform: scaleX(1);
    opacity: 1;
  }
  94%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes s-grow-y {
  0% {
    transform: scaleY(0);
  }
  6%,
  88% {
    transform: scaleY(1);
    opacity: 1;
  }
  94%,
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* Panel kroków zawsze mieści się na ekranie pod paskiem menu; dół panelu należy do podpisu i zaproszenia */
@media (min-width: 861px) {
  .process-art {
    top: 104px;
    max-height: calc(100svh - 128px);
  }
  .pstep {
    align-self: start;
    margin-top: 6%;
    max-height: calc(100% - 150px);
  }
  .pstep-final {
    width: auto;
    height: calc(100% - 170px);
    max-height: none;
    margin-top: 28px;
  }
}
.why .h2 {
  max-width: 24ch;
}
/* Miejsce pod ostatnim krokiem, żeby panel z finałem zdążył stać w całości, zanim sekcja się skończy */
@media (min-width: 861px) {
  .steps {
    padding-bottom: 18vh;
  }
}

/* Podpis wykonawcy w stopce: znak adizzi obraca się, a napis „adizzi” zmienia się w „ad AI eazzy” */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.adz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  color: var(--ink);
}
.adz svg {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.adz:hover svg,
.adz:focus-visible svg {
  transform: rotate(180deg);
}
.adz-w {
  font: 700 18px/1 var(--font);
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.adz .bl {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.36;
  transition: max-width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.adz .bl i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.34s, color 0.38s, text-shadow 0.38s;
}
.adz .bl--new,
.adz .bl--sp {
  max-width: 0;
}
.adz .bl--sp {
  width: 0.3em;
}
.adz .bl--new i,
.adz .bl--sp i {
  opacity: 0;
  transform: translateY(-1.15em);
}
.adz .bl--out {
  max-width: 1.1em;
}
.adz:is(:hover, :focus-visible) .bl--new {
  max-width: 1.1em;
}
.adz:is(:hover, :focus-visible) .bl--sp {
  max-width: 0.3em;
}
.adz:is(:hover, :focus-visible) .bl--new i,
.adz:is(:hover, :focus-visible) .bl--sp i {
  opacity: 1;
  transform: none;
}
.adz:is(:hover, :focus-visible) .bl--out {
  max-width: 0;
}
.adz:is(:hover, :focus-visible) .bl--out i {
  opacity: 0;
  transform: translateY(1.15em);
}
.adz:is(:hover, :focus-visible) .bl,
.adz:is(:hover, :focus-visible) .bl i {
  transition-delay: calc(var(--n) * 24ms);
}
.adz:is(:hover, :focus-visible) .bl--up {
  text-transform: uppercase;
}
.adz:is(:hover, :focus-visible) .bl--ai {
  overflow: visible;
}
.adz:is(:hover, :focus-visible) .bl--ai i {
  color: #12a4b9;
  text-shadow: 0 0 14px rgba(26, 188, 211, 0.45);
}
.adz:is(:hover, :focus-visible) .bl:not(.bl--ai) i {
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .adz svg,
  .adz .bl,
  .adz .bl i {
    transition: none !important;
  }
}

/* ---------- Taśma programów: nazwa pod kursorem się podświetla, reszta przygasa ---------- */

.programs li {
  transition: color 0.35s, opacity 0.35s;
}
.programs li::after {
  transition: transform 0.5s var(--ease), opacity 0.35s, background 0.35s;
}
@media (hover: hover) {
  .programs:hover li {
    opacity: 0.45;
  }
  .programs li:hover {
    opacity: 1;
    color: var(--ink);
  }
  .programs li:hover::after {
    opacity: 1;
    background: #ffcc00;
    transform: rotate(225deg) scale(1.4);
  }
}

/* ---------- Opinie: znak Google i podpowiedź do przesuwania palcem ---------- */

.g-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.rating-google {
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.rating-google:hover {
  border-color: var(--steel);
  transform: translateY(-2px);
}
.rating-google b {
  font-size: 28px;
}
.q cite {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g-small {
  width: 16px;
  height: 16px;
}
.qnav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 40px;
}
.qnav-row .qnav {
  margin-top: 0;
}
.qswipe {
  display: none;
  color: var(--muted);
  font-size: 13.5px;
}
.qbox {
  touch-action: pan-y;
}
@media (hover: none) and (pointer: coarse) {
  .qswipe {
    display: inline;
  }
}

/* ---------- Podstrona usługi ---------- */

.svc-hero {
  padding: 140px 0 clamp(56px, 7vw, 104px);
}
.svc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.svc-hero .page-title {
  max-width: 14ch;
  font-size: clamp(40px, 5vw, 80px);
  margin-top: 36px;
}
.svc-hero .page-lead {
  max-width: 34rem;
}
.svc-hero .hero-cta {
  margin-top: 32px;
}
.svc-art {
  aspect-ratio: 1 / 0.92;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 40px 80px -56px rgba(22, 33, 44, 0.5);
}
.svc-art .art {
  width: 84%;
}
.svc-art .art .fill-card {
  fill: var(--paper);
}

/* Na czym polega */
.svc-statement {
  max-width: 24em;
  margin: 22px 0 32px;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.side-people a {
  align-items: center;
  padding: 10px 0;
}
.side-people a + a {
  border-top: 1px solid var(--line);
}
.side-people span {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.side-people small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.side-face {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}
.side-mail b {
  font-size: 14px;
}

/* Zakres jako numerowane kafle; po najechaniu kafel „odhacza się” */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scope-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.scope-grid li:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -30px rgba(22, 33, 44, 0.45);
}
.scope-no {
  color: var(--steel);
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.scope-title {
  color: var(--ink);
  font-size: 18.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.scope-detail {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}
.scope-tick {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s;
}
.scope-tick::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.8, 0.5, 1);
}
.scope-grid li:hover .scope-tick {
  border-color: var(--steel-deep);
  background: var(--steel-deep);
}
.scope-grid li:hover .scope-tick::after {
  transform: rotate(45deg) scale(1);
}

/* Jak pracujemy: trzy kroki obok siebie, połączone linią */
.svc-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-steps::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 1px;
  background: var(--line);
}
.svc-steps li {
  position: relative;
}
.svc-step-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--steel-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 0 0 8px var(--white);
}
.svc-steps small {
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
}
.svc-steps h3 {
  margin: 6px 0 10px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}
.svc-steps p {
  max-width: 26rem;
  color: var(--muted);
}

/* Opinia i pytania */
.svc-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}
.svc-review {
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius);
  background: var(--steel-deep);
  color: rgba(255, 255, 255, 0.72);
}
.svc-review .g-mark {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
}
.svc-review blockquote {
  margin: 26px 0 22px;
}
.svc-review p {
  color: #fff;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.svc-review p::before {
  content: "„";
  color: var(--steel-soft);
}
.svc-review p::after {
  content: "”";
  color: var(--steel-soft);
}
.svc-review figcaption {
  font-size: 15px;
}
.svc-review figcaption b {
  color: #fff;
  font-weight: 500;
}
.svc-review .tlink {
  color: #fff;
  font-size: 15px;
}

/* Pozostałe usługi z miniaturą animacji */
.next-services a {
  gap: 14px;
  min-height: 0;
  padding: 14px 14px 24px;
}
.next-art {
  display: grid;
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--paper);
}
.next-art .art {
  width: 70%;
}
.next-services small,
.next-title {
  padding: 0 10px;
}

@media (max-width: 1080px) {
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .svc-hero {
    padding-top: 112px;
  }
  .svc-hero-grid,
  .svc-proof-grid,
  .svc-steps {
    grid-template-columns: 1fr;
  }
  .svc-art {
    order: -1;
    aspect-ratio: 16 / 11;
  }
  .svc-hero .eyebrow {
    margin-top: 0;
  }
  .svc-hero .crumbs {
    margin-bottom: 20px;
  }
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .scope-grid li {
    min-height: 0;
  }
  .svc-steps::before {
    left: 24px;
    right: auto;
    top: 24px;
    bottom: 24px;
    width: 1px;
    height: auto;
  }
  .svc-steps li {
    padding-left: 72px;
  }
  .svc-step-no {
    position: absolute;
    left: 0;
    top: 0;
  }
}
.scope-grid li {
  min-height: 118px;
}
.scope-grid.is-collapsed .scope-extra {
  display: none;
}
.scope-extra {
  animation: fade 0.6s var(--ease) both;
}
.scope-more {
  margin-top: 28px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.scope-more:hover {
  background: var(--steel-deep);
  color: #fff;
}
/* .btn ma własne display, które bez tej reguły nadpisuje atrybut hidden */
.scope-more[hidden] {
  display: none;
}
.next-art {
  aspect-ratio: auto;
  height: 190px;
}
/* Kolumny nie rozpychają się przez długi adres e-mail na wąskim ekranie */
.split > *,
.svc-hero-grid > *,
.svc-proof-grid > * {
  min-width: 0;
}
.side-people b {
  overflow-wrap: anywhere;
  text-align: right;
}

/* ---------- Nagłówek z filmem: prawa kolumna z usługami i zachęta do przewinięcia ---------- */

.hero {
  position: relative;
}
.hero-film .hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
}
.hero-aside {
  display: grid;
  gap: 14px;
  justify-self: end;
  width: min(100%, 440px);
}
.hero-services {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(18, 30, 42, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.hero-services-k {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  color: var(--steel-soft);
  font-size: 13.5px;
  font-weight: 500;
}
.hero-services-k .gem {
  width: 18px;
  color: #fff;
}
.hero-services a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 14px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.3s;
}
.hero-services a + a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.hero-services a::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.hs-no {
  color: var(--steel-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.hs-title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.3s, transform 0.4s var(--ease);
}
.hs-go {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.hero-services a:hover::after,
.hero-services a:focus-visible::after {
  transform: none;
}
.hero-services a:hover .hs-title,
.hero-services a:focus-visible .hs-title {
  color: var(--ink);
  transform: translateX(4px);
}
.hero-services a:hover .hs-no {
  color: var(--steel);
}
.hero-services a:hover .hs-go {
  background: var(--steel-deep);
  border-color: var(--steel-deep);
  color: #fff;
  transform: rotate(-45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-services a {
    opacity: 0;
    animation: fade 0.8s var(--ease) forwards;
    animation-delay: calc(0.9s + var(--i) * 0.1s);
  }
}
.board-film {
  justify-self: stretch;
  width: auto;
}

/* Zachęta do przewinięcia: myszka z przesuwającą się kropką */
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 0.3s;
}
.scroll-cue:hover {
  color: var(--ink);
}
.scroll-mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 14px;
}
.scroll-mouse i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: currentColor;
}
.hero-film .scroll-cue {
  color: rgba(255, 255, 255, 0.7);
}
.hero-film .scroll-cue:hover {
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-mouse i {
    animation: wheel 1.8s var(--ease) infinite;
  }
  .scroll-cue {
    animation: fade 1s var(--ease) 1.4s both;
  }
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  30% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}
/* W wersji z kadrem zachęta stoi pod tekstem, a nie na taśmie programów */
.hero:not(.hero-film) .scroll-cue {
  bottom: 18px;
}
@media (max-width: 1080px) {
  .hero-film .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    justify-self: stretch;
    width: 100%;
  }
}
@media (max-width: 860px), (max-height: 760px) {
  .scroll-cue {
    display: none;
  }
}
@media (min-width: 861px) {
  .hero-film {
    padding-bottom: 104px;
  }
  .hero:not(.hero-film) {
    padding-bottom: clamp(88px, 8vw, 112px);
  }
}
/* Pozycja z długim opisem zajmuje dwie kolumny, żeby nie rozpychała całego rzędu */
@media (min-width: 861px) {
  .scope-grid .scope-wide {
    grid-column: span 2;
  }
}
/* Karta ekspertów w kadrze filmu: nazwiska w jednym wierszu */
.frame .board {
  gap: 10px;
  padding: 12px 12px 12px 14px;
}
.frame .board-text small {
  white-space: nowrap;
}
.board-text {
  min-width: 0;
}
/* Na wąskim ekranie nazwiska mogą zejść do drugiej linii, inaczej wypychają strzałkę poza kartę */
@media (max-width: 480px) {
  .frame .board-text small {
    white-space: normal;
  }
}
.frame .faces img {
  width: 38px;
  height: 38px;
}
.frame .board-go {
  width: 34px;
  height: 34px;
}

/* Panel „W czym pomagamy” wysuwa się nad kartą ekspertów dopiero po najechaniu lub przejściu klawiaturą.
   Na ekranach dotykowych (bez najeżdżania) jest widoczny od razu. */
@media (hover: hover) and (min-width: 1081px) {
  .hero-aside {
    position: relative;
  }
  .hero-aside .hero-services {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    transform-origin: 50% 100%;
    transition: opacity 0.35s, transform 0.5s var(--ease), visibility 0.35s;
  }
  /* Niewidoczny mostek między panelem a kartą: kursor nie gubi panelu po drodze */
  .hero-aside .hero-services::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }
  .hero-aside:hover .hero-services,
  .hero-aside:focus-within .hero-services {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .js .hero-aside .hero-services a {
    opacity: 0;
    animation: none;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s;
    transition-delay: 0s;
  }
  .js .hero-aside:hover .hero-services a,
  .js .hero-aside:focus-within .hero-services a {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.08s + var(--i) * 0.06s);
  }
  .hero-aside .board-film::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    pointer-events: none;
  }
  .hero-aside:hover .board-film {
    background: rgba(18, 30, 42, 0.72);
  }
}

/* Kliknięta karta usługi przechodzi w nagłówek podstrony: ilustracja i tytuł lecą na swoje miejsce */
@media (prefers-reduced-motion: no-preference) {
  .svc-art {
    view-transition-name: svc-art;
  }
  .svc-hero .page-title {
    view-transition-name: svc-title;
  }
  [data-vt-in] .svc-art.fade-in,
  [data-vt-in] .svc-hero .page-title {
    opacity: 1;
    animation: none;
  }
}
::view-transition-group(svc-art),
::view-transition-group(svc-title) {
  animation-duration: 0.75s;
  animation-timing-function: var(--ease);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
}

/* O firmie: portrety wspólników w nagłówku i trzy perspektywy */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}
.about-faces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.about-faces figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--mist);
  box-shadow: 0 40px 80px -56px rgba(22, 33, 44, 0.55);
}
.about-faces figure + figure {
  margin-top: 72px;
}
.about-faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-faces figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.views li {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.view-gem {
  width: 40px;
  color: var(--steel);
}
.views h3 {
  margin: 22px 0 14px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
}
.views p {
  max-width: 34ch;
  color: var(--muted);
}
@media (max-width: 860px) {
  .about-hero-grid,
  .views {
    grid-template-columns: 1fr;
  }
  .about-faces figure + figure {
    margin-top: 40px;
  }
}

/* Kontakt: tytuł i mapa okolicy biura obok siebie, pod spodem osoby i e-mail */
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.reach {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.reach-face {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.reach h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.reach p {
  color: var(--muted);
  font-size: 14.5px;
}
.reach-big {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.reach-big .arr {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--steel-deep);
  color: #fff;
  font-size: 20px;
  transition: transform 0.4s var(--ease);
}
.reach-big:hover .arr {
  transform: translateX(4px);
}
.reach-mail {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 14.5px;
}
.reach-email {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px 32px;
  background: var(--steel-deep);
  border-color: transparent;
}
.reach-email .reach-big {
  grid-column: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.reach-email .copy {
  margin: 0;
}
.reach-email h2,
.reach-email .reach-big {
  color: #fff;
}
.reach-email p {
  color: rgba(255, 255, 255, 0.68);
}
.copy {
  justify-self: start;
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.1);
}
.copy[data-done] {
  border-color: var(--steel-soft);
  background: var(--steel-soft);
  color: var(--steel-deep);
}
.map-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 40px 80px -56px rgba(22, 33, 44, 0.5);
}
.office-map {
  display: block;
  width: 100%;
  height: auto;
  background: #f6f5f1;
}
.office-map .m-p path {
  fill: #e3e9e1;
}
.office-map .m-b path {
  fill: #e6e3dc;
  stroke: #dcd8cf;
  stroke-width: 0.6;
}
.office-map .m-r path,
.office-map .m-R path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.office-map .m-r path {
  stroke-width: 6;
}
.office-map .m-R path {
  stroke-width: 11;
}
.office-map .m-home {
  fill: var(--steel);
}
.office-map .m-t {
  fill: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.office-map .m-dot {
  fill: var(--steel-deep);
  stroke: #fff;
  stroke-width: 3;
}
.office-map .m-pulse {
  fill: var(--steel);
  opacity: 0.25;
}
@media (prefers-reduced-motion: no-preference) {
  .office-map .m-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: map-pulse 2.4s var(--ease) infinite;
  }
}
@keyframes map-pulse {
  from {
    transform: scale(0.5);
    opacity: 0.45;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}
.map-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: clamp(20px, 2.2vw, 28px);
}
.map-card figcaption b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}
.map-card figcaption span {
  color: var(--muted);
}
.map-card figcaption small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 860px) {
  .contact-hero,
  .contact-list,
  .reach-email {
    grid-template-columns: minmax(0, 1fr);
  }
  .reach-email .copy {
    justify-self: start;
  }
}
.office-map .m-tag rect {
  fill: var(--steel-deep);
}
.office-map .m-tag text {
  fill: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* Na ciemnych panelach stalowy obrys fokusu ginie, tam jest biały */
.contact-panel :focus-visible,
.reach-email :focus-visible,
.board-film:focus-visible {
  outline-color: #fff;
}
.foot-col a,
.person-links a,
.bar-tel b,
.contacts b {
  font-variant-numeric: tabular-nums;
}
.lost {
  display: grid;
  max-width: 560px;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
}
.lost p {
  padding: 18px 0 10px;
  color: var(--muted);
  font-size: 14.5px;
}
.lost a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 19px;
  transition: color 0.25s;
}
.lost a .arr {
  transition: transform 0.4s var(--ease);
}
.lost a:hover {
  color: var(--steel);
}
.lost a:hover .arr {
  transform: translateX(6px);
}
/* Nagłówek bez etykiety nad tytułem (np. polityka prywatności): ten sam odstęp od okruszków */
.page-hero .crumbs + .page-title {
  margin-top: 48px;
}
