/* ============================================================
   SebBud — Firma ogólnobudowlana | System projektowy
   Archivo + Space Mono | betonowe szarości + akcent ochra
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* — Kolory — */
  --bg:        oklch(0.964 0.006 75);   /* ciepła betonowa biel */
  --bg-2:      oklch(0.928 0.008 75);   /* panel jaśniejszy */
  --bg-3:      oklch(0.895 0.010 75);   /* panel ciemniejszy */
  --ink:       oklch(0.225 0.012 60);   /* ciepła czerń */
  --ink-2:     oklch(0.46 0.015 60);    /* przygaszony tekst */
  --ink-3:     oklch(0.60 0.013 60);    /* podpisy */
  --line:      oklch(0.86 0.011 75);    /* linie / obramowania */
  --line-2:    oklch(0.80 0.012 75);
  --dark:      oklch(0.205 0.012 60);   /* ciemne sekcje */
  --dark-2:    oklch(0.265 0.012 60);
  --on-dark:   oklch(0.93 0.006 75);
  --on-dark-2: oklch(0.70 0.010 70);
  --accent:        oklch(0.635 0.142 52);  /* przypalona ochra / terakota */
  --accent-deep:   oklch(0.555 0.135 48);
  --accent-soft:   oklch(0.90 0.045 65);

  /* — Typografia — */
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  /* — Skala / odstępy — */
  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 80px);
  --sec: clamp(64px, 9vw, 140px);
  --radius: 3px;
  --radius-lg: 6px;

  --shadow: 0 1px 2px oklch(0.2 0.01 60 / 0.05), 0 8px 30px oklch(0.2 0.01 60 / 0.07);
  --shadow-lg: 0 2px 4px oklch(0.2 0.01 60 / 0.06), 0 24px 60px oklch(0.2 0.01 60 / 0.13);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section-sm { padding-block: clamp(44px, 6vw, 80px); }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.display {
  font-size: clamp(40px, 6.6vw, 88px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(34px, 4.6vw, 60px); }
.h2 { font-size: clamp(28px, 3.6vw, 46px); }
.h3 { font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -0.015em; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.body-lg { font-size: 18px; color: var(--ink-2); }
p { color: var(--ink-2); text-wrap: pretty; }
strong { color: var(--ink); font-weight: 700; }

/* etykieta techniczna */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--accent); }
.eyebrow.plain::before { display: none; }

.accent-text { color: var(--accent-deep); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--radius);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-ghost.on-dark { border-color: oklch(0.5 0.01 60); color: var(--on-dark); }
.btn-ghost.on-dark:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn .arr { font-size: 17px; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* link tekstowy ze strzałką */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: gap .2s ease, color .2s ease;
}
.tlink:hover { gap: 14px; color: var(--accent-deep); }

/* ---------- Placeholder zdjęcia ---------- */
.ph {
  position: relative;
  background-color: var(--bg-3);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 13px,
    oklch(0.82 0.012 75) 13px, oklch(0.82 0.012 75) 14px
  );
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 7px 13px;
  border-radius: 2px;
  text-align: center;
  max-width: 80%;
}
.ph.dark {
  background-color: var(--dark-2);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0, transparent 13px,
    oklch(0.32 0.012 60) 13px, oklch(0.32 0.012 60) 14px);
  border-color: oklch(0.35 0.01 60);
}
.ph.dark::after { background: var(--dark); color: var(--on-dark-2); border-color: oklch(0.4 0.01 60); }

/* ---------- Karty ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .num {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--accent-deep); letter-spacing: 0.1em;
}

/* ---------- Sekcje nagłówków ---------- */
.sec-head { max-width: 720px; }
.sec-head .h2 { margin-top: 18px; }
.sec-head p { margin-top: 18px; }

