/* ============================================================
   Fabryka testów biznesowych — wspólny arkusz stron testowych.
   Mobile-first, bez frameworków, bez zewnętrznych fontów i skryptów.
   Kolory akcentu changing: nadpisz --akcent przez class na <body>.
   ============================================================ */

:root {
  --akcent: #d97706;
  --akcent-ciemny: #92400e;
  --granat: #0f172a;
  --tekst: #1e2633;
  --szary: #5b6472;
  --tlo: #ffffff;
  --pasek: #f3f5f8;
  --linia: #e2e8f0;
  --ok: #15803d;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tekst);
  background: var(--tlo);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

a { color: var(--akcent-ciemny); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--akcent);
  outline-offset: 2px;
}

/* ---------- typografia ---------- */

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--szary); }
.centruj { text-align: center; }
.drobny { font-size: .86rem; color: var(--szary); }

@media (min-width: 720px) {
  body { font-size: 18px; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }
}

/* ---------- nagłówek ---------- */

.gorne {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--granat);
  color: #fff;
}
.gorne .in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.marka { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.marka span { color: var(--akcent); }
.gorne nav { display: flex; gap: 4px; flex-wrap: wrap; }
.gorne nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 8px;
}
.gorne nav a:hover { color: #fff; background: #1e293b; }

/* ---------- hero ---------- */

.hero {
  background: var(--granat);
  color: #fff;
  padding: 44px 0 52px;
}
.hero .lead { color: #cbd5e1; }
.hero .etykieta {
  display: inline-block;
  background: rgba(217, 119, 6, .16);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, .5);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 16px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- przyciski ---------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-glowny { background: var(--akcent); color: #fff; }
.btn-glowny:hover { background: var(--akcent-ciemny); }
.btn-drugi { background: #1e293b; color: #fff; border: 1px solid #334155; }
.btn-drugi:hover { background: #334155; }
.btn-lazienki, .btn-kreska { background: var(--akcent); color: #fff; }

/* ---------- sekcje ---------- */

.sekca { padding: 52px 0; }
.sekca.alt { background: var(--pasek); }
.sekmała { padding: 30px 0; }

@media (min-width: 720px) { .sekca { padding: 72px 0; } .sekmała { padding: 40px 0; } }

/* ---------- siatki i karty ---------- */

.siatka { display: grid; gap: 18px; }
.k2 { grid-template-columns: 1fr; }
.k3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .k2 { grid-template-columns: 1fr 1fr; }
  .k3 { grid-template-columns: repeat(3, 1fr); }
}

.karta {
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: 16px;
  padding: 24px;
}
.karta h3 { margin-top: 0; }
.karta .ikona { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }

/* kroki 1-2-3 */
.krok .numer {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--akcent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* ---------- cennik ---------- */

.pakiet { position: relative; }
.pakiet .nazwa { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--szary); font-size: .9rem; }
.pakiet .cena { font-size: 2.4rem; font-weight: 900; line-height: 1.1; margin: 4px 0 2px; }
.pakiet .cena small { font-size: 1rem; font-weight: 600; color: var(--szary); }
.pakiet ul { list-style: none; margin: 14px 0 20px; padding: 0; }
.pakiet li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--linia); }
.pakiet li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--ok);
  font-weight: 800;
}
.pakiet.wyrozniony { border: 2px solid var(--akcent); }
.pakiet .polecany {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--akcent);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: .04em;
}

/* ---------- dema / galeria ---------- */

.zdjecie {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: .85rem;
  text-align: center;
  padding: 10px;
}
/* zdjęcie przykładowe z podpisem (prawdziwy plik .webp, patrz LICENCJE.md) */
figure.foto { margin: 0; }
figure.foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #e2e8f0;
}
figure.foto figcaption {
  font-size: .82rem;
  color: var(--szary);
  padding: 8px 4px 0;
  line-height: 1.35;
}
.zdj-info { font-size: .78rem; color: var(--szary); margin: -6px 0 10px; }
.demo-karta img, .demo-karta .podglad {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: block;
}
.demo-karta .podglad {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  object-fit: cover;
}
.demo-karta { overflow: hidden; padding: 0; }
.demo-karta .opis { padding: 20px 22px 22px; }

