/* hipoteka-ekspert.pl — PREMIUM UI V7.0 — Redesign + Protection + AI */

/* ===== Anti-theft: disable selection, drag, print ===== */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
@media print {
  body { display: none !important; }
}
:root {
  --color-primary: #0c1222;
  --color-primary-mid: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-primary-glow: #60a5fa;
  --color-primary-dark: #050a14;
  --color-accent: #c77700;
  --color-accent-hover: #a66200;
  --color-accent-light: #fcd34d;
  --color-accent-glow: #f59e0b;
  --color-bg: #f8fafc;
  --color-bg-card: #ffffff;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --shadow-soft: 0 4px 24px -4px rgba(15, 23, 42, 0.08), 0 8px 32px -8px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 32px 64px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255,255,255,0.5) inset;
  --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 16px 48px -16px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 32px 64px -16px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(217, 119, 6, 0.12), 0 0 48px -12px rgba(251, 191, 36, 0.15);
  --shadow-elevated: 0 48px 96px -24px rgba(15, 23, 42, 0.28);
  --shadow-cta: 0 8px 32px -8px rgba(245, 158, 11, 0.4), 0 0 0 1px rgba(255,255,255,0.2) inset;
  --shadow-cta-hover: 0 24px 56px -12px rgba(245, 158, 11, 0.5), 0 0 64px -16px rgba(251, 191, 36, 0.25);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  --hero-text: #ffffff;
  --hero-subtitle: #e2e8f1;
  --section-padding: 6rem;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem;
  }
}

html {
  scroll-behavior: smooth;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

::selection {
  background: rgba(30, 58, 138, 0.2);
  color: #0f172a;
}

/* Breadcrumb strip */
nav[aria-label="Breadcrumb"] {
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: #1e293b;
  overflow-x: hidden;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  animation: pageFadeIn 0.5s ease-out;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 140% 100% at 50% -30%, rgba(251, 191, 36, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 100% 80% at 100% 100%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 90% at 0% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
  animation: bodyBgShift 25s ease-in-out infinite;
}

/* Subtle grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 1;
}
@keyframes bodyBgShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}


main {
  position: relative;
  z-index: 2;
}

/* Smooth link transitions */
a {
  transition: color var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

/* ----- Animations ----- */
@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes shine {
  0% { left: -100%; opacity: 0; }
  20% { opacity: 0.5; }
  100% { left: 100%; opacity: 0; }
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; filter: blur(60px); }
  50% { opacity: 0.7; filter: blur(80px); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(217, 119, 6, 0.2); }
  50% { box-shadow: 0 0 40px rgba(251, 191, 36, 0.35); }
}

@keyframes sectionGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.85; }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ----- Text shadows & scroll shimmer ----- */
body, main {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 1px rgba(255, 255, 255, 0.5);
}
main h1, .hero-bg h1, .page-hero h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 40px rgba(96, 165, 250, 0.15);
}
main h2, main h3, main h4, .section-title {
  text-shadow: 0 1px 4px rgba(29, 78, 216, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}
main p, main li, main td, main th, .trust-pill, .hero-badge, footer p, footer a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 1px rgba(255, 255, 255, 0.8);
}
.hero-bg p, .hero-bg .text-lg, .hero-bg .text-xl, .page-hero p {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25), 0 2px 12px rgba(0, 0, 0, 0.2) !important;
}

