/* Strona główna (/home.html) — bezpieczny podgląd pod osobnym adresem: NIE
   zastępuje "/" (index.html, chroniony edytor 3D D1) i nie jest z niczego
   linkowana poza tym plikiem. Kierunek wizualny: białe tło, dużo światła i
   przestrzeni, jeden spójny pomarańczowy akcent marki (--accent, zgodny z
   client-auth.css/login.html — do niego prowadzą CTA "Zaloguj się"/"Zleć
   projekt"), delikatne zaokrąglone karty z subtelnym obramowaniem, bez
   ciemnych/ciężkich teł. */
:root {
  color-scheme: light;
  --ink: #1a201c;
  --muted: #636d67;
  --line: #e8ebe6;
  --accent: #d15235;
  --accent-dark: #b23f26;
  --accent-soft: #fdece5;
  --panel: #fafbfa;
}

* { box-sizing: border-box; }

body.home-body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 5vw; }

/* ---------- Nagłówek: cienki, logo | menu wyśrodkowane | CTA ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 5vw;
  background: #fffffff5;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-logo { display: block; justify-self: start; }
.site-logo img { display: block; width: 118px; height: auto; }
.site-nav { display: flex; gap: 30px; justify-self: center; }
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 1px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); border-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); border-color: var(--accent-dark); }
.site-actions { display: flex; align-items: center; justify-self: end; gap: 16px; }
.link-login {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.link-login:hover { color: var(--accent); }

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a352e; transform: translateY(-1px); }

/* ---------- Ikony (proste, liniowe SVG — bez zewnętrznych bibliotek) ---------- */
.icon-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-mark svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  gap: 56px;
  padding: 76px 5vw 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero p.lead {
  margin: 0 0 30px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); max-width: 44ch; line-height: 1.5; }
.hero-visual {
  margin: 0;
  padding: 22px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ---------- Pasek 4 korzyści ---------- */
.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.perks-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 5vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.perk { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }

/* ---------- Sekcja ogólna ---------- */
section.block { padding: 72px 5vw; }
section.block.alt { background: var(--panel); }
.block-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.block-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.block-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
.block-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Pełna kontrola nad projektem (3 karty) ---------- */
.control-cards {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.control-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.control-card:hover { box-shadow: 0 18px 40px #1a201c0f; transform: translateY(-2px); border-color: #e6d3cb; }
.control-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--panel); border-radius: 14px; margin: 0 0 18px; }
.control-card h3 { margin: 0 0 8px; font-size: 16px; }
.control-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.compare-pair img { aspect-ratio: 1/1; margin: 0; }

/* ---------- Dlaczego warto (3 małe karty) ---------- */
.why-cards {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.why-card .icon-mark { margin-bottom: 16px; }
.why-card h3 { margin: 0 0 6px; font-size: 15.5px; }
.why-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- CTA końcowe: szeroki, jasnopomarańczowy pasek ---------- */
.final-cta { background: var(--accent); color: #fff; }
.final-cta-inner { max-width: 640px; margin: 0 auto; padding: 64px 5vw; text-align: center; }
.final-cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 32px); }
.final-cta p { margin: 0 0 26px; color: #fff0ea; font-size: 15.5px; }

/* ---------- Kontakt ---------- */
.contact-box {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  text-align: center;
}
.contact-box p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Stopka ---------- */
.site-footer { padding: 32px 5vw 44px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-logo img { width: 104px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { width: 100%; margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

.process-steps { max-width: 1160px; margin: 0 auto; padding: 0; list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-steps li { counter-increment: steps; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.process-steps li::before { content: "0" counter(steps); color: var(--accent-dark); font-weight: 700; font-size: 24px; }
.process-steps h3 { font-size: 17px; margin: 16px 0 10px; }
.process-steps p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
section[id] { scroll-margin-top: 125px; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; }
  .control-cards { grid-template-columns: 1fr 1fr; }
  .why-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-nav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-self: start; gap: 24px; flex-wrap: wrap; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .perks-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-actions { gap: 10px; }
  .link-login { font-size: 12px; }
  .site-logo img { width: 90px; }
  .site-actions .btn { padding: 10px 12px; font-size: 12px; }
  .process-steps { grid-template-columns: 1fr; }
  section.block { padding: 52px 6vw; }
  .hero { padding: 40px 6vw 44px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
  .control-cards { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
  .perks-inner { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .perk { font-size: 13px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
