/* Czcionki wczytywane przez wp_enqueue_style w functions.php */

:root {
  /* Paleta marki zaczerpnięta z logo BENE. */
  --accent: #10484c;
  --accent-rgb: 16, 72, 76;
  --accent-dark: #07393c;
  --accent-dark-rgb: 7, 57, 60;
  --accent-light: #67a7c6;
  --accent-light-rgb: 103, 167, 198;

  /* Atrament / tekst — tintowane petrolem, cieplejszy premium ton niż neutralny szary. */
  --ink: #22302f;
  --muted: #5a6a69;

  /* Powierzchnie i linie — chłodne, z subtelnym tintem marki (nie płaska szarość Bootstrapa). */
  --surface: #ffffff;
  --surface-subtle: #f2f6f7;
  --surface-alt: #e9f0f1;
  --surface-dark: #07393c;
  --line: rgba(16, 72, 76, .10);
  --line-strong: rgba(16, 72, 76, .16);
  --hero-start: #10484c;

  /* Promienie zaokrągleń — spójna, powściągliwa skala. */
  --radius-sm: .5rem;      /* 8px  */
  --radius: .875rem;       /* 14px */
  --radius-lg: 1rem;       /* 16px – karty */
  --radius-pill: 999px;

  /* Cienie — miękkie, warstwowe, tintowane petrolem (nie czysta czerń). */
  --shadow-sm: 0 1px 2px rgba(16, 72, 76, .05), 0 1px 3px rgba(16, 72, 76, .06);
  --shadow-md: 0 2px 6px rgba(16, 72, 76, .05), 0 10px 28px rgba(16, 72, 76, .08);
  --shadow-lg: 0 6px 14px rgba(16, 72, 76, .06), 0 22px 48px rgba(16, 72, 76, .12);

  /* Ruch — spokojne, powściągliwe easingi. */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur: 240ms;
  --dur-slow: 420ms;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  font-family: IBM Plex Sans, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;      /* 17px – spokojniejsza, premium czytelność */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; }

h1 {
  font-family: Spectral, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

/* Nagłówki sans dziedziczą spójny, dociśnięty tracking. */
h2, h3, h4 {
  letter-spacing: -.01em;
}

::selection {
  background: rgba(var(--accent-light-rgb), .28);
  color: var(--accent-dark);
}

/* Widoczny, markowy focus — podłoga a11y. */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Szacunek dla preferencji ograniczenia ruchu. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-scroll-cta { animation: none !important; }
}

.nav-item {
  font-weight: normal;
  font-size: 1rem;
  color: var(--ink);
}

.navbar-nav .nav-link {
  color: var(--ink);
  letter-spacing: .04em;
  transition: color var(--dur) var(--ease-out);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--accent);
}
.navbar-nav .nav-link.active {
  font-weight: 600;
  color: var(--accent);
}

.navbar-toggler {
  border: none;
  background: transparent;
  color: var(--ink);

  &:focus {
    box-shadow: none;
  }
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-focus-shadow-rgb: var(--accent-light-rgb);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--accent);
  --bs-btn-disabled-border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn-primary i,
.btn-primary .cta-arrow {
  transition: transform var(--dur) var(--ease-out);
  vertical-align: middle;
}
.btn-primary:hover i,
.btn-primary:hover .cta-arrow {
  transform: translateX(3px);
}

/* Na ciemnym hero jasny błękit z logo zapewnia wyraźny kontrast. */
.hero-section .btn-primary {
  --bs-btn-color: var(--accent-dark);
  --bs-btn-bg: var(--accent-light);
  --bs-btn-border-color: var(--accent-light);
  --bs-btn-hover-color: var(--accent-dark);
  --bs-btn-hover-bg: #ffffff;
  --bs-btn-hover-border-color: #ffffff;
  --bs-btn-active-color: var(--accent-dark);
  --bs-btn-active-bg: rgba(255, 255, 255, .92);
  --bs-btn-active-border-color: #ffffff;
}


.hero-section {
  position: relative;
  height: 760px;
  background:
    /* scrim dolny – zapewnia kontrast tekstu bez twardych cieni */
    linear-gradient(
      to top,
      rgba(var(--accent-dark-rgb), .15) 0%,
      rgba(var(--accent-dark-rgb), 0) 55%
    ),
    linear-gradient(
      90deg,
      rgba(var(--accent-dark-rgb), .32) 0%,
      rgba(var(--accent-rgb), .34) 55%,
      rgba(var(--accent-rgb), .12) 100%
    ),
    url("./images/hero-bg2.jpg") center/cover no-repeat;
}

.min-vh-60 { min-height: 60vh; }

/* ── Smooth scroll ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }


/* ── Hero scroll indicator ─────────────────────────────────── */
.hero-scroll-cta {
  position: absolute;
  bottom: 150px;         /* wyraźnie ponad falą (wave 120px) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.8);
  font-size: .95rem;
  text-decoration: none;
  animation: hero-scroll-bounce 2.4s ease-in-out infinite;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.hero-scroll-cta:hover,
.hero-scroll-cta:focus {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%      { transform: translateX(-50%) translateY(7px);  }
}

@media (max-width: 991.98px) {
  .hero-scroll-cta { bottom: 135px; }
}

@media (max-width: 575.98px) {
  .hero-scroll-cta { bottom: 72px; width: 40px; height: 40px; font-size: .95rem; }
}

/* ── Hero shape divider (hero → następna sekcja) ──────────── */
.hero-divider {
  position: absolute;
  bottom: -1px;          /* -1px niweluje subpikselowe przerwy */
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  direction: ltr;
  pointer-events: none;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 120px;
}

@media (max-width: 991.98px) {
  .hero-divider svg { height: 60px; }
}

@media (max-width: 575.98px) {
  .hero-divider svg { height: 42px; }
}

.hero-kicker {
  color: var(--accent-light);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.hero-lead {
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.55;
  max-width: 640px;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 20px rgba(var(--accent-dark-rgb), .35);
}

.hero-title {
  max-width: 45%;
  padding: 12px;
}

.hero-subinfo {
  line-height: 160%;
  font-weight: 400;
}

.hero-title h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
}

.hero-title-boost {
  font-weight: 800;
  color: var(--accent-light);
}

@media (min-width: 992px) {
  .hero-title {
    padding-top: 60px;
  }
  .hero-bg {
    position: absolute;
    left: 50%;
    top: 0;
    width: clamp(520px, 58vw, 987px);
    aspect-ratio: 987 / 292;
    overflow: hidden;
    isolation: isolate;
  }

  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    mix-blend-mode: color;
    opacity: .3;
    pointer-events: none;
  }

  .hero-on-page {
    min-height: 114px;
  }

  .hero-bg img {
    width: 100%;
    height: 100%;
    display: block;
    /*object-fit: cover;*/
  }
}

@media (max-width: 991.98px) {
  .hero-bg {
    display: none;
  }
  .hero-title {
    max-width: 100%;
    padding: 2rem 0 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-subinfo {
    font-size: .9rem;
  }
}

.section-pad { padding: 7rem 0; }

/* ── Eyebrow – mała markowa etykieta nad/nagłówkiem ─────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-light);
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.section-title {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
}
.section-title .fw-light { color: var(--muted); }

/* Tytuł aktywnej usługi na /oferta nawiązuje typografią do service-nav. */
.offer-section .section-title-wrap .section-title {
  font-family: Spectral, Georgia, serif;
}

.section-line {
  --section-line-core: var(--accent);
  --section-line-tail: rgba(var(--accent-rgb), .12);
  position: relative;
  height: 1px;
  margin: .75rem auto 0;
  background: linear-gradient(90deg,
              var(--section-line-tail) 0%,
              rgba(var(--accent-rgb), .34) 58%,
              transparent 100%);
}
.section-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--section-line-core);
}
.section-line-light {
  --section-line-core: rgba(255,255,255,.9);
  --section-line-tail: rgba(255,255,255,.12);
  background: linear-gradient(90deg,
              var(--section-line-tail) 0%,
              rgba(255,255,255,.4) 58%,
              transparent 100%);
}

