/* ------------------------------------------------------------------
   Marczuk Finanse - warstwa ruchu i konwersji (2026)
   Idzie na wierzch marczuk-akcenty.css, pracuje razem z marczuk-ruch.js.
   Widoczny stan przelaczaja klasy, nie requestAnimationFrame, wiec strona
   wyglada dobrze takze w karcie w tle.
   ------------------------------------------------------------------ */

@property --mf-kat { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --mf-ease: cubic-bezier(.2, .7, .2, 1);
  --mf-topbar: 0px;
  --mf-tekst-szary: #51607a;
}

html { scroll-behavior: smooth; }
::selection { background: var(--mf-zloto); color: var(--mf-granat-ciemny); }

@keyframes mf-gora { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes mf-mesh {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.05); }
  100% { transform: translate3d(-3%, 4%, 0) rotate(-6deg) scale(1); }
}
@keyframes mf-obrot { to { --mf-kat: 360deg; } }
@keyframes mf-kreci { to { transform: rotate(360deg); } }
@keyframes mf-puls {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 74, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(201, 162, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 74, 0); }
}

/* --- 1. Naglowek: kompaktowy, przyklejony, szklany ------------------- */
#wrapper { overflow: visible !important; overflow-x: clip !important; }
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  transition: transform .45s var(--mf-ease), box-shadow .45s ease;
}
html.mf-scrolled header {
  transform: translateY(calc(-1 * var(--mf-topbar)));
  box-shadow: 0 10px 30px rgba(8, 28, 56, .10);
}
header .block331 { display: none !important; }            /* wielkie logo na caly ekran */
header .block328 { background: var(--mf-granat-ciemny) !important; }
header .navbar-header .logo img {
  height: 58px !important;
  width: auto !important;
  max-width: none !important;
  transition: height .4s var(--mf-ease);
}
html.mf-scrolled header .navbar-header .logo img { height: 46px !important; }
@media (max-width: 767px) {
  header .block328 { display: none !important; }   /* telefon i mail sa w dolnym pasku */
  header .navbar-header .logo img, html.mf-scrolled header .navbar-header .logo img { height: 48px !important; }
  footer .block169 { display: none !important; }   /* plywajace ikony zaslanialy tresc */
}
@media (min-width: 1200px) {
  header .navbar-header { display: block !important; float: none; }
  header .navbar-header .visible-md { display: block !important; }
  header .navbar-toggle { display: none !important; }
  header .navbar-header .logo img { height: 76px !important; }
  html.mf-scrolled header .navbar-header .logo img { height: 56px !important; }
  header .navbar-custom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  header .navbar-custom::before, header .navbar-custom::after { display: none !important; }
  header .navbar-custom .navbar-collapse { display: block !important; }
}

/* --- 2. Pasek postepu czytania -------------------------------------- */
.mf-postep {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mf-zloto-ciemne), var(--mf-zloto), var(--mf-zloto-jasne));
  pointer-events: none;
}

/* --- 3. Odslanianie przy przewijaniu -------------------------------- */
html.mf-js .mf-rv {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity .8s var(--mf-ease), transform .9s var(--mf-ease);
  transition-delay: var(--mf-d, 0ms);
}
html.mf-js .mf-rv.mf-in { opacity: 1; transform: none; }

