:root { scroll-behavior: smooth; }
input[type=range] { -webkit-appearance: none; background: transparent; width: 100%; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; background: #C9A84C; cursor: pointer; margin-top: -9px; box-shadow: 0 0 0 5px rgba(201,168,76,0.2); }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #e2e8f0; border-radius: 2px; }
.acc-content { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease; }
.acc-item.open .acc-content { max-height: 500px; opacity: 1; }

/* FAQ: na mobile pierwsze 3 pytania; reszta po „Zobacz więcej” */
.faq-more {
  display: none;
}
.faq-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  color: #0D1B2A;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.05);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.faq-more__btn:hover {
  border-color: rgba(201, 168, 76, 0.45);
  color: #C9A84C;
}
.faq-more__btn:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.faq-more__btn i {
  transition: transform 0.2s ease;
}
.faq-list.is-expanded + .faq-more .faq-more__btn i {
  transform: rotate(180deg);
}
@media (max-width: 1023px) {
  .faq-more {
    display: block;
  }
  .faq-list:not(.is-expanded) .faq-item--extra {
    display: none;
  }
}
@media (min-width: 1024px) {
  .faq-more {
    display: none !important;
  }
}
.acc-icon { transition: transform .3s ease; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── Header overlay (transparent over dark hero → filled on scroll) ── */
.site-chrome--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.site-chrome--overlay .site-topbar--overlay {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}
.site-chrome--overlay.is-scrolled .site-topbar--overlay,
.site-chrome--overlay:has(#mobile-menu.open) .site-topbar--overlay {
  max-height: 3.5rem;
  opacity: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  pointer-events: auto;
}
@media (min-width: 640px) {
  .site-chrome--overlay.is-scrolled .site-topbar--overlay,
  .site-chrome--overlay:has(#mobile-menu.open) .site-topbar--overlay {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
}

.site-header--overlay {
  position: relative;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header--overlay .site-header__brand-name {
  color: #fff;
  transition: color 0.3s ease;
}
.site-header--overlay .site-header__brand-sub { color: #C9A84C; }
.site-header--overlay .site-header__nav a {
  color: rgba(255, 255, 255, 0.88) !important;
}
.site-header--overlay .site-header__nav a:hover {
  color: #fff !important;
}
.site-header--overlay .site-header__phone {
  color: #fff;
}
.site-header--overlay .site-header__phone:hover {
  color: #C9A84C;
}
.site-header--overlay .site-header__menu-btn {
  color: #fff;
}
.site-header--overlay .site-header__logo {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.site-chrome--overlay.is-scrolled .site-header--overlay,
.site-chrome--overlay:has(#mobile-menu.open) .site-header--overlay {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: #f3f4f6;
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.08);
}
.site-chrome--overlay.is-scrolled .site-header__brand-name,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__brand-name { color: #0D1B2A; }
.site-chrome--overlay.is-scrolled .site-header__nav a,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__nav a {
  color: #4b5563 !important;
}
.site-chrome--overlay.is-scrolled .site-header__nav a.text-navy,
.site-chrome--overlay.is-scrolled .site-header__nav a:hover,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__nav a.text-navy,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__nav a:hover {
  color: #0D1B2A !important;
}
.site-chrome--overlay.is-scrolled .site-header__phone,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__phone { color: #0D1B2A; }
.site-chrome--overlay.is-scrolled .site-header__phone:hover,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__phone:hover { color: #C9A84C; }
.site-chrome--overlay.is-scrolled .site-header__menu-btn,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__menu-btn { color: #374151; }
.site-chrome--overlay.is-scrolled .site-header__logo,
.site-chrome--overlay:has(#mobile-menu.open) .site-header__logo { filter: none; }

/* Mobile dropdown stays readable on white */
.site-chrome--overlay #mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top-color: rgba(13, 27, 42, 0.08);
}

/* Hero padding under fixed overlay header */
body.has-header-overlay .hero-bg,
body.has-header-overlay .o-nas-hero,
body.has-header-overlay .success-hero {
  padding-top: 6.25rem;
}
@media (min-width: 640px) {
  body.has-header-overlay .hero-bg,
  body.has-header-overlay .o-nas-hero,
  body.has-header-overlay .success-hero {
    padding-top: 7rem;
  }
}
@media (min-width: 1024px) {
  body.has-header-overlay .hero-bg,
  body.has-header-overlay .o-nas-hero,
  body.has-header-overlay .success-hero {
    padding-top: 8rem;
  }
}
/* Breadcrumbs stay in schema; hide bar so hero stays full-bleed under overlay */
body.has-header-overlay nav[aria-label="Breadcrumb"] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-header--overlay,
  .site-header--overlay .site-header__brand-name,
  .site-header--overlay .site-header__logo,
  .site-chrome--overlay .site-topbar--overlay {
    transition: none;
  }
}
.mobile-nav-more { margin: 0.75rem 0 1rem; }
.mobile-nav-more-label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9ca3af; margin-bottom: 0.5rem; padding-left: 0.125rem;
}
.mobile-nav-more-links {
  border-radius: 0.75rem; border: 1px solid #f3f4f6;
  background: #f9fafb; overflow: hidden;
}
.mobile-nav-more-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1rem; min-height: 44px;
  font-size: 0.875rem; font-weight: 500; color: #4b5563;
  transition: background-color 0.15s, color 0.15s;
}
.mobile-nav-more-link + .mobile-nav-more-link { border-top: 1px solid #f3f4f6; }
.mobile-nav-more-link:hover { background: #fff; color: #0D1B2A; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.pulse-dot { animation: pulse-dot 1.5s infinite; }
.hero-bg { background: linear-gradient(135deg, #0D1B2A 0%, #162436 60%, #1f3451 100%); }

/* Hero — zdjęcie biura: mobile = górna część, desktop = pełna sekcja */
.hero-bg--photo {
  background: #0D1B2A;
}
.hero-bg__media {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image: var(--hero-photo);
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-bg__overlay {
  position: absolute;
  inset: 0;
}
.hero-bg__media--desktop {
  display: none;
}
.hero-bg__media--mobile {
  top: 0;
  left: 0;
  right: 0;
  height: clamp(17.5rem, 40vh, 22.5rem);
  background-position: center 35%;
}
.hero-bg__overlay--mobile {
  background: linear-gradient(
    to bottom,
    rgba(13, 27, 42, 0.45) 0%,
    rgba(13, 27, 42, 0.68) 52%,
    #0D1B2A 100%
  );
}
@media (min-width: 1024px) {
  .hero-bg__media--mobile {
    display: none;
  }
  .hero-bg__media--desktop {
    display: block;
    inset: 0;
    background-position: 62% center;
  }
  .hero-bg__overlay--desktop {
    background: linear-gradient(
      to right,
      rgba(13, 27, 42, 0.9) 0%,
      rgba(13, 27, 42, 0.78) 38%,
      rgba(13, 27, 42, 0.42) 62%,
      rgba(13, 27, 42, 0.28) 100%
    );
  }
}
@media (max-width: 1023px) {
  .hero-bg--photo .font-display {
    text-shadow: 0 1px 14px rgba(13, 27, 42, 0.55);
  }
  .hero-bg--photo .bg-white .font-display {
    text-shadow: none;
  }
}

/* Hero geo (miasta WLKP) — kadr w prawo, navy overlay */
.hero-bg--geo .hero-bg__media--mobile {
  background-position: 70% 32%;
}
@media (min-width: 1024px) {
  .hero-bg--geo .hero-bg__media--desktop {
    background-position: 72% 42%;
  }
  .hero-bg--geo .hero-bg__overlay--desktop {
    background: linear-gradient(
      to right,
      rgba(13, 27, 42, 0.94) 0%,
      rgba(13, 27, 42, 0.84) 36%,
      rgba(13, 27, 42, 0.48) 62%,
      rgba(13, 27, 42, 0.3) 100%
    );
  }
}

/* Hero „Upadłość konsumencka” — biuro / gabinet */
.hero-bg--upadlosc .hero-bg__media--mobile {
  background-position: 68% 40%;
}
@media (min-width: 1024px) {
  .hero-bg--upadlosc .hero-bg__media--desktop {
    background-position: 65% 45%;
  }
  .hero-bg--upadlosc .hero-bg__overlay--desktop {
    background: linear-gradient(
      to right,
      rgba(13, 27, 42, 0.94) 0%,
      rgba(13, 27, 42, 0.82) 40%,
      rgba(13, 27, 42, 0.45) 68%,
      rgba(13, 27, 42, 0.28) 100%
    );
  }
}

/* Hero Poznań — Ostrów Tumski: kadr w prawo + delikatny Ken Burns */
.hero-bg--poznan .hero-bg__media--mobile {
  background-position: 72% 28%;
}
@media (min-width: 1024px) {
  .hero-bg--poznan .hero-bg__media--desktop {
    background-position: 78% 42%;
  }
  .hero-bg--poznan .hero-bg__overlay--desktop {
    background: linear-gradient(
      to right,
      rgba(13, 27, 42, 0.94) 0%,
      rgba(13, 27, 42, 0.84) 36%,
      rgba(13, 27, 42, 0.48) 62%,
      rgba(13, 27, 42, 0.3) 100%
    );
  }
}

/* Hero Wielkopolska — Gniezno / jezioro: kadr w prawo */
.hero-bg--wielkopolska .hero-bg__media--mobile {
  background-position: 68% 35%;
}
@media (min-width: 1024px) {
  .hero-bg--wielkopolska .hero-bg__media--desktop {
    background-position: 70% 45%;
  }
  .hero-bg--wielkopolska .hero-bg__overlay--desktop {
    background: linear-gradient(
      to right,
      rgba(13, 27, 42, 0.94) 0%,
      rgba(13, 27, 42, 0.82) 38%,
      rgba(13, 27, 42, 0.45) 64%,
      rgba(13, 27, 42, 0.28) 100%
    );
  }
}
@keyframes hero-photo-drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.055) translate3d(-1.2%, 0.8%, 0); }
}
.hero-bg--drift .hero-bg__media {
  transform-origin: 72% 40%;
  will-change: transform;
  animation: hero-photo-drift 32s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg--drift .hero-bg__media {
    animation: none;
  }
}

/* ── Hero „Nasze sukcesy” — postanowienie sądu jako bohater ── */
.success-hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #162436 60%, #1f3451 100%);
}
.success-hero--photo {
  background: #0D1B2A;
}
.success-hero--photo .hero-bg__media--desktop {
  background-position: 72% center;
}
.success-hero--photo .hero-bg__overlay--desktop {
  background: linear-gradient(
    to right,
    rgba(13, 27, 42, 0.92) 0%,
    rgba(13, 27, 42, 0.82) 42%,
    rgba(13, 27, 42, 0.5) 68%,
    rgba(13, 27, 42, 0.35) 100%
  );
}
@media (max-width: 1023px) {
  .success-hero--photo .font-display {
    text-shadow: 0 1px 14px rgba(13, 27, 42, 0.55);
  }
}
.success-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Kotwica liczbowa — skala kancelarii */
.success-hero-proof-block {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 1024px) {
  .success-hero-proof-block {
    display: block;
  }
}
.success-hero-proof-number {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: #C9A84C;
  letter-spacing: -0.02em;
}
.success-hero-proof-number .success-hero-proof-plus {
  font-size: 0.5em;
  vertical-align: middle;
  margin-left: 0.02em;
}
.success-hero-proof-number .success-hero-proof-unit {
  font-size: 0.42em;
  vertical-align: baseline;
  letter-spacing: 0.02em;
  margin-left: 0;
}
.success-hero-proof-label {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.success-hero-proof-stat {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .success-hero-proof-number {
    font-size: 4rem;
  }
}

/* Scena z dokumentem — nawiązuje do .case-doc-stage z głównej; tylko desktop */
.success-hero-stage {
  display: none;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .success-hero-stage {
    display: block;
    margin-top: 0;
  }
}
.success-doc-scene {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}
.success-doc {
  border-radius: 0.5rem;
  background: #fdfcf9;
}
.success-doc--back {
  position: absolute;
  inset: 0 0.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.success-doc--back-1 {
  z-index: 2;
  transform: rotate(-3.5deg) translateY(0.5rem);
  opacity: 0.55;
  animation: success-doc-stack-1 7s ease-in-out infinite;
}
.success-doc--back-2 {
  z-index: 1;
  transform: rotate(-5deg) translateY(0.85rem) scale(0.98);
  opacity: 0.35;
  animation: success-doc-stack-2 7s ease-in-out infinite;
}
.success-doc--back-3 {
  z-index: 0;
  transform: rotate(-6.5deg) translateY(1.15rem) scale(0.96);
  opacity: 0.2;
  animation: success-doc-stack-3 7s ease-in-out infinite;
}
.success-doc--front {
  position: relative;
  z-index: 3;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(13, 27, 42, 0.08);
  transform: rotate(1.25deg);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.18),
    0 26px 55px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.success-doc--animate {
  animation: success-doc-float 6s ease-in-out infinite;
}
.success-hero-stage:hover .success-doc--front {
  animation-play-state: paused;
  transform: rotate(0.25deg) translateY(-6px);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(0, 0, 0, 0.5);
}
@keyframes success-doc-float {
  0%, 100% { transform: rotate(1.25deg) translateY(0); }
  50% { transform: rotate(0.75deg) translateY(-5px); }
}
@keyframes success-doc-stack-1 {
  0%, 100% { transform: rotate(-3.5deg) translateY(0.5rem); }
  50% { transform: rotate(-2.5deg) translateY(0.35rem); }
}
@keyframes success-doc-stack-2 {
  0%, 100% { transform: rotate(-5deg) translateY(0.85rem) scale(0.98); }
  50% { transform: rotate(-4deg) translateY(0.7rem) scale(0.98); }
}
@keyframes success-doc-stack-3 {
  0%, 100% { transform: rotate(-6.5deg) translateY(1.15rem) scale(0.96); }
  50% { transform: rotate(-5.5deg) translateY(1rem) scale(0.96); }
}
.success-doc-court {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #6b7280;
}
.success-doc-emblem {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.success-doc-emblem-img {
  width: 2.625rem;
  height: auto;
  opacity: 0.82;
  filter: grayscale(1) contrast(1.2) brightness(0.92);
}
.success-doc-title {
  margin-top: 0.375rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: #0D1B2A;
}
.success-doc-sygn {
  margin-top: 0.375rem;
  font-family: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  text-align: center;
  color: #6b7280;
}
.success-doc-sygn-redacted {
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.success-doc-excerpt-cycle {
  position: relative;
  min-height: 4.75rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}
.success-doc-excerpt-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  animation: success-verdict-cycle 9s ease-in-out infinite;
}
.success-doc-excerpt-item:nth-child(1) { animation-delay: 0s; }
.success-doc-excerpt-item:nth-child(2) { animation-delay: 3s; }
.success-doc-excerpt-item:nth-child(3) { animation-delay: 6s; }
.success-doc-excerpt p {
  margin: 0 0 0.375rem;
  max-width: 15rem;
  font-size: 0.5625rem;
  line-height: 1.5;
  color: #6b7280;
}
.success-doc-excerpt p:last-child {
  margin-bottom: 0;
  color: #9ca3af;
}
.success-doc-excerpt strong {
  font-weight: 700;
  color: #4b5563;
}
.success-doc-verdict-cycle {
  position: relative;
  min-height: 3.5rem;
  margin-top: 1.375rem;
}
.success-doc-verdict-item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: success-verdict-cycle 9s ease-in-out infinite;
}
.success-doc-verdict-item:nth-child(1) { animation-delay: 0s; }
.success-doc-verdict-item:nth-child(2) { animation-delay: 3s; }
.success-doc-verdict-item:nth-child(3) { animation-delay: 6s; }
@keyframes success-verdict-cycle {
  0%, 6% { opacity: 0; transform: translateY(6px); }
  10%, 30% { opacity: 1; transform: translateY(0); }
  36%, 100% { opacity: 0; transform: translateY(-4px); }
}
.success-doc-verdict {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 0.625rem;
  background: rgba(201, 168, 76, 0.1);
  font-weight: 700;
  font-size: 0.875rem;
  color: #0D1B2A;
}
.success-doc-verdict-cycle .success-doc-verdict {
  margin-top: 0;
}
.success-doc-verdict i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #C9A84C;
  color: #fff;
  font-size: 0.625rem;
}
.success-doc-seal {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border: 2px solid rgba(201, 168, 76, 0.45);
  border-radius: 999px;
  background: rgba(253, 252, 249, 0.72);
  color: rgba(201, 168, 76, 0.85);
  font-size: 1rem;
  transform: rotate(10deg);
  z-index: 2;
  pointer-events: none;
}
.success-doc-seal--pulse {
  animation: success-doc-seal-pulse 3s ease-in-out infinite;
}
@keyframes success-doc-seal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
  50% { box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.12); }
}
.success-hero-stage-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  max-width: 26rem;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}
@media (min-width: 1024px) {
  .success-doc-scene {
    padding: 1.5rem 2rem 0;
  }
  .success-doc--front {
    padding: 2.25rem 2rem 1.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .success-doc--animate,
  .success-doc--back-1,
  .success-doc--back-2,
  .success-doc--back-3,
  .success-doc-excerpt-item,
  .success-doc-verdict-item,
  .success-doc-seal--pulse {
    animation: none;
  }
  .success-doc-excerpt-item,
  .success-doc-verdict-item {
    position: static;
    opacity: 1;
    transform: none;
  }
  .success-doc-excerpt-item:not(:first-child),
  .success-doc-verdict-item:not(:first-child) {
    display: none;
  }
  .success-hero-stage:hover .success-doc--front {
    transform: rotate(1.25deg);
  }
}

/* Hero kotwica — warianty copy (brak lg:inline / lg:inline-flex w buildzie) */
.hero-anchor__copy--short {
  display: none;
}
@media (min-width: 1024px) {
  .hero-grid {
    align-items: flex-start;
  }
  .hero-anchor {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
  }
  .hero-anchor__inner {
    align-items: center;
    gap: 0.5rem;
  }
  .hero-anchor__icon {
    font-size: 0.875rem;
    margin-top: 0;
  }
  .hero-anchor__text {
    font-size: 0.875rem;
  }
  .hero-anchor__copy--full {
    display: none;
  }
  .hero-anchor__copy--short {
    display: inline;
  }
}

/* Hero — pillki: mobile kolumna (większe), desktop flex zawijany */
.hero-pills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  line-height: 1.35;
  box-sizing: border-box;
}
.hero-pill i {
  flex-shrink: 0;
}
.hero-pill--desktop {
  display: none;
}
@media (min-width: 1024px) {
  .hero-pills {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  .hero-pill {
    width: auto;
  }
  .hero-pill--desktop {
    display: inline-flex;
  }
}

/* „Rozpoznajesz swoją sytuację?” — mobilne kafelki rozwijane */
.situation-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.situation-swipe-hint i {
  color: #C9A84C;
}
.situation-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.situation-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 1.25rem;
  background: #f8fafc;
  box-shadow: 0 18px 38px -28px rgba(13, 27, 42, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.situation-card[open] {
  grid-column: 1 / -1;
}
.situation-card:nth-child(odd) {
  border-color: rgba(201, 168, 76, 0.26);
  background: #0D1B2A;
  box-shadow: 0 22px 44px -28px rgba(13, 27, 42, 0.9);
}
.situation-card__summary {
  position: relative;
  display: flex;
  min-height: 8.25rem;
  padding: 1.1rem 0.85rem 0.95rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.situation-card__summary::-webkit-details-marker {
  display: none;
}
.situation-card__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: rgba(201, 168, 76, 0.13);
  color: #C9A84C;
  font-size: 1rem;
}
.situation-card__title {
  display: block;
  margin-top: 0.65rem;
  color: #0D1B2A;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
}
.situation-card:nth-child(odd) .situation-card__title {
  color: #fff;
}
.situation-card__toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 50%;
}
.situation-card__toggle::before,
.situation-card__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 1px;
  background: #C9A84C;
  transform: translate(-50%, -50%);
}
.situation-card__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}
.situation-card[open] .situation-card__toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}
.situation-card__body {
  display: flex;
  padding: 0 1rem 1.25rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.situation-card__rule {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin: 0 0 0.9rem;
  background: #C9A84C;
}
.situation-card__text {
  flex: 1;
  margin: 0;
  color: #596779;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.situation-card:nth-child(odd) .situation-card__text {
  color: rgba(219, 229, 240, 0.82);
}
.situation-card__link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  color: #C9A84C;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
}
.situation-card__link:hover {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, 0.08);
}
@media (min-width: 640px) {
  .situation-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem; 
  }
  .situation-card[open] {
    grid-column: span 2;
  }
  .situation-card__summary {
    min-height: 11rem;
    padding: 1.35rem 1.25rem 1.15rem;
  }
  .situation-card__toggle {
    top: 0.75rem;
    right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
  }
  .situation-card__icon {
    width: 3rem;
    height: 3rem;
  }
  .situation-card__title {
    margin-top: 0.85rem;
    font-size: 1.125rem;
  }
  .situation-card__body {
    padding: 0 1.5rem 1.5rem;
  }
  .situation-card__rule {
    margin-bottom: 0.9rem;
  }
}
@media (min-width: 1024px) {
  .situation-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Hero — social proof (awatary + Google) */
.hero-social-proof {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-social-proof__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.hero-social-proof__stars {
  letter-spacing: 0.05em;
}
.hero-review-avatars {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding-right: 0.125rem;
}
.hero-review-avatars__img {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center 22%;
  background-color: #e5e7eb;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.hero-review-avatars__img--google {
  object-fit: cover;
  object-position: center;
  background-color: #1a73e8;
}
.hero-review-avatars__img:nth-child(1) { z-index: 1; }
.hero-review-avatars__img:nth-child(2) { z-index: 2; }
.hero-review-avatars__img:nth-child(3) { z-index: 3; }
.hero-review-avatars__img:nth-child(4) { z-index: 4; }
.hero-review-avatars__img:nth-child(5) { z-index: 5; }
.hero-review-avatars__img + .hero-review-avatars__img {
  margin-left: -0.625rem;
}
.hero-social-proof__stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.125rem;
}
.hero-social-proof__stat {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #dbeafe;
}
.hero-social-proof__stat-num {
  color: #C9A84C;
  font-weight: 700;
}
.hero-social-proof__stat--muted {
  color: rgba(191, 219, 254, 0.85);
}

/* O nas — hero ze zdjęciem gabinetu, jeden granat #0D1B2A */
.o-nas-hero {
  background-color: #0D1B2A;
}
.o-nas-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: var(--o-nas-hero-photo);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 62% center;
}
.o-nas-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 27, 42, 0.94) 0%,
    rgba(13, 27, 42, 0.88) 42%,
    rgba(13, 27, 42, 0.62) 68%,
    rgba(13, 27, 42, 0.45) 100%
  );
}
@media (max-width: 1023px) {
  .o-nas-hero__media {
    background-position: center 35%;
  }
  .o-nas-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(13, 27, 42, 0.82) 0%,
      rgba(13, 27, 42, 0.9) 45%,
      rgba(13, 27, 42, 0.96) 100%
    );
  }
  .o-nas-hero--photo .font-display {
    text-shadow: 0 1px 14px rgba(13, 27, 42, 0.55);
  }
}

