/* Piknik z Misją 2 — main.css
   Mobile-first, prosty, czytelny, jasna paleta */

:root {
  --c-primary: #1f8a3a;
  --c-primary-dark: #0d3320;
  --c-accent: #f5b800;
  --c-accent-dark: #d4a000;
  --c-bg: #fffdf6;
  --c-text: #1f2a25;
  --c-muted: #6b7570;
  --c-border: #e6e3d4;
  --c-card: #ffffff;
  --c-success: #1f8a3a;
  --c-warning: #f5b800;
  --c-danger:  #d6453d;
  --c-info:    #2b78b8;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--alt { background: #f4f1e3; }
.section h2 { font-size: 28px; margin: 0 0 8px; color: var(--c-primary-dark); }
.section .lead { color: var(--c-muted); margin-top: 0; margin-bottom: 24px; }

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section h2 { font-size: 36px; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,246,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--c-primary-dark); font-size: 18px; }
.site-logo img { height: 40px; width: auto; }
.nav { display: none; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--c-text); font-weight: 500; font-size: 15px; }
.nav a:hover { background: rgba(31,138,58,.08); text-decoration: none; }
@media (min-width: 1024px) { .nav { display: flex; } .nav-toggle { display: none; } }

.nav-toggle { background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 16px 20px;
  background: var(--c-card); border-bottom: 1px solid var(--c-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px; border-radius: var(--radius-sm); color: var(--c-text); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #fffdf6 0%, #f4f1e3 100%);
  padding: 48px 0 40px;
  text-align: center;
}
.hero-logo { max-width: 280px; margin: 0 auto 24px; }
.hero-logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 240px; height: 240px; margin: 0 auto 24px;
  background: var(--c-card); border: 2px dashed var(--c-border);
  border-radius: var(--radius-lg);
  color: var(--c-muted); font-weight: 600;
  text-align: center; padding: 20px;
}
.hero h1 { font-size: 32px; margin: 0 0 8px; color: var(--c-primary-dark); line-height: 1.2; }
.hero .subtitle { font-size: 18px; color: var(--c-muted); margin: 0 0 16px; }
.hero .meta { font-size: 18px; font-weight: 600; color: var(--c-primary); margin: 16px 0 28px; }
@media (min-width: 768px) {
  .hero { padding: 80px 0 56px; }
  .hero h1 { font-size: 56px; }
  .hero .subtitle { font-size: 22px; }
}

