/* ============================================================
   EKOZWROT — Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --green-50:  #f0faf4;
  --green-100: #d9f2e3;
  --green-200: #b3e5c8;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --primary:      #1a6e3c;
  --primary-dark: #0f4a27;
  --primary-glow: rgba(26,110,60,0.15);

  --accent:       #f4a522;
  --accent-light: #fef3c7;

  --neutral-50:  #fafafa;
  --neutral-100: #f4f4f5;
  --neutral-200: #e4e4e7;
  --neutral-400: #a1a1aa;
  --neutral-600: #52525b;
  --neutral-800: #27272a;
  --neutral-900: #18181b;

  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;

  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);

  --surface:   #ffffff;
  --bg:        #f9fafb;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.1), 0 3px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-green: 0 8px 32px rgba(26,110,60,0.25);

  --transition:        0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:none } }
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes scaleIn  { from { opacity:0; transform:scale(0.95) } to { opacity:1; transform:scale(1) } }
@keyframes floatY   { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-10px) } }
@keyframes pulseRing{ 0% { transform:scale(1); opacity:.5 } 100% { transform:scale(1.8); opacity:0 } }

.afu  { animation: fadeUp  .65s var(--transition) both }
.afi  { animation: fadeIn  .5s  var(--transition) both }
.asi  { animation: scaleIn .4s  var(--transition) both }
.d1 { animation-delay:.1s } .d2 { animation-delay:.2s } .d3 { animation-delay:.3s }
.d4 { animation-delay:.4s } .d5 { animation-delay:.5s } .d6 { animation-delay:.6s }

.reveal { opacity:0; transform:translateY(30px); transition:opacity .7s ease, transform .7s ease }
.reveal.visible { opacity:1; transform:none }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .925rem;
  border: none; cursor: pointer; border-radius: var(--radius-sm);
  transition: all var(--transition); white-space: nowrap;
  position: relative; overflow: hidden; letter-spacing: -.015em;
}
.btn:active { transform: scale(.98) !important }

.btn-primary {
  background: var(--primary); color: white; padding: 12px 24px;
  box-shadow: 0 2px 10px rgba(26,110,60,.32), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 5px 18px rgba(26,110,60,.4); transform: translateY(-1px); color: white; }

.btn-ghost {
  background: transparent; color: var(--text); padding: 11px 24px;
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--neutral-100); border-color: var(--neutral-400); }

.btn-white {
  background: white; color: var(--primary); padding: 12px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.btn-white:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); transform: translateY(-1px); color: var(--primary-dark); }

.btn-outline-white {
  background: transparent; color: white; padding: 11px 24px;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-accent { background: var(--accent); color: #1a1a2e; padding: 12px 28px; box-shadow: 0 2px 10px rgba(244,165,34,.35); }
.btn-accent:hover { background: #e09410; transform: translateY(-1px); }

.btn-sm  { padding: 8px 16px; font-size: .85rem; }
.btn-lg  { padding: 15px 36px; font-size: 1.02rem; }
.btn-full { width: 100%; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-icon { width:36px; height:36px; padding:0; border-radius:8px; background:var(--neutral-100); color:var(--text-muted); border:1px solid var(--border); }
.btn-icon:hover { background:var(--neutral-200); color:var(--text); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 64px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.navbar-logo {
  cursor: pointer; user-select: none;
  display: flex; align-items: center;
  transition: transform var(--transition);
}
.navbar-logo:hover { transform: scale(1.03); }
.navbar-logo img  { display: block; height: 42px; width: auto; }
.logo-icon, .logo-text { display: none; } /* ukryj stary tekst i ikonę SVG */
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--green-500));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.logo-text em { color: var(--green-500); font-style: normal; }

.navbar-links { display: flex; align-items: center; gap: .2rem; list-style: none; }
.navbar-links a, .navbar-links button {
  color: var(--text-muted); font-weight: 500; font-size: .9rem;
  background: none; border: none; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
  transition: all var(--transition); letter-spacing: -.01em; font-family: 'Inter', sans-serif;
}
.navbar-links a:hover, .navbar-links button:hover { color: var(--text); background: var(--neutral-100); text-decoration: none; }
.navbar-links .btn-primary {
  color: white !important;
  background: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(26,110,60,.3);
  padding: 8px 18px;
}
.navbar-links .btn-primary:hover {
  color: white !important;
  background: var(--primary-dark) !important;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 6px; border-radius: 8px; }