/* Powierzchnie: zamiast płaskiej szarości Bootstrapa – subtelny tint marki. */
main .bg-light { background-color: var(--surface-subtle) !important; }

/* Intro sekcji – komfortowa miara wiersza. */
.section-intro {
  max-width: 62ch;
  font-size: 1.0625rem;
}

.section-ornament {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .08;
  background: var(--accent-light);
}
.section-ornament-left { left: -10rem; bottom: -8rem; }
.section-ornament-right { right: -8rem; top: -6rem; }

.service-card {
  display: block;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
  overflow: hidden;   /* potrzebne do klipu ćwierćokręgu */
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

/* ── Ćwierćokrąg "Zobacz więcej" (desktop) ─────────────────── */
.card-more {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: var(--accent);
  border-radius: 100% 0 0 0;           /* ćwierćokrąg — zaokrąglenie od góry-lewo */
  transform: translate(100%, 100%);    /* schowany poza kartą */
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
  z-index: 3;                          /* ponad scrimem i treścią */
}

.service-card:hover .card-more {
  transform: translate(0, 0);          /* wsuwa się w narożnik */
}

.card-more__label {
  position: absolute;
  bottom: 22px;
  right: 18px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

/* ── Przycisk mobilny (hover: none) ────────────────────────── */
.card-more-mobile {
  display: none;
}

.service-card h3 {
  font-family: Spectral, Georgia, serif;
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: -.01em;
  transition: color var(--dur) var(--ease-out);
}

/* ── Hover: premium crossfade zdjęcia pod petrolowym scrimem ── */
.service-card::before {          /* zdjęcie usługi */
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  z-index: 0;
}
.service-card::after {           /* lekki scrim – zdjęcie widoczne, tekst czytelny */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--accent-dark-rgb), .36) 0%, rgba(var(--accent-dark-rgb), .3) 100%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  z-index: 1;
}
/* tylko treść dostaje z-index – NIE .card-more (musi zostać position:absolute) */
.service-card .service-icon,
.service-card h3,
.service-card p { position: relative; z-index: 2; }

.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--accent-light-rgb), .5);
}
.service-card:hover .service-icon {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.service-card:hover h3 { color: #fff; }
.service-card:hover p  { color: rgba(255,255,255,.92); }

/* Zdjęcia per usługa (cover – bez zniekształceń) */
.services-card-ksiegowosc::before  { background-image: url("./images/services-ksiegowosc.jpg"); }
.services-card-kadry::before       { background-image: url("./images/services-kadry.jpg"); }
.services-card-audyt::before       { background-image: url("./images/services-audyt.jpg"); }
.services-card-gospodarcze::before { background-image: url("./images/services-gospodarcze.jpg"); }
.services-card-rachunkowe::before  { background-image: url("./images/services-rachunkowe.jpg"); }
.services-card-szkolenia::before   { background-image: url("./images/services-szkolenia.jpg"); }

.service-btn {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
  gap: .75rem;
  width: 100%;
  min-height: 72px;
  padding: 1rem .875rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.25;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-weight: 500;
  text-align: left;
  background: transparent;
  transition: color var(--dur) var(--ease-out),
              padding var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}

/* Zdjęcie jest detalem ujawnianym przez interakcję, nie stałym tłem menu. */
.service-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.76) 45%, rgba(255,255,255,.32) 100%),
    var(--service-image);
  background-position: center, 50% 48%;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform 700ms var(--ease-out);
}

