/* Global guards */
* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #111827;
  color: #f9fafb;
  text-align: center;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #1f2937;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 2000;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}
.nav-logo {
  font-weight: 700;
  font-size: 20px;
  color: #10b981;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #10b981;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #f9fafb;
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #111827;
    position: absolute;
    top: 56px; right: 0; left: 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
}

/* HERO/HEADER */
.header { padding: 40px 20px; background: #1f2937; }
.header h1 { margin: 0; font-size: 2rem; }
.header p { margin: 8px 0 0; color: #e5e7eb; }

/* MAPA + CONTENT */
.map-section { padding: 30px 20px; }
.map-text-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.text-box {
  flex: 1 1 40%;
  background: #1f2937;
  padding: 20px;
  border-radius: 10px;
}
.text-box h2 { margin: 0 0 12px; font-size: 1.5rem; color: #f9fafb; }
.text-box p { line-height: 1.6; color: #e5e7eb; }
.map-container { flex: 1 1 60%; text-align: center; overflow: hidden; }

svg { display: inline-block; width: 100% !important; max-width: 100%; height: auto !important; }

/* MAPA: szara półprzezroczysta, hover neon */
svg path {
  fill: #9ca3af !important;
  fill-opacity: 0.6;
  stroke: #ffffff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.2s, fill-opacity 0.2s, filter 0.2s;
}
svg path:hover {
  fill: #22c55e !important;
  fill-opacity: 1;
  filter: drop-shadow(0 0 6px #22c55e) drop-shadow(0 0 12px #22c55e);
}

#mobile-info { margin-top: 16px; font-size: 1.1rem; font-weight: 600; color: #f9fafb; }

/* Tooltip */
#tooltip {
  position: fixed;
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 50;
}

/* LISTA + CTA (kup-teraz) */
.wrap{max-width:900px;margin:0 auto;text-align:left;padding:0 20px;}
.count{font-size:18px;font-weight:600;margin:0 0 12px}
ul.list{list-style:none;padding:0;margin:0;display:grid;gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
ul.list li{
  background:#1f2937;border:1px solid rgba(255,255,255,.08);
  border-radius:10px;padding:14px 16px;display:flex;align-items:center;gap:12px
}
.badge{
  min-width:44px;height:44px;display:inline-grid;place-items:center;border-radius:999px;
  background:#111827;border:1px solid rgba(255,255,255,.12);font-weight:700
}
.item-main{display:flex;flex-direction:column}
.name{font-weight:700}
.meta{opacity:.85}
.btn{
  display:inline-block;background:#10b981;color:#fff;
  padding:18px 28px;border-radius:12px;
  font-size:20px;font-weight:600;
  text-decoration:none;margin-top:28px;
  transition:transform .04s ease, background .25s;
}
.btn:active{transform:scale(.98)}
.btn:hover{background:#059669}
@media(max-width:768px){
  .btn{display:none}
}

/* Sticky bottom bar (mobile only) */
.bottom-pad{ padding-bottom: 96px; }
.bottom-bar{
  position:fixed; left:0; right:0; bottom:0;
  background:rgba(17,24,39,.92);
  backdrop-filter:saturate(180%) blur(12px);
  border-top:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
  z-index:1000;
}
.bar-text{
  text-align:left; font-size:14px; line-height:1.3; color:#e5e7eb;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.bar-btn{
  display:inline-block; background:#10b981; color:#fff;
  padding:14px 18px; border-radius:10px; font-weight:700; text-decoration:none;
  transition:background .25s, transform .04s ease;
  white-space:nowrap; font-size:16px;
}
.bar-btn:active{transform:scale(.98)}
.bar-btn:hover{background:#059669}
@media (max-width: 768px){
  .bottom-bar{ display:flex; }
}
@media (min-width: 769px){
  .bottom-bar{ display:none; }
  body.bottom-pad{ padding-bottom: 0; }
}

/* FOOTER */
.footer { padding: 30px 20px; border-top: 1px solid rgba(255,255,255,0.1); background:#0f172a; }
.footer-inner { max-width: 1100px; margin: 0 auto; display:flex; gap:16px; justify-content:space-between; align-items:center; }
.footer a { color:#9ca3af; text-decoration:none; }
.footer a:hover { color:#fff; }

/* MOBILE layout */
@media (max-width: 768px) {
  .map-text-wrapper { flex-direction: column-reverse; gap: 20px; }
  .text-box, .map-container { flex: 1 1 100%; }
  .map-section { padding: 16px 16px 24px; }
  .map-container { width: 100%; max-width: 100%; margin: 0 auto; overflow: hidden; }
  svg { width: 100% !important; max-width: 100%; height: auto !important; }
}

/* HERO */
.hero { padding: 32px 20px 8px; background: radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,0.15), transparent 60%), #0f172a; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.hero-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(2,6,23,0.6); }
.hero-media img { width: 100%; height: 520px; object-fit: cover; display: block; filter: contrast(1.03) saturate(1.02); }
.hero-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,23,42,0.15), rgba(15,23,42,0)); pointer-events:none;}
.hero-content { text-align: left; padding: 8px 8px; }
.hero-badge { display: inline-flex; align-items:center; gap:8px; padding:6px 10px; font-weight:700; border:1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity:.9; background: rgba(255,255,255,0.04); backdrop-filter: blur(4px); }
.hero-content h1 { margin: 14px 0 8px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; font-weight: 800; }
.hero-content p { margin: 0 0 18px; color: #cbd5e1; font-size: clamp(14px, 2.1vw, 18px); max-width: 48ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding: 12px 16px; border-radius: 14px; text-decoration:none; font-weight: 700; border:1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(2,6,23,0.35); }
.btn-primary { background: linear-gradient(180deg, #2563eb, #1d4ed8); color:#fff; }
.btn-primary:hover { background: linear-gradient(180deg, #1d4ed8, #1e40af); }
.btn-ghost { background: rgba(255,255,255,0.06); color:#e5e7eb; border-color: rgba(255,255,255,0.14); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media img { height: 440px; }
  .hero-content { text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
}

/* EXPECTATIONS */
.expectations { background:#1f2937; padding: 60px 20px; margin-top:40px; }
.expectations-inner { max-width:1000px; margin:0 auto; text-align:center; }
.expectations h2 { font-size:clamp(26px,4vw,36px); margin-bottom:30px; font-weight:700; }
.expectations-list { list-style:none; padding:0; margin:0; display:grid; gap:18px; }
.expectations-list li { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); padding:18px 20px; border-radius:16px; text-align:left; }
.expectations-list strong { display:block; color:#f9fafb; font-size:17px; margin-bottom:6px; }
.expectations-list span { color:#d1d5db; font-size:15px; }
@media (min-width:700px){ .expectations-list { grid-template-columns:1fr 1fr; } }

.expectations-list li { display:flex; flex-direction:column; }
.expectations-list strong { font-size:18px; margin-bottom:4px; }

/* EXPECTATIONS ANIMATION */
.expectations { opacity:0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.expectations.visible { opacity:1; transform: translateY(0); }


/* REVEAL ANIMATIONS */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-visible, [data-reveal].reveal-visible { opacity: 1; transform: translateY(0); }
.expectations-list li { transition-delay: var(--reveal-delay, 0ms); }

/* BUY CTA (desktop) */
.buy-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.price-box {
  display: flex;
  gap: 8px;
  font-size: 20px;
}
.price-box .old-price {
  color: #94a3b8;
  text-decoration: line-through;
}
.price-box .new-price {
  color: #fbbf24;
  font-weight: 700;
  font-size: 24px;
}

/* Sticky bar (tylko mobile) */
@media (max-width: 640px) {
  /* ukrywamy cenę przy głównym przycisku */
  .buy-cta .price-box {
    display: none;
  }

  /* sticky bar widoczny */
  .bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0b1220;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 9999;
  }
  .bar-pricing {
    display: flex;
    gap: 6px;
    font-size: 16px;
    align-items: baseline;
  }
  .bar-pricing .old-price {
    color: #94a3b8;
    text-decoration: line-through;
  }
  .bar-pricing .new-price {
    color: #fbbf24;
    font-weight: 700;
  }
}

/* Desktop (ukrywamy sticky bar) */
@media (min-width: 641px) {
  .bottom-bar {
    display: none;
  }
}
/* --- Kontakty z avatarami --- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-card .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-card .item-main {
  display: flex;
  flex-direction: column;
}

.contact-card .name {
  font-weight: 600;
  color: #fff;
}

.contact-card .meta {
  font-size: 14px;
  color: #94a3b8;
}