/* ---------- kalkulator wyceny (demo pakietu Plus) ---------- */

.kalulator {
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: 16px;
  padding: 24px;
  margin-top: 10px;
}
.kalulator label { display: block; margin-bottom: 10px; }
.kalulator input[type="range"] { width: 100%; accent-color: var(--akcent); height: 30px; }
.kal-cena { font-size: 1.25rem; margin: 18px 0 14px; }
.kal-cena strong { font-size: 1.7rem; color: var(--akcent); }
.pakiet-tag {
  display: inline-block;
  vertical-align: middle;
  background: var(--pasek);
  color: var(--akcent-ciemny);
  border: 1px solid var(--linia);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
}

/* ---------- gwarancja ---------- */

.gwarancja { background: var(--ok); color: #fff; }
.gwarancja h2 { color: #fff; }
.gwarancja p { margin-bottom: 0; }

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

details.faq {
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 46px 16px 18px;
  list-style: none;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--akcent);
}
details.faq[open] summary::after { content: "–"; }
details.faq .odp { padding: 0 18px 16px; color: var(--tekst); }

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

.formularz { max-width: 620px; margin: 0 auto; }
.pole { margin-bottom: 16px; }
.pole label { display: block; font-weight: 700; margin-bottom: 5px; font-size: .95rem; }
.pole input[type="text"], .pole input[type="tel"], .pole input[type="email"], .pole select, .pole textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  border: 1px solid #c7d0dc;
  border-radius: 10px;
  background: #fff;
  color: var(--tekst);
}
.pole textarea { min-height: 96px; resize: vertical; }
.pole .wpis-blad { border-color: #dc2626; }
.blad-lista { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }
.blad-lista ul { margin: 0; padding-left: 20px; }
.pole-pulapka { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.zgoda { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.zgoda input { margin-top: 5px; width: 18px; height: 18px; flex: none; }

/* ---------- opinie ---------- */

.opinia { font-style: italic; }
.opinia .kto { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--szary); }
.gwiazdki { color: var(--akcent); letter-spacing: 2px; }

/* ---------- lista usług (dema) ---------- */

.uslugi { list-style: none; margin: 0; padding: 0; }
.uslugi li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--linia); position: relative; }
.uslugi li::before { content: "▸"; position: absolute; left: 6px; color: var(--akcent); }

.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--linia); }
.tabela th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--szary); }

/* ---------- akcenty branżowe dem ---------- */

body.lazienki { --akcent: #0e7490; --akcent-ciemny: #155e75; }
body.malarz { --akcent: #4f46e5; --akcent-ciemny: #4338ca; }
body.elektryk { --akcent: #b45309; --akcent-ciemny: #92400e; }

/* ---------- demo banner ---------- */

.demo-flag {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #78350f;
  text-align: center;
  font-size: .88rem;
  padding: 8px 16px;
}
.demo-flag a { color: #92400e; font-weight: 700; }

/* ---------- stopka ---------- */

.stopka {
  background: var(--granat);
  color: #94a3b8;
  padding: 36px 0;
  font-size: .92rem;
}
.stopka a { color: #cbd5e1; }
.stopka .in { display: grid; gap: 18px; }
@media (min-width: 720px) { .stopka .in { grid-template-columns: 2fr 1fr; align-items: start; } }
.stopka strong { color: #fff; }

/* ---------- różne ---------- */

.ukryj { position: absolute !important; left: -9999px !important; }
.badz { display: inline-block; background: var(--pasek); border: 1px solid var(--linia); border-radius: 999px; padding: 4px 14px; font-size: .85rem; margin: 3px 4px 3px 0; }
hr.linia { border: 0; border-top: 1px solid var(--linia); margin: 28px 0; }
