:root {
  /* --- PALETA PREMIUM LIGHT --- */
  --bg-body: #F9FAFB;       /* Złamana biel */
  --bg-surface: #FFFFFF;    /* Czysta biel kart */
  --primary: #2563EB;       /* Nowoczesny niebieski (Royal Blue) */
  --primary-dark: #1E40AF;
  --text-main: #111827;     /* Prawie czarny, nie #000 */
  --text-muted: #4B5563;    /* Szary dla opisów */
  --border: #E5E7EB;        /* Delikatne ramki */
  
  /* Akcenty */
  --accent-gold: #F59E0B;
  --accent-success: #10B981;

  /* Cienie Premium (wielowarstwowe) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

  --radius: 16px;
  --max-width: 1200px;
  --header-h: 76px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* RESET & BAZA */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* Kluczowe dla wyglądu premium */
  padding-top: var(--header-h);
  overflow-x: hidden;
}

/* Tło z subtelnym "glow" */
body::before {
  content: "";
  position: fixed;
  top: -20%; right: -10%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  bottom: -10%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* TYPOGRAFIA */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; color: var(--text-main); }
p { color: var(--text-muted); font-size: 1.05rem; }

/* UTILITY */
.skip { position: absolute; left: -9999px; z-index: 999; }
.skip:focus { left: 20px; top: 20px; background: white; padding: 1rem; border: 2px solid var(--primary); }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  z-index: 1000;
  display: flex; align-items: center;
}

.nav {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.brand {
  display: flex; align-items: center; gap: 12px;
}
.logo {
  width: 42px; height: 42px;
  background: var(--text-main);
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 18px;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text strong { font-size: 16px; }
.brand-text span { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.menu { display: flex; align-items: center; gap: 8px; }
.menu a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
}
.menu a:hover, .menu a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}
.menu a.cta {
  background: var(--text-main);
  color: #fff;
  margin-left: 10px;
}
.menu a.cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* BURGER */
.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 10px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--text-main);
  margin: 5px 0; transition: 0.3s;
}

/* HERO SECTION */
.hero { padding: 80px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #EFF6FF; color: var(--primary);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.pulse {
  width: 8px; height: 8px; background: var(--accent-success); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1; margin-bottom: 24px;
  color: var(--text-main);
}
.hero .lead {
  font-size: 1.125rem; margin-bottom: 32px; max-width: 90%;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

/* PRZYCISKI - UNIFIKACJA STYLU (Identyczne jak CTA w menu) */
.btn, .menu a.cta, button[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: var(--text-main);
  color: #fff;
  text-decoration: none;
}

.btn:hover, .menu a.cta:hover, button[type="submit"]:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.stats {
  display: flex; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.stat-num { font-weight: 800; font-size: 16px; color: var(--text-main); display: block;}
.stat-txt { font-size: 13px; color: var(--text-muted); }

/* HERO RIGHT (Glass Card) */
.hero-right .glass {
  background: var(--bg-surface);
  padding: 40px; border-radius: 24px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  position: relative;
}
.checklist li {
  padding-left: 24px; position: relative; margin-bottom: 12px; font-weight: 500;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: bold;
}

.mini-card {
  margin-top: 24px; padding: 20px;
  background: #F8FAFC; border-radius: 16px; border: 1px solid var(--border);
}
.mini-row {
  display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px;
}
.mini-row span:last-child { font-weight: 600; color: var(--text-main); }

/* SECTIONS COMMON */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 16px; }

/* GRIDS & CARDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37,99,235,0.3);
}

.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 20px;}
.tags span {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  background: #F3F4F6; color: var(--text-muted);
  padding: 6px 12px; border-radius: 100px; font-weight: 700;
}

/* WORK / PORTFOLIO */
.thumb {
  overflow: hidden;
  border-radius: 16px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-tags span { background: #fff; border: 1px solid #eee; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: transparent; border: none; padding: 0; box-shadow: none;
}
.step-num {
  font-size: 40px; font-weight: 900; color: rgba(37,99,235,0.15); line-height: 1; margin-bottom: 10px;
}

/* FAQ */
.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
}
.faq summary { font-weight: 700; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--primary); margin-bottom: 12px; }

/* FORM & CONTACT */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.contact-card, .form-card { border: none; padding: 0; box-shadow: none; background: transparent; }
.contact-card:hover { transform: none; box-shadow: none; }

.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-main); display: block; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #F9FAFB; color: var(--text-main); font-family: inherit;
  transition: 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-alert {
  padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; font-weight: 600;
}
.form-alert.ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-alert.bad { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* FOOTER */
.footer {
  margin-top: 100px; padding: 40px 0; border-top: 1px solid var(--border); background: #fff;
}
.footer-clean { display: flex; justify-content: space-between; align-items: center; }

/* TO TOP */
.to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--text-main); color: #fff;
  border: none; font-size: 20px; cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: 0.3s;
  z-index: 99;
}
.to-top.show { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .steps, .contact-grid, .form .row { grid-template-columns: 1fr; }
  .nav { justify-content: space-between; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff;
    padding: 20px; border-bottom: 1px solid var(--border);
    display: none; box-shadow: var(--shadow-hover);
  }
  .menu.open { display: flex; }
  .menu a { width: 100%; text-align: center; padding: 12px; }
  .menu a.cta { margin: 0; }
  .section { padding: 60px 0; }
  .contact-grid { padding: 20px; }
  .hero h1 { font-size: 2rem; }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }