/* ============================================================
   PerfectData — design system
   Paleta z logo: granat/czerń + złoto + biel
   Zasada: mobile-first, zero zależności, maks. czytelność CTA
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1524;
  --surface: #151c2e;
  --surface-hover: #1b2438;
  --border: #232d45;
  --gold: #d4a94a;
  --gold-light: #e8c97a;
  --gold-dark: #a87f2c;
  --text: #f2f3f7;
  --muted: #9aa3b8;
  --success: #4ade80;
  --error: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-gold: 0 6px 30px rgba(212, 169, 74, 0.25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }

/* ---------- Typografia ---------- */

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.gold { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Nawigacja ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.nav-logo img { height: 44px; width: auto; }
@media (min-width: 900px) {
  .nav-inner { height: 80px; }
  .nav-logo img { height: 52px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  list-style: none;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 12px 8px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--surface); color: var(--gold); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  border: 0;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #14100a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(212, 169, 74, 0.4);
  color: #14100a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 60% 45% at 70% 0%, rgba(212, 169, 74, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 15% 100%, rgba(212, 169, 74, 0.05), transparent);
}
@media (min-width: 768px) { .hero { padding: 110px 0 90px; } }

.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 620px; margin-bottom: 34px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}

.hero-note { font-size: 0.9rem; color: var(--muted); }
.hero-note strong { color: var(--text); }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar .tick { color: var(--gold); font-weight: 700; }

/* ---------- Sekcja problemów (bóle) ---------- */

.pains { background: var(--bg-alt); }

.pain-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pain-list { grid-template-columns: repeat(3, 1fr); } }

.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.pain p { color: var(--muted); font-size: 0.97rem; }
.pain strong { color: var(--text); }

/* ---------- Karty usług ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold-dark); transform: translateY(-3px); }
.icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212, 169, 74, 0.10);
  border: 1px solid rgba(212, 169, 74, 0.22);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.icon svg {
  width: 24px; height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .icon { border-color: rgba(212, 169, 74, 0.5); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-featured {
  border-color: var(--gold-dark);
  background: linear-gradient(160deg, rgba(212, 169, 74, 0.09), var(--surface) 55%);
}

/* ---------- Proces / kroki ---------- */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step .num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 0.95rem; }

.steps-note {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}
.steps-note strong { color: var(--gold); }

/* ---------- Porównanie (LP marketing) ---------- */

.compare-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
.compare thead th { background: var(--surface); font-size: 1rem; }
.compare thead th.pd-col { color: var(--gold); }
.compare tbody td:first-child { color: var(--muted); font-weight: 600; width: 26%; }
.compare td.no { color: var(--muted); }
.compare td.yes { color: var(--text); }
.compare td.yes::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.compare td.no::before { content: "✗ "; color: var(--error); }

/* ---------- Portfolio ---------- */

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.portfolio-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 169, 74, 0.1);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.portfolio-card h3 { font-size: 1.3rem; }
.portfolio-card p { color: var(--muted); margin: 10px 0 16px; font-size: 0.97rem; }
.portfolio-card ul { list-style: none; margin-bottom: 18px; }
.portfolio-card li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.portfolio-card li::before { content: "✓"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }

/* ---------- Cytat ---------- */

.quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
}
.quote .author { display: block; margin-top: 18px; font-size: 1rem; font-weight: 400; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.97rem; }

/* ---------- Kontakt / formularz ---------- */

.contact { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; } }

.contact-info h2 { margin-bottom: 10px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }

.contact-item { margin-bottom: 20px; }
.contact-item .label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .value { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.contact-item .value a { color: var(--text); }
.contact-item .value a:hover { color: var(--gold); }

.guarantees { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); list-style: none; }
.guarantees li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--muted);
}
.guarantees li strong { color: var(--text); }
.guarantees li::before { content: "✓"; color: var(--gold); font-weight: 700; position: absolute; left: 0; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
@media (min-width: 768px) { .form-card { padding: 38px; } }

.form-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.form-card .form-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; }
.field label .opt { color: var(--muted); font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.consent input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }

.form-status { margin-top: 16px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; color: var(--success); }
.form-status.err { display: block; color: var(--error); }

/* ---------- CTA końcowe (banner) ---------- */

.cta-banner {
  text-align: center;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(212, 169, 74, 0.13), transparent);
}
.cta-banner h2 { max-width: 640px; margin: 0 auto 16px; }
.cta-banner p { max-width: 540px; margin: 0 auto 30px; color: var(--muted); }

/* ---------- Stopka ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-logo img { height: 40px; width: auto; }

/* ---------- Pasek mobilnego CTA ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 90;
  transform: translateY(110%);
  transition: transform 0.3s;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding: 14px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Polityka prywatności (prosta treść) ---------- */

.prose { max-width: 760px; }
.prose h1 { font-size: 2rem; margin-bottom: 24px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }

/* ---------- Pakiety (oferta) ---------- */

.packages {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 960px) { .packages { grid-template-columns: repeat(3, 1fr); } }

.package {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.package.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(212, 169, 74, 0.10), var(--surface) 60%);
  box-shadow: 0 8px 40px rgba(212, 169, 74, 0.12);
}
.package .badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #14100a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.package h3 { font-size: 1.25rem; }
.package .pkg-for { color: var(--muted); font-size: 0.9rem; margin: 6px 0 18px; min-height: 2.6em; }
.package .pkg-price { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.package .pkg-price small { font-size: 0.85rem; font-weight: 400; color: var(--muted); display: block; }
.package ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.package li {
  padding-left: 26px;
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.package li strong { color: var(--text); }
.package li::before { content: "✓"; color: var(--gold); font-weight: 700; position: absolute; left: 0; }

/* ---------- Kalkulator wyceny ---------- */

.calc-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) { .calc-grid { grid-template-columns: 1.25fr 1fr; } }

.calc-options { display: grid; gap: 12px; }

.calc-opt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.calc-opt:hover { border-color: var(--gold-dark); }
.calc-opt.selected { border-color: var(--gold); background: rgba(212, 169, 74, 0.07); }
.calc-opt input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.calc-opt .opt-body { flex: 1; }
.calc-opt .opt-title { font-weight: 600; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.calc-opt .opt-price { color: var(--gold); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.calc-opt .opt-desc { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }

.calc-subhead {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 2px;
}

.calc-summary {
  background: var(--surface);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 92px;
}
.calc-summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.calc-row .calc-label { color: var(--muted); }
.calc-row .calc-value { font-weight: 700; text-align: right; white-space: nowrap; }
.calc-row.total .calc-label { color: var(--text); font-weight: 600; }
.calc-row.total .calc-value { color: var(--gold); font-size: 1.15rem; }
.calc-discount { color: var(--success); font-size: 0.9rem; padding: 10px 0 0; display: none; }
.calc-discount.visible { display: block; }
.calc-note { color: var(--muted); font-size: 0.84rem; margin: 14px 0 20px; }

.calc-budget { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.calc-tier {
  margin-top: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.calc-tier::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.calc-roi { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.calc-field { margin-top: 12px; }
.calc-field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.calc-field input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}
.calc-field input:focus { outline: none; border-color: var(--gold); }
.calc-roi-result {
  margin-top: 16px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text);
  background: rgba(212, 169, 74, 0.08);
  border: 1px solid rgba(212, 169, 74, 0.28);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  display: none;
}
.calc-roi-result.visible { display: block; }
.calc-roi-result .big { color: var(--gold); font-weight: 700; font-size: 1.05rem; }

/* ---------- Sekcja: co się stanie po kontakcie ---------- */

.next-steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: nstep;
}
@media (min-width: 768px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }

.next-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 26px 30px;
}
.next-step::before {
  counter-increment: nstep;
  content: counter(nstep);
  position: absolute;
  top: 22px; left: 26px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #14100a;
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.95rem;
}
.next-step h3 { margin: 48px 0 8px; font-size: 1.1rem; }
.next-step p { color: var(--muted); font-size: 0.95rem; }
.calc-empty { color: var(--muted); font-size: 0.95rem; padding: 8px 0 18px; }

@media (prefers-reduced-motion: no-preference) {
  .calc-value.bump { animation: bump 0.25s ease; }
  @keyframes bump { 50% { transform: scale(1.08); } }
}

/* ---------- Dostępność: redukcja ruchu ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