.service-btn::after {
  content: '';
  position: absolute;
  left: 0;
  inset-block: 1rem;
  width: 2px;
  background: var(--accent-light);
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.service-btn > span {
  position: relative;
  z-index: 1;
}

.service-btn__index {
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  transition: color var(--dur) var(--ease-out);
}

.service-btn__label {
  font-family: Spectral, Georgia, serif;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}

.service-btn__arrow {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.service-btn:hover,
.service-btn:focus-visible,
.service-btn--active {
  color: var(--accent-dark);
  padding-left: 1.125rem;
}

.service-btn:hover::before,
.service-btn:focus-visible::before,
.service-btn--active::before {
  opacity: 1;
  transform: scale(1);
}

.service-btn:hover::after,
.service-btn:focus-visible::after,
.service-btn--active::after {
  opacity: 1;
  transform: scaleY(1);
}

.service-btn:hover .service-btn__arrow,
.service-btn:focus-visible .service-btn__arrow,
.service-btn--active .service-btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-btn:hover .service-btn__index,
.service-btn:focus-visible .service-btn__index,
.service-btn--active .service-btn__index {
  color: var(--accent);
}

.service-btn--active {
  background-color: var(--surface-subtle);
  font-weight: 600;
}

/* ── Service nav: poziomy scroll na mobile, pionowy grid na desktop ── */
.service-nav {
  display: flex;
  flex-direction: row;
  gap: .75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(to right, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, black 95%, transparent 100%);
}

.service-nav::-webkit-scrollbar {
  display: none;
}

.service-nav .service-btn {
  flex: 0 0 auto;
  width: min(78vw, 280px);
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .service-nav {
    flex-direction: column;
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
    padding-bottom: 0;
    gap: 0;
    border-top: 1px solid var(--line-strong);
  }

  .service-nav .service-btn {
    width: 100%;
    min-height: 72px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
}

.service-btn--ksiegowosc {
  --service-image: url("./images/services-btn-ksiegowosc.jpg");
}

.service-btn--kadry {
  --service-image: url("./images/services-btn-kadry.jpg");
}

.service-btn--audyt {
  --service-image: url("./images/services-btn-audyt.jpg");
}

.service-btn--gospodarcze {
  --service-image: url("./images/services-btn-gospodarcze.jpg");
}

.service-btn--rachunkowe {
  --service-image: url("./images/services-btn-rachunkowe.jpg");
}

.service-btn--szkolenia {
  --service-image: url("./images/services-btn-szkolenia.jpg");
}

/* ── Mobile: kicker "Zobacz więcej" zawsze widoczny (touch) ─── */
@media (hover: none) {
  /* ćwierćokrąg wymaga hovera — na touch pokaż inline kicker */
  .card-more { display: none; }

  .card-more-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1.1rem;
    background: rgba(var(--accent-light-rgb), .12);
    color: var(--accent) !important;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

.service-icon,
.why-icon, .benefit-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(var(--accent-light-rgb), .14);
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.join-us-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
}

.benefit-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.benefit-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.about-img-col {
  display: flex;
  min-height: 300px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-text {
  line-height: 1.75;
  max-width: 62ch;
  color: var(--ink);
}
.about-text p { margin-bottom: 1.5rem; }
.about-text p:last-child { margin-bottom: 0; }

.why-us {
  position: relative;
  isolation: isolate;   /* pseudo-elementy (z-index < 0) zostają w obrębie sekcji */
}
/* Zdjęcie tła z dużym blurem — miękka, głębinowa tekstura zamiast płaskiego koloru. */
.why-us::before {
  content: '';
  position: absolute;
  inset: -48px;                 /* zapas, by rozmyte krawędzie nie prześwitywały */
  z-index: -2;
  background: url("./images/why-us-bg.jpg") center/cover no-repeat;
}
/* Delikatniejszy petrolowy welon — słabszy niż wcześniej, przepuszcza teksturę zdjęcia. */
.why-us::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg,
              rgba(var(--accent-dark-rgb), .34) 0%,
              rgba(var(--accent-rgb), .38) 100%);
}

.why-us-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.5;
  max-width: 60ch;
  color: rgba(255,255,255,.94);
}

/* Bez „szklanych" kart — czyste bloki treści wprost na rozmytym zdjęciu. */
.why-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}
.why-card p { color: rgba(255,255,255,.85); }
/* Własny gradientowy checkmark — bez tła/pierścienia, sam znak z głębią. */
.why-icon {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  border: 0;
}
.why-check {
  overflow: visible;
  /* warstwowy splash: ciemny cień = głębia, dwie warstwy błękitnej poświaty = duży „pop" */
  filter: drop-shadow(0 5px 8px rgba(var(--accent-dark-rgb), .55))
          drop-shadow(0 0 28px rgba(var(--accent-light-rgb), .5))
          drop-shadow(0 0 54px rgba(var(--accent-light-rgb), .3));
  transition: transform var(--dur) var(--ease-out),
              filter var(--dur) var(--ease-out);
}
.why-card:hover .why-check {
  transform: translateY(-3px) scale(1.07);
  filter: drop-shadow(0 9px 12px rgba(var(--accent-dark-rgb), .6))
          drop-shadow(0 0 36px rgba(var(--accent-light-rgb), .64))
          drop-shadow(0 0 70px rgba(var(--accent-light-rgb), .42));
}