/* --- 4. Przyciski --------------------------------------------------- */
.mf-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1.1 poppins-semibold, Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--mf-ease), box-shadow .3s ease, background-color .3s ease,
              color .3s ease, border-color .3s ease;
}
.mf-btn svg { width: 18px; height: 18px; flex: none; }
.mf-btn:hover { transform: translateY(-2px); }
.mf-btn:focus-visible { outline: 3px solid var(--mf-zloto-jasne); outline-offset: 3px; }
.mf-btn-zloto {
  background: linear-gradient(135deg, var(--mf-zloto-jasne), var(--mf-zloto) 55%, var(--mf-zloto-ciemne));
  color: var(--mf-granat-ciemny) !important;
  box-shadow: 0 10px 30px rgba(201, 162, 74, .35);
}
.mf-btn-zloto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--mf-ease);
  pointer-events: none;
}
.mf-btn-zloto:hover { box-shadow: 0 16px 40px rgba(201, 162, 74, .5); }
.mf-btn-zloto:hover::after { transform: translateX(120%); }
.mf-btn-obrys { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); color: #fff !important; }
.mf-btn-obrys:hover { border-color: var(--mf-zloto); background: rgba(201, 162, 74, .12); }
.mf-btn-granat { background: var(--mf-granat); color: #fff !important; }
.mf-btn-granat:hover { background: var(--mf-granat-ciemny); }
.mf-btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.mf-btn[aria-busy="true"] span::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: mf-kreci .7s linear infinite;
}
.mf-przyciski { display: flex; flex-wrap: wrap; gap: 12px; }

.mf-wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.mf-etykieta {
  display: inline-block;
  margin-bottom: 12px;
  font: 600 12px/1.2 poppins-semibold, Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mf-zloto-ciemne);
}
.mf-wejscie { animation: mf-gora .9s var(--mf-ease) both; animation-delay: var(--d, 0ms); }

/* --- 5. Hero -------------------------------------------------------- */
.mf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  clear: both;
  padding-block: clamp(56px, 8vw, 112px) clamp(72px, 9vw, 128px);
  background: var(--mf-granat-ciemny);
  color: #fff;
}
.mf-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 22% 30%, rgba(201, 162, 74, .30), transparent 70%),
    radial-gradient(34% 40% at 80% 18%, rgba(47, 98, 170, .50), transparent 70%),
    radial-gradient(45% 45% at 62% 88%, rgba(14, 42, 82, .95), transparent 70%);
  filter: blur(20px);
  animation: mf-mesh 22s ease-in-out infinite alternate;
}
.mf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 80%);
}
.mf-hero .mf-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.mf-oko {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 74, .4);
  background: rgba(201, 162, 74, .08);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--mf-zloto-jasne);
}
.mf-kropka {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--mf-zloto);
  animation: mf-puls 2.2s infinite;
}
.mf-hero h1 {
  margin: 0 0 24px;
  font-family: poppins-semibold, Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #fff !important;
  text-transform: none;
}
.mf-hero h1::after { display: none !important; }
.mf-w { display: inline-block; }
html.mf-js .mf-hero h1 .mf-w {
  opacity: 0;
  transform: translateY(.5em) rotate(2deg);
  filter: blur(6px);
  animation: mf-slowo .9s var(--mf-ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes mf-slowo { to { opacity: 1; transform: none; filter: blur(0); } }
.mf-zloty {
  background: linear-gradient(100deg, #b08d3c 0%, #e0c176 25%, #fff3cf 40%, #e0c176 55%, #b08d3c 75%, #e0c176 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.mf-js .mf-hero h1 .mf-w.mf-zloty {
  animation: mf-slowo .9s var(--mf-ease) forwards, mf-blask 5s linear infinite;
  animation-delay: calc(var(--i) * 70ms + 150ms), 1.4s;
}
@keyframes mf-blask { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }
.mf-hero-lead {
  max-width: 44ch;
  margin: 0 0 34px !important;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
}
.mf-hero .mf-przyciski { margin-bottom: 34px; }
.mf-zaufanie {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
}
.mf-zaufanie li, .mf-kroki-lista li {
  background: none !important;
  list-style: none;
}
.mf-zaufanie li { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; line-height: 1.4 !important; }
/* kontakt: modul Map Google ze strony zrodlowej nie ma klucza i pokazywal blad */
.bt-googlemaps, .block1254 { display: none !important; }
.mf-zaufanie li::before { content: none; }
.mf-zaufanie svg { width: 18px; height: 18px; color: var(--mf-zloto); flex: none; }

.mf-karta {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: mf-gora 1s var(--mf-ease) .45s both;
}
.mf-karta::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--mf-kat), rgba(201, 162, 74, 0), rgba(224, 193, 118, .95) 12%,
              rgba(201, 162, 74, 0) 30%, rgba(255, 255, 255, .16) 55%, rgba(201, 162, 74, 0) 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: mf-obrot 7s linear infinite;
  pointer-events: none;
}
.mf-karta h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; color: #fff !important; }
.mf-karta .mf-pod { margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .7); }