.hamburger:hover { background: var(--neutral-100); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: calc(100vh - 64px);
  display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(155deg, #0a3d1f 0%, #0f5a2c 40%, #1a7a40 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1604187351574-c75ca79f5807?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center 55%;
  filter: saturate(0.85) brightness(0.62);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(15,55,25,0.78) 0%, rgba(20,60,30,0.65) 45%, rgba(30,75,40,0.42) 75%, rgba(44,95,46,0.18) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 5rem 2rem;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 4rem; align-items: center; width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); padding: 6px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-tag .dot { width: 6px; height: 6px; background: var(--green-400); border-radius: 50%; animation: pulseRing 1.5s ease infinite; flex-shrink: 0; }
.hero-left h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800;
  color: white; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1.25rem;
}
.hero-left h1 .highlight {
  background: linear-gradient(135deg, var(--green-400), #a3f0be);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-left p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; max-width: 440px; line-height: 1.7; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -.03em; display: block; line-height: 1; }
.hero-stat .label { font-size: .76rem; color: rgba(255,255,255,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* Postal card */
.postal-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(24px); border-radius: var(--radius-lg); padding: 2rem;
  animation: floatY 5s ease-in-out infinite;
}
.postal-card h3 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; letter-spacing: -.02em; }
.postal-card p { color: rgba(255,255,255,0.5); font-size: .85rem; margin-bottom: 1.25rem; }
.postal-input-wrap {
  display: flex; background: white; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.postal-input-wrap input { flex: 1; min-width: 0; padding: 12px 16px; border: none; outline: none; font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 500; color: var(--text); letter-spacing: .05em; }
.postal-input-wrap input::placeholder { color: var(--text-light); letter-spacing: 0; }
.postal-input-wrap button { background: var(--primary); color: white; border: none; padding: 12px 20px; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; font-size: .9rem; transition: background var(--transition); white-space: nowrap; }
.postal-input-wrap button:hover { background: var(--primary-dark); }
#postalMsg { margin-top: .75rem; font-size: .9rem; font-weight: 500; min-height: 20px; }
#postalMsg .ok { color: var(--green-400); }
#postalMsg .err { color: #fca5a5; }
.trust-items { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.65); font-size: .84rem; }
.trust-item svg { color: var(--green-400); flex-shrink: 0; }

.scroll-down {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.35); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: color var(--transition); animation: fadeUp 1s ease .9s both;
}
.scroll-down:hover { color: rgba(255,255,255,0.65); }
.scroll-mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.25); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-wheel { width: 3px; height: 6px; background: rgba(255,255,255,0.35); border-radius: 2px; animation: floatY 1.6s ease infinite; }

/* ===== SECTIONS ===== */
.section    { padding: 6rem 2rem; }
.section-sm { padding: 4rem 2rem; }
.container  { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--green-50);
  padding: 5px 12px; border-radius: 50px; border: 1px solid var(--green-100); margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: .75rem; }