.stat-card {
  position: relative;
  /* centrowanie etykiety nad dużą liczbą-tłem */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* przycina część dużej liczby poza kartą */
}
.stat-number {
  position: absolute; /* umieszczone za etykietą */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10rem;
  line-height: .9;
  font-weight: 800;
  color: rgba(var(--accent-rgb), .07); /* subtelny tint marki zamiast martwej szarości */
  font-variant-numeric: tabular-nums;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.stat-label {
  position: relative;
  z-index: 2; /* ponad liczbą */
  margin-top: 0; /* usuń negatywne odsunięcie */
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.border-end-lg {
  border-right: 1px solid var(--line);
}

.contact-section .p-xl-6 {
  padding: 4.5rem;
}

/* ── Mapa Leaflet w sekcji kontakt ──────────────────────────── */
.contact-map-wrap {
  min-height: 400px;
  position: relative;
}

.contact-map-wrap .leaflet-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 400px;
  filter: saturate(.92) contrast(1.02);
}

@media (min-width: 992px) {
  .contact-section .contact-map-wrap {
    border-right: 1px solid var(--line);
  }
}

/* ── Dane kontaktowe: hierarchia + hairline separatory ──────── */
.contact-block-title {
  margin-bottom: .6rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}
.contact-block p:not(.contact-block-title) {
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.contact-block { margin-bottom: 1.75rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

/* pełna szerokość (page-kontakt) */
.contact-map-wrap.col-12 .leaflet-map,
.contact-map-wrap.col-12 {
  min-height: 480px;
}

@media (min-width: 992px) {
  .contact-map-wrap {
    min-height: 520px;
  }
  .contact-map-wrap .leaflet-map {
    min-height: 520px;
  }
  .contact-map-wrap.col-12,
  .contact-map-wrap.col-12 .leaflet-map {
    min-height: 560px;
  }
}

/*.contact-section-bg {*/
/*  background-color: #FCFCFF;*/
/*}*/
.contact-link {
  color: var(--ink);
  font-weight: 500;
}
.contact-link:hover { color: var(--accent-dark); }

.site-footer {
  background: var(--surface-dark);
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-light), rgba(var(--accent-light-rgb), 0) 55%);
}
.site-footer .brand-mark img {
  height: 46px;
  width: auto;
}
.footer-link {
  color: rgba(255,255,255,.8);
}
.footer-link:hover {
  color: #fff;
}

#kontakt-form, #kariera {
  margin-top: 6rem;
}

#kariera {
  background-color: #f9f9f9;
}