.mf-dalej {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
}
.mf-dalej span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--mf-zloto);
  animation: mf-scroll 1.8s var(--mf-ease) infinite;
}
@keyframes mf-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 991px) {
  .mf-hero .mf-wrap { grid-template-columns: 1fr; }
  .mf-dalej { display: none; }
}
@media (max-width: 480px) {
  .mf-hero .mf-przyciski .mf-btn { flex: 1 1 100%; }
}

/* --- 6. Formularze -------------------------------------------------- */
.mf-form {
  --mf-ramka: rgba(14, 42, 82, .16);
  --mf-tlo-pola: #fff;
  --mf-kolor-pola: var(--mf-granat);
  --mf-etykieta-kolor: #6b7a90;
  --mf-blad-kolor: #d93a3f;
  display: grid;
  gap: 12px;
  margin: 0;
}
.mf-form.mf-ciemny {
  --mf-ramka: rgba(255, 255, 255, .18);
  --mf-tlo-pola: rgba(8, 28, 56, .45);
  --mf-kolor-pola: #fff;
  --mf-etykieta-kolor: rgba(255, 255, 255, .62);
  --mf-blad-kolor: #ff9a9d;
}
.mf-pole { position: relative; margin: 0; }
.mf-pole input, .mf-pole select, .mf-pole textarea {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 22px 16px 8px;
  border: 1px solid var(--mf-ramka);
  border-radius: 14px;
  background-color: var(--mf-tlo-pola);
  color: var(--mf-kolor-pola);
  font: 15px/1.2 poppinsregular, Arial, Helvetica, sans-serif;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.mf-pole textarea { height: 104px; padding-top: 28px; resize: vertical; }
.mf-pole select {
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c9a24a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.mf-pole select option { color: var(--mf-granat); background: #fff; }
.mf-pole label {
  position: absolute;
  left: 17px; top: 18px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--mf-etykieta-kolor);
  pointer-events: none;
  transition: top .2s var(--mf-ease), font-size .2s var(--mf-ease), letter-spacing .2s;
}
.mf-pole input:focus + label,
.mf-pole input:not(:placeholder-shown) + label,
.mf-pole textarea:focus + label,
.mf-pole textarea:not(:placeholder-shown) + label,
.mf-pole select + label {
  top: 8px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mf-pole :is(input, select, textarea):focus {
  border-color: var(--mf-zloto);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .2);
}
.mf-pole.mf-blad :is(input, select, textarea),
.form-group.mf-blad .form-control { border-color: var(--mf-blad-kolor, #d93a3f) !important; }
.mf-zgoda {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--mf-etykieta-kolor);
  cursor: pointer;
}
.mf-zgoda input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--mf-zloto); }
.mf-zgoda a { color: inherit !important; text-decoration: underline; }
.mf-zgoda.mf-blad { color: var(--mf-blad-kolor); }
.mf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mf-form .mf-btn { width: 100%; }
.mf-komunikat { margin: 0; font-size: 13.5px; line-height: 1.5; }
.mf-komunikat:empty { display: none; }
.mf-komunikat.mf-zle { color: var(--mf-blad-kolor, #d93a3f); }
.mf-komunikat a { color: inherit !important; font-weight: 600; text-decoration: underline; }

.mf-sukces { padding: 16px 0; text-align: center; outline: none; animation: mf-gora .6s var(--mf-ease) both; }
.mf-sukces svg { display: block; width: 72px; height: 72px; margin: 0 auto 14px; }
.mf-sukces circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: mf-rysuj .8s var(--mf-ease) forwards; }
.mf-sukces path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: mf-rysuj .5s var(--mf-ease) .6s forwards; }
@keyframes mf-rysuj { to { stroke-dashoffset: 0; } }
.mf-sukces h3 { margin: 0 0 8px; font-size: 22px; color: inherit; }
.mf-sukces p { margin: 0; line-height: 1.6; opacity: .8; }
.mf-sukces a { color: inherit !important; font-weight: 600; }
.mf-karta .mf-sukces { color: #fff; }

/* --- 7. Okno "Bezplatna analiza" ----------------------------------- */
.mf-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--mf-granat);
  box-shadow: 0 40px 120px rgba(8, 28, 56, .45);
  overflow: auto;
}
.mf-modal::backdrop { background: rgba(8, 28, 56, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mf-modal[open] { animation: mf-okno .5s var(--mf-ease); }
@keyframes mf-okno { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.mf-modal-glowa { position: relative; padding: 30px 28px 0; }
.mf-modal-glowa h2 { margin: 0 0 8px; padding-right: 40px; font-size: 26px; line-height: 1.2; color: var(--mf-granat) !important; }
.mf-modal-glowa h2::after { display: none !important; }
.mf-modal-glowa p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mf-tekst-szary); }
.mf-modal-cialo { padding: 22px 28px 28px; }
.mf-zamknij {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f7;
  color: var(--mf-granat);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .3s var(--mf-ease);
}
.mf-zamknij:hover { background: #e5e9f0; transform: rotate(90deg); }
.mf-modal-tel { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--mf-tekst-szary); }
.mf-modal-tel a { color: var(--mf-granat) !important; font-weight: 600; }

/* --- 8. Plywajacy przycisk i dolny pasek na telefonie -------------- */
.mf-plywak {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 950;
  opacity: 0;
  transform: translateY(20px) scale(.95);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--mf-ease), box-shadow .3s ease;
}
html.mf-po-hero .mf-plywak { opacity: 1; transform: none; pointer-events: auto; }
html.mf-po-hero .mf-plywak:hover { transform: translateY(-2px); }
.mf-dol { display: none; }
@media (max-width: 767px) {
  .mf-plywak { display: none; }
  .mf-dol {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 -8px 30px rgba(8, 28, 56, .12);
    transform: translateY(110%);
    transition: transform .45s var(--mf-ease);
  }
  html.mf-scrolled .mf-dol { transform: none; }
  .mf-dol .mf-btn { min-height: 48px; padding: 0 12px; font-size: 14px; }
  body { padding-bottom: 76px; }
}