/* Countdown */
.countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.cd-block {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 14px 18px;
  min-width: 76px; box-shadow: var(--shadow-sm);
}
.cd-num { font-size: 32px; font-weight: 800; color: var(--c-primary-dark); line-height: 1; }
.cd-label { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 0; text-decoration: none; transition: all .15s ease;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; text-decoration: none; }
.btn-accent { background: var(--c-accent); color: var(--c-primary-dark); }
.btn-accent:hover { background: var(--c-accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; text-decoration: none; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Progress bar */
.progress-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.progress-head .num { font-size: 32px; font-weight: 800; color: var(--c-primary); }
.progress-head .goal { color: var(--c-muted); }
.progress-bar { height: 16px; background: #f0eedf; border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); transition: width 1s ease; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Pakiety */
.packages { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1024px) { .packages { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.package {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.package--featured {
  border: 2px solid var(--c-accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.package--featured::before {
  content: 'Najpopularniejszy';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-accent); color: var(--c-primary-dark);
  padding: 4px 16px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.package h3 { margin: 0 0 4px; color: var(--c-primary-dark); font-size: 22px; }
.package .pkg-price { font-size: 36px; font-weight: 800; color: var(--c-primary); margin: 12px 0 16px; }
.package .pkg-features { padding-left: 20px; margin: 0 0 24px; flex: 1; }
.package .pkg-features li { margin-bottom: 8px; }

/* Sponsors grid */
.sponsors-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .sponsors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .sponsors-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .sponsors-grid { grid-template-columns: repeat(6, 1fr); } }

.sponsor-tile {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; transition: transform .15s ease, box-shadow .15s ease;
}
.sponsor-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sponsor-tile.horizontal { aspect-ratio: 2 / 1; grid-column: span 2; }
.sponsor-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-tile .tile-name { color: var(--c-muted); font-size: 13px; text-align: center; }

/* Pillar with package badge */
.sponsor-tile[data-pkg="platinum"] { border: 2px solid #b6a7e6; }
.sponsor-tile[data-pkg="diamond"] { border: 2px solid #7ec1d6; }
.sponsor-tile[data-pkg="gold"] { border: 2px solid var(--c-accent); }

/* Schedule */
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.schedule-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-md); }
.schedule-time { font-weight: 800; color: var(--c-primary); min-width: 80px; }
.schedule-item h4 { margin: 0 0 4px; }
.schedule-item p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* Attractions */
.attr-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .attr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .attr-grid { grid-template-columns: repeat(3, 1fr); } }
.attr-tile { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; }
.attr-tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.attr-tile .body { padding: 18px; }
.attr-tile h4 { margin: 0 0 8px; }
.attr-tile p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* QR Donation */
.donate-card { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .donate-card { grid-template-columns: 280px 1fr; align-items: center; } }
.donate-qr { text-align: center; }
.donate-qr img { width: 240px; height: 240px; margin: 0 auto; border: 6px solid #fff; box-shadow: var(--shadow-md); border-radius: var(--radius-md); }
.donate-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.donate-amounts button {
  background: #fff; border: 2px solid var(--c-border); padding: 10px 16px;
  border-radius: var(--radius-md); font-weight: 700; cursor: pointer;
}
.donate-amounts button.active { border-color: var(--c-primary); background: rgba(31,138,58,.08); color: var(--c-primary); }
.bank-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; flex-wrap: wrap; }
.bank-row code { background: #f4f1e3; padding: 4px 8px; border-radius: 4px; font-size: 14px; word-break: break-all; }
.bank-row .copy { background: none; border: 0; cursor: pointer; color: var(--c-primary); font-size: 12px; padding: 4px 8px; }

/* Pixel grid */
.pixels-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.pixels-canvas-wrap {
  position: relative; overflow: hidden;
  border: 1px solid var(--c-border); border-radius: var(--radius-md);
  background: #fff; touch-action: none;
}
.pixels-canvas { display: block; max-width: 100%; height: auto; }
.pixels-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; color: var(--c-muted); font-size: 14px; }
.pixels-stats strong { color: var(--c-primary-dark); }

/* Galeria */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-tile { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-md); cursor: pointer; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-tile:hover img { transform: scale(1.05); }

/* News teaser */
.news-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card .body { padding: 18px; }
.news-card .date { color: var(--c-muted); font-size: 13px; margin-bottom: 6px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--c-border); padding: 16px 0; }
.faq-question { background: none; border: 0; padding: 0; width: 100%; text-align: left; font-size: 17px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { display: none; padding-top: 12px; color: var(--c-muted); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-question::after { content: '+'; font-size: 22px; color: var(--c-primary); }

/* Share buttons */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--c-text); font-size: 14px;
  text-decoration: none;
}
.share-btn:hover { background: #f4f1e3; text-decoration: none; }
.share-btn svg { width: 18px; height: 18px; }

/* Footer */
.site-footer {
  background: var(--c-primary-dark); color: #d8e2d3;
  padding: 40px 0 24px; margin-top: 40px;
}
.site-footer a { color: #fff; }
.site-footer .footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.site-footer .small { font-size: 13px; opacity: .8; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,.1); border-radius: 50%; }
.social-row a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }
.copyright { text-align: center; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; opacity: .8; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255,253,246,.96);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  padding: 10px 12px; display: flex; gap: 8px; z-index: 40;
  box-shadow: 0 -4px 12px rgba(0,0,0,.06);
}
.sticky-cta .btn { flex: 1; padding: 12px 8px; font-size: 14px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 70px; } }

/* Forms */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row .hint { color: var(--c-muted); font-size: 13px; margin-top: 4px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row input[type="url"], .form-row input[type="number"], .form-row input[type="password"], .form-row input[type="date"], .form-row input[type="datetime-local"], .form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font: inherit; background: #fff;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-success { background: rgba(31,138,58,.12); color: var(--c-primary-dark); }
.alert-warning { background: rgba(245,184,0,.16); color: #806000; }
.alert-error   { background: rgba(214,69,61,.12); color: #8a1c19; }
.alert-info    { background: rgba(43,120,184,.12); color: #1a3f63; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 95vh; box-shadow: var(--shadow-lg); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.muted { color: var(--c-muted); }
.hidden { display: none !important; }
