/* BDW Team — style.css
   Prosty, ręcznie pisany CSS bez frameworków. Zero zewnętrznych żądań.
   Ten jeden plik odpowiada za wygląd WSZYSTKICH stron serwisu.

   Spis treści (szukaj po tych nagłówkach klawiszem Ctrl+F):
     :root                           - zmienne: kolory, odstępy, zaokrąglenia
     Utility bar + header            - górny pasek i nawigacja
     Pasek usług pod nagłówkiem      - rozwijane menu "Zobacz jak pracujemy"
     Buttons                         - przyciski (żółte i obrysowane)
     Hero                            - duża sekcja powitalna na stronie głównej
     Sections                        - zwykłe sekcje tekstowe
     Service grid                    - siatka kart z usługami
     Fact strip                      - pasek z danymi rejestrowymi firmy
     Pricing                         - tabele cenowe na podstronach usług
     CTA band                        - pasek "Masz pytania? Porozmawiajmy"
     Page header (inner pages)       - nagłówek podstron (np. "O nas")
     Footer                          - stopka
     Responsive                      - style dla telefonów i tabletów
     Cookie banner                   - baner zgody na jedyny plik cookie
     Widget dostępności (WCAG)       - przycisk i panel ustawień dostępności
*/

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/raleway-latin-ext.woff2") format("woff2-variations"),
       url("../fonts/raleway-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2-variations"),
       url("../fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122;
}

:root {
  --yellow: #eec02d;
  --yellow-deep: #c89f1e;
  --ink: #15171a;
  --ink-soft: #1f2328;
  --slate: #374047;
  --paper: #ffffff;
  --cloud: #f6f5f1;
  --text: #22241f;
  --text-soft: #5a5f5a;
  --line: #e7e4da;
  --radius: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Raleway", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-soft); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-bottom: .9em;
}

/* ---------- Utility bar + header ---------- */
.utility-bar {
  background: var(--ink);
  color: #9aa0a6;
  font-size: .82rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-soft);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4em;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logotype { height: 34px; width: auto; flex: none; }
.brand-logotype .logotype-icon path, .brand-logotype .logotype-team path { fill: var(--yellow); }
.brand-logotype .logotype-bdw path { fill: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .03em; color: #9aa0a6; }

.footer-brand .brand-logotype { height: 28px; }
.footer-brand .brand-link { display: inline-flex; align-items: center; margin-bottom: .9em; }

.header-contacts { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; gap: 4px; margin-right: 4px; }
.lang-switch-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  padding: .45em .3em;
  border-radius: 7px;
  color: #fff;
  opacity: .45;
  border: 1.5px solid transparent;
  transition: opacity .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.lang-switch-flag:hover { opacity: .85; }
.lang-switch-flag.is-active { opacity: 1; color: var(--yellow); background: rgba(238,192,45,.12); border-color: rgba(238,192,45,.4); }
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: #eceeef;
  font-weight: 700;
  font-size: .92rem;
  padding: .55em .3em;
  transition: color .2s var(--ease);
}
.contact-pill svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }
.contact-pill:hover { color: var(--yellow); }