@keyframes textShimmer {
  0% { 
    text-shadow: 0 1px 4px rgba(29, 78, 216, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
    filter: brightness(1);
  }
  30% { 
    text-shadow: 0 2px 16px rgba(29, 78, 216, 0.2), 0 4px 24px rgba(59, 130, 246, 0.12), 0 0 32px rgba(251, 191, 36, 0.1);
    filter: brightness(1.05);
  }
  70% { 
    text-shadow: 0 2px 16px rgba(29, 78, 216, 0.18), 0 4px 20px rgba(59, 130, 246, 0.1), 0 0 24px rgba(251, 191, 36, 0.08);
    filter: brightness(1.03);
  }
  100% { 
    text-shadow: 0 1px 6px rgba(29, 78, 216, 0.12), 0 2px 12px rgba(0, 0, 0, 0.08);
    filter: brightness(1);
  }
}

@keyframes textShimmerHero {
  0% { 
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 40px rgba(96, 165, 250, 0.15);
  }
  40% { 
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 6px 32px rgba(251, 191, 36, 0.25), 0 0 60px rgba(251, 146, 60, 0.2);
  }
  100% { 
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25), 0 4px 28px rgba(0, 0, 0, 0.18), 0 0 48px rgba(96, 165, 250, 0.18);
  }
}

.text-shimmer-scroll {
  animation: none;
}
.text-shimmer-scroll.shimmer-visible {
  animation: textShimmer 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.text-shimmer-scroll.shimmer-visible:not(h1):not(h2):not(h3):not(h4):not(.section-title) {
  animation: textShimmerSoft 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-bg h1.shimmer-visible,
.page-hero h1.shimmer-visible {
  animation: textShimmerHero 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textShimmerSoft {
  0% { 
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 1px rgba(255, 255, 255, 0.8);
  }
  50% { 
    text-shadow: 0 2px 8px rgba(29, 78, 216, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
  }
  100% { 
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 2px rgba(255, 255, 255, 0.6);
  }
}

/* ----- Hero & Page Hero ----- */
.hero-bg, .page-hero {
  position: relative;
  background: 
    radial-gradient(ellipse 140% 90% at 20% 0%, rgba(251, 191, 36, 0.18) 0%, transparent 40%),
    radial-gradient(ellipse 80% 120% at 90% 40%, rgba(251, 146, 60, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #030712 0%, #050a14 25%, #0c1222 50%, #0f172a 75%, #1e293b 100%);
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-bg-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(3, 7, 18, 0.82) 0%, rgba(5, 10, 20, 0.75) 40%, rgba(15, 23, 42, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg::before, .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(217, 119, 6, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow-shift 12s ease-in-out infinite;
}
@keyframes hero-glow-shift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
  z-index: 1;
}

.page-hero::after {
  content: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.08);
  will-change: transform;
}
.hero-shape:not([data-parallax]) {
  animation: float 10s ease-in-out infinite;
}
/* ----- Stosy złotówek w tle (dekoracyjne) ----- */
.bg-money {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  opacity: 0.18;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  will-change: transform;
  user-select: none;
}
.bg-money:not([data-parallax]) {
  animation: bgMoneyFloat 8s ease-in-out infinite;
}
[data-parallax] {
  animation: none;
}
.hero-bg .bg-money,
.page-hero .bg-money {
  opacity: 0.16;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.2)) brightness(1.1);
}
.section-trust .bg-money,
.section-content .bg-money,
.section-steps .bg-money,
.section-opinie .bg-money { opacity: 0.15; }
.section-wizytowka .bg-money { opacity: 0.14; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)) brightness(0.95); }
.section-calc .bg-money { opacity: 0.16; }
.contact-bg .bg-money { opacity: 0.12; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25)) brightness(1.2); }
@keyframes bgMoneyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
.bg-money-hero-1 { width: 180px; top: 8%; right: 8%; animation-delay: 0s; }
.bg-money-hero-2 { width: 140px; bottom: 15%; left: 5%; animation-delay: 2s; }
.bg-money-hero-3 { width: 100px; top: 45%; right: 25%; animation-delay: 4s; }
.bg-money-trust-1 { width: 120px; top: -20px; right: 10%; animation-delay: 0.5s; }
.bg-money-trust-2 { width: 90px; bottom: -15px; left: 8%; animation-delay: 2.5s; }
.bg-money-uslugi-1 { width: 130px; top: 10%; left: -30px; animation-delay: 1s; }
.bg-money-uslugi-2 { width: 160px; bottom: 5%; right: -20px; animation-delay: 3s; }
.bg-money-steps-1 { width: 100px; top: 20%; right: 5%; animation-delay: 0s; }
.bg-money-steps-2 { width: 110px; bottom: 10%; left: 3%; animation-delay: 2s; }
.bg-money-steps-3 { width: 90px; top: 60%; left: 40%; animation-delay: 4s; }
.bg-money-opinie-1 { width: 140px; top: -25px; right: 15%; animation-delay: 1.5s; }
.bg-money-opinie-2 { width: 100px; bottom: -20px; left: 5%; animation-delay: 3.5s; }
.bg-money-wizytowka-1 { width: 120px; top: 40%; left: -40px; animation-delay: 0.5s; }
.bg-money-wizytowka-2 { width: 100px; top: 20%; right: -30px; animation-delay: 2.5s; }
.bg-money-faq-1 { width: 110px; top: 5%; right: 8%; animation-delay: 1s; }
.bg-money-faq-2 { width: 90px; bottom: 10%; left: 3%; animation-delay: 3s; }
.bg-money-calc-1 { width: 150px; top: -30px; right: 10%; animation-delay: 0s; }
.bg-money-calc-2 { width: 100px; bottom: 5%; left: 5%; animation-delay: 2s; }
.bg-money-calc-3 { width: 80px; top: 50%; left: 2%; animation-delay: 4s; }
.bg-money-contact-1 { width: 140px; top: 20%; right: -20px; animation-delay: 1s; }
.bg-money-contact-2 { width: 90px; bottom: 15%; left: -15px; animation-delay: 3s; }