.section-sub   { color: var(--text-muted); font-size: 1.03rem; max-width: 520px; line-height: 1.7; }
.section-head  { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

/* ===== HOW IT WORKS ===== */
.how-section { background: white; }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; position: relative; }
.steps-grid::before { display: none; }
.step-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center; position: relative; z-index: 1;
  transition: all var(--transition); cursor: default; box-shadow: var(--shadow-xs);
}
.step-card:hover { background: white; border-color: var(--green-200); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-icon-wrap {
  width: 64px; height: 64px; background: white; border: 2px solid var(--green-100); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
  position: relative; z-index: 1; transition: all var(--transition);
}
.step-card:hover .step-icon-wrap { background: var(--primary); border-color: var(--primary); }
.step-icon-wrap svg { transition: all var(--transition); color: var(--primary); }
.step-card:hover .step-icon-wrap svg { color: white !important; }
.step-num-badge {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; background: var(--primary); color: white;
  border-radius: 50%; font-size: .76rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid white;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.02em; }
.step-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CALCULATOR ===== */
.calc-section { background: var(--bg); }
.calc-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  background: white; border-radius: var(--radius-xl); padding: 3.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.big-result { font-size: 5rem; font-weight: 900; color: var(--primary); letter-spacing: -.055em; line-height: 1; margin-bottom: .25rem; font-variant-numeric: tabular-nums; transition: all .15s; }
.per-month  { font-size: .9rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2rem; }
.per-month strong { color: var(--text); }
.calc-examples-list { display: flex; flex-direction: column; gap: .6rem; }
.calc-example-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .875rem; transition: all var(--transition);
}
.calc-example-row:hover { border-color: var(--green-200); background: var(--green-50); }
.calc-example-row .row-label { color: var(--text-muted); }
.calc-example-row .row-val   { font-weight: 700; color: var(--primary); }
.calc-slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.calc-slider-label span   { color: var(--text-muted); font-size: .9rem; }
.calc-slider-label strong { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -.04em; }
.calc-slider-label em     { font-style: normal; font-size: .85rem; color: var(--text-muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--neutral-200); outline: none; margin-bottom: 1.5rem; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 0 4px rgba(26,110,60,.15); transition: box-shadow var(--transition), transform var(--transition); }
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(26,110,60,.2); transform: scale(1.1); }
.calc-track-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-light); margin-top: -1rem; margin-bottom: 2rem; }
.yearly-hint { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm); padding: .875rem 1rem; font-size: .875rem; color: var(--green-800); }
.yearly-hint strong { color: var(--primary); }
/* Rozkład kalkulatora */
.calc-bd-row { display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;padding:.45rem .75rem;font-size:.82rem;border-radius:6px;margin-bottom:.25rem; }
.calc-bd-row:nth-child(1) { background:var(--green-50);color:var(--green-800); }
.calc-bd-row:nth-child(2) { background:#fef2f2;color:#dc2626; }
.calc-bd-label { flex-shrink:0; }
.calc-bd-val { font-weight:600;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap; }
.calc-bd-total { background:var(--primary)!important;color:white!important;font-weight:700;margin-top:.25rem; }
@media (max-width: 480px) {
  .calc-bd-row { flex-direction:column;align-items:flex-start;gap:1px; }
  .calc-bd-val { text-align:left; }
}

/* ===== ABOUT ===== */
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-photo-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; display: block; }
.about-photo-wrap:hover img { transform: scale(1.04); }
.about-photo-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(13,43,29,.85); backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; border: 1px solid rgba(255,255,255,0.08);
}
.about-photo-badge .abig   { font-size: 2.2rem; font-weight: 900; color: white; letter-spacing: -.04em; line-height: 1; display: block; margin-bottom: .25rem; }
.about-photo-badge .asmall { font-size: .8rem; color: rgba(255,255,255,0.55); font-weight: 500; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p  { color: var(--text-muted); font-size: 1rem; line-height: 1.85; margin-bottom: 1.5rem; }
.about-pillars { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.pillar { display: flex; align-items: flex-start; gap: 12px; padding: 1rem 1.25rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); }
.pillar:hover { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.pillar-icon { width: 36px; height: 36px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.pillar h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.pillar p  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ===== PHOTO BAND ===== */
.photo-band { position: relative; overflow: hidden; height: 440px; display: flex; align-items: center; }
.photo-band-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 8s ease; filter: brightness(.85) saturate(1.1); }
.photo-band:hover .photo-band-img { transform: scale(1.04); }
.photo-band-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,43,29,.92) 0%, rgba(20,66,44,.76) 50%, rgba(37,105,69,.42) 100%); }
.photo-band-content { position: relative; z-index: 1; padding: 0 2rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.photo-band-content h2 { font-size: clamp(1.9rem,3.8vw,3rem); font-weight: 900; color: white; letter-spacing: -.04em; line-height: 1.1; max-width: 560px; margin-bottom: 1.25rem; }
.photo-band-content p  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 400px; margin-bottom: 2rem; line-height: 1.7; }
.band-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.band-stat .bnum { font-size: 2.4rem; font-weight: 900; color: white; letter-spacing: -.05em; line-height: 1; display: block; }
.band-stat .blbl { font-size: .73rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* ===== IMPACT STATS SECTION (zamiennik photo band) ===== */
.impact-section { background: linear-gradient(135deg, #0a3d1f 0%, #0d5228 50%, #124a25 100%); padding: 6rem 2rem; }
.impact-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.impact-left {}
.impact-left .section-label { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.impact-left h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; color: white; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1.5rem; }
.impact-left p { color: rgba(255,255,255,0.65); font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.25rem; }
.impact-left p:last-of-type { margin-bottom: 2rem; }
.impact-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.impact-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: background var(--transition);
}
.impact-stat:hover { background: rgba(255,255,255,0.10); }
.impact-stat .inum { display: block; font-size: 2.4rem; font-weight: 900; color: white; letter-spacing: -.05em; line-height: 1; margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.impact-stat .iunit { display: block; font-size: .76rem; color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.impact-stat .ilbl { font-size: .875rem; color: rgba(255,255,255,0.55); line-height: 1.4; }

/* ===== CALCULATOR — manual input ===== */
.calc-input-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.calc-input-row input[type=number] {
  width: 100px; padding: 10px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 1.1rem; font-weight: 700;
  font-family: 'Inter', sans-serif; color: var(--primary); text-align: center;
  outline: none; transition: all var(--transition); background: white;
  -moz-appearance: textfield;
}
.calc-input-row input[type=number]::-webkit-outer-spin-button,
.calc-input-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-input-row input[type=number]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,110,60,.1); }
.calc-input-row span { font-size: .9rem; color: var(--text-muted); }

/* ===== LEAFLET MAP ===== */
#polandMap {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 0;
}
.leaflet-container { font-family: 'Inter', sans-serif; }
.leaflet-control-attribution { font-size: 9px; color: var(--text-light); }
.leaflet-control-zoom a {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  border-color: var(--border) !important;
}
/* Custom city tooltip */
.map-city-tooltip {
  background: white !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-sm) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  padding: 4px 10px !important;
}
.map-city-tooltip::before { border-top-color: var(--border) !important; }

/* ===== POLAND MAP ===== */
.map-section { background: var(--bg); }
.map-wrapper { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.poland-map-svg { width: 100%; height: auto; }
.poland-map-svg .map-border { fill: var(--green-50); stroke: var(--green-200); stroke-width: 1.5; }
.poland-map-svg .city-ring { fill: rgba(26,110,60,0.12); stroke: var(--primary); stroke-width: 2; }
.poland-map-svg .city-dot  { fill: var(--primary); }
.poland-map-svg .city-label { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; fill: var(--primary); }

.map-legend { padding: 1.5rem; }
.map-legend h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.map-city-list { display: flex; flex-direction: column; gap: .625rem; }
.map-city-item {
  display: flex; align-items: center; gap: 10px;
  padding: .75rem 1rem; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; color: var(--text);
  transition: all var(--transition); cursor: default;
}
.map-city-item:hover { border-color: var(--green-300); background: var(--green-50); color: var(--primary); }
.map-city-dot { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; border: 2px solid var(--green-300); flex-shrink: 0; }
.map-soon { background: var(--neutral-50); border-style: dashed; }
.map-soon .map-city-dot { background: var(--neutral-400); border-color: var(--neutral-300); }
.map-soon span { color: var(--text-muted); font-weight: 500; }
.map-cta { margin-top: 1.5rem; text-align: center; }
.map-cta p { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }

/* ===== NAV LOGIN PANEL (dropdown) ===== */
.nav-login-panel {
  position: absolute; top: 72px; right: 1.5rem;
  width: 360px; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 1.75rem;
  z-index: 990; animation: scaleIn .2s ease;
  transform-origin: top right;
}
.nav-login-panel h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .25rem; }
.nav-login-panel p  { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.nav-login-panel .form-group { margin-bottom: 1rem; }
.nav-login-panel .form-group label { font-size: .78rem; }

/* ===== KALENDARZ ADMINA — styl jak na screenshocie ===== */
.cal-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 700px;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem; border-bottom: 1px solid var(--border);
}
.cal-header h3 { font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.cal-nav-btn {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); font-size: 1.1rem; line-height: 1;
}
.cal-nav-btn:hover { background: var(--neutral-100); }

/* 7-kolumnowa siatka — bez linii wewnętrznych */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: .5rem .75rem .75rem;
  gap: 0;
}
.cal-dow {
  padding: .4rem .25rem .6rem;
  text-align: center;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
}
/* Komórki dni */
.cal-day {
  padding: .25rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  transition: background var(--transition);
}
.cal-day:hover { background: var(--green-50); }

/* Numer dnia */
.cal-day-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 7px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: all var(--transition);
}
.cal-day:hover .cal-day-num { background: var(--green-100); color: var(--primary); }

/* Dzisiaj — ramka jak na screenshocie */
.cal-day.today .cal-day-num {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
}
/* Weekend — jasnoszare tło */
.cal-day.weekend { background: rgba(0,0,0,0.02); }
.cal-day.weekend .cal-day-num { color: var(--text-muted); }