/* ---------- Pasek usług pod nagłówkiem ---------- */
.site-nav {
  display: none;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-nav.is-open { display: block; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  background: rgba(254,190,16,.08);
  border: 1px solid rgba(254,190,16,.45);
  color: var(--yellow);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  padding: .62em 1.1em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  animation: navDropdownPulse 2s ease-in-out infinite;
}
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-dropdown-toggle:hover { border-color: var(--yellow); color: #fff; background: var(--yellow); animation-play-state: paused; box-shadow: none; }
.nav-dropdown.is-open .nav-dropdown-toggle { border-color: var(--yellow); color: #fff; background: var(--yellow); animation-play-state: paused; box-shadow: none; }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
@keyframes navDropdownPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,190,16,.55); }
  50% { box-shadow: 0 0 0 10px rgba(254,190,16,0); }
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--ink-soft);
  border: 1px solid rgba(254,190,16,.3);
  border-radius: var(--radius);
  padding: .5em;
  display: grid;
  gap: 2px;
  box-shadow: 0 24px 48px rgba(0,0,0,.45), 0 0 36px -6px rgba(254,190,16,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(.94);
  transform-origin: top right;
  transition: opacity .3s var(--ease), transform .35s cubic-bezier(.34, 1.56, .64, 1), visibility .35s;
  z-index: 60;
}
.nav-dropdown.is-open .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-dropdown-panel a {
  padding: .65em .85em;
  border-radius: 8px;
  color: #c3c7cb;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateX(8px);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-dropdown-panel a:hover, .nav-dropdown-panel a.is-active { background: rgba(254,190,16,.1); color: #fff; }
.nav-dropdown.is-open .nav-dropdown-panel a { animation: navDropdownItemIn .3s var(--ease) forwards; }
@keyframes navDropdownItemIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(1) { animation-delay: .03s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(2) { animation-delay: .06s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(3) { animation-delay: .09s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(4) { animation-delay: .12s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(5) { animation-delay: .15s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(6) { animation-delay: .18s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(7) { animation-delay: .21s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(8) { animation-delay: .24s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(9) { animation-delay: .27s; }
.nav-dropdown.is-open .nav-dropdown-panel a:nth-child(10) { animation-delay: .3s; }
.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.7em;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 11px;
  padding-bottom: 11px;
}
.site-nav-inner::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative;
  flex: none;
  color: #aeb3b8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.is-active { color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #eceeef;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.5em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow-deep);
  transform: translateX(-101%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: #eceeef; border-color: rgba(255,255,255,.35); }
.btn-ghost::before { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark::before { background: var(--slate); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, #23282d 0%, var(--ink) 55%, #0e1013 100%);
  color: #fff;
  padding: 100px 0 136px;
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 30%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(170deg, rgba(14,16,19,.55), rgba(14,16,19,.72));
}

/* Siatka technicznego tła */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(90% 80% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Ziarno / tekstura filmowa */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reflektor podążający za kursorem */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(238,192,45,.14), transparent 70%);
  transition: background .25s var(--ease);
}

.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: #eec02d; top: -14%; left: -8%; }
.aurora span:nth-child(2) { background: #3d4da0; top: 10%; right: -14%; animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { background: #374047; bottom: -24%; left: 22%; animation-duration: 34s; animation-delay: -12s; opacity: .4; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 8%) scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 { color: #fff; overflow: hidden; }
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: lineUp .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .12s + .1s);
}
.hero h1 em { font-style: normal; color: var(--yellow); position: relative; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero p.lead {
  color: #c3c7cb;
  font-size: 1.08rem;
  max-width: 46ch;
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: .62s;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 1.7em;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: .78s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.btn-magnetic { will-change: transform; }

.hero-address {
  border-left: 2px solid var(--yellow);
  padding-left: 1em;
  margin-top: 2.4em;
  font-size: .88rem;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0;
  animation: fadeUp .8s var(--ease) forwards;
  animation-delay: .92s;
}

.hero-mark {
  justify-self: end;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  position: relative;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: .5s;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s var(--ease);
}
.hero-mark-tile {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark-tile svg {
  width: 50%;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(254,190,16,.55)) drop-shadow(0 20px 30px rgba(0,0,0,.4));
  animation: markGlow 3.2s ease-in-out infinite;
  transform: rotate(0deg) scale(1);
  transition: transform .5s var(--ease);
}
.hero-mark-tile:hover svg {
  animation: markGlow 3.2s ease-in-out infinite, markSpinPulse 5s ease-in-out infinite;
}
@keyframes markSpinPulse {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.18); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes markGlow {
  0%, 100% { filter: drop-shadow(0 0 50px rgba(254,190,16,.55)) drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
  50% { filter: drop-shadow(0 0 80px rgba(254,190,16,.8)) drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line span { animation: none; transform: translateY(0); }
  .hero p.lead, .hero-actions, .hero-mark { animation: none; opacity: 1; }
  .aurora span, .hero-mark-tile svg { animation: none; }
  .hero-spotlight { display: none; }
  .hero-video { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-cloud { background: var(--cloud); }
.section-head { max-width: 680px; margin-bottom: 3em; }
#uslugi .section-head { max-width: none; }
#uslugi .section-head h2 { white-space: nowrap; }
.section-head.reveal { opacity: 1; transform: none; transition: none; }
.section-head.reveal > .eyebrow,
.section-head.reveal > h2,
.section-head.reveal > p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.section-head.reveal.is-visible > .eyebrow { opacity: 1; transform: translateY(0); }
.section-head.reveal.is-visible > h2 { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.section-head.reveal.is-visible > p { opacity: 1; transform: translateY(0); transition-delay: .2s; }

.intro-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.intro-grid .section-head { margin-bottom: 0; }
.intro-illustration { display: flex; justify-content: center; }
.intro-illustration svg { width: 100%; max-width: 360px; height: auto; position: relative; z-index: 1; }
.intro-frame { position: relative; padding: 18px; border-radius: 26px; overflow: hidden; }
.intro-frame::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 72%, var(--yellow) 85%, transparent 100%);
  animation: frameSpin 5s linear infinite;
}
.intro-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--paper);
  border-radius: 20px;
}
@keyframes frameSpin { to { transform: rotate(360deg); } }
.clock-second { animation: clockTick 6s steps(60, end) infinite; }
.intro-doc { animation: docFloatFront 4s ease-in-out infinite; }
.intro-doc--back { animation: docFloatBack 4s ease-in-out infinite; animation-delay: -1.3s; }
.intro-check { animation: checkPulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.intro-gear { animation: gearSpin 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.intro-sparkle { animation: sparkleTwinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.intro-sparkle--2 { animation-delay: .7s; }
.intro-sparkle--3 { animation-delay: 1.4s; }
@keyframes clockTick { to { transform: rotate(360deg); } }
@keyframes docFloatFront { 0%, 100% { transform: translate(132px, 96px); } 50% { transform: translate(132px, 90px); } }
@keyframes docFloatBack { 0%, 100% { transform: translate(118px, 76px); } 50% { transform: translate(118px, 82px); } }
@keyframes checkPulse { 0%, 80%, 100% { transform: translate(178px, 52px) scale(1); } 90% { transform: translate(178px, 52px) scale(1.18); } }
@keyframes gearSpin { from { transform: translate(26px, 30px) rotate(0deg); } to { transform: translate(26px, 30px) rotate(360deg); } }
@keyframes sparkleTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-illustration { display: none; }
}

/* ---------- Service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.service-card {
  --n: "";
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(22px);
  transition: transform .5s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card.is-visible { opacity: 1; transform: translateY(0); }
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
.service-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  font-size: .82rem;
  font-weight: 800;
  color: var(--yellow-deep);
  margin-bottom: 1em;
  align-self: center;
  transform: scale(1) rotate(0deg);
  transition: transform .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.service-card:hover .num { background: var(--yellow); color: var(--ink); transform: scale(1.12) rotate(-8deg); }
.service-card.is-visible .num { animation: numPop .5s var(--ease) backwards; }
.service-card:nth-child(1).is-visible .num { animation-delay: .05s; }
.service-card:nth-child(2).is-visible .num { animation-delay: .1s; }
.service-card:nth-child(3).is-visible .num { animation-delay: .15s; }
.service-card:nth-child(4).is-visible .num { animation-delay: .2s; }
.service-card:nth-child(5).is-visible .num { animation-delay: .25s; }
.service-card:nth-child(6).is-visible .num { animation-delay: .3s; }
.service-card:nth-child(7).is-visible .num { animation-delay: .35s; }
.service-card:nth-child(8).is-visible .num { animation-delay: .4s; }
.service-card:nth-child(9).is-visible .num { animation-delay: .45s; }
.service-card:nth-child(10).is-visible .num { animation-delay: .5s; }
@keyframes numPop { from { opacity: 0; transform: scale(.4) rotate(-45deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
.service-card h3 { margin-bottom: .45em; }
.service-card p { font-size: .92rem; margin-bottom: 1.1em; }
.service-card .more {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  align-self: flex-end;
  margin-top: auto;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .3em .3em .3em 1.1em;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.service-card:hover .more { border-color: var(--yellow); background: rgba(254,190,16,.06); }
.service-card .more svg {
  width: 22px;
  height: 22px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 50%;
  flex: none;
  transition: transform .45s var(--ease), background .25s var(--ease);
}
.service-card:hover .more svg { transform: rotate(360deg); background: var(--yellow); }

/* ---------- Fact strip ---------- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact-strip div { background: var(--paper); padding: 1.5em 1.4em; }
.fact-strip strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin-bottom: .3em; }
.fact-strip span { font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -26px rgba(0,0,0,.4); }
.price-card.is-featured { border-color: var(--yellow); position: relative; background: var(--ink-soft); color: #fff; }
.price-card.is-featured .price-amount,
.price-card.is-featured h3 { color: #fff; }
.price-card.is-featured p,
.price-card.is-featured li { color: #c3c7cb; }
.price-card.is-featured::before {
  content: "Polecany";
  position: absolute;
  top: -12px; left: 26px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; color: var(--text-soft); margin-bottom: .2em; }
.price-amount { font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price-amount small { font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.price-note { font-size: .78rem; color: var(--text-soft); margin-bottom: 1.1em; }
.price-card.is-featured .price-note { color: #9aa0a6; }
.price-list { list-style: none; margin: 0 0 1.4em; padding: 0; flex-grow: 1; }
.price-list li {
  font-size: .9rem;
  padding: .5em 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .6em;
}
.price-card.is-featured .price-list li { border-color: rgba(255,255,255,.1); }
.price-list li::before { content: "✓"; color: var(--yellow-deep); font-weight: 800; }
.price-card.is-featured .price-list li::before { color: var(--yellow); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7em; }
.checklist li { display: flex; gap: .7em; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-top: .5em;
  background: var(--yellow);
  transform: rotate(45deg);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-contacts { display: flex; gap: 1.6em; flex-wrap: wrap; }
.cta-contacts a {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5em;
  transition: color .2s var(--ease);
}
.cta-contacts a:hover { color: var(--yellow); }
.cta-contacts svg { width: 18px; height: 18px; color: var(--yellow); }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: var(--ink-soft);
  color: #fff;
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Kolorowa, rozmyta poświata w tle - zamiast płaskiej czerni. Kolory
   ustawia każda podstrona osobno przez zmienne --glow-a/--glow-b na
   znaczniku <section class="page-head">; bez nich warstwa jest przezroczysta
   i nic się nie zmienia (np. na stronach prawnych). */
.page-head::before {
  content: "";
  position: absolute;
  inset: -25%;
  background-image:
    radial-gradient(circle at 18% 30%, var(--glow-a, transparent) 0%, transparent 55%),
    radial-gradient(circle at 82% 75%, var(--glow-b, transparent) 0%, transparent 55%);
  filter: blur(60px);
  opacity: .6;
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; max-width: 820px; }
.breadcrumb { font-size: .8rem; color: #9aa0a6; margin-bottom: 1.2em; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: #c3c7cb; }
.breadcrumb a:hover { color: var(--yellow); }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lead { color: #c3c7cb; font-size: 1.05rem; max-width: 60ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa0a6; padding: 60px 0 28px; font-size: .9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5em;
  padding-bottom: 2.4em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.footer-grid a:hover { color: var(--yellow); }
.footer-note { font-size: .82rem; line-height: 1.6; max-width: 36ch; color: #767c82; }
.footer-bottom {
  padding-top: 1.8em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8em;
  font-size: .78rem;
  color: #666c72;
}
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .brand-logotype { height: 30px; }
  .brand-text small { display: none; }
  .header-contacts .btn-label { display: none; }
  .contact-pill span { display: none; }
  .nav-dropdown { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav-inner { flex-direction: column; align-items: flex-start; gap: .2em; overflow: visible; }
  .site-nav-inner a { padding: .6em 0; width: 100%; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  #uslugi .section-head h2 { white-space: normal; }
}
@media (max-width: 480px) {
  .header-top-inner { gap: .6em; }
  .brand-logotype { height: 24px; }
  .header-contacts { gap: 8px; }
  .header-contacts a[href^="mailto:"] { display: none; }
  .btn-primary { padding: .6em .9em; font-size: .82rem; }
  .hero h1 { font-size: 1.7rem; }
  /* Na wąskim telefonie 2 kolumny są za ciasne - np. adres firmy się łamie
     na pojedyncze słowa. Jedna kolumna pod sobą. */
  .fact-strip { grid-template-columns: 1fr; }
}

/* ---------- Scroll doc widget ---------- */
.scroll-doc-widget {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.scroll-doc-widget.is-active { opacity: 1; visibility: visible; }
.scroll-doc { position: relative; width: 40px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.scroll-doc svg:first-child { width: 40px; height: 50px; display: block; }
.scroll-doc-check {
  position: absolute;
  bottom: -4px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2fae5c;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.3);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.scroll-doc-check svg { width: 12px; height: 12px; }
.scroll-doc.is-checked .scroll-doc-check { opacity: 1; transform: scale(1); }
@media (max-width: 1150px) {
  .scroll-doc-widget { display: none; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink-soft);
  border-top: 1px solid rgba(254,190,16,.3);
  box-shadow: 0 -12px 32px rgba(0,0,0,.35);
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.3em 1.4em;
  display: flex;
  align-items: center;
  gap: 1.6em;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 420px; color: #eceeef; font-size: .88rem; line-height: 1.55; }
.cookie-banner-text strong { color: #fff; }
.cookie-banner-details-toggle {
  display: inline-block;
  margin-top: .5em;
  background: none;
  border: none;
  color: var(--yellow);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.cookie-banner-details { margin-top: .7em; font-size: .8rem; color: #c3c7cb; }
.cookie-banner-details table { border-collapse: collapse; width: 100%; max-width: 480px; }
.cookie-banner-details th, .cookie-banner-details td { text-align: left; padding: .4em .7em .4em 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.cookie-banner-actions { display: flex; gap: .8em; flex: none; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}

/* Widoczny fokus klawiatury (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Link "Przejdź do treści" (WCAG 2.4.1) - niewidoczny, aż użytkownik klawiatury nie wejdzie na niego Tabem */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 300;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  padding: .7em 1.2em;
  border-radius: 0 0 8px 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 0; outline-offset: -3px; }

/* Widget dostępności (WCAG) */
.a11y-widget { position: fixed; left: 18px; bottom: 18px; z-index: 210; transition: bottom .3s var(--ease); }
.a11y-widget.is-above-banner { bottom: 128px; }
@media (max-width: 600px) { .a11y-widget.is-above-banner { bottom: 168px; } }
.a11y-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: var(--ink);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.a11y-toggle svg { width: 24px; height: 24px; }
.a11y-toggle:hover { background: var(--yellow); color: var(--ink); }
.a11y-panel {
  position: absolute;
  bottom: 56px;
  left: 0;
  width: 240px;
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.a11y-panel-title { margin: 0 0 .6em; font-weight: 700; color: #fff; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6em; color: #c3c7cb; font-size: .85rem; }
.a11y-font-controls { display: flex; gap: 6px; }
.a11y-font-btn, .a11y-option, .a11y-reset {
  background: none;
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 7px;
  cursor: pointer;
  font-size: .82rem;
}
.a11y-font-btn { width: 30px; height: 30px; }
.a11y-option, .a11y-reset { display: block; width: 100%; text-align: left; padding: .5em .7em; margin-bottom: .4em; }
.a11y-option[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); background: rgba(238,192,45,.12); }
.a11y-font-btn:hover, .a11y-option:hover, .a11y-reset:hover { border-color: var(--yellow); }
.a11y-statement-link { display: block; margin-top: .4em; font-size: .8rem; color: var(--yellow); text-decoration: underline; }
@media (max-width: 480px) { .a11y-widget { left: 10px; bottom: 10px; } }

html.a11y-contrast, html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast button { color: #ffe14d !important; }
html.a11y-contrast img, html.a11y-contrast svg, html.a11y-contrast video { filter: grayscale(1) contrast(1.3) !important; }

html.a11y-underline a { text-decoration: underline !important; }

html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}