/* --- 9. Sekcja "Jak pracujemy" ------------------------------------- */
.mf-sekcja { position: relative; clear: both; padding-block: clamp(64px, 9vw, 120px); }
.mf-kroki { background: linear-gradient(180deg, #f7f4ec 0%, #fff 100%); }
.mf-naglowek { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.mf-naglowek h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--mf-granat);
}
.mf-naglowek p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--mf-tekst-szary); }
.mf-kroki-lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mf-krok {
  position: relative;
  margin: 0;
  padding: 32px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8, 28, 56, .08);
  transition: transform .4s var(--mf-ease), box-shadow .4s ease;
}
.mf-krok:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(8, 28, 56, .14); }
.mf-krok:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 59px; left: 96px; right: -24px;
  height: 2px;
  background: linear-gradient(90deg, var(--mf-zloto), var(--mf-zloto-jasne));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--mf-ease) .5s;
}
.mf-krok.mf-widoczny::after, html:not(.mf-js) .mf-krok::after { transform: scaleX(1); }
.mf-krok-nr {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--mf-granat);
  color: var(--mf-zloto-jasne);
  font: 600 18px/1 poppins-semibold, Arial, Helvetica, sans-serif;
}
.mf-krok h3 { margin: 0 0 10px; font-size: 20px; color: var(--mf-granat); }
.mf-krok p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--mf-tekst-szary); }
.mf-srodek { margin-top: 44px; text-align: center; }
@media (max-width: 767px) {
  .mf-kroki-lista { grid-template-columns: 1fr; }
  .mf-krok:not(:last-child)::after {
    top: 88px; bottom: -24px; left: 55px; right: auto;
    width: 2px; height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }
  .mf-krok.mf-widoczny::after { transform: scaleY(1); }
}