/* Dni z poprzedniego/następnego miesiąca */
.cal-day.other-month .cal-day-num { color: var(--text-xlight); }
.cal-day.other-month:hover .cal-day-num { background: none; }

/* Kropki wydarzeń (jak na screenshocie — orange dot) */
.cal-dot-row {
  display: flex; justify-content: center; gap: 3px;
  margin-top: 2px; min-height: 8px;
}
.cal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
/* Lista odbiorów — poniżej numeru (widoczna po hover lub na większych ekranach) */
.cal-pickups { margin-top: 2px; }
.cal-pickup-badge {
  display: block; font-size: .62rem; font-weight: 600;
  background: var(--primary); color: white;
  border-radius: 3px; padding: 1px 4px; margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.cal-pickup-badge:hover { background: var(--primary-dark); cursor: pointer; }

/* Modal do dodawania odbioru */
.cal-add-modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); z-index: 3000; display: flex; align-items: center; justify-content: center; animation: fadeIn .15s ease; }
.cal-add-box { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem; width: 360px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: scaleIn .2s ease; }
.cal-add-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ===== CITIES ===== */
.cities-section { background: var(--bg); }
.cities-flow { display: flex; flex-wrap: wrap; gap: .625rem; margin-bottom: 2.5rem; }
.city-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1.5px solid var(--border); border-radius: 50px;
  padding: 7px 16px; font-size: .875rem; font-weight: 600; color: var(--text);
  cursor: default; transition: all var(--transition-bounce); box-shadow: var(--shadow-xs);
}
.city-pill:hover { border-color: var(--green-400); color: var(--primary); background: var(--green-50); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.city-pill .dot { width: 7px; height: 7px; background: var(--green-500); border-radius: 50%; }
.cities-cta { text-align: center; }
.cities-cta p { color: var(--text-muted); margin-bottom: 1rem; font-size: .95rem; }

/* ===== CONTACT ===== */
.contact-section { background: white; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.contact-item-icon { width: 40px; height: 40px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.contact-item-text strong { display: block; font-size: .95rem; font-weight: 600; }
.contact-item-text span  { font-size: .85rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer { background: var(--neutral-900); color: rgba(255,255,255,0.55); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 38px; width: auto; display: block; }
.footer-links { display: flex; gap: .25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .875rem; padding: 5px 12px; border-radius: 6px; transition: all var(--transition); }
.footer-links a:hover { color: white; background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ===== FORMS ===== */
.form-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: var(--bg); }
.form-card { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 500px; border: 1px solid var(--border); }
.form-card h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.035em; margin-bottom: .3rem; }
.form-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: .92rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .4rem; color: var(--neutral-800); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: .925rem; font-family: 'Inter', sans-serif;
  color: var(--text); background: white; transition: all var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,110,60,.1); }
.form-group input:hover:not(:focus), .form-group select:hover:not(:focus), .form-group textarea:hover:not(:focus) { border-color: var(--neutral-400); }
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin: 1.75rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: .75rem; font-size: .875rem; color: var(--text-muted); line-height: 1.5; }
.form-check input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.form-actions { margin-top: 1.5rem; }
.form-footer { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--text-muted); }

.alert { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 1rem; line-height: 1.5; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.alert-info    { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }

/* ===== PANEL ===== */
.panel-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px); }
.panel-sidebar { background: white; border-right: 1px solid var(--border); padding: 1.75rem 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar-user { padding: 0 1.25rem 1.5rem; margin-bottom: .5rem; }
.sidebar-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--green-500)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; color: white; }
.sidebar-user strong { display: block; font-size: .925rem; font-weight: 700; letter-spacing: -.02em; }
.sidebar-user span   { font-size: .8rem; color: var(--text-muted); }
.sidebar-section-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); padding: 0 1.25rem; margin: 1.25rem 0 .25rem; }
.sidebar-nav { list-style: none; padding: 0 .625rem; }
.sidebar-nav li a, .sidebar-nav li button {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  color: var(--text-muted); font-weight: 500; font-size: .875rem;
  width: 100%; background: none; border: none; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-sm); transition: all var(--transition); font-family: 'Inter', sans-serif;
}
.sidebar-nav li a:hover, .sidebar-nav li button:hover { background: var(--neutral-100); color: var(--text); text-decoration: none; }
.sidebar-nav li a.active { background: var(--green-50); color: var(--primary); font-weight: 600; }
.sidebar-nav li a svg, .sidebar-nav li button svg { color: var(--text-light); flex-shrink: 0; transition: color var(--transition); }
.sidebar-nav li a:hover svg, .sidebar-nav li a.active svg { color: inherit; }
.sidebar-divider { height: 1px; background: var(--border); margin: 1rem 1.25rem; }