@media (max-width: 991.98px) {
  .border-end-lg { border-right: 0; }
  .hero-section { min-height: 520px; }
  .section-pad { padding: 4rem 0; }
  .contact-section .p-xl-6 { padding: 2rem; }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(0,0,0,.04);
    padding: .45rem 0;
  }

  .service-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .why-us-lead {
    font-size: 1.2rem;
    font-weight: 500 !important;
  }

  /* hero services */
  .hero-on-page {
    background:
      linear-gradient(rgba(var(--accent-dark-rgb), .46), rgba(var(--accent-rgb), .28)),
      url("./images/hero-bg.jpg") center/cover no-repeat;
    /*background-color: #F2F6F9;*/
    /*border-radius: 0 0 4rem 4rem;*/
    color: #fff;
  /*  box shadow down */
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }

  #kontakt-form, #kariera {
    margin-top: 0;
  }

  #kariera {
    background-color: transparent;
  }

  .benefits-col {
    background-color: #f9f9f9;
  }

  .hero-title {
    text-align: center;
  }

  /* treść oferty na tablet */
  .service-body p {
    font-size: .95rem;
  }
}

/*@media (max-width: 575.98px) {*/
/*  .hero-section { min-height: 480px; }*/
/*  .section-badge { padding: .75rem 1.25rem; }*/

/*  #hero {*/
/*    min-height: 200px;*/
/*    padding: 0;*/
/*  }*/

/*  .service-body p {*/
/*    font-size: .875rem;*/
/*    line-height: 1.65;*/
/*  }*/


/*  !* active btn font na mobile *!*/
/*  .service-btn--active {*/
/*    font-size: .8rem;*/
/*  }*/
/*}*/

/* ── Navbar scrolled shadow ─────────────────────────────────── */
.site-header {
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md) !important;
}

/* ── Karty usług: smooth transition ─────────────────────────── */
.service-card:hover {
  transform: translateY(-4px);
}
.service-card .service-icon {
  transition: color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.service-card p {
  transition: color var(--dur) var(--ease-out);
}

/* ── Why-us ikony: subtelne wejście (bez bounce) ────────────── */
.why-icon {
  transition: transform var(--dur) var(--ease-out);
}
[data-aos].aos-animate .why-icon {
  animation: icon-pop var(--dur-slow) var(--ease-out) both;
}
@keyframes icon-pop {
  0%   { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}

/* ── CountUp: highlight liczby gdy animacja startuje ────────── */
.stat-number {
  transition: color 1s ease;
}
.stat-number.counting {
  color: rgba(var(--accent-light-rgb), .24);
}

/* ── Contact links: efekt slide-in przy hover ───────────────── */
.contact-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color .25s ease, transform .25s ease;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: width .3s ease;
}
.contact-link:hover {
  color: var(--accent-dark);
  transform: translateX(4px);
}
.contact-link:hover::after {
  width: 100%;
}

/* ── Footer links: subtelne podkreślenie na hover ───────────── */
.footer-link {
  position: relative;
  transition: color var(--dur) var(--ease-out);
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent-light);
  transition: width var(--dur) var(--ease-out);
}
.footer-link:hover::after { width: 100%; }

/* ── Rozmiary fontów (16px = 1rem) ──────────────────────────── */
/* .fs-12 → 12px */  .fs-12 { font-size: .75rem; }
/* .fs-13 → 13px */  .fs-13 { font-size: .8125rem; }
/* .fs-14 → 14px */  .fs-14 { font-size: .875rem; }
/* .fs-15 → 15px */  .fs-15 { font-size: .9375rem; }
/* .fs-16 → 16px */  .fs-16 { font-size: 1rem; }
/* .fs-17 → 17px */  .fs-17 { font-size: 1.0625rem; }
/* .fs-18 → 18px */  .fs-18 { font-size: 1.125rem; }
/* .fs-19 → 19px */  .fs-19 { font-size: 1.1875rem; }
/* .fs-20 → 20px */  .fs-20 { font-size: 1.25rem; }
/* .fs-21 → 21px */  .fs-21 { font-size: 1.3125rem; }
/* .fs-22 → 22px */  .fs-22 { font-size: 1.375rem; }
/* .fs-23 → 23px */  .fs-23 { font-size: 1.4375rem; }
/* .fs-24 → 24px */  .fs-24 { font-size: 1.5rem; }
/* .fs-25 → 25px */  .fs-25 { font-size: 1.5625rem; }
/* .fs-26 → 26px */  .fs-26 { font-size: 1.625rem; }
/* .fs-27 → 27px */  .fs-27 { font-size: 1.6875rem; }
/* .fs-28 → 28px */  .fs-28 { font-size: 1.75rem; }
/* .fs-29 → 29px */  .fs-29 { font-size: 1.8125rem; }
/* .fs-30 → 30px */  .fs-30 { font-size: 1.875rem; }
/* .fs-31 → 31px */  .fs-31 { font-size: 1.9375rem; }
/* .fs-32 → 32px */  .fs-32 { font-size: 2rem; }
/* .fs-33 → 33px */  .fs-33 { font-size: 2.0625rem; }
/* .fs-34 → 34px */  .fs-34 { font-size: 2.125rem; }
/* .fs-35 → 35px */  .fs-35 { font-size: 2.1875rem; }
/* .fs-36 → 36px */  .fs-36 { font-size: 2.25rem; }
/* .fs-37 → 37px */  .fs-37 { font-size: 2.3125rem; }
/* .fs-38 → 38px */  .fs-38 { font-size: 2.375rem; }
/* .fs-39 → 39px */  .fs-39 { font-size: 2.4375rem; }
/* .fs-40 → 40px */  .fs-40 { font-size: 2.5rem; }