/* --- 10. Pas CTA przed stopka (podstrony) -------------------------- */
.mf-cta-pas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  clear: both;
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--mf-granat);
  color: #fff;
}
.mf-cta-pas::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(30% 50% at 15% 50%, rgba(201, 162, 74, .32), transparent 70%),
    radial-gradient(30% 60% at 85% 40%, rgba(60, 110, 190, .38), transparent 70%);
  animation: mf-mesh 18s ease-in-out infinite alternate;
}
.mf-cta-pas .mf-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.mf-cta-pas .mf-etykieta { color: var(--mf-zloto-jasne); }
.mf-cta-pas h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; color: #fff !important; }
.mf-cta-pas h2::after { display: none !important; }
.mf-cta-pas p { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .75); }

/* --- 11. Kafelki oferty: swiatlo za kursorem ----------------------- */
.section-offerhome-w [class*="btn-inner-hover"] .inner.text-center::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 74, .18), transparent 45%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.section-offerhome-w [class*="btn-inner-hover"] .inner.text-center:hover::before { opacity: 1; }

/* --- 12. Slider: powolny zoom zdjecia i wjazd karty ---------------- */
.section-slider-j .slick-slide { overflow: hidden; }
.section-slider-j .slick-active .slideimage { animation: mf-kenburns 9s ease-out both; }
@keyframes mf-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.section-slider-j .slick-active .description .text { animation: mf-zprawej .9s var(--mf-ease) .2s both; }
@keyframes mf-zprawej { from { opacity: 0; transform: translateX(40px); } }

/* --- 13. Podkrecenie wizualne (runda 2) ---------------------------- */
html { scrollbar-color: var(--mf-zloto) transparent; }

/* gorny pasek: granat zamiast czerni */
header .block328 > .col-xs-12 { background: linear-gradient(90deg, #06162d, var(--mf-granat) 60%, #06162d) !important; }
header .block328 .block333 .col-xs-12 { background: transparent !important; }

/* hero: orbity, poswiata i ruch za kursorem */
.mf-hero::before { translate: calc(var(--px, 0) * -40px) calc(var(--py, 0) * -40px); transition: translate .8s var(--mf-ease); }
.mf-orbity {
  position: absolute;
  top: 50%; right: -10%;
  z-index: -1;
  width: min(780px, 72vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  translate: calc(var(--px, 0) * 28px) calc(var(--py, 0) * 28px);
  transition: translate .8s var(--mf-ease);
  pointer-events: none;
}
.mf-orbita { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201, 162, 74, .22); }
.mf-o1 { animation: mf-kreci 90s linear infinite; }
.mf-o2 { inset: 15%; border-style: dashed; border-color: rgba(255, 255, 255, .12); animation: mf-kreci 60s linear infinite reverse; }
.mf-o3 { inset: 30%; border-color: rgba(201, 162, 74, .14); animation: mf-kreci 40s linear infinite; }
.mf-orbita::after {
  content: "";
  position: absolute;
  top: 50%; left: -5px;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--mf-zloto-jasne);
  box-shadow: 0 0 18px 4px rgba(224, 193, 118, .7);
}
.mf-o2::after { top: -4px; left: 50%; width: 7px; height: 7px; margin: 0 0 0 -3px; background: #fff; box-shadow: 0 0 14px 3px rgba(255, 255, 255, .5); }
.mf-kula {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(224, 193, 118, .5), rgba(201, 162, 74, .1) 55%, transparent 70%);
  filter: blur(40px);
  animation: mf-oddech 8s ease-in-out infinite;
}
@keyframes mf-oddech { 50% { transform: scale(1.18); opacity: .7; } }
.mf-hero::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 160px 160px, 64px 64px, 64px 64px;
}
.mf-karta { translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -10px); transition: translate .8s var(--mf-ease); }
@media (max-width: 991px) { .mf-orbity { right: -45%; top: 30%; width: 120vw; opacity: .6; } }

/* pas uslug przesuwajacy sie pod hero */
.mf-pasmo {
  position: relative;
  clear: both;
  overflow: hidden;
  padding-block: 22px;
  background: #06162d;
  border-top: 1px solid rgba(201, 162, 74, .25);
  border-bottom: 1px solid rgba(201, 162, 74, .25);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mf-pasmo-tor { display: flex; width: max-content; animation: mf-marquee 45s linear infinite; }
.mf-pasmo:hover .mf-pasmo-tor { animation-play-state: paused; }
.mf-pasmo ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.mf-pasmo li { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; background: none !important; }
.mf-pasmo li::before { content: none !important; }
.mf-pasmo li::after { content: "✦"; margin: 0 34px; font-size: 14px; color: var(--mf-zloto); }
.mf-pasmo a {
  font: 600 clamp(18px, 2vw, 26px)/1.2 poppins-semibold, Arial, Helvetica, sans-serif;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .88) !important;
  text-decoration: none !important;
  transition: color .3s ease;
}
.mf-pasmo a:hover { color: var(--mf-zloto-jasne) !important; }
@keyframes mf-marquee { to { transform: translateX(-50%); } }

/* slider: szklana karta, okragle strzalki, zlote kropki */
.section-slider-j .description .text {
  background: rgba(8, 28, 56, .55) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-left: 4px solid var(--mf-zloto) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35) !important;
}
.section-slider-j .description .text,
.section-slider-j .description .text p,
.section-slider-j .description .text .heading3 { color: #fff !important; }
.section-slider-j .description .text p:not(.heading3) { color: rgba(255, 255, 255, .78) !important; font-weight: 400 !important; }
.section-slider-j .button-wrapper-slide .btn {
  background: linear-gradient(135deg, var(--mf-zloto-jasne), var(--mf-zloto) 55%, var(--mf-zloto-ciemne)) !important;
  border-color: transparent !important;
  color: var(--mf-granat-ciemny) !important;
}
.section-slider-j .slick-prev, .section-slider-j .slick-next {
  width: 56px !important; height: 56px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-inline: 24px;
}
.section-slider-j .slick-prev:before, .section-slider-j .slick-next:before { color: #fff !important; font-size: 22px !important; }
.section-slider-j .slick-prev:hover, .section-slider-j .slick-next:hover { background: var(--mf-zloto) !important; border-color: var(--mf-zloto) !important; }
.slick-dots li {
  width: 10px !important; height: 10px !important;
  border-radius: 999px;
  background: rgba(14, 42, 82, .18) !important;
  transition: width .4s var(--mf-ease), background-color .4s ease;
}
.slick-dots li.slick-active { width: 30px !important; background: var(--mf-zloto) !important; }
.slick-dots li button:before { opacity: 0 !important; }

/* naglowki sekcji z szablonu: wieksze, granatowe, z etykieta */
.section-offerhome-w .block1525 .inner.text-center { background: transparent !important; box-shadow: none !important; }
.section-offerhome-w .block1525 h2,
.section-newshome-g .block505 h2 {
  font-size: clamp(30px, 3.4vw, 44px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.01em;
  color: var(--mf-granat) !important;
}
.section-offerhome-w .block1525 h2::before,
.section-newshome-g .block505 h2::before,
.box349 .text .wrapper::before {
  display: block;
  margin-bottom: 12px;
  font: 600 12px/1.2 poppins-semibold, Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mf-zloto-ciemne);
}
.section-offerhome-w .block1525 h2::before { content: "Usługi"; }
.section-newshome-g .block505 h2::before { content: "Wiedza"; }
.box349 .text .wrapper::before { content: "O nas"; }
.box349 .text h2.mf-h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--mf-granat); }
.box349 .image img { transition: transform 1.2s var(--mf-ease); }
.box349:hover .image img { transform: scale(1.03); }

