/* InvoicElektryk – strona (krok 12.5f). Kierunek K3 „Przewody”: brąz = robocizna, niebieski = materiał,
   żółto-zielony pasek PE = dyktowanie. Kolory jak w src/theme/tokens.ts. */

:root {
  --bg: #eeefeb;
  --surface: #ffffff;
  --surface-alt: #e6e7e2;
  --text: #1e1a17;
  --muted: #5a524b;
  --line: #d9dad4;
  --primary: #1e1a17;
  --on-primary: #ffffff;
  --accent: #f2c80f;
  --earth: #2e9e4f;
  --labor: #7a4426;
  --material: #1d5bb5;
  --review-bg: #fff0b8;
  --dark: #241e1a;
  --dark-surface: #322a25;
  --dark-text: #f5efe9;
  --dark-muted: #cdbfb2;
  --radius: 22px;
  --wrap: 1120px;
  --pe: repeating-linear-gradient(-45deg, var(--earth) 0 10px, var(--accent) 10px 20px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241e1a;
    --surface: #322a25;
    --surface-alt: #433932;
    --text: #f5efe9;
    --muted: #cdbfb2;
    --line: #4e443c;
    --primary: #f5efe9;
    --on-primary: #241e1a;
    --labor: #e2a57d;
    --material: #8db6f7;
    --review-bg: rgba(242, 200, 15, 0.16);
    --dark: #1a1512;
    --dark-surface: #322a25;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  font-stretch: 112%;
}

p {
  margin: 0 0 1em;
}

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

/* ── nagłówek ── */
.site-header {
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
}

/* ── przyciski ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
}

.btn small {
  font-weight: 500;
  opacity: 0.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── hero ── */
.hero {
  padding: 40px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 18px;
}

.kicker::before {
  content: '';
  width: 34px;
  height: 12px;
  border-radius: 6px;
  background: var(--pe);
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero .note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ── makieta telefonu ── */
.phone {
  justify-self: center;
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 44px;
  background: var(--dark);
  box-shadow: 0 30px 60px rgba(20, 16, 13, 0.25);
}

.screen {
  border-radius: 32px;
  background: #241e1a;
  color: #f5efe9;
  padding: 22px 16px 16px;
  font-size: 15px;
  --labor: #e2a57d;
  --material: #8db6f7;
}

.screen .title {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 19px;
}

.screen .sub {
  color: #cdbfb2;
  font-size: 13px;
  margin-bottom: 14px;
}

.heard {
  background: #322a25;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.heard b {
  display: block;
  font-size: 12px;
  color: #cdbfb2;
  font-weight: 600;
  margin-bottom: 2px;
}

.rows {
  background: #322a25;
  border-radius: 18px;
  overflow: hidden;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #4e443c;
}

.row:first-child {
  border-top: 0;
}

.row.flash {
  background: #3d3a24;
}

.row .name {
  font-weight: 700;
  line-height: 1.25;
}

.row .price {
  font-size: 12px;
  color: #cdbfb2;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dot.labor {
  background: var(--labor);
}

.dot.material {
  background: var(--material);
}

.qty {
  min-width: 52px;
  text-align: center;
  font-weight: 800;
  background: #433932;
  border-radius: 999px;
  padding: 6px 10px;
}

.summary {
  margin-top: 12px;
  background: #322a25;
  border-radius: 22px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary .sum {
  flex: 1;
}

.summary .net {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 22px;
}

.split {
  display: flex;
  gap: 2px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.split span:first-child {
  background: var(--labor);
  flex: 62;
}

.split span:last-child {
  background: var(--material);
  flex: 38;
}

.mic {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--pe);
  display: grid;
  place-items: center;
}

.mic span {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f5efe9;
  display: grid;
  place-items: center;
}

.mic svg {
  width: 22px;
  height: 22px;
  fill: #241e1a;
}

/* ── sekcje ── */
section {
  padding: 72px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section-dark .muted {
  color: var(--dark-muted);
}

.steps,
.features {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 880px) {
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.section-dark .card {
  background: var(--dark-surface);
}

.card p:last-child {
  margin-bottom: 0;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #1e1a17;
  font-weight: 800;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tag.voice {
  background: var(--accent);
  color: #1e1a17;
}

.tag.labor {
  background: var(--labor);
  color: #fff;
}

.tag.material {
  background: var(--material);
  color: #fff;
}

.tag.plain {
  background: var(--surface-alt);
}

.quote {
  font-size: 1.15rem;
  font-style: italic;
}

/* ── cena ── */
.price-card {
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
  padding: 36px 28px;
}

.price-card .big {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  font-stretch: 125%;
}

.price-card ul {
  text-align: left;
  padding: 0;
  list-style: none;
  margin: 20px 0 24px;
}

.price-card li {
  padding: 8px 0 8px 34px;
  position: relative;
  border-top: 1px solid var(--line);
}

.price-card li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 16px;
  height: 8px;
  border-radius: 4px;
  background: var(--pe);
}

/* ── FAQ ── */
.faq {
  max-width: 820px;
  margin: 32px auto 0;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border-radius: 18px;
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 56px;
  display: flex;
  align-items: center;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  margin-left: auto;
  padding-left: 16px;
  font-size: 1.5rem;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: '–';
}

.center {
  text-align: center;
}

.center .lead {
  margin: 0 auto 1em;
}

/* ── podstrony (regulamin itd.) ── */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.doc h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
}

.draft {
  background: var(--review-bg);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-weight: 600;
}

.doc ol,
.doc ul {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

/* ── stopka ── */
.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--dark-text);
}

.pe-bar {
  height: 8px;
  background: var(--pe);
}
