/* =========================================================
   Paleta 60-30-10:
   60% tło #FAFAF7 · 30% granat #13223F · 10% akcent #EA6A1F
   ========================================================= */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F1EB;
  --surface: #FFFFFF;
  --ink: #13223F;
  --ink-2: #1D2F52;
  --muted: #5B6475;
  --on-dark: #FAFAF7;
  --on-dark-muted: #BAC2D2;
  --accent: #EA6A1F;
  --accent-hover: #F27B34;
  --line: #E4E2DA;
  --field-border: #8A92A1;
  --error: #B42318;
  --success: #1E7A4C;

  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(19, 34, 63, .05), 0 10px 30px rgba(19, 34, 63, .07);
  --container: 1120px;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5.5vw + .5rem, 4rem); }
h2 { font-size: clamp(1.85rem, 3vw + .9rem, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Dostępność ---------- */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px;
  border-radius: 10px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(234, 106, 31, .28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.js .nav.is-open { display: block; }
/* Bez JavaScriptu menu jest po prostu widoczne pod logo */
html:not(.js) .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav { display: block; position: static; width: 100%; padding: 0 0 12px; border: 0; }
.nav ul li a { display: block; padding: 14px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav .btn { margin-top: 16px; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav, .js .nav, .js .nav.is-open, html:not(.js) .nav { display: flex; width: auto; align-items: center; gap: 28px; position: static; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: 26px; }
  .nav ul li a { padding: 6px 0; border: 0; font-size: .97rem; color: var(--muted); transition: color .2s; }
  .nav ul li a:hover { color: var(--ink); }
  .nav .btn { margin: 0; width: auto; }
}

/* ---------- Wspólne elementy sekcji ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-lead { color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: clamp(1.1rem, 1vw + .9rem, 1.25rem); color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-prices { font-size: 1rem; color: var(--muted); margin-bottom: 18px; }
.hero-prices strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.hero-trust { display: grid; gap: 8px; font-size: .97rem; }
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .icon { color: var(--accent); stroke-width: 2.5; width: 1.1em; height: 1.1em; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 0 0 30px; max-width: 420px; width: 100%; margin: 0 auto; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 4% 0 4%;
  background: var(--bg-alt); border-radius: 32px; z-index: 0;
}
.mock-phone {
  position: relative; z-index: 1;
  width: 210px; aspect-ratio: 9 / 18.5;
  background: var(--surface); border: 10px solid var(--ink); border-radius: 38px;
  box-shadow: 0 30px 60px rgba(19, 34, 63, .18);
  overflow: hidden;
}
.mock-notch { width: 80px; height: 18px; background: var(--ink); border-radius: 0 0 12px 12px; margin: 0 auto; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.mock-logo { width: 54px; height: 10px; border-radius: 5px; background: var(--ink); }
.mock-burger { width: 18px; height: 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.mock-img {
  height: 120px; margin: 0 12px; border-radius: 12px;
  background:
    radial-gradient(circle at 75% 35%, #F6C9A6 0 18%, transparent 19%),
    linear-gradient(160deg, #2A3D63 0%, #13223F 100%);
}
.mock-body { padding: 16px; display: grid; gap: 9px; }
.mock-line { display: block; height: 9px; border-radius: 5px; background: #DDE0E6; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }
.mock-line.w80 { height: 13px; background: var(--ink); }
.mock-btn {
  display: block; text-align: center; padding: 9px; margin-top: 4px;
  border-radius: 8px; background: var(--accent); color: var(--ink);
  font-size: .8rem; font-weight: 600;
}
.mock-btn.ghost { background: none; border: 1.5px solid var(--ink); margin-top: 0; }
.mock-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.mock-dot { width: 14px; height: 14px; border-radius: 4px; background: #F3D8C5; flex: none; }

.mock-toast {
  position: absolute; z-index: 2; left: 0; bottom: 6px;
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 270px; padding: 12px 14px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.4; color: var(--muted);
}
.mock-toast strong { color: var(--ink); }
.mock-toast-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--ink);
}
.mock-toast-icon .icon { width: 18px; height: 18px; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-visual { padding: 30px 0 40px; }
  .mock-phone { width: 280px; }
  .mock-toast { left: -24px; bottom: 40px; }
}

/* ---------- 2. Oferta ---------- */
.pricing { display: grid; gap: 20px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 26px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.price-type { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.price-from { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 2px; }
.price-unit { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-desc { color: var(--muted); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.checklist { display: grid; gap: 11px; margin-bottom: 28px; flex: 1; align-content: start; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.checklist .icon { color: var(--accent); stroke-width: 2.6; width: 1.15em; height: 1.15em; margin-top: .15em; }
.badge {
  position: absolute; top: -14px; left: 24px; margin: 0;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.pricing-note { margin-top: 28px; color: var(--muted); font-size: .95rem; }

@media (min-width: 960px) {
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price-card.featured { transform: translateY(-12px); }
}

/* ---------- Sytuacje klienta ---------- */
.situations { display: grid; gap: 20px; }
.situation {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.situation-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 14px; background: #FCE6D8; color: var(--ink);
}
.situation-icon .icon { width: 24px; height: 24px; }
.situation h3 { font-size: 1.3rem; margin-bottom: 10px; }
.situation p { color: var(--muted); margin: 0 0 14px; }
.situation .situation-fix { color: var(--ink); padding-top: 14px; border-top: 1px solid var(--line); }
.situation-fix strong { font-weight: 600; }
.situation-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.situation-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.situation-link .icon { width: 1em; height: 1em; color: var(--accent); }
@media (min-width: 900px) { .situations { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 3. Projekty ---------- */
.tag {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tag-concept { background: #FCE6D8; color: var(--ink); border: 1px dashed #C9652A; }

/* Placeholdery obrazów */
.ph {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 3 / 2; padding: 20px;
  border: 1.5px dashed #B9BEC8; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #F5F4EF 0 12px, #EFEEE8 12px 24px);
  color: var(--muted); font-size: .92rem; line-height: 1.45;
}
.ph small { font-size: .8rem; }
.ph-portrait { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; }

.concepts { display: grid; gap: 20px; }
.concept { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.concept .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.concept-body { padding: 22px 22px 24px; }
.concept-body p:not(.tag) { color: var(--muted); margin: 0; font-size: 1rem; }
.concept > img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.concept-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.concept-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.concept-link .icon { width: 1em; height: 1em; color: var(--accent); }

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

/* ---------- 4. Jak pracuję (sekcja ciemna) ---------- */
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.steps { display: grid; gap: 16px; counter-reset: none; }
.step {
  position: relative; padding: 28px 24px;
  background: var(--ink-2); border: 1px solid rgba(250, 250, 247, .08); border-radius: var(--radius-lg);
}
.step-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 14px; background: rgba(234, 106, 31, .14); color: var(--accent);
}
.step-icon .icon { width: 26px; height: 26px; }
.step-num { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.step h3 { font-size: 1.4rem; }
.step p:last-child { color: var(--on-dark-muted); margin: 0; font-size: 1rem; }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 53px; right: -12px; width: 8px; height: 8px;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
    transform: rotate(45deg); z-index: 1;
  }
}

/* ---------- 5. O mnie ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about-text > p { color: var(--muted); max-width: 60ch; }
.perks { display: grid; gap: 20px; margin-top: 28px; }
.perks li { display: flex; gap: 16px; align-items: flex-start; }
.perk-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  border-radius: 12px; background: var(--ink); color: var(--accent);
}
.perks h3 { font-size: 1.1rem; margin-bottom: 2px; }
.perks p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* ---------- 6. FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid #D9D7CE; }
.faq details { border-bottom: 1px solid #D9D7CE; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); stroke-width: 2.5; transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { color: var(--ink-2); }
.faq-answer { padding: 0 4px 22px; color: var(--muted); max-width: 66ch; }
.faq-answer p { margin: 0; }

/* ---------- 7. Kontakt ---------- */
.contact { display: grid; gap: 40px; }
.contact-list { display: grid; gap: 16px; margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon {
  width: 44px; height: 44px; padding: 11px; flex: none;
  border-radius: 12px; background: var(--ink); color: var(--accent);
}
.contact-list a { font-weight: 600; font-size: 1.1rem; }

.form {
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.req { color: #B5501A; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #737B8A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(234, 106, 31, .35); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { margin: 6px 0 0; font-size: .88rem; color: var(--error); }
.field-error:empty { display: none; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .92rem; line-height: 1.5; color: var(--muted); margin: 0; }
.field-check label a { color: var(--ink); font-weight: 600; }
.field-check .field-error { grid-column: 2; }

.form .btn { margin-top: 6px; }
.form-hint { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 900px) {
  .contact { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

/* ---------- 8. Stopka ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 44px 0; font-size: .95rem; }
.footer-inner { display: grid; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-name { color: var(--on-dark); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
}

/* ---------- Animacje przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Strona polityki prywatności ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 3vw + 1rem, 2.75rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: #3A4559; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal a { font-weight: 600; }
.draft-note {
  padding: 16px 18px; margin-bottom: 32px;
  background: #FCE6D8; border-left: 4px solid var(--accent); border-radius: 8px;
  color: var(--ink) !important; font-size: .97rem;
}
.back-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { text-decoration: underline; }