/* ── Karta formularza ─────────────────────────────────────── */
.contact-form-card {
  position: relative;             /* potrzebne dla overlay spinnera */
  background: linear-gradient(145deg, #ffffff 0%, var(--surface-subtle) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-form-field {
  margin-bottom: 1rem;
}

.contact-form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
}

.contact-form-input {
  display: block;
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.05);
  border-radius: .875rem;
  padding: .65rem 1rem;
  font-size: .9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: none;
  font-family: inherit;
}

.contact-form-input::placeholder {
  color: #bbb;
  font-weight: 300;
}

.contact-form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(var(--accent-light-rgb), .18);
}


/* ── CF7 – response output (Bootstrap alert style) ──────────── */
/* CF7 dodaje klasy stanu na <form>, nie na samym .wpcf7-response-output  */

.wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  border-radius: .375rem;
  border: 1px solid transparent;
  font-size: .875rem;
  line-height: 1.5;
}

/* ── Sukces → alert-success ── */
.wpcf7 form.sent .wpcf7-response-output {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* ── Błąd wysyłki → alert-danger ── */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* ── Błędy walidacji / brak zgody → alert-warning ── */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

/* ── Spam → alert-danger ── */
.wpcf7 form.spam .wpcf7-response-output {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* ── Błąd walidacji przy polu ── */
.wpcf7-not-valid-tip {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: #dc3545;
  margin-top: .25rem;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .25rem rgba(220,53,69,.25) !important;
}

/* ── Ukryj domyślny spinner CF7 ── */
.wpcf7 .ajax-loader {
  display: none !important;
}

.wpcf7 .wpcf7-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ── CF7 – overlay spinner na całą kartę ────────────────────── */

/* Spinner domyślnie ukryty – nadpisujemy position: relative z CF7 */
.wpcf7-spinner {
  visibility: hidden;
  position: absolute !important;
  inset: 0;
  width: auto !important;
  height: auto !important;
  background-color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);   /* pasuje do .contact-form-card */
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20;
}

/* Pokaż gdy CF7 doda klasę submitting na form */
.wpcf7 form.submitting .wpcf7-spinner {
  visibility: visible !important;
}

/* Bootstrap border-spinner (nadpisujemy CF7-owy obracający się punkt) */
.wpcf7-spinner::before {
  content: '' !important;
  position: static !important;   /* CF7 daje absolute – reset */
  display: block;
  width: 3rem;
  height: 3rem;
  top: auto !important;
  left: auto !important;
  background-color: transparent !important;
  border: .3em solid rgba(var(--accent-light-rgb), .28) !important;
  border-top-color: var(--accent) !important;
  border-radius: 50% !important;
  transform-origin: center center !important;
  animation-name: bene-spin !important;
  animation-duration: 700ms !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}

@keyframes bene-spin {
  to { transform: rotate(360deg); }
}