/* O nas — social proof w białej karcie hero (desktop) */
.o-nas-hero-proof .hero-social-proof {
  padding-top: 0;
  border-top: none;
}
.o-nas-hero-proof .hero-social-proof__stats {
  display: none;
}
.o-nas-hero-proof .hero-social-proof__row .font-bold.text-white {
  color: #0D1B2A;
}
.o-nas-hero-proof .hero-social-proof__row .text-blue-300 {
  color: #6b7280;
}
.o-nas-hero-proof .hero-social-proof__row:hover .text-blue-300 {
  color: #4b5563;
}

/* Hero — rotating headline word: always 1 line; fluid = scale-to-fit without shrinking H1 */
.text-cycle {
  display: inline-block;
  vertical-align: baseline;
  text-align: left;
  white-space: nowrap;
  transform-origin: left center;
}
@media (max-width: 639px) {
  .text-cycle[data-text-cycle-fluid] {
    display: block;
    max-width: 100%;
  }
}
.text-cycle-word {
  display: inline-block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.text-cycle-word.is-leaving {
  opacity: 0;
  transform: translateY(-0.2em);
}
.text-cycle-word.is-entering {
  opacity: 0;
  transform: translateY(0.2em);
}
@media (prefers-reduced-motion: reduce) {
  .text-cycle-word { transition: none; }
}
.feature-card:hover { transform: translateY(-4px); }
.testimonial-card { border-left: 3px solid #C9A84C; }
.form-input:focus { outline: none; border-color: #C9A84C; box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.progress-bar { transition: width 1s ease; }
#toast { transform: translateY(100px); opacity: 0; transition: all .4s ease; }
#toast.show { transform: translateY(0); opacity: 1; }
.prose h2 { font-family: 'Playfair Display', serif; font-weight: 900; color: #0D1B2A; font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-weight: 700; color: #0D1B2A; font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose p, .prose li { color: #4b5563; line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose a { color: #C9A84C; text-decoration: underline; }
body.has-mobile-bar { padding-bottom: 80px; }
@media (min-width: 1024px) { body.has-mobile-bar { padding-bottom: 0; } }
.google-review-card { border-left-color: #4285F4; }
.line-clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }
.article-prose h2 { font-family: 'Playfair Display', serif; font-weight: 900; color: #0D1B2A; font-size: 1.375rem; margin-top: 2rem; margin-bottom: 0.75rem; line-height: 1.3; }
.article-prose h3 { font-weight: 700; color: #0D1B2A; font-size: 1.125rem; margin-top: 1.5rem; margin-bottom: 0.5rem; line-height: 1.4; }
.article-prose p { color: #4b5563; line-height: 1.8; margin-bottom: 1rem; }
.article-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #4b5563; }
.article-prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; color: #4b5563; }
.article-prose li { margin-bottom: 0.35rem; line-height: 1.7; }
.article-prose strong { color: #0D1B2A; font-weight: 600; }
.article-prose .blog-cta { text-align: center; margin: 2rem 0; }
.page-hero { background: linear-gradient(135deg, #0D1B2A 0%, #162436 100%); }

/* ── Pasek postępu czytania ── */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.reading-progress__bar { height: 100%; width: 0; background: #C9A84C; transition: width .1s linear; }

/* ── Kontekstowe CTA w treści artykułu ── */
.article-prose .blog-inline-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  background: #0D1B2A; color: #fff; border-radius: 1rem;
  padding: 1.5rem; margin: 2.25rem 0;
}
@media (min-width: 640px) {
  .article-prose .blog-inline-cta { flex-direction: row; align-items: center; padding: 1.5rem 1.75rem; }
}
.article-prose .blog-inline-cta__icon {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,0.15); color: #C9A84C; font-size: 1.25rem;
}
.article-prose .blog-inline-cta__text { flex: 1; }
.article-prose .blog-inline-cta__title {
  font-family: 'Playfair Display', serif; font-weight: 900;
  color: #fff; font-size: 1.0625rem; line-height: 1.35; margin: 0;
}
.article-prose .blog-inline-cta__desc { color: rgba(191,206,224,0.85); font-size: 0.875rem; line-height: 1.5; margin: 0.25rem 0 0; }
.article-prose .blog-inline-cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #C9A84C; color: #fff; font-weight: 700; text-decoration: none;
  padding: 0.875rem 1.5rem; border-radius: 0.75rem; min-height: 52px; white-space: nowrap;
  transition: background-color .2s;
}
.article-prose .blog-inline-cta__btn:hover { background: #A8892F; color: #fff; }
@media (max-width: 639px) {
  .article-prose .blog-inline-cta__btn { width: 100%; }
}

/* ── Meta artykułu (kategoria · czas czytania · aktualizacja) ── */
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.25rem; font-size: .75rem; }
.article-meta > span { display: inline-flex; align-items: center; gap: .375rem; }

/* ── Box autora / E-E-A-T ── */
.eeat-box { display: flex; align-items: center; gap: 1rem; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 1rem; padding: 1rem; }
@media (min-width: 640px) { .eeat-box { padding: 1.25rem; } }
.eeat-avatar { width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 9999px; object-fit: contain; background: #fff; border: 1px solid #f3f4f6; padding: .375rem; }
.eeat-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-top: .375rem; font-size: .75rem; }

/* ── Układ artykułu ze spisem treści ── */
.article-layout { display: flex; flex-direction: column; }
.article-main { min-width: 0; }
.article-toc-desktop { display: none; }
@media (min-width: 1024px) {
  .article-layout { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .article-main { flex: 1 1 auto; }
  .article-toc-desktop { display: block; width: 15rem; flex: 0 0 15rem; position: sticky; top: 6rem; align-self: flex-start; }
}
.article-toc__label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; margin-bottom: .75rem; }
.article-toc__list { border-left: 2px solid #f3f4f6; }

/* ── Spis treści — linki + scrollspy ── */
.toc-link { display: block; padding: .375rem 0 .375rem 1rem; font-size: .875rem; color: #6b7280; text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; transition: color .15s; }
.toc-link:hover { color: #C9A84C; }
.toc-link--sub { padding-left: 1.75rem; }
.toc-link.is-active { color: #0D1B2A; font-weight: 600; border-left-color: #C9A84C; }

/* ── Lead magnet / blok pozyskania kontaktu ── */
.lead-magnet { border: 1px solid rgba(201,168,76,.3); background: rgba(201,168,76,.06); border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 640px) { .lead-magnet { padding: 2rem; } }
.lead-magnet__row { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .lead-magnet__row { flex-direction: row; align-items: center; } }
.lead-magnet__icon { width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 1rem; display: flex; align-items: center; justify-content: center; background: rgba(201,168,76,.15); color: #C9A84C; font-size: 1.5rem; }
.lead-magnet__body { flex: 1; }
.lead-magnet__title { font-family: 'Playfair Display', serif; font-weight: 900; color: #0D1B2A; font-size: 1.25rem; line-height: 1.35; margin: 0; }
.lead-magnet__desc { color: #4b5563; font-size: .875rem; line-height: 1.6; margin: .375rem 0 0; }
.lead-magnet__actions { display: flex; flex-direction: column; gap: .5rem; }
.lead-magnet__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #C9A84C; color: #fff; font-weight: 700; text-decoration: none; padding: .75rem 1.5rem; border-radius: .75rem; min-height: 48px; white-space: nowrap; transition: background-color .2s; }
.lead-magnet__btn:hover { background: #A8892F; color: #fff; }
.lead-magnet__btn--ghost { background: transparent; color: #0D1B2A; border: 1px solid rgba(13,27,42,.2); font-weight: 600; font-size: .875rem; padding: .625rem 1.5rem; min-height: 0; }
.lead-magnet__btn--ghost:hover { background: #0D1B2A; color: #fff; }

/* ── Wiadomości SMS — przesuwny marquee ── */
.sms-testimonials__stage {
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.sms-testimonials__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  z-index: 2;
  pointer-events: none;
}
@media (min-width: 768px) { .sms-testimonials__fade { width: 5rem; } }
.sms-testimonials__fade--left {
  left: 0;
  background: linear-gradient(to right, #0D1B2A 20%, transparent);
}
.sms-testimonials__fade--right {
  right: 0;
  background: linear-gradient(to left, #0D1B2A 20%, transparent);
}
.sms-testimonials__row {
  overflow: hidden;
  padding: 0.25rem 0;
}
.sms-testimonials__track {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: max-content;
  padding: 0 1rem;
  animation: sms-marquee-left var(--sms-duration, 68s) linear infinite;
  will-change: transform;
}
.sms-testimonials__track--right {
  animation-name: sms-marquee-right;
}
.sms-testimonials__row:hover .sms-testimonials__track,
.sms-testimonials__row:focus-within .sms-testimonials__track {
  animation-play-state: paused;
}
@keyframes sms-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes sms-marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.sms-bubble {
  position: relative;
  margin: 0;
  max-width: min(88vw, 22rem);
  padding: 0.625rem 0.875rem 0.5rem;
  border-radius: 1.125rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.38;
  color: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.sms-bubble__text {
  margin: 0;
  font-weight: 400;
  white-space: normal;
}
.sms-bubble__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.sms-bubble__meta time {
  font-size: 0.6875rem;
  color: rgba(0, 0, 0, 0.38);
  font-variant-numeric: tabular-nums;
}
.sms-bubble--ios {
  background: #E9E9EB;
  border-bottom-left-radius: 0.25rem;
}
.sms-bubble--ios::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  bottom: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: #E9E9EB;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 0.5rem;
}
.sms-bubble--android {
  background: #F1F0F0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 0.3125rem;
}
.sms-bubble--android::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  bottom: 0.125rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 0.625rem 0.625rem;
  border-color: transparent transparent #F1F0F0 transparent;
}
@media (prefers-reduced-motion: reduce) {
  .sms-testimonials__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: 48rem;
    margin: 0 auto;
  }
  .sms-testimonials__track > .sms-bubble:nth-child(n+9) {
    display: none;
  }
  .sms-testimonials__row { overflow: visible; }
  .sms-testimonials__stage {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .sms-testimonials__fade { display: none; }
}

/* ── Opinie Google — pionowe kolumny ── */
.google-reviews-col__stage {
  max-height: 740px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.google-reviews-col {
  overflow: hidden;
  flex-shrink: 0;
  width: min(100%, 20rem);
}
@media (min-width: 768px) {
  .google-reviews-col__stage {
    max-width: 72rem;
    margin-inline: auto;
    gap: 1.25rem;
  }
  .google-reviews-col {
    flex: 1 1 0;
    width: auto;
    max-width: 18rem;
  }
}
.google-reviews-col__track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  animation: google-reviews-scroll-up var(--col-duration, 22s) linear infinite;
  will-change: transform;
}
@media (min-width: 768px) {
  .google-reviews-col__track:has(.google-reviews-col__card:hover),
  .google-reviews-col__track:has(.google-reviews-col__card:focus-within) {
    animation-play-state: paused;
  }
}
@keyframes google-reviews-scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.google-reviews-col__static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .google-reviews-col__stage { display: none; }
  .google-reviews-col__static {
    display: grid;
  }
}

/* ── Rolki (Instagram-style) ── */
.reels-track { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reels-track::-webkit-scrollbar { display: none; }
.reel-frame { touch-action: pan-y pinch-zoom; }
.reel-video { background: #0D1B2A; }
.reel-card.is-playing .reel-play-btn { opacity: 0; pointer-events: none; }
.reel-card.is-paused .reel-play-btn { opacity: 1; pointer-events: auto; }
.reel-card.is-playing .reel-play-icon { display: none; }

/* ── Mobile / Google Ads traffic ── */
@media (max-width: 767px) {
  html {
    font-size: 106.25%; /* ~17px — trochę większy tekst, mniej ściany */
  }
  body {
    line-height: 1.65;
  }
  .acc-item.open .acc-content { max-height: 4000px; }
  input[type=range]::-webkit-slider-thumb { height: 28px; width: 28px; margin-top: -12px; }
  input[type=range]::-webkit-slider-runnable-track { height: 6px; }
  .form-input, select.form-input { font-size: 16px !important; }
  .article-prose h2 { font-size: 1.25rem; }
  .article-prose h3 { font-size: 1.05rem; }
  .article-prose p { font-size: 1rem; line-height: 1.75; }
  .prose p,
  .acc-content p,
  main p.text-sm,
  main .text-gray-500.text-sm,
  main .text-gray-600.text-sm {
    line-height: 1.7;
  }
}
@media (max-width: 1023px) {
  main section { scroll-margin-top: 4rem; }
}
a[href^="tel:"] { -webkit-tap-highlight-color: rgba(201, 168, 76, 0.2); }
.touch-manipulation { touch-action: manipulation; }

.case-umorzone-accent { color: #A3505F; }
.case-story-headline {
  scroll-margin-top: 5.5rem;
}
@media (min-width: 1024px) {
  .case-story-headline {
    scroll-margin-top: 0;
  }
}

/* ── Sekcja #historie — carousel 1-slide (mobile); 3 kolumny (desktop) ── */
.case-stories-carousel {
  position: relative;
}
.case-stories-carousel__viewport {
  overflow: hidden;
  border-radius: 0.25rem;
  outline: none;
}
.case-stories-carousel__viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.45);
}
.case-stories-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}
.case-stories-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0 0.125rem;
  box-sizing: border-box;
}
.case-stories-carousel__slide:not(.is-active) {
  pointer-events: none;
}
.case-stories-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.case-stories-carousel__status {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.case-stories-carousel__docs {
  display: none;
  margin-top: 1.25rem;
}
.case-stories-carousel__doc:not(.is-active) {
  display: none;
}
.case-stories-carousel__doc .case-doc-stage {
  margin-top: 0;
}
.case-story-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.case-story-footer__sygnatura,
.case-story-footer__meta {
  margin: 0;
}
.case-story-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}
.case-story-decision-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #A3505F;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
}
.case-story-decision-link:hover {
  color: #0D1B2A;
}
.case-story-decision-link:focus-visible {
  outline: 2px solid #A3505F;
  outline-offset: 2px;
  border-radius: 2px;
}
@media (min-width: 1024px) {
  .case-story-decision-link {
    display: none;
  }
}
.case-stories-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0D1B2A;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}
.case-stories-carousel__btn:hover {
  border-color: rgba(201, 168, 76, 0.45);
  color: #C9A84C;
}
.case-stories-carousel__btn:active {
  transform: translateY(1px);
}
.case-stories-carousel__btn:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.case-stories-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.case-stories-carousel__dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  padding: 0;
  border-radius: 9999px;
  background: transparent;
  position: relative;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.case-stories-carousel__dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #d1d5db;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.case-stories-carousel__dot.is-active::after {
  background: #C9A84C;
  transform: scale(1.15);
}
.case-stories-carousel__dot:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .case-stories-carousel__track {
    transition: none;
  }
}

/* Desktop — 3 kolumny jak wcześniej */
@media (min-width: 1024px) {
  .case-stories-carousel__controls,
  .case-stories-carousel__status {
    display: none;
  }
  .case-stories-carousel__viewport {
    overflow: visible;
  }
  .case-stories-carousel__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    row-gap: 0;
    grid-template-rows: auto auto auto auto;
    align-items: stretch;
    transform: none !important;
    transition: none;
    will-change: auto;
  }
  @media (min-width: 1280px) {
    .case-stories-carousel__track {
      column-gap: 2rem;
    }
  }
  .case-stories-carousel__slide {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    grid-row: span 4;
    flex: none;
    width: auto;
    min-width: 0;
    padding: 0;
    pointer-events: auto !important;
  }
  .case-stories-carousel__slide .case-story-block {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: subgrid;
    grid-row: span 4;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  .case-stories-carousel__slide .case-story-headline {
    min-height: 3.25rem;
    margin-bottom: 1.25rem;
  }
  .case-stories-carousel__slide .case-story-headline .case-umorzone-accent {
    font-size: 1.5rem;
  }
  @media (min-width: 1280px) {
    .case-stories-carousel__slide .case-story-headline .case-umorzone-accent {
      font-size: 1.65rem;
    }
  }
  .case-stories-carousel__slide .case-study-panel {
    display: contents;
  }
  .case-stories-carousel__slide .case-study-panel__cell {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background-color: #ffffff;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
  }
  .case-stories-carousel__slide .case-study-intro {
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    border-radius: 1rem 1rem 0 0;
    margin-top: 0;
  }
  .case-stories-carousel__slide .case-story-narrative {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 1rem;
    border-top: none;
  }
  .case-stories-carousel__slide .case-story-footer {
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0 0 1rem 1rem;
    padding-bottom: 1.25rem;
    margin-top: 0;
  }
  .case-stories-carousel__docs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    margin-top: 1.25rem;
  }
  @media (min-width: 1280px) {
    .case-stories-carousel__docs {
      column-gap: 2rem;
    }
  }
  .case-stories-carousel__doc {
    display: block !important;
  }
  .case-stories-carousel__doc[hidden] {
    display: block !important;
  }
  .case-stories-carousel__doc .case-doc-stage--compact {
    min-height: 14.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* ── Sekcja #historie — panel werdyktu (navy, ring %, pasek długu) ── */
.case-verdict-panel {
  position: relative;
  background: #0D1B2A;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 1rem;
  padding: 1rem 1.125rem 1.125rem;
  overflow: hidden;
  box-shadow: 0 14px 32px -20px rgba(13, 27, 42, 0.45);
}
.case-verdict-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 100% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.case-verdict-panel > * { position: relative; }

.case-verdict-viz {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* Pierścień % umorzenia */
.case-verdict-ring {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.case-verdict-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.case-verdict-ring circle {
  fill: none;
  stroke-width: 6;
}
.case-verdict-ring__track { stroke: rgba(255, 255, 255, 0.12); }
.case-verdict-ring__fill {
  stroke: #C9A84C;
  stroke-linecap: round;
  stroke-dasharray: 213.6; /* 2πr, r=34 */
  stroke-dashoffset: calc(213.6 - 213.6 * var(--verdict-percent, 0) / 100);
}
[data-verdict-reveal]:not(.is-revealed) .case-verdict-ring__fill {
  stroke-dashoffset: 213.6;
}
.is-revealed .case-verdict-ring__fill {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.case-verdict-ring__value {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
}
.case-verdict-ring__label {
  margin-top: 0.2rem;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.9);
  font-weight: 700;
}

/* Kolumna liczb: dług przed / do spłaty / plan */
.case-verdict-figures {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* Mobile: etykieta nad wartością — wąska kolumna obok pierścienia */
.case-verdict-figures__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}
.case-verdict-figures__row dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #B8C2CD;
  white-space: nowrap;
}
.case-verdict-figures__row dd { margin: 0; text-align: left; min-width: 0; max-width: 100%; }
@media (min-width: 480px) {
  .case-verdict-figures { gap: 0.45rem; }
  .case-verdict-figures__row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .case-verdict-figures__row dd { text-align: right; }
}
.case-verdict-figures__before {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: line-through;
  text-decoration-color: #B86472;
  text-decoration-thickness: 1.5px;
}
.case-verdict-figures__after {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}
.case-verdict-figures__plan {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.95);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.25;
}
@media (min-width: 480px) {
  .case-verdict-figures__plan {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Pasek „dług przestał istnieć" */
.case-verdict-bar { margin-top: 1rem; }
.case-verdict-bar__track {
  display: block;
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.case-verdict-bar__fill {
  display: block;
  height: 100%;
  width: calc(var(--verdict-percent, 0) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, #C9A84C 0%, #e0c878 100%);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}
[data-verdict-reveal]:not(.is-revealed) .case-verdict-bar__fill { width: 0; }
.is-revealed .case-verdict-bar__fill {
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.case-verdict-bar__caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
  .case-verdict-panel { padding: 0.875rem 1rem 1rem; }
  .case-verdict-viz { gap: 0.75rem; margin-top: 0.875rem; padding-top: 0.875rem; }
  .case-verdict-ring { width: 4.5rem; height: 4.5rem; }
  .case-verdict-ring__value { font-size: 1.05rem; }
  .case-verdict-figures__before { font-size: 0.875rem; }
  .case-verdict-figures__after { font-size: 1rem; }
  .case-verdict-figures__plan { font-size: 0.75rem; }
  .case-verdict-figures__row dt { font-size: 0.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .is-revealed .case-verdict-ring__fill,
  .is-revealed .case-verdict-bar__fill { transition: none; }
}

/* ── Sekcja #historie — oś sytuacja → werdykt (medale + animacja) ── */
.case-story-flow__rail {
  position: absolute;
  left: calc(1.5rem - 1.5px);
  top: 3rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.14) 0%,
    rgba(13, 27, 42, 0.28) 45%,
    rgba(201, 168, 76, 0.45) 82%,
    rgba(201, 168, 76, 0.72) 100%
  );
  overflow: visible;
}
.case-story-flow__rail::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #C9A84C;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.75);
  opacity: 0;
  transform: scale(0.5);
}
.is-flow-revealed .case-story-flow__rail::after {
  animation: case-flow-dot 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.case-story-flow__marker {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.55);
}
.case-story-flow__icon {
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  z-index: 1;
}
.case-story-flow__halo {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.case-story-flow__marker--start {
  background: linear-gradient(155deg, #ffffff 0%, #f3f4f6 55%, #e8eaed 100%);
  color: #0D1B2A;
  border: 2px solid rgba(13, 27, 42, 0.12);
  box-shadow:
    0 6px 16px -6px rgba(13, 27, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.case-story-flow__halo--start {
  background: radial-gradient(circle, rgba(13, 27, 42, 0.08) 0%, transparent 70%);
}
.case-story-flow__marker--end {
  background: radial-gradient(circle at 32% 28%, #e8d498 0%, #C9A84C 48%, #9a7a2e 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 10px 22px -8px rgba(201, 168, 76, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.case-story-flow__halo--end {
  border: 1px dashed rgba(201, 168, 76, 0.45);
  inset: -7px;
}
.case-story-flow__seal-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}
.case-story-flow__marker--end .case-story-flow__icon {
  width: 1.3rem;
  height: 1.3rem;
  filter: drop-shadow(0 1px 1px rgba(13, 27, 42, 0.25));
}
.case-story-flow__icon--section {
  width: 1.45rem;
  height: 1.45rem;
}

.is-flow-revealed .case-story-flow__marker--start {
  animation: case-flow-pop 0.6s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}
.is-flow-revealed .case-story-flow__marker--end {
  animation: case-flow-pop 0.6s cubic-bezier(0.34, 1.45, 0.64, 1) 0.85s forwards;
}
.is-flow-revealed .case-story-flow__marker--end .case-story-flow__halo--end {
  animation: case-flow-seal-pulse 2.8s ease-in-out 1.5s infinite;
  opacity: 1;
}

@keyframes case-flow-pop {
  0% { opacity: 0; transform: scale(0.55); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes case-flow-dot {
  0% { top: 0; opacity: 0; transform: scale(0.5); }
  12% { opacity: 1; transform: scale(1); }
  100% { top: calc(100% - 7px); opacity: 1; transform: scale(1); }
}
@keyframes case-flow-seal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 0.95; }
}

@media (min-width: 1024px) {
  .case-story-flow__rail {
    left: calc(1.375rem - 1.5px);
    top: 2.75rem;
  }
  .case-story-flow__marker {
    width: 2.75rem;
    height: 2.75rem;
  }
  .case-story-flow__icon {
    width: 1.2rem;
    height: 1.2rem;
  }
  .case-story-flow__marker--end .case-story-flow__icon,
  .case-story-flow__icon--section {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-story-flow__marker {
    opacity: 1;
    transform: none;
  }
  .is-flow-revealed .case-story-flow__marker--start,
  .is-flow-revealed .case-story-flow__marker--end {
    animation: none;
  }
  .case-story-flow__rail::after,
  .is-flow-revealed .case-story-flow__marker--end .case-story-flow__halo--end {
    animation: none;
    opacity: 0;
  }
}

/* ── Sekcja #proces — animowana oś 7 kroków (mobile / tablet) ── */
.process-step-num { position: relative; z-index: 1; }
.process-step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  min-width: 0;
}
.process-step-head .process-step-num {
  flex-shrink: 0;
}
.process-step-head h3 {
  margin: 0;
  min-width: 0;
  line-height: 1.25;
}

@media (max-width: 1023px) {
  .process-timeline-mobile {
    position: relative;
    padding-left: 1.75rem;
    margin-left: 0.625rem;
  }
  .process-timeline-mobile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(13, 27, 42, 0.14) 0%,
      rgba(13, 27, 42, 0.26) 38%,
      rgba(201, 168, 76, 0.38) 62%,
      rgba(201, 168, 76, 0.68) 100%
    );
    transform-origin: top center;
    transform: scaleY(0);
  }
  .process-timeline-mobile.is-process-revealed::before {
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scaleY(1);
  }
  .process-timeline-mobile::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 0.75rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9A84C;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.75);
    opacity: 0;
    pointer-events: none;
  }
  .process-timeline-mobile.is-process-revealed::after {
    animation: process-flow-dot 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  }

  .process-timeline-mobile .process-step-card {
    position: relative;
    opacity: 0;
    transform: translateX(14px);
  }
  .process-timeline-mobile .process-step-card.is-step-revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .process-timeline-mobile .process-step-card::before {
    content: '';
    position: absolute;
    left: calc(-1.75rem - 1px);
    top: calc(1.25rem + 1rem);
    transform: translateX(-50%) scale(0);
    width: 0.8125rem;
    height: 0.8125rem;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #e8d498 0%, #C9A84C 52%, #9a7a2e 100%);
    border: 2px solid #fff;
    box-shadow: 0 4px 14px -4px rgba(201, 168, 76, 0.7);
    z-index: 2;
    opacity: 0;
  }
  .process-timeline-mobile .process-step-card.is-step-revealed::before {
    animation: process-step-dot 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
  }
  .process-timeline-row--bottom .process-step-card::before {
    width: 0.9375rem;
    height: 0.9375rem;
    box-shadow:
      0 4px 16px -4px rgba(201, 168, 76, 0.85),
      0 0 0 3px rgba(201, 168, 76, 0.15);
  }
}

@keyframes process-flow-dot {
  0% { top: 0.75rem; opacity: 0; transform: scale(0.5); }
  8% { opacity: 1; transform: scale(1); }
  100% { top: calc(100% - 0.75rem - 7px); opacity: 1; transform: scale(1); }
}
@keyframes process-step-dot {
  0% { opacity: 0; transform: translateX(-50%) scale(0); }
  70% { opacity: 1; transform: translateX(-50%) scale(1.12); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .process-timeline-mobile::before {
    transform: scaleY(1);
    transition: none;
  }
  .process-timeline-mobile::after { animation: none; opacity: 0; }
  .process-timeline-mobile .process-step-card {
    opacity: 1;
    transform: none;
  }
  .process-timeline-mobile .process-step-card::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: none;
  }
}

/* ── Sekcja #historie — dokument na pierwszym planie ── */
.case-doc-stage {
  background: linear-gradient(165deg, #0D1B2A 0%, #152536 45%, #0D1B2A 100%);
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(13, 27, 42, 0.35);
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .case-doc-stage { border-radius: 1.5rem; padding: 2.5rem 2rem 2rem; }
}
.case-doc-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.case-doc-sheet {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.45);
  transform: perspective(900px) rotateX(6deg);
  transform-origin: center bottom;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
}
.case-doc-tap:focus-visible .case-doc-sheet {
  outline: 2px solid #C9A84C;
  outline-offset: 4px;
}
@media (min-width: 1024px) {
  .case-doc-stage--compact {
    padding: 1.25rem 1rem 1rem;
    border-radius: 1rem;
  }
  .case-doc-stage--compact .case-doc-sheet {
    transform: perspective(900px) rotateX(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-doc-sheet { transform: none; }
  .case-doc-stage--compact .case-doc-sheet { transform: none; }
}

/* ── Stopka sekcji #historie — telefon + archiwum ── */
.case-historie-foot {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
.case-historie-foot__phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1024px) {
  .case-historie-foot {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
  .case-historie-foot__phone {
    align-items: flex-start;
    padding-right: 0.5rem;
  }
  .case-historie-foot__lead {
    max-width: none;
  }
  .case-historie-foot__archive .case-archive-teaser__inner {
    min-height: 100%;
  }
}

/* ── Kafelek archiwum pod #historie ── */
.case-archive-teaser {
  display: block;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #0D1B2A 0%, #152536 55%, #1a2d45 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow: 0 18px 40px -16px rgba(13, 27, 42, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 48px;
}
.case-archive-teaser:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.65);
  box-shadow: 0 22px 48px -14px rgba(13, 27, 42, 0.55);
}
.case-archive-teaser:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 3px;
}
.case-archive-teaser__inner {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
}
@media (min-width: 640px) {
  .case-archive-teaser__inner {
    gap: 1.35rem;
    padding: 1.35rem 1.5rem 1.45rem;
  }
}
.case-archive-teaser__visual {
  position: relative;
  flex-shrink: 0;
  width: 5.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
@media (min-width: 640px) {
  .case-archive-teaser__visual { width: 6.5rem; }
}
.case-archive-teaser__stack {
  position: relative;
  width: 4.5rem;
  height: 5.5rem;
}
.case-archive-teaser__sheet {
  position: absolute;
  inset: 0;
  border-radius: 0.35rem;
  background: #fdfcf9;
  border: 1px solid rgba(13, 27, 42, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.case-archive-teaser__sheet--back {
  transform: rotate(-7deg) translateY(0.35rem) scale(0.94);
  opacity: 0.45;
}
.case-archive-teaser__sheet--mid {
  transform: rotate(-3deg) translateY(0.15rem) scale(0.97);
  opacity: 0.72;
}
.case-archive-teaser__sheet--front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.45rem 0.4rem;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.case-archive-teaser:hover .case-archive-teaser__sheet--front {
  transform: rotate(0.5deg) translateY(-2px);
}
.case-archive-teaser__emblem {
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.55;
  filter: grayscale(1);
}
.case-archive-teaser__line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: rgba(13, 27, 42, 0.12);
}
.case-archive-teaser__line--short { width: 68%; }
.case-archive-teaser__sygn {
  margin-top: 0.15rem;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.4375rem;
  letter-spacing: 0.02em;
  color: rgba(13, 27, 42, 0.55);
  white-space: nowrap;
}
.case-archive-teaser__badge {
  position: relative;
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #C9A84C;
  color: #0D1B2A;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.case-archive-teaser__copy {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.case-archive-teaser__eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.92);
}
.case-archive-teaser__title {
  margin: 0.35rem 0 0;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
}
@media (min-width: 640px) {
  .case-archive-teaser__title { font-size: 1.25rem; }
}
.case-archive-teaser__desc {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.case-archive-teaser__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  font-size: 0.875rem;
  font-weight: 700;
  color: #C9A84C;
  transition: gap 0.25s ease, color 0.25s ease;
}
.case-archive-teaser:hover .case-archive-teaser__cta {
  gap: 0.65rem;
  color: #e0c878;
}
@media (prefers-reduced-motion: reduce) {
  .case-archive-teaser,
  .case-archive-teaser__sheet--front,
  .case-archive-teaser__cta { transition: none; }
  .case-archive-teaser:hover { transform: none; }
}

/* ÔöÇÔöÇ Podgl─ůd rozstrzygni─Ö─ç (case study) ÔöÇÔöÇ */
.decision-viewer {
  margin: 0; padding: 0; border: none;
  width: 100%; max-width: none; height: 100%; max-height: none;
  background: #0D1B2A;
}
.decision-viewer::backdrop { background: rgba(0, 0, 0, 0.75); }
.decision-viewer[open] { display: flex; flex-direction: column; }
.decision-viewer-bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgba(13, 27, 42, 0.98); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.decision-viewer-close {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, 0.08);
}
.decision-viewer-close:hover { background: rgba(201, 168, 76, 0.25); color: #C9A84C; }
.decision-viewer-body {
  position: relative;
  flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 1rem 3.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.decision-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.decision-viewer-nav:hover:not(:disabled),
.decision-viewer-nav:focus-visible {
  background: rgba(201, 168, 76, 0.22);
  border-color: rgba(201, 168, 76, 0.45);
  color: #C9A84C;
  outline: none;
}
.decision-viewer-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
.decision-viewer-nav.is-hidden {
  display: none;
}
.decision-viewer-nav--prev {
  left: max(0.5rem, env(safe-area-inset-left));
}
.decision-viewer-nav--next {
  right: max(0.5rem, env(safe-area-inset-right));
}
@media (max-width: 639px) {
  .decision-viewer-body {
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-top: 0.75rem;
  }
  .decision-viewer-frame {
    width: 100%;
  }
  .decision-viewer-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .decision-viewer-nav--prev {
    left: max(0.25rem, env(safe-area-inset-left));
  }
  .decision-viewer-nav--next {
    right: max(0.25rem, env(safe-area-inset-right));
  }
}
@media (min-width: 640px) {
  .decision-viewer-body { padding-left: 4rem; padding-right: 4rem; }
  .decision-viewer-nav { width: 48px; height: 48px; margin-top: -24px; }
}
.decision-viewer-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.decision-viewer-img {
  max-width: 100%; width: auto; height: auto;
  border-radius: 0.5rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.doc-brand-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem 0.5rem 2rem;
  overflow: hidden;
  background: linear-gradient(to left, rgba(253, 252, 249, 0.82) 0%, rgba(253, 252, 249, 0.35) 42%, transparent 68%);
}
.doc-brand-watermark::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: repeating-linear-gradient(
    -32deg,
    transparent 0,
    transparent 56px,
    rgba(13, 27, 42, 0.055) 56px,
    rgba(13, 27, 42, 0.055) 57px
  );
  pointer-events: none;
}
.doc-brand-watermark__logo {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  opacity: 0.88;
}
.doc-brand-watermark__text {
  position: relative;
  z-index: 1;
  max-width: 5.5rem;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(13, 27, 42, 0.72);
}
.doc-brand-watermark--viewer {
  padding: 1rem 1rem 1rem 3rem;
  background: linear-gradient(to left, rgba(13, 27, 42, 0.55) 0%, rgba(13, 27, 42, 0.2) 40%, transparent 72%);
}
.doc-brand-watermark--viewer::before {
  background: repeating-linear-gradient(
    -32deg,
    transparent 0,
    transparent 72px,
    rgba(255, 255, 255, 0.05) 72px,
    rgba(255, 255, 255, 0.05) 73px
  );
}
.doc-brand-watermark--viewer .doc-brand-watermark__logo {
  width: 3.5rem;
  height: 3.5rem;
  opacity: 0.92;
  filter: brightness(1.15);
}
.doc-brand-watermark--viewer .doc-brand-watermark__text {
  max-width: 7rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ── Archiwum wyroków (siatka miniaturek + filtry) ── */
.judgments-toolbar--years {
  margin-bottom: 1.75rem;
}
.judgments-section-head:has(+ .judgments-toolbar) {
  margin-bottom: 1rem;
}
.judgments-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .judgments-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.judgments-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.judgments-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.judgments-filter:hover {
  border-color: #C9A84C;
  color: #0D1B2A;
}
.judgments-filter.is-active {
  background: #0D1B2A;
  border-color: #0D1B2A;
  color: #ffffff;
}
.judgments-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
}
.judgments-filter.is-active .judgments-filter-count {
  background: rgba(201, 168, 76, 0.25);
  color: #C9A84C;
}
.judgments-total {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
}
.judgments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .judgments-grid:not(.judgments-grid--scroll) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .judgments-grid:not(.judgments-grid--scroll) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1280px) {
  .judgments-grid:not(.judgments-grid--scroll) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.judgments-scroll-wrap {
  position: relative;
}
.judgments-scroll-wrap.is-active {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.65) #e5e7eb;
  padding-bottom: 0.375rem;
}
.judgments-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.judgments-scroll-hint.hidden {
  display: none;
}
.judgments-scroll-wrap.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0.375rem;
  width: 2.5rem;
  background: linear-gradient(to left, #f9fafb 20%, transparent);
  pointer-events: none;
  z-index: 1;
}
.judgments-grid--scroll {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(9rem, calc(50vw - 1.5rem), 11.5rem);
  gap: 1rem;
  width: max-content;
  min-width: 0;
}
@media (min-width: 1024px) {
  .judgments-grid--scroll {
    grid-template-rows: repeat(1, auto);
    grid-auto-columns: clamp(7rem, calc((min(100vw, 80rem) - 5rem - 9 * 1.5rem) / 10), 9.5rem);
    gap: 1.5rem;
  }
}
.judgments-grid--scroll .judgments-card {
  scroll-snap-align: start;
  min-width: 0;
}
.judgments-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.judgments-card.hidden {
  display: none;
}
.judgments-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f9fafb;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.judgments-thumb:hover,
.judgments-thumb:focus-visible {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.12);
  transform: translateY(-2px);
  outline: none;
}
.judgments-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.judgments-thumb--pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #0D1B2A 0%, #1A2D40 100%);
}
.judgments-pdf-icon {
  font-size: 2.5rem;
  color: #C9A84C;
}
.judgments-thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: rgba(13, 27, 42, 0.72);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s;
}
.judgments-thumb:hover .judgments-thumb-overlay,
.judgments-thumb:focus-visible .judgments-thumb-overlay {
  opacity: 1;
}
.judgments-card-meta {
  margin-top: 0.875rem;
  text-align: center;
}
.judgments-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0D1B2A;
}
.judgments-card-amount {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 0.9375rem;
  color: #A3505F;
  line-height: 1.2;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.judgments-section {
  margin-bottom: 3.5rem;
}
.judgments-section--final {
  margin-bottom: 0;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}
.judgments-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .judgments-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.judgments-section-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
}
.judgments-section-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed #d1d5db;
  border-radius: 1rem;
  background: #ffffff;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.55;
}
.judgments-section-empty i {
  margin-top: 0.125rem;
  font-size: 1rem;
}
.judgments-card-sygn {
  margin-top: 0.25rem;
  font-family: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: #0D1B2A;
  word-break: break-all;
  line-height: 1.35;
}
.judgments-card-date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.625rem;
  color: #9ca3af;
}
.judgments-empty {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}
.judgments-empty.hidden {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .judgments-thumb:hover,
  .judgments-thumb:focus-visible {
    transform: none;
  }
}

/* ── Cookie banner (RODO + Consent Mode) ── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 1rem; padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  .cookie-banner { bottom: 0; padding: 1.25rem 1.5rem; }
  body.has-mobile-bar .cookie-banner { padding-bottom: 1.25rem; }
}
.cookie-banner.hidden { display: none; }
.cookie-banner-inner {
  max-width: 48rem; margin: 0 auto;
  background: #0D1B2A; color: #e5e7eb;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 1rem; padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 640px) {
  .cookie-banner-inner {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem;
  }
}
.cookie-banner-text { font-size: 0.8125rem; line-height: 1.55; margin: 0; }
.cookie-banner-link { color: #C9A84C; text-decoration: underline; }
.cookie-banner-link:hover { color: #fff; }
.cookie-banner-actions { display: flex; flex-shrink: 0; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btn {
  font-size: 0.8125rem; font-weight: 700; border-radius: 0.5rem;
  padding: 0.625rem 1rem; min-height: 44px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cookie-btn-primary { background: #C9A84C; color: #fff; border: none; }
.cookie-btn-primary:hover { background: #A8892F; }
.cookie-btn-secondary { background: transparent; color: #e5e7eb; border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* ── Tempo KRZ (Nasze sukcesy) ── */
.krz-speed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 640px) {
  .krz-speed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .krz-speed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .krz-speed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}
.krz-speed-card {
  min-width: 0;
}
.krz-speed-card__hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 1px 2px rgba(13, 27, 42, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.krz-speed-card__hit:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.08);
}
.krz-speed-card__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.krz-speed-card__days {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2.35rem;
  line-height: 1;
  color: #0D1B2A;
}
.krz-speed-card__days-unit {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C9A84C;
}
.krz-speed-card__timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.krz-speed-card__kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}
.krz-speed-card__date {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0D1B2A;
  white-space: nowrap;
}
.krz-speed-card__arrow {
  color: #C9A84C;
  padding-top: 1.05rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.krz-speed-card__sygnatura {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.krz-speed-card__sygnatura-label {
  color: #9ca3af;
  font-weight: 600;
  white-space: nowrap;
}
.krz-speed-card__sygnatura-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #0D1B2A;
  word-break: break-all;
}
.krz-speed-card__thumb-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.krz-speed-card__thumb {
  width: 100%;
  height: auto;
  display: block;
}
.krz-speed-card__cta {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0D1B2A;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.krz-speed-card__cta i {
  color: #C9A84C;
}
.krz-speed-note a {
  white-space: nowrap;
}
@media (max-width: 639px) {
  .krz-speed-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }
  .krz-speed-card {
    flex: 0 0 min(82vw, 20rem);
    scroll-snap-align: start;
  }
}

/* Homepage: te same kafelki, nieco ciaśniejszy nagłówek */
.krz-speed--home .krz-speed-card__days {
  font-size: 2.1rem;
}
@media (min-width: 1280px) {
  .krz-speed--home .krz-speed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