.panel-content { padding: 2.5rem 3rem; max-width: 960px; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .25rem; }
.page-header p  { color: var(--text-muted); font-size: .9rem; }

/* ===== CARDS ===== */
.card { background: white; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.card-pad    { padding: 1.5rem; }
.card-pad-lg { padding: 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(165px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-xs); transition: all var(--transition); }
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green-200); }
.stat-card .stat-icon  { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.stat-card .stat-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .3rem; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat-card .stat-sub   { font-size: .75rem; color: var(--text-light); margin-top: .25rem; }
.stat-green  .stat-icon  { background: var(--green-50); color: var(--primary); }
.stat-green  .stat-value { color: var(--primary); }
.stat-amber  .stat-icon  { background: #fffbeb; color: var(--accent); }
.stat-amber  .stat-value { color: #92400e; }
.stat-neutral .stat-icon { background: var(--neutral-100); color: var(--neutral-600); }

/* ===== TABLES ===== */
.table-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--neutral-50); }
th { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); padding: .75rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--neutral-50); }
.table-empty { padding: 3rem; text-align: center; color: var(--text-muted); font-size: .9rem; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-success { background: var(--green-50); color: var(--green-700); }
.badge-success .badge-dot { background: var(--green-500); }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-warning .badge-dot { background: var(--accent); }
.badge-info    { background: #eff6ff; color: #1e40af; }
.badge-info .badge-dot { background: #3b82f6; }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-600); }
.badge-neutral .badge-dot { background: var(--neutral-400); }

/* ===== ACCORDION ===== */
.faq-page { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }
.faq-page h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .4rem; letter-spacing: -.03em; }
.faq-page .sub { color: var(--text-muted); margin-bottom: 3rem; }
.accordion-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .625rem; overflow: hidden; transition: box-shadow var(--transition); box-shadow: var(--shadow-xs); }
.accordion-item:hover { box-shadow: var(--shadow-sm); }
.accordion-item.open { border-color: var(--green-200); }
.accordion-header { width: 100%; background: none; border: none; padding: 1.1rem 1.5rem; text-align: left; font-size: .95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: 'Inter', sans-serif; color: var(--text); transition: background var(--transition); }
.accordion-header:hover { background: var(--neutral-50); }
.accordion-header .chevron { width: 20px; height: 20px; background: var(--neutral-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); color: var(--text-muted); }
.accordion-item.open .chevron { background: var(--green-100); color: var(--primary); transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(0,1,0,1); }
.accordion-body.open { max-height: 400px; transition: max-height .45s ease; }
.accordion-body-inner { padding: 0 1.5rem 1.25rem; color: var(--text-muted); font-size: .9rem; line-height: 1.78; }

/* ===== STATIC PAGES ===== */
.static-page { max-width: 760px; margin: 0 auto; padding: 4rem 1.5rem; }
.static-page h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; letter-spacing: -.03em; }
.static-page .meta { font-size: .85rem; color: var(--text-light); margin-bottom: 3rem; }
.static-page h2 { font-size: 1.12rem; font-weight: 700; margin: 2.5rem 0 .75rem; }
.static-page p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.85; font-size: .95rem; }
.static-page ul { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.static-page li { margin-bottom: .5rem; line-height: 1.7; font-size: .95rem; }

/* ===== WALLET ===== */
.wallet-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); padding: 2.5rem; color: white; margin-bottom: 2rem; position: relative; overflow: hidden; }
.wallet-hero::before { content: ''; position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,.04); border-radius: 50%; top: -100px; right: -80px; }
.wallet-hero .wh-label  { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; opacity: .6; margin-bottom: .35rem; }
.wallet-hero .wh-amount { font-size: 3.5rem; font-weight: 900; letter-spacing: -.045em; line-height: 1; margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.wallet-hero .wh-info   { font-size: .79rem; opacity: .5; margin-top: 1.25rem; }

/* ===== BARCODE ===== */
.barcode-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem 2.5rem; text-align: center; max-width: 380px; box-shadow: var(--shadow-sm); }
.barcode-visual { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 72px; margin: 1.5rem auto; }
.barcode-bar { background: var(--neutral-900); border-radius: 1px; flex-shrink: 0; }
.barcode-text { font-family: 'Courier New', monospace; font-size: .85rem; letter-spacing: .2em; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn .2s ease; }
.modal { background: white; border-radius: var(--radius-xl); padding: 2rem; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); animation: scaleIn .25s ease; border: 1px solid var(--border); }
.modal-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.modal-desc  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; line-height: 1.65; }
.modal-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== COOKIE ===== */
.cookie-banner { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: white; box-shadow: var(--shadow-lg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; z-index: 3000; max-width: 680px; width: calc(100% - 2.5rem); font-size: .875rem; color: var(--text-muted); animation: fadeUp .4s ease; }
.cookie-btns { flex-shrink: 0; }
.hidden { display: none !important; }

/* ===== ADMIN ===== */
.admin-chip { background: var(--accent-light); color: #92400e; font-size: .65rem; font-weight: 800; padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.filter-bar { display: flex; gap: .625rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 8px 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-size: .875rem; font-family: 'Inter', sans-serif; outline: none; transition: border-color var(--transition); background: white; color: var(--text); }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--primary); }
.filter-bar input[type=text] { width: 260px; }
.inline-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form .form-group { margin-bottom: 0; min-width: 140px; }
.inline-form label { font-size: .78rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 4px; }
.inline-form input, .inline-form select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-size: .875rem; font-family: 'Inter', sans-serif; outline: none; transition: border-color var(--transition); background: white; }
.inline-form input:focus, .inline-form select:focus { border-color: var(--primary); }
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state .empty-icon { width: 56px; height: 56px; background: var(--neutral-100); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--text-light); }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.empty-state p  { font-size: .875rem; color: var(--text-muted); }