.hero-shape-1 { width: 200px; height: 200px; top: 5%; right: 10%; animation: float 14s ease-in-out infinite; background: rgba(59, 130, 246, 0.04); border-color: rgba(59, 130, 246, 0.06); }
.hero-shape-2 { width: 300px; height: 300px; bottom: -10%; left: -5%; animation: float-slow 18s ease-in-out infinite; animation-delay: 2s; }
.hero-shape-3 { width: 140px; height: 140px; top: 40%; left: 60%; animation: float-reverse 12s ease-in-out infinite; animation-delay: 4s; background: rgba(251, 191, 36, 0.05); }
.hero-shape-4 { width: 80px; height: 80px; top: 70%; right: 25%; animation: float 10s ease-in-out infinite; animation-delay: 1s; background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.08); }
.hero-shape-5 { width: 120px; height: 120px; top: 15%; left: 30%; animation: float-slow 15s ease-in-out infinite; animation-delay: 5s; background: rgba(251, 191, 36, 0.04); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fde68a;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.06), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.4s var(--ease-out-expo);
}
.hero-badge:hover {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fef3c7;
  box-shadow: 0 0 48px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.hero-bg h1 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--hero-text);
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.hero-bg .text-lg,
.hero-bg .text-xl {
  color: var(--hero-subtitle) !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.01em;
  line-height: 1.75;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 25%, #f59e0b 60%, #fbbf24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero content — zawsze widoczny */
.hero-content {
  opacity: 1;
  position: relative;
  z-index: 2;
}
.hero-content::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(251, 191, 36, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Subpage Specific */
.page-hero {
  padding: 7rem 0 5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero h1 {
  font-family: var(--font-display);
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  letter-spacing: -0.03em;
  font-weight: 800;
}
.page-hero p {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 50rem;
}

/* ----- Volumetric Service Cards (Enhanced) ----- */
.service-card {
  position: relative;
  background: linear-gradient(150deg, #ffffff 0%, #fefcf9 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.45s var(--ease-out-expo);
  box-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255,255,255,0.8) inset;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(217, 119, 6, 0.25);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #fcd34d, #f59e0b, #d97706);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

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

.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  transition: all 0.5s var(--ease-out-expo);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.9), 0 6px 16px rgba(217, 119, 6, 0.08);
}

.service-icon-wrap svg {
  width: 2rem;
  height: 2rem;
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(145deg, #d97706, #b45309);
  color: #ffffff;
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.25);
}

.service-card:hover .service-icon-wrap svg {
  transform: scale(1.1);
}

.service-card h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ----- Interactive Buttons & CTA ----- */
.cta-glow {
  position: relative;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  background-size: 200% 200%;
  color: #0c1222;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-shadow: none;
  border: none;
  border-radius: var(--radius-xl);
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--shadow-cta);
}

.cta-glow:hover {
  background-position: 100% 50%;
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-cta-hover);
}

