/* ═══ BASE ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FAFBFC;
  color: #2D3748;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

/* ═══ SCROLL PROGRESS ═══ */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: linear-gradient(90deg, #2B6CB0, #7C3AED);
  z-index: 9999; width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ═══ SHINY BORDER CTA ═══ */
@property --shine-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #2B6CB0; color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: 12px; text-decoration: none;
  cursor: pointer; border: none;
  box-shadow: 0 2px 8px rgba(43,108,176,0.15);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, background 0.3s ease;
  white-space: nowrap; z-index: 1;
}
.btn-primary:hover {
  background: #3B82C4;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(43,108,176,0.35), 0 2px 8px rgba(43,108,176,0.2);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--shine-angle), transparent 0%, rgba(255,255,255,0.8) 5%, rgba(43,108,176,0.4) 10%, transparent 20%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: shine-rotate 3s linear infinite;
  pointer-events: none;
}
@keyframes shine-rotate { to { --shine-angle: 360deg; } }
/* ─── no-shine modifier (secondary CTAs) ─── */
.no-shine::before { display: none !important; }

/* ═══ GHOST BUTTONS ═══ */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent; color: #92400E;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: 12px; text-decoration: none; cursor: pointer;
  border: 2px solid rgba(245,158,11,0.5);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: #D97706;
  background: rgba(245,158,11,0.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.2);
}
.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent; color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: 12px; text-decoration: none; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease; white-space: nowrap;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}


/* ═══ GLASSMORPHISM ═══ */
.glass-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 2px 4px rgba(0,0,0,0.02),
    0 12px 28px rgba(0,0,0,0.06),
    0 32px 64px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s cubic-bezier(0.22,1,0.36,1), transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.95);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 4px 8px rgba(0,0,0,0.03),
    0 20px 40px rgba(0,0,0,0.08),
    0 48px 80px rgba(0,0,0,0.08);
  transform: translateY(-6px) scale(1.005);
}
@media (max-width: 767px) {
  .glass-card:hover { transform: none; }
}

/* ═══ RANGE SLIDER ═══ */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, #2B6CB0 var(--slider-pct, 14%), #EDF2F7 var(--slider-pct, 14%));
  outline: none; cursor: pointer; transition: background 0.1s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #2B6CB0; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(43,108,176,0.3); cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(43,108,176,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #2B6CB0; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(43,108,176,0.3); cursor: pointer;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes geometricDrift {
  0%   { transform: translate(0,0) rotate(0deg); }
  25%  { transform: translate(30px,-20px) rotate(90deg); }
  50%  { transform: translate(-10px,-40px) rotate(180deg); }
  75%  { transform: translate(-30px,-10px) rotate(270deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50%       { opacity: 0.08; transform: scale(1.05); }
}
.hero-fade       { opacity: 0; animation: fadeInUp   0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-fade-scale { opacity: 0; animation: fadeInScale 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.delay-100 { animation-delay: 0.1s; } .delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; } .delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; } .delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; } .delay-800 { animation-delay: 0.8s; }

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; } .reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ═══ GEOMETRIC BACKGROUND ═══ */
.geo-shape { position: absolute; border-radius: 50%; pointer-events: none; animation: geometricDrift 25s ease-in-out infinite; }
.geo-glow  { position: absolute; border-radius: 50%; pointer-events: none; animation: pulseGlow 8s ease-in-out infinite; filter: blur(80px); }

/* ═══ TOPBAR ═══ */
.topbar-scrolled {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 1px 24px rgba(26,54,93,0.06);
  border-color: transparent !important;
}

/* ═══ HAMBURGER MENU ═══ */
.hamburger {
  display: none;
  width: 24px; height: 24px;
  position: relative; cursor: pointer;
  background: none; border: none; padding: 0;
  z-index: 60;
}
.hamburger span {
  display: block; position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: #0F172A;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
              opacity 0.2s ease;
}
.hamburger span:nth-child(1) { top: 5px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 17px; }

.hamburger.open span:nth-child(1) {
  top: 11px; transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  top: 11px; transform: rotate(-45deg);
}

@media (max-width: 767px) {
  .hamburger { display: block; }
  .desktop-nav { display: none !important; }
}
@media (min-width: 768px) {
  .desktop-nav { display: flex !important; }
}

