/* ===== Zmienne ===== */
:root {
  --bg: #0b0918;
  --bg-alt: #110e24;
  --card: #181430;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f3fb;
  --muted: #a9a6c4;
  --yellow: #f5c518;
  --purple: #7c4dff;
  --grad: linear-gradient(135deg, #f5c518 0%, #7c4dff 100%);
  --radius: 20px;
  --maxw: 1160px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ===== Logo ===== */
.logo { font-size: 1.35rem; letter-spacing: 0.04em; display: inline-flex; }
.logo-bold { font-weight: 800; }
.logo-light { font-weight: 400; }

/* ===== Przyciski ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--grad);
  color: #1a1330;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124, 77, 255, 0.35); }
.btn-small { padding: 9px 20px; font-size: 0.95rem; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px 12px 20px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s, border-color 0.2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--yellow); }
.store-btn svg { color: var(--yellow); flex: none; }
.store-btn span { display: flex; align-items: center; line-height: 1.15; text-align: left; }
.store-btn strong { font-size: 1.15rem; font-weight: 700; }

/* ===== Nagłówek ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-end { display: flex; align-items: center; gap: 18px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.menu a:not(.btn):hover { color: var(--yellow); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  flex: none;
}
.lang-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  background-color: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: none;
}
.lang-btn + .lang-btn {
  position: relative;
  padding-left: 13px;
}
.lang-btn + .lang-btn::before {
  content: "|";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 400;
  pointer-events: none;
}
.lang-btn[aria-pressed="true"] {
  background: transparent;
  color: var(--yellow);
}
.lang-btn:hover {
  background: transparent;
  color: var(--yellow);
}

html.i18n-pending body { visibility: hidden; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 70px 0 90px;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(124, 77, 255, 0.28), transparent 70%),
    radial-gradient(40% 40% at 10% 80%, rgba(245, 197, 24, 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--yellow); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-cta { margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--yellow); font-weight: 700; margin-right: 8px; }

/* Telefony */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  background: #05040c;
  border: 3px solid #2a2547;
  border-radius: 38px;
  padding: 9px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.phone img { border-radius: 29px; width: 100%; }
.phone-main { position: relative; z-index: 2; width: 260px; }
.phone-side { position: absolute; width: 215px; opacity: 0.92; }
.phone-left { left: 0; transform: rotate(-7deg) translateY(30px); z-index: 1; }
.phone-right { right: 0; transform: rotate(7deg) translateY(30px); z-index: 1; }

/* ===== Sekcje ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; max-width: 780px; margin: 0 auto; }
.section-lead { text-align: center; color: var(--muted); max-width: 720px; margin: 16px auto 0; font-size: 1.05rem; }

/* Funkcje */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(245, 197, 24, 0.5); }
.card h3 { font-size: 1.15rem; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #1a1330; }

.body-parts { margin-top: 56px; text-align: center; }
.body-parts h3 { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { background: rgba(124, 77, 255, 0.2); border: 1px solid rgba(124, 77, 255, 0.55); color: var(--yellow); padding: 7px 16px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }

/* Galeria */
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 50px max(20px, calc((100vw - var(--maxw)) / 2)) 30px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--purple) transparent;
}
.shot { flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: center; text-align: center; }
.shot-btn { background: none; border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.shot-btn img { border-radius: 26px; border: 3px solid #2a2547; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45); transition: transform 0.25s, border-color 0.25s; }
.shot-btn:hover img { transform: translateY(-6px); border-color: var(--yellow); }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }

/* Dodatkowo */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.extra { border-left: 3px solid var(--purple); padding: 6px 0 6px 20px; }
.extra h3 { font-size: 1.1rem; color: var(--yellow); margin-bottom: 8px; }
.extra p { color: var(--muted); font-size: 0.97rem; }

/* Dla kogo */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.aud { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 34px 20px; text-align: center; }
.aud-emoji { font-size: 2.4rem; display: block; margin-bottom: 14px; }
.aud h3 { font-size: 1.05rem; }

/* CTA */
.cta-box {
  text-align: center;
  padding: 64px 30px;
  border-radius: 28px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(124, 77, 255, 0.4), rgba(24, 20, 48, 0.9));
  border: 1px solid rgba(124, 77, 255, 0.4);
}
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 14px auto 30px; font-size: 1.05rem; }

/* ===== Stopka ===== */
.site-footer { border-top: 1px solid var(--card-border); padding: 44px 0 30px; background: #08060f; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.legal { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--card-border); color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.copy { margin-top: 16px; color: #6f6c8a; font-size: 0.82rem; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 12, 0.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 24px; margin-inline: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lightbox figcaption { margin-top: 14px; color: var(--muted); }
.lightbox-close { position: absolute; top: 16px; right: 22px; background: none; border: 0; font-size: 2.6rem; line-height: 1; cursor: pointer; color: var(--text); }
.lightbox-close:hover { color: var(--yellow); }

/* ===== Animacje przy przewijaniu ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ===== Strona prawna ===== */
.legal-page { padding: 60px 0 80px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); margin-bottom: 36px; }
.legal-page h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--yellow); }
.legal-page p, .legal-page li { color: #d6d3ea; }
.legal-page p { margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--yellow); text-decoration: underline; }
.legal-page .todo { background: rgba(245, 197, 24, 0.15); padding: 1px 6px; border-radius: 4px; }

/* ===== Responsywność ===== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-points { justify-content: center; }
  .features, .extras, .audience { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-end { gap: 8px; }
  .menu {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(11, 9, 24, 0.97);
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--card-border); }
  .menu .btn { margin-top: 14px; text-align: center; }
  .menu .lang-switch { margin-top: 16px; align-self: center; }

  .hero { padding: 40px 0 60px; }
  .hero-phones { min-height: 470px; }
  .phone-main { width: 215px; }
  .phone-side { width: 150px; }
  .phone-left { left: -10px; }
  .phone-right { right: -10px; }

  .section { padding: 64px 0; }
  .features, .extras, .audience { grid-template-columns: 1fr; }
  .shot { width: 200px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .phone-side { display: none; }
}