.cta-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: none;
}
.cta-glow:hover::before {
  animation: shine 0.9s var(--ease-out-expo) forwards;
}

/* ----- Content Section Backgrounds (unified) ----- */
.section-trust,
.section-content,
.section-steps,
.section-opinie,
.section-wizytowka,
.section-calc {
  position: relative;
  overflow: hidden;
}
.section-trust::before,
.section-content::before,
.section-steps::before,
.section-opinie::before,
.section-wizytowka::before,
.section-calc::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.section-trust::before {
  background: 
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  animation: sectionGlow 20s ease-in-out infinite;
}
.section-content::before {
  background: 
    radial-gradient(ellipse 70% 60% at 90% 20%, rgba(29, 78, 216, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}
.section-steps::before {
  background: 
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 95% 30%, rgba(251, 146, 60, 0.05) 0%, transparent 50%);
}
.section-opinie::before {
  background: radial-gradient(ellipse 90% 50% at 50% 50%, rgba(29, 78, 216, 0.05) 0%, transparent 60%);
}
.section-wizytowka::before {
  background: 
    radial-gradient(ellipse 70% 50% at 0% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 100% 30%, rgba(251, 191, 36, 0.04) 0%, transparent 50%);
}
.section-calc::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29, 78, 216, 0.07) 0%, transparent 50%);
}
.section-trust {
  background: #fff !important;
  border-bottom: 1px solid #f1f5f9;
}
.section-trust > .container > p:first-of-type {
  color: #64748b;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.section-content {
  background: #fafafa !important;
}
.section-steps {
  background: #fff !important;
}
.section-opinie {
  background: #fafafa !important;
}
.section-wizytowka {
  background: #fff !important;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.section-calc {
  background: #fafafa !important;
}

/* Kluczowe informacje — dedicated section */
.section-info-key {
  background: linear-gradient(180deg, #ffffff 0%, #fefcfb 50%, #f8fafc 100%) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.section-trust .container,
.section-content .container,
.section-steps .container,
.section-opinie .container,
.section-wizytowka .container,
.section-calc .container {
  position: relative;
  z-index: 1;
}

/* ----- Trust bar ----- */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255,255,255,0.6) inset;
  transition: all 0.4s var(--ease-out-expo);
}
.trust-pill:hover {
  border-color: rgba(217, 119, 6, 0.45);
  color: var(--color-primary-dark);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.12), 0 0 0 1px rgba(251, 191, 36, 0.2), inset 0 1px 0 rgba(255,255,255,0.8);
  background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
}
.trust-pill svg {
  color: var(--color-accent);
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.95;
  transition: transform 0.3s var(--ease-out-expo);
}
.trust-pill:hover svg {
  color: var(--color-accent-hover);
  transform: scale(1.1);
}

/* ----- Modern Forms ----- */
.form-input-dark {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  color: #1e293b;
}

.form-input-dark:focus {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.contact-bg {
  background: linear-gradient(155deg, #0c1222 0%, #0f172a 50%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 32px rgba(0,0,0,0.15);
}
.contact-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 15%, rgba(251, 191, 36, 0.3) 50%, transparent 85%);
}