/* kafelki oferty: numer w tle i zlota krawedz przy najechaniu */
.mf-kroki-lista { counter-reset: mfkrok; }
.mf-krok { counter-increment: mfkrok; overflow: hidden; }
.mf-krok::before {
  content: "0" counter(mfkrok);
  position: absolute;
  right: 18px; top: -6px;
  font: 600 110px/1 poppins-semibold, Arial, Helvetica, sans-serif;
  color: rgba(14, 42, 82, .045);
  pointer-events: none;
}
.mf-krok:not(:last-child)::after { z-index: 1; }
.mf-krok-nr { position: relative; z-index: 2; box-shadow: 0 10px 24px rgba(14, 42, 82, .25); }
.mf-krok { overflow: visible; }
.section-offerhome-w [class*="btn-inner-hover"] .inner.text-center:hover {
  box-shadow: 0 0 0 1px rgba(201, 162, 74, .55), 0 24px 60px rgba(8, 28, 56, .22) !important;
}

/* sekcja "Zaplanuj przyszlosc": granat zamiast szarego zdjecia */
.mf-paralaksa-tlo {
  background-image:
    radial-gradient(40% 70% at 12% 30%, rgba(201, 162, 74, .28), transparent 70%),
    radial-gradient(40% 70% at 90% 80%, rgba(47, 98, 170, .45), transparent 70%),
    linear-gradient(135deg, #0a2146, #173a70) !important;
  background-size: cover !important;
}
.parallax-backround-border-j {
  background: rgba(255, 255, 255, .05) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(201, 162, 74, .5) !important;
  border-width: 1px !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.parallax-backround-border-j .btn {
  background: linear-gradient(135deg, var(--mf-zloto-jasne), var(--mf-zloto) 55%, var(--mf-zloto-ciemne)) !important;
  border-color: transparent !important;
  color: var(--mf-granat-ciemny) !important;
  box-shadow: 0 10px 30px rgba(201, 162, 74, .35);
}
.parallax-backround-border-j .st-h { font-size: clamp(30px, 3.4vw, 46px) !important; line-height: 1.1 !important; }
.parallax-backround-border-j p:not(.st-h) { color: rgba(255, 255, 255, .78) !important; font-weight: 400 !important; font-size: 17px !important; line-height: 1.7; }

/* aktualnosci: cieply jasny grunt, karta z unoszeniem */
.block159 .col-xs-12:has(> .inner > .section-newshome-g),
#section-newshome > .col-xs-12 { background: linear-gradient(180deg, #fff 0%, #f7f4ec 100%) !important; }
.mod-article-box { border: 1px solid rgba(14, 42, 82, .06); }
.mod-article-box:hover { transform: translateY(-6px); box-shadow: var(--mf-cien-hover) !important; }
.mod-article-box .date {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(201, 162, 74, .14);
  color: var(--mf-zloto-ciemne) !important;
  font-size: 12px;
  letter-spacing: .06em;
}
.mod-article-box h2 a { color: var(--mf-granat) !important; transition: color .25s ease; }
.mod-article-box h2 a:hover { color: var(--mf-zloto-ciemne) !important; }

/* stopka: glebokie granatowe tlo z poswiata i wielkim napisem */
footer {
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 8% 0%, rgba(201, 162, 74, .16), transparent 60%),
    radial-gradient(50% 80% at 95% 100%, rgba(47, 98, 170, .3), transparent 60%),
    #06162d !important;
}
footer .col-xs-12 { background: transparent !important; }
footer::after {
  content: "MARCZUK";
  position: absolute;
  left: 50%; bottom: -.18em;
  transform: translateX(-50%);
  font: 600 clamp(90px, 19vw, 300px)/1 poppins-semibold, Arial, Helvetica, sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 74, .16);
  pointer-events: none;
  z-index: 0;
}
footer > * { position: relative; z-index: 1; }
footer .block231 { padding-bottom: clamp(60px, 12vw, 180px); }
footer a { transition: color .25s ease; }
footer .menu-footer a:hover, footer .link-zmienny a:hover { color: var(--mf-zloto-jasne) !important; }

/* --- 14. Mniej ruchu, gdy system o to prosi ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
}