/* ===== OPS PANEL ===== */
.ops-role-chip {
  font-size: .65rem; font-weight: 800; padding: 2px 8px;
  border-radius: 5px; letter-spacing: .04em; text-transform: uppercase;
}
.role-super_admin { background: #fef3c7; color: #92400e; }
.role-operator    { background: #ede9fe; color: #5b21b6; }
.role-kurier      { background: #dbeafe; color: #1e40af; }
.role-sorter      { background: #d1fae5; color: #065f46; }

/* ===== SCANNER ===== */
.scanner-page { max-width: 480px; margin: 0 auto; }
.scanner-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
/* Nadpisz domyślne style html5-qrcode */
#qr-reader { border: none !important; padding: 0 !important; width: 100% !important; }
#qr-reader video { border-radius: 0 !important; }
#qr-reader__scan_region { border: none !important; }
#qr-reader__status_span { display: none !important; }
#qr-reader__dashboard_section_csr button {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--r-sm) !important;
  padding: 10px 20px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
#qr-reader__camera_selection {
  width: 100% !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: var(--r-sm) !important;
  padding: 8px 12px !important;
  font-family: 'Inter', sans-serif !important;
  margin-bottom: .5rem !important;
}

.scan-mode-tabs {
  display: flex; gap: .5rem; margin-bottom: 1rem;
}
.scan-mode-tab {
  flex: 1; padding: .625rem; text-align: center;
  font-size: .8rem; font-weight: 700;
  border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  transition: all var(--t);
}
.scan-mode-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.scan-result {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  margin-bottom: 1rem; animation: scaleIn .2s ease;
}
.scan-result.success { border-color: var(--primary); background: var(--green-50); }
.scan-result.error   { border-color: #ef4444; background: #fef2f2; }
.scan-result.bottle  { border-color: var(--accent); background: var(--amber-50); }

.scan-client-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin-bottom: .25rem; }
.scan-client-sub  { font-size: .85rem; color: var(--text-muted); }
.scan-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700;
  background: var(--primary); color: white;
  padding: 4px 12px; border-radius: 50px;
  margin-top: .75rem;
}

/* Historia skanów */
.scan-history { display: flex; flex-direction: column; gap: .5rem; }
.scan-history-item {
  display: flex; align-items: center; gap: 10px;
  padding: .625rem .875rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: .83rem;
}
.scan-history-item .shi-time { color: var(--text-xlight); font-size: .75rem; margin-left: auto; }

/* ===== OPS KLIENCI — karty z kodami ===== */
.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.client-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t);
}
.client-card:hover { box-shadow: var(--shadow); }
.client-card-name { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .2rem; }
.client-card-sub  { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.client-card-barcode { text-align: center; padding: .75rem 0; background: var(--bg); border-radius: var(--r-sm); }

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

/* ===== GEO AUTOCOMPLETE ===== */
.geo-ac-wrap { position: relative; }
.geo-ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: white; border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 600; max-height: 280px; overflow-y: auto;
}
.geo-ac-item { padding: .65rem .85rem; cursor: pointer; font-size: .875rem; display: flex; flex-direction: column; gap: 2px; }
.geo-ac-item:hover { background: var(--green-50); }
.geo-ac-item .gac-main { font-weight: 600; color: var(--text); }
.geo-ac-item .gac-sub  { font-size: .75rem; color: var(--text-muted); }
.geo-ac-item .gac-badge { font-size: .68rem; font-weight: 700; color: var(--primary); }
.geo-ac-empty { padding: .65rem .85rem; font-size: .8rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  /* min-width:0 — element gridu nie moze rozepchnac kolumny ponad szerokosc viewportu */
  .hero-content > * { min-width: 0; }
  .hero-left p, .hero-actions { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .postal-card { max-width: min(400px, 100%); margin: 0 auto; animation: none; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .calc-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .impact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .map-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.open { display: flex; flex-direction: column; gap: .25rem; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: .75rem; box-shadow: 0 8px 30px rgba(0,0,0,.1); z-index: 999; border-bottom: 1px solid var(--border); }
  /* Tap targety >= 44px w mobilnym menu */
  .navbar-links.open li a, .navbar-links.open li button { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; }
  .hamburger { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .panel-layout { grid-template-columns: 1fr; }
  /* Sidebar panelu staje sie poziomym, przewijanym paskiem zakladek */
  .panel-sidebar {
    display: flex; align-items: center; gap: .4rem;
    position: sticky; top: 64px; z-index: 100; height: auto;
    padding: .55rem .75rem; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .panel-sidebar::-webkit-scrollbar { display: none; }
  .panel-sidebar .sidebar-user,
  .panel-sidebar .sidebar-section-label,
  .panel-sidebar .sidebar-divider { display: none; }
  .panel-sidebar .sidebar-nav { display: flex; gap: .4rem; padding: 0; }
  .panel-sidebar .sidebar-nav li { flex-shrink: 0; }
  .panel-sidebar .sidebar-nav li a, .panel-sidebar .sidebar-nav li button {
    white-space: nowrap; min-height: 44px; width: auto;
    padding: .5rem .85rem; border: 1px solid var(--border); border-radius: 50px;
    font-size: .82rem; background: white;
  }
  .panel-sidebar .sidebar-nav li a.active { border-color: var(--green-100); }
  .panel-content { padding: 1.5rem; min-width: 0; }
  /* Nie pozwól treści panelu rozepchać kolumny grida ponad szerokość ekranu */
  .panel-layout { min-width: 0; }
  .panel-layout > * { min-width: 0; }
  .wallet-hero { padding: 1.75rem; }
  .wallet-hero .wh-amount { font-size: 2.5rem; word-break: break-word; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  /* Wskaźnik "Przewiń" w hero — niepotrzebny na mobile */
  .scroll-down { display: none; }
  /* Ukryj zdjęcie (złożone dłonie) w sekcji "O nas" na mobile */
  .about-grid > div:first-child { display: none; }
  /* Popup logowania z navbara — pełna szerokość, poprawnie wykadrowany pod paskiem */
  .nav-login-panel {
    position: fixed; top: 70px; left: 1rem; right: 1rem; width: auto;
    max-height: calc(100vh - 86px); overflow-y: auto;
  }
  .hero-left h1 { font-size: 2rem; }
  .big-result { font-size: 3.5rem; }
  .photo-band { height: 320px; }
  /* iOS: font-size < 16px w polach formularza powoduje auto-zoom przy focusie */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea,
  .form-group input, .form-group select, .form-group textarea { font-size: 16px !important; }
  /* Wiekszy obszar dotyku suwaka kalkulatora */
  input[type="range"] { height: 10px; }
  input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
  /* Tap targety w stopce */
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 14px; }
  /* Kompaktowy cookie banner */
  .cookie-banner { flex-direction: column; align-items: stretch; gap: .6rem; padding: .75rem 1rem; font-size: .8rem; bottom: .75rem; }
  .cookie-banner p { margin: 0; }
  .cookie-banner .cookie-btns button { width: 100%; min-height: 44px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 4rem 1.25rem; }
}