/* ----- Footer Polish ----- */
footer,
.footer-top {
  position: relative;
  background: linear-gradient(180deg, #050a14 0%, #0c1222 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 15%, rgba(251, 191, 36, 0.25) 50%, transparent 85%);
  pointer-events: none;
}
footer a:hover {
  color: #fbbf24 !important;
}
footer p {
  font-size: 1rem !important;
  line-height: 1.6;
}
footer p.text-gray-400,
footer p.text-gray-500 {
  font-size: 1rem !important;
}
footer a {
  font-size: 1rem !important;
  font-weight: 500;
}
footer .mt-10 {
  font-size: 0.95rem;
}

/* ----- Scroll Progress Bar ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #c77700 0%, #fcd34d 40%, #f59e0b 70%, #fbbf24 100%);
  z-index: 1001;
  transition: width 0.15s var(--ease-out-expo);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.5);
}

/* ----- Premium Header ----- */
.header-premium {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.03);
}

.header-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(251, 191, 36, 0.35) 50%, transparent 95%);
  pointer-events: none;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}
.header-logo-link:hover {
  transform: scale(1.03);
}
.header-logo-link .site-logo {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: filter 0.35s ease;
}
.header-logo-link:hover .site-logo {
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(251, 191, 36, 0.25));
}

.header-nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fbbf24;
  transition: width 0.3s ease;
}
.header-nav-link:hover {
  color: #fbbf24;
}
.header-nav-link:hover::after {
  width: 100%;
}