/* ═══ MOBILE NAV ═══ */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  z-index: 45;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 72px;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.23,1,0.32,1);
  pointer-events: none;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-inner {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0;
}
.mobile-nav a {
  display: flex; align-items: center;
  padding: 1rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem; font-weight: 400;
  color: #0F172A; text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s ease;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #2B6CB0; }
.mobile-nav-cta a.btn-primary { color: #fff; border-bottom: none; padding: 0.9rem 2rem; font-weight: 600; font-size: 0.95rem; }
.mobile-nav-cta {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

@media (max-width: 767px) {
  .mobile-nav { display: block; }
}

/* ═══ EYEBROW PILLS ═══ */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  background: rgba(43,108,176,0.06);
  border: 1px solid rgba(43,108,176,0.12);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 0.875rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: #2B6CB0;
}
.eyebrow-pill-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 0.875rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.75);
}

/* ═══ TRUST ICON ═══ */
.trust-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ═══ STARS ═══ */
.stars { display: flex; gap: 2px; color: #F59E0B; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ═══ FORM: MULTI-STEP ═══ */
.form-step { display: none; }
.form-step.active { display: block; }
.form-prog-bar {
  height: 4px; flex: 1; border-radius: 2px;
  background: #EDF2F7;
  transition: background 0.4s ease;
}
.form-prog-bar.done { background: #2B6CB0; }

/* ═══ FORM: RADIO OPTIONS ═══ */
.radio-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(160,174,192,0.25);
  border-radius: 12px; cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.5);
}
.radio-option:hover { border-color: rgba(43,108,176,0.3); background: rgba(43,108,176,0.03); }
.radio-option.selected {
  border-color: #2B6CB0;
  background: rgba(43,108,176,0.06);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.1);
}
.radio-option input[type="radio"] { display: none; }
.radio-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #A0AEC0; flex-shrink: 0;
  transition: all 0.25s; position: relative;
}
.radio-option.selected .radio-dot { border-color: #2B6CB0; background: #2B6CB0; }
.radio-option.selected .radio-dot::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.radio-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 500; color: #2D3748; line-height: 1.4;
}

/* ═══ FORM: INPUTS ═══ */
.form-input {
  width: 100%; padding: 0.875rem 1rem;
  border: 2px solid rgba(160,174,192,0.25);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; color: #2D3748;
  background: rgba(255,255,255,0.8);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-input:focus {
  border-color: #2B6CB0;
  box-shadow: 0 0 0 3px rgba(43,108,176,0.12);
}
.form-input::placeholder { color: #A0AEC0; }
.form-input.error { border-color: #F56565; box-shadow: 0 0 0 3px rgba(245,101,101,0.12); }
.form-label {
  display: block; margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif; font-size: 0.875rem;
  font-weight: 600; color: #0F172A; letter-spacing: 0.01em;
}
.form-error {
  font-size: 0.875rem; color: #E53E3E; margin-top: 0.35rem;
  display: none;
}
.form-error.show { display: block; }

/* ═══ FORM: SUCCESS ═══ */
.form-success { display: none; }
.form-success.show { display: block; }

/* ═══ FAQ ACCORDION ═══ */
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1);
}
.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: #2D3748; font-size: 1rem; line-height: 1.75;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.faq-item.open .faq-a-inner { opacity: 1; transform: translateY(0); }
.faq-toggle-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(26,54,93,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
  transition: all 0.3s ease;
}
.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: ''; position: absolute;
  background: #1A365D; border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-toggle-icon::before { width: 10px; height: 1.5px; }
.faq-toggle-icon::after  { width: 1.5px; height: 10px; }
.faq-item.open .faq-toggle-icon { background: #2B6CB0; border-color: #2B6CB0; }
.faq-item.open .faq-toggle-icon::before,
.faq-item.open .faq-toggle-icon::after { background: #fff; }
.faq-item.open .faq-toggle-icon::after { transform: rotate(90deg); opacity: 0; }

/* ═══ STICKY MOBILE CTA ═══ */
.sticky-cta-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40; padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(26,54,93,0.1);
  border-top: 1px solid rgba(160,174,192,0.15);
  gap: 0.75rem;
}
@media (max-width: 767px) {
  .sticky-cta-mobile { display: flex; }
  .sticky-cta-mobile .btn-primary,
  .sticky-cta-mobile .btn-ghost { flex: 1; justify-content: center; font-size: 0.95rem; padding: 0.875rem 1rem; min-height: 48px; }
  body { padding-bottom: 76px; }
}

/* ═══ MOBILE - HIDE DECORATIVE SHAPES ═══ */
@media (max-width: 768px) {
  .geo-shape, .geo-glow { display: none; }
}

/* ═══ HERO PHOTO BACKGROUND ═══ */
.hero-photo-bg {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  background: url('../img/prawnicy/prawnicy-kancelarii-upadlosciowej.png') center top / cover no-repeat;
  z-index: 2;
}
.hero-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255,255,255,0.75) 35%, rgba(255,255,255,0.15) 100%);
}
@media (max-width: 1024px) {
  .hero-photo-bg { display: none; }
}
