/* =========================================================
   Pixel Perfect — wspólne style podglądów (koncept A i B)
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-elev: #0d0d12;
  --card: rgba(255, 255, 255, 0.035);
  --glass: rgba(12, 12, 17, 0.74);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --muted: #a3a3b2;
  --dim: #737384;
  --blue: #4f7bff;
  --green: #2ef0a0;
  --red: #ff4a3d;
  --radius: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
}

/* ---------- Baza ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: #fff; color: #07070a; font-weight: 600;
}
.skip:focus { top: 16px; }

main { position: relative; z-index: 1; }

/* ---------- Typografia ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.h1, .h2, .h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
.h1 { font-size: clamp(46px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.045em; }
.h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.04em; }
.h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; }

.lead {
  font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6;
  color: var(--muted); max-width: 46ch; text-wrap: pretty;
}

/* ---------- Znak marki: trzy subpiksele ---------- */

.mark { width: 24px; height: 24px; flex: none; }
.mark .b { fill: var(--blue); }
.mark .g { fill: var(--green); }
.mark .r { fill: var(--red); }

/* ---------- Przyciski ---------- */

.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

/* Biały przycisk; na hover rozszczepia się na subpiksele (B / R) */
.btn-primary { background: #fff; color: #07070a; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: -3px -2px 0 0 var(--blue), 3px 2px 0 0 var(--red); }

.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }

.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn .short { display: none; }

/* ---------- Nawigacja ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(7, 7, 10, 0.62);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em;
}

.nav-links { display: flex; gap: 34px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-family: var(--font-mono); font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-phone:hover { color: var(--text); }
.nav-call {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); place-items: center;
}
.nav-call svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .nav-call { display: grid; }
  .nav-right { gap: 10px; }
}
@media (max-width: 420px) {
  .btn .long { display: none; }
  .btn .short { display: inline; }
}

/* ---------- Sekcje ---------- */

.section { position: relative; padding: clamp(96px, 13vw, 168px) 0; }
.section-head { display: grid; gap: 22px; justify-items: start; max-width: 820px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Usługi (wspólne elementy opisu) ---------- */

.svc-copy { display: grid; gap: 24px; justify-items: start; }
.svc-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, var(--text));
}
.svc-label .sq { width: 10px; height: 10px; background: var(--c, var(--text)); box-shadow: 0 0 18px var(--c, transparent); }

.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; width: 100%; }
.svc-list li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.45; color: #d7d7e0; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--c, var(--text)); }

.svc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.svc-groups li { padding: 15px 17px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.svc-groups b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.svc-groups span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }

.svc-mini { display: none; font-size: 14px; line-height: 1.5; color: #d7d7e0; }

.svc-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  width: 100%; margin-top: 6px; padding-top: 24px; border-top: 1px solid var(--line);
}
.price { display: grid; gap: 2px; }
.price small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.price strong { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }

@media (max-width: 600px) {
  .svc-list, .svc-groups { grid-template-columns: 1fr; }
}

/* ---------- Dlaczego ja ---------- */

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-card { padding: 28px 26px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.why-card h3 { margin: 22px 0 10px; }
.why-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.why-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ico, var(--text));
}
.why-ico svg { width: 21px; height: 21px; }

@media (max-width: 1080px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Jak pracuję ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 26px 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }
.step-num::before { content: ""; width: 7px; height: 7px; background: var(--text); }
.step h3 { margin: 18px 0 8px; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Kontakt i formularz ---------- */

.cta-phone { display: grid; gap: 4px; }
.cta-phone small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.cta-phone a { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; transition: color 0.2s; }
.cta-phone a:hover { color: var(--green); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 24px; justify-items: start; }
.contact-side .cta-phone { margin-top: 12px; }

.form {
  display: grid; gap: 18px;
  padding: clamp(20px, 3vw, 36px); border-radius: 26px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-size: 13.5px; color: var(--muted); padding: 0; }
.field > legend { margin-bottom: 8px; }
.opt { color: var(--dim); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  outline: none; transition: border-color 0.2s, background-color 0.2s;
}
.input::placeholder { color: #5f5f6f; }
.input:focus { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }
textarea.input { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select.input option { background: #14141a; color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14.5px; cursor: pointer; user-select: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.chip span::before { content: ""; width: 8px; height: 8px; background: var(--c, var(--text)); opacity: 0.45; transition: opacity 0.2s; }
.chip input:checked + span { background: rgba(255, 255, 255, 0.08); border-color: var(--c, var(--text)); }
.chip input:checked + span::before { opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--dim); max-width: 34ch; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-status {
  padding: 14px 16px; border-radius: 12px; font-size: 14.5px;
  background: rgba(46, 240, 160, 0.08); border: 1px solid rgba(46, 240, 160, 0.3); color: #c9fbe6;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Stopka ---------- */

.footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 14px; color: var(--dim); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-tag { color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--text); border-color: var(--line-strong); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Wejścia przy przewijaniu ---------- */

.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