.header-phone {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s ease;
}
.header-phone:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c1222;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transition: all 0.35s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.header-cta:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  color: #0c1222;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  margin-left: auto;
  position: relative;
  z-index: 120;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.header-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ----- Mobile Menu Overlay ----- */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .mobile-nav-panel {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem calc(2rem + env(safe-area-inset-bottom)) calc(1.5rem + env(safe-area-inset-right, 0));
    padding-top: calc(5rem + env(safe-area-inset-top, 0));
    background: rgba(2, 6, 23, 0.98);
    box-shadow: none;
    transform: translate3d(100%, 0, 0);
    -webkit-transform: translate3d(100%, 0, 0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-nav-panel:not(.mobile-menu-closed) {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-nav-panel .header-nav-link {
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-nav-panel .header-nav-link::after {
    display: none;
  }
  .mobile-nav-panel .header-phone {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  .mobile-nav-panel .header-cta {
    margin-top: 0.5rem;
  }
}

/* Burger / Close icon toggle */
.header-menu-btn .close-icon {
  display: none;
}
.header-menu-btn[aria-expanded="true"] .burger-icon {
  display: none;
}
.header-menu-btn[aria-expanded="true"] .close-icon {
  display: block !important;
}

/* Fallback for pages without header-premium class */
header:not(.header-premium) {
  background: rgba(2, 6, 23, 0.98) !important;
  backdrop-filter: blur(20px);
}

/* ----- O nas — portret (obcięcie góra/dół) ----- */
.portrait-crop {
  object-position: center center;
}

/* ----- Logo ----- */
.site-logo,
.site-logo-footer {
  display: block;
  object-fit: contain;
}
.site-logo {
  height: 2.25rem;   /* 36px на мобильном — kompaktowe */
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .site-logo { height: 2.5rem; }  /* 40px na desktopie */
}
.site-logo-footer {
  height: 2.5rem;   /* 40px na mobile */
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .site-logo-footer {
    height: 4rem;   /* 64px na desktopie */
  }
}
header a:has(.site-logo):focus-visible .site-logo {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ----- Focus ----- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* ----- Steps ----- */
.steps-wrap {
  position: relative;
}

@media (min-width: 768px) {
  .steps-wrap::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(217, 119, 6, 0.3) 20%, 
      rgba(251, 191, 36, 0.6) 50%, 
      rgba(217, 119, 6, 0.3) 80%, 
      transparent 100%);
    z-index: 0;
    border-radius: 3px;
  }
}

.step-num {
  position: relative;
  z-index: 1;
  width: 4.25rem;
  height: 4.25rem;
  background: linear-gradient(145deg, var(--color-primary) 0%, #1e293b 100%);
  border: 2px solid rgba(251, 191, 36, 0.55);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.4s var(--ease-out-expo);
}
.step-num:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: var(--color-primary-dark);
  border-color: #f59e0b;
  transform: scale(1.12);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.steps-wrap .animate-on-scroll.is-visible .step-num {
  animation: stepNumPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes stepNumPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.steps-wrap::after {
  content: none;
}

/* ----- Reviews ----- */
.review-card {
  position: relative;
  background: linear-gradient(152deg, #ffffff 0%, #fefcf9 50%, #faf8f5 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.45s var(--ease-out-expo);
}
.review-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}
.review-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(217, 119, 6, 0.22);
}
.review-card:hover::before {
  opacity: 1;
}
.review-card .stars {
  color: #f59e0b;
  letter-spacing: 0.15em;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

/* ----- Wizytówka ----- */
.wizytowka {
  position: relative;
  background: linear-gradient(158deg, #050a14 0%, #0c1222 35%, #0f172a 65%, #1e293b 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transition: all 0.45s var(--ease-out-expo);
}
.wizytowka:hover {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 64px rgba(217, 119, 6, 0.12), 0 0 0 1px rgba(251, 191, 36, 0.1) inset;
  transform: translateY(-6px) scale(1.01);
}
.wizytowka::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: wizytowkaGlow 8s ease-in-out infinite;
}
@keyframes wizytowkaGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.wizytowka::after {
  content: none;
}

/* ----- FAQ Section: background, size, animations ----- */
section#faq,
section#faq-usluga {
  position: relative;
  padding: 4rem 0 5rem !important;
  overflow: hidden;
  background: var(--color-bg);
}
section#faq::before,
section#faq-usluga::before {
  content: none;
}
section#faq .container,
section#faq-usluga .container { position: relative; z-index: 1; }
section#faq .section-title,
section#faq-usluga .section-title { font-size: 1.5rem !important; }
section#faq .rounded-xl.border,
section#faq-usluga .rounded-xl.border {
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255,255,255,0.8) inset !important;
  transition: all 0.35s ease !important;
}
section#faq .rounded-xl.border:hover,
section#faq-usluga .rounded-xl.border:hover {
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(217, 119, 6, 0.1) !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
}
section#faq .space-y-3,
section#faq-usluga .space-y-3 {
  gap: 1.25rem !important;
  display: flex;
  flex-direction: column;
}
section#faq .space-y-3 > div,
section#faq-usluga .space-y-3 > div {
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(15, 23, 42, 0.06),
    0 12px 32px -8px rgba(0, 0, 0, 0.08) !important;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  animation: faq-item-in 0.6s ease backwards;
}
section#faq .space-y-3 > div:nth-child(1), section#faq-usluga .space-y-3 > div:nth-child(1) { animation-delay: 0.05s; }
section#faq .space-y-3 > div:nth-child(2), section#faq-usluga .space-y-3 > div:nth-child(2) { animation-delay: 0.1s; }
section#faq .space-y-3 > div:nth-child(3), section#faq-usluga .space-y-3 > div:nth-child(3) { animation-delay: 0.15s; }
section#faq .space-y-3 > div:nth-child(4), section#faq-usluga .space-y-3 > div:nth-child(4) { animation-delay: 0.2s; }
section#faq .space-y-3 > div:nth-child(5), section#faq-usluga .space-y-3 > div:nth-child(5) { animation-delay: 0.25s; }
section#faq .space-y-3 > div:nth-child(6), section#faq-usluga .space-y-3 > div:nth-child(6) { animation-delay: 0.3s; }
section#faq .space-y-3 > div:hover,
section#faq-usluga .space-y-3 > div:hover {
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.03),
    0 12px 24px rgba(30, 58, 138, 0.08),
    0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}