/* ---------- Grid pomocnicze ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(0.964 0.006 75 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand .mark { flex: none; }
.brand b { color: var(--accent-deep); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  margin-top: 5px; border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav-phone span { color: var(--accent-deep); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: .25s;
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* mobilne menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 76px 0 0 0; z-index: 99;
  background: var(--bg);
  padding: 24px var(--gut) 48px;
  flex-direction: column;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-size: 22px; font-weight: 700; padding: 16px 0;
  border-bottom: 1px solid var(--line); color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu a .arr { color: var(--accent); }
.mobile-menu .btn { margin-top: 28px; justify-content: center; }
.mobile-menu .m-phone { margin-top: 22px; font-family: var(--mono); font-weight: 700; font-size: 18px; }

/* ---------- HERO bazowy ---------- */
.hero { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* lista atutów */
.ticks { display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a04f1c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
  background-size: 15px; background-repeat: no-repeat; background-position: center;
}

/* statystyki */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats .stat { background: var(--bg); padding: 30px 26px; }
.stat .k { font-size: clamp(34px, 4vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stat .k em { font-style: normal; color: var(--accent-deep); }
.stat .l { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 12px; }

/* pasek logo / zaufanie */
.logos { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.logos .lg { font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; color: var(--ink-3); text-transform: uppercase; }

/* sekcje ciemne */
.dark-sec { background: var(--dark); color: var(--on-dark); }
.dark-sec h1, .dark-sec h2, .dark-sec h3 { color: var(--on-dark); }
.dark-sec p { color: var(--on-dark-2); }
.dark-sec .lede { color: var(--on-dark-2); }

/* numerowany proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 32px 28px 36px; border-top: 2px solid var(--line); position: relative; }
.dark-sec .step { border-top-color: oklch(0.4 0.01 60); }
.step .sn { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 18px 0 12px; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: oklch(0.97 0.03 65); }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-block: clamp(56px, 7vw, 90px) 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand { color: var(--on-dark); font-size: 24px; }
.site-footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 700; margin-bottom: 20px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-links a { color: var(--on-dark); font-size: 15px; font-weight: 500; opacity: 0.82; transition: opacity .15s, color .15s; }
.foot-links a:hover { opacity: 1; color: var(--accent); }
.foot-contact { font-size: 15px; line-height: 1.9; }
.foot-contact a:hover { color: var(--accent); }
.foot-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid oklch(0.35 0.01 60); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; font-family: var(--mono); letter-spacing: 0.03em; }

/* ---------- Page hero (podstrony) ---------- */
.page-hero { background: var(--dark); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px); position: relative; }
.crumbs { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--on-dark-2); display: flex; gap: 10px; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: oklch(0.45 0.01 60); }
.page-hero .display, .page-hero .h1 { color: var(--on-dark); margin-top: 26px; }
.page-hero p { color: var(--on-dark-2); margin-top: 22px; max-width: 640px; }

/* feature row (naprzemienne) */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feat.flip .feat-media { order: -1; }

/* lista z numerami */
.numlist { display: flex; flex-direction: column; gap: 4px; }
.numlist li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.numlist li:last-child { border-bottom: 1px solid var(--line); }
.numlist .n { font-family: var(--mono); font-weight: 700; color: var(--accent-deep); font-size: 15px; flex: none; width: 44px; padding-top: 3px; }
.numlist h3 { font-size: 21px; margin-bottom: 8px; }

/* galeria */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal .ph { cursor: pointer; }

/* opinie */
.quote { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 22px; height: 100%; }
.quote .stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; }
.quote blockquote { font-size: 19px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--ink-2); font-size: 15px; }
.quote .who .nm { font-weight: 700; font-size: 15px; color: var(--ink); }
.quote .who .rl { font-size: 13px; color: var(--ink-3); }

/* formularz */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 120px; }

/* mini info kafelki kontakt */
.info-tiles { display: flex; flex-direction: column; gap: 4px; }
.info-tiles .it { padding: 22px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-start; }
.info-tiles .it:last-child { border-bottom: 1px solid var(--line); }
.info-tiles .it .ic { width: 42px; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--radius); display: grid; place-items: center; flex: none; color: var(--accent-deep); }
.info-tiles .it .lab { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.info-tiles .it .val { font-weight: 700; font-size: 17px; color: var(--ink); margin-top: 3px; }

/* badge / chip */
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }

/* divider label */
.section-tag { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* przełącznik wariantów (tylko warianty strony głównej) */
.vswitch {
  position: fixed; left: 18px; bottom: 18px; z-index: 200;
  display: flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--on-dark);
  border-radius: 999px; padding: 7px 8px 7px 16px;
  box-shadow: var(--shadow-lg);
}
.vswitch .vlab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-2); margin-right: 4px; }
.vswitch a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: 14px; color: var(--on-dark-2); transition: background .15s, color .15s; }
.vswitch a:hover { color: #fff; }
.vswitch a.on { background: var(--accent); color: #fff; }
@media (max-width: 620px) { .vswitch .vlab { display: none; } .vswitch { left: 12px; bottom: 12px; padding: 6px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; }
  .feat.flip .feat-media { order: 0; }
  .g-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .gal { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .gal { grid-template-columns: 1fr 1fr; }
}