@keyframes faq-item-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.faq-trigger {
  border-radius: 0;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.0625rem !important;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.faq-trigger span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}
.faq-trigger:hover {
  background-color: #f8fafc;
}
.faq-trigger:hover span:last-child {
  color: var(--color-primary) !important;
  transform: scale(1.1);
}
.faq-trigger[aria-expanded="true"] {
  background-color: #eff6ff;
  color: var(--color-primary);
  font-weight: 600;
}
.faq-trigger[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
  color: var(--color-primary) !important;
}
.faq-panel {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: 0 1.5rem 1.5rem !important;
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.35s ease, max-height 0.4s ease;
}
.faq-panel.faq-panel-visible {
  opacity: 1;
  max-height: 20rem;
}
.faq-panel p {
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-top: 0.25rem;
}

/* ----- Section Titles ----- */
.section-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  color: var(--color-primary) !important;
  letter-spacing: -0.04em;
  font-weight: 800;
  padding-bottom: 0.9rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 5px;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

/* ----- Content cards: one style for all blocks (tables, lists, FAQ) ----- */
.shadow-card,
main ul.bg-white.rounded-xl,
main .rounded-xl.overflow-hidden.bg-white {
  background: linear-gradient(148deg, #ffffff 0%, #fefcf8 100%) !important;
  border-radius: var(--radius-2xl) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 
    0 4px 24px -4px rgba(15, 23, 42, 0.08),
    0 2px 12px -4px rgba(217, 119, 6, 0.04),
    0 0 0 1px rgba(255,255,255,0.9) inset !important;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

main .shadow-card:hover,
main ul.bg-white.rounded-xl:hover,
main .rounded-xl.overflow-hidden.bg-white:hover {
  box-shadow: 
    0 24px 56px -12px rgba(15, 23, 42, 0.14),
    0 12px 32px -8px rgba(217, 119, 6, 0.08),
    0 0 0 1px rgba(217, 119, 6, 0.12) !important;
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.2) !important;
}

/* ----- Tables ----- */
main table,
main .overflow-x-auto table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
}

main .overflow-x-auto {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(15, 23, 42, 0.06),
    0 12px 32px -8px rgba(217, 119, 6, 0.04);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
main .overflow-x-auto > table {
  border-radius: 0;
  border: none !important;
  min-width: 100%;
}

th {
  background: #0f172a;
  color: #fbbf24;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1.25rem 1.5rem;
  white-space: nowrap;
}
td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f8fafc; }

@media (max-width: 768px) {
  main .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  main .overflow-x-auto > table {
    min-width: 500px;
  }
  th, td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  th {
    font-size: 0.7rem;
  }
}

/* ----- Lists (documents etc.) ----- */
main ul.list-disc.bg-white.rounded-xl {
  padding: 1.75rem 1.75rem 1.75rem 2rem !important;
}
ul.list-disc li::marker {
  color: var(--color-accent);
}

/* ----- Calculator & form blocks ----- */
.calculator-card {
  background: linear-gradient(150deg, #ffffff 0%, #fefcf9 100%);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    0 4px 24px -4px rgba(15, 23, 42, 0.08),
    0 2px 12px -4px rgba(217, 119, 6, 0.04),
    0 0 0 1px rgba(255,255,255,0.8) inset;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.calculator-card:hover {
  box-shadow: 
    0 24px 56px -12px rgba(15, 23, 42, 0.12),
    0 12px 32px -8px rgba(217, 119, 6, 0.1),
    0 0 0 1px rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.2);
}
/* Formulář v primárním boxu */
main .bg-primary.rounded-2xl {
  box-shadow: 0 16px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
  border: 1px solid rgba(255,255,255,0.08);
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-deep);
}

.calc-value {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.calc-range {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.3);
}

.calc-result-box {
  background: linear-gradient(150deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
  border: 1px solid rgba(217, 119, 6, 0.15);
  box-shadow: 0 2px 12px -4px rgba(217, 119, 6, 0.08);
}

.calc-result-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.calc-result-value {
  font-size: 2rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1.2;
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

/* ----- Kluczowe informacje ----- */
.info-key-card {
  background: linear-gradient(152deg, #ffffff 0%, #fefcf9 50%, #f8fafc 100%) !important;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255,255,255,0.8) inset;
  transition: all 0.45s var(--ease-out-expo);
}
.info-key-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(217, 119, 6, 0.15), 0 0 32px -8px rgba(251, 191, 36, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
}

/* ----- Utilities ----- */
.text-gradient {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- Responsive & Adaptive ----- */
@media (max-width: 1024px) {
  .steps-wrap { gap: 2.5rem; }
  .trust-pill { padding: 0.85rem 1.4rem; font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .hero-bg { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .hero-bg h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  .hero-shape-1, .hero-shape-2, .hero-shape-3, .hero-shape-4, .hero-shape-5 { opacity: 0.6; }
  .bg-money { max-width: 100px !important; opacity: 0.15 !important; }
  .trust-slider { gap: 0.75rem; flex-direction: column; align-items: stretch; }
  .trust-pill { justify-content: center; }
  .steps-wrap { gap: 2rem; }
  .step-num { width: 3.5rem; height: 3.5rem; font-size: 1.1rem; }
  .section-title::after { width: 40px; }
  .calculator-card { padding: 1.5rem; }
  .calc-result-value { font-size: 1.75rem; }
  .wizytowka { flex-direction: column; text-align: center; }
  main .overflow-x-auto { margin-left: -1rem; margin-right: -1rem; border-radius: 0; }
}

@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .cta-glow { padding: 0.875rem 1.5rem; font-size: 0.95rem; }
  .review-card { padding: 1.25rem !important; }
  .section-title { font-size: 1.5rem !important; }
}

/* Touch-friendly */
@media (hover: none) {
  .trust-pill:hover, .review-card:hover, .service-card:hover { transform: none; }
  .cta-glow:hover { transform: translateY(-2px) scale(1.02); }
  .step-num:hover { transform: scale(1.05); }
  .wizytowka:hover { transform: none; }
}

/* ----- Słownik pojęć ----- */
.glossary-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary-mid);
  background: rgba(217, 119, 6, 0.08);
  border-radius: 0.5rem;
  border: 1px solid rgba(217, 119, 6, 0.18);
  transition: all 0.3s ease;
}
.glossary-nav-link:hover {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: #b45309;
  transform: translateY(-1px);
}
.glossary-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  scroll-margin-top: 6rem;
}
.glossary-item:last-of-type {
  border-bottom: none;
}
.glossary-term {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-mid);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.glossary-item p {
  color: #475569;
  line-height: 1.75;
  font-size: 1.025rem;
}

/* RODO footer */
.rodo-footer { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1rem; }
.rodo-summary { user-select: none; list-style: none; }
.rodo-summary::-webkit-details-marker { display: none; }
.rodo-summary::before { content: "▶ "; font-size: 0.65rem; opacity: 0.7; }
.rodo-footer[open] .rodo-summary::before { content: "▼ "; }
.rodo-content a { color: var(--color-accent); text-decoration: underline; }
.rodo-content a:hover { color: #fbbf24; }

/* Sitemap page */
.sitemap-section { margin-bottom: 2rem; }
.sitemap-section h2 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--color-primary); }
.sitemap-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sitemap-links a { 
  display: inline-flex; align-items: center; gap: 0.5rem; 
  padding: 0.5rem 1rem; background: white; border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9); color: #334155;
  transition: all 0.3s ease; font-weight: 500;
}
.sitemap-links a:hover { 
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); 
  border-color: rgba(217, 119, 6, 0.3); 
  color: #b45309; 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-soft);
}