/* =========================================================
   SiteCode — design tokens
   REVISION: przejście na paletę czarno-białą (monochromatyczną).
   Usunięto granat/pomarańcz — całość oparta o czerń, biel i skalę szarości.
   ========================================================= */
:root {
  /* Paleta rewizja 2 (01.09.2026, na życzenie Janka): "za zimna/sterylna" →
     ciepła kość słoniowa + głęboka, ciepła czerń (espresso, nie węglowa) zamiast
     czystych #fff/#000. Szarości też przesunięte w stronę ciepłych (lekko żółty/
     brązowy podton zamiast neutralnego szarego), żeby cała skala była spójna. */
  --black: #17130f;
  --black-soft: #211b15;
  --white: #faf6ef;
  --gray-900: #241f19;
  --gray-700: #4a4038;
  --gray-500: #6e6257;
  --gray-400: #8f8175;
  --gray-300: #b3a697;
  --gray-200: #e4dccb;
  --gray-100: #f3eee3;
  --border: #e2d9c8;

  --text: #211b15;
  --text-muted: #6e6257;
  --bg-alt: #f3eee3;

  /* Jeden dopuszczony akcent koloru (na życzenie Janka: "ciepły bursztyn/złoto",
     nawiązanie do energii/słońca — pasuje do niszy PV). Używany celowo, tylko
     w kilku miejscach o wysokiej wadze konwersyjnej — nie jako nowy kolor bazowy. */
  --amber: #c89b3c;
  --amber-light: #e3c878;
  --amber-dark: #8c6a21;

  /* Drugi akcent (02.09.2026, na życzenie Janka: "ożywić" hero na mobile) —
     elektryczny turkus, kojarzy się z sygnałem/danymi/automatyzacją. Na razie
     używany tylko w animacji grafu n8n w hero jako kontrapunkt do ciepłego
     bursztynu (zimny vs ciepły = więcej życia na pierwszym ekranie). Reszta
     strony zostaje bez zmian — zakres tej rundy to wyłącznie hero. */
  --signal: #34c9c7;
  --signal-light: #7fe3e0;
  --signal-dark: #1f8f8d;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================
   Reset
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Zdjęcia stockowe w naturalnych kolorach — reszta UI (przyciski, tła, tekst) zostaje czarno-biała */
img.photo {
  filter: none;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

em { font-style: italic; color: var(--black); border-bottom: 3px solid var(--amber); padding-bottom: 2px; }

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

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

/* =========================================================
   Buttons — czarno-białe, z delikatnym powiększeniem na hover
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.btn--primary:hover { background: var(--black); transform: translateY(-2px) scale(1.035); box-shadow: 0 14px 30px rgba(200, 155, 60, 0.28); }
.btn--primary:active { transform: translateY(0) scale(1); }

/* Delikatny "błysk" przesuwający się po przycisku na hover — premium micro-interaction */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(250, 246, 239, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 650ms var(--ease);
  pointer-events: none;
}
.btn--primary:hover::before { left: 130%; }

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}
.btn--outline:hover { border-color: var(--black); background: var(--black); color: var(--white); transform: translateY(-2px) scale(1.035); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(250, 246, 239, 0.45);
}
.btn--outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); transform: translateY(-2px) scale(1.035); }

.btn--lg { padding: 17px 34px; font-size: 16.5px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* =========================================================
   Top urgency bar
   ========================================================= */
.topbar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 13.5px;
  padding: 9px 16px;
}
.topbar strong { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 300ms var(--ease);
}
/* Delikatny cień po przewinięciu — sygnalizuje "uniesienie" nagłówka nad treścią (premium feel) */
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--black);
  letter-spacing: -0.02em;
}
.logo span { color: var(--gray-500); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--black);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav__link:hover { color: var(--gray-500); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--black);
  transition: color 200ms var(--ease);
}
.header__phone:hover { color: var(--gray-500); }
.header__phone svg { width: 17px; height: 17px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero — zdjęcie tła (Unsplash, czarno-białe) + ciemna nakładka
   ========================================================= */
.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
  padding: 108px 0 100px;
}
.hero__photo {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0.34;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 19, 15, 0.55) 0%, rgba(23, 19, 15, 0.88) 65%, var(--black) 100%),
    radial-gradient(60% 55% at 50% 0%, rgba(250, 246, 239, 0.08), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 28px;
}
.badge svg { width: 16px; height: 16px; }
.badge--light { background: rgba(250, 246, 239, 0.1); color: var(--white); border: 1px solid rgba(250, 246, 239, 0.35); }

/* Wolniejsze, bardziej eleganckie pojawienie się nagłówka hero (osobna animacja niż standardowy scroll-reveal) */
.hero__title {
  font-size: clamp(34px, 5.4vw, 56px);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeIn 1100ms var(--ease) 150ms forwards;
}
.hero__title em { color: var(--white); border-bottom-color: rgba(250, 246, 239, 0.55); }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Kaskadowe opóźnienia dla kolejnych elementów hero — spójna, subtelna sekwencja wejścia */
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 200ms; }
.reveal-d3 { transition-delay: 320ms; }
.reveal-d4 { transition-delay: 440ms; }

.hero__subtitle {
  font-size: 18px;
  color: rgba(250, 246, 239, 0.78);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.hero__trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(250, 246, 239, 0.72);
  font-size: 14px;
  font-weight: 600;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--white); flex-shrink: 0; }

/* =========================================================
   Problem section — zdjęcie + tekst
   ========================================================= */
.problem {
  background: var(--black-soft);
  padding: 96px 0;
}
.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.problem__media img { width: 100%; height: 100%; object-fit: cover; }
/* Ciemna nakładka usunięta — karta .problem__stat ma już własne tło zapewniające czytelność tekstu,
   a zdjęcie ma teraz pokazywać pełny kolor. */
.problem__stat {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  z-index: 1;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(250, 246, 239, 0.16);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.problem__number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 52px;
  color: var(--white);
  line-height: 1;
}
.problem__percent {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
}
.problem__stat p {
  color: rgba(250, 246, 239, 0.75);
  font-size: 14px;
  margin-top: 8px;
}
.problem__text h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 18px;
}
.problem__text p {
  color: rgba(250, 246, 239, 0.68);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 28px;
}

/* =========================================================
   Generic section
   ========================================================= */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--black-soft); }

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gray-300); }
.section__head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section__lead { margin-top: 14px; color: var(--text-muted); font-size: 17px; }
.section__note {
  text-align: center;
  margin-top: 44px;
  color: var(--text-muted);
  font-size: 15px;
}
.section__note a { color: var(--black); font-weight: 700; text-decoration: underline; }

.section__cta { text-align: center; margin-top: 48px; }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Baner zdjęciowy nad siatką usług (kod / projektowanie stron) */
.section__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.section__banner img { width: 100%; height: 100%; object-fit: cover; }
/* Ciemna nakładka usunięta — baner nie ma tekstu na sobie, więc zdjęcie może pokazać pełny kolor. */

/* =========================================================
   Service cards
   ========================================================= */
.card--service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.card--service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

.card--service h3 { font-size: 19px; margin-bottom: 10px; }
.card--service p { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--black);
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
.card__link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.card__link:hover { color: var(--gray-500); }
.card__link:hover svg { transform: translateX(3px); }

/* =========================================================
   Pricing cards
   ========================================================= */
.grid--pricing { align-items: stretch; }

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.price-card--featured {
  background: var(--black);
  border-color: var(--amber);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(200, 155, 60, 0.4);
  transform: scale(1.03);
}
.price-card--featured:hover { transform: scale(1.03) translateY(-6px); }

.price-card__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--amber-light);
}

.price-card__name {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.price-card--featured .price-card__name { color: var(--gray-300); }

.price-card__desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  min-height: 42px;
}
.price-card--featured .price-card__desc { color: rgba(250, 246, 239, 0.7); }

.price-card__price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  color: var(--black);
  margin-bottom: 4px;
}
.price-card--featured .price-card__price { color: var(--white); }
.price-card__price span { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.price-card--featured .price-card__price span { color: rgba(250, 246, 239, 0.6); }

.price-card__install {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.price-card--featured .price-card__install { color: rgba(250, 246, 239, 0.55); }

.price-card__features {
  flex: 1;
  margin-bottom: 28px;
}
.price-card__features li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 13px;
  line-height: 1.45;
}
.price-card--featured .price-card__features li { color: rgba(250, 246, 239, 0.88); }
.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.price-card--featured .price-card__features li::before {
  background-color: rgba(250, 246, 239, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* =========================================================
   About
   ========================================================= */
.about { background: var(--black-soft); padding: 100px 0; overflow: hidden; }
.about__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #2c2c2c, #0a0a0a);
  border: 1px solid rgba(250, 246, 239, 0.08);
}
.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-width: 190px;
}
.about__badge strong { font-family: var(--font-head); font-size: 26px; font-weight: 800; line-height: 1; }
.about__badge span { font-size: 13px; font-weight: 600; margin-top: 6px; color: var(--text-muted); }

.about__text h2 { color: var(--white); font-size: clamp(24px, 3.2vw, 32px); margin: 14px 0 20px; }
.about__text p { color: rgba(250, 246, 239, 0.68); font-size: 16px; margin-bottom: 14px; max-width: 560px; }
.about__text blockquote {
  margin: 24px 0 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  font-size: 17px;
  background: rgba(250, 246, 239, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =========================================================
   Reasons
   ========================================================= */
.reason { text-align: center; padding: 12px; }
.reason__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reason__icon svg { width: 28px; height: 28px; }
.reason h3 { font-size: 19px; margin-bottom: 10px; }
.reason p { color: var(--text-muted); font-size: 15px; max-width: 300px; margin: 0 auto; }

/* =========================================================
   Realizacje (portfolio) — 3 prawdziwe strony zbudowane przez SiteCode.
   Tilt na mysz + zoom zdjęcia obsługiwane w script.js (magneticTilt).
   ========================================================= */
.portfolio-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  will-change: transform;
}
.portfolio-card:hover { box-shadow: var(--shadow-lg); }

.portfolio-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}
.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease);
}
.portfolio-card:hover .portfolio-card__media img { transform: scale(1.07); }

.portfolio-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.portfolio-card:hover .portfolio-card__media::after { opacity: 1; }

.portfolio-card__peek {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.portfolio-card__peek svg { width: 15px; height: 15px; }
.portfolio-card:hover .portfolio-card__peek { opacity: 1; transform: translateY(0); }

.portfolio-card__body { padding: 22px 24px 26px; }
.portfolio-card__label { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.portfolio-card__desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.portfolio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--black);
}
.portfolio-card__link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.portfolio-card:hover .portfolio-card__link svg { transform: translate(3px, -3px); }

/* =========================================================
   Contact
   ========================================================= */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__intro h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0 16px; }
.contact__intro p { color: rgba(250, 246, 239, 0.68); font-size: 16px; margin-bottom: 32px; max-width: 460px; }

.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  transition: color 200ms var(--ease);
}
.contact__detail svg { width: 20px; height: 20px; color: var(--white); flex-shrink: 0; }
.contact__detail:hover { color: var(--gray-300); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form__row { margin-bottom: 20px; }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form__row--split > div { margin-bottom: 20px; }

label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 7px;
}
label span { color: var(--gray-500); }

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b91c1c; }
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }

.form__error {
  display: block;
  color: #b91c1c;
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.form__success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}
.form__success.is-visible { display: block; }

/* Baner błędu wysyłki (Netlify Forms nieosiągalne / offline) — ukryty domyślnie, jak .form__success */
.form__error--submit {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}
.form__error--submit a { text-decoration: underline; }
.form__error--submit.is-visible { display: block; }

/* Honeypot antyspamowy dla Netlify Forms — niewidoczny dla ludzi, wypełniany tylko przez boty */
.form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--black); color: rgba(250, 246, 239, 0.7); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.08);
}
.logo--footer { color: var(--white); margin-bottom: 14px; display: inline-block; }
.logo--footer span { color: var(--gray-400); }
.footer__brand p { font-size: 14.5px; max-width: 280px; }
.footer__col h4 { color: var(--white); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14.5px; margin-bottom: 10px; transition: color 200ms var(--ease); }
.footer__col a:hover { color: var(--white); }
.footer__bottom { padding: 22px 0; text-align: center; font-size: 13.5px; }

/* =========================================================
   Mobile sticky CTA
   ========================================================= */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 280ms var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 200ms var(--ease);
}
.mobile-cta__btn:active { transform: scale(0.97); }
.mobile-cta__btn svg { width: 17px; height: 17px; }
.mobile-cta__btn--outline { background: var(--white); color: var(--black); border: 1.5px solid var(--border); }
.mobile-cta__btn--primary { background: var(--black); color: var(--white); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .problem__inner { grid-template-columns: 1fr; gap: 40px; }
  .problem__media { aspect-ratio: 16 / 9; max-width: 480px; margin: 0 auto; }
  .problem__text { text-align: center; }
  .problem__text p { margin: 0 auto 28px; }
  .about__inner { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 340px; margin: 0 auto; }
  .about__text { text-align: center; }
  .about__text p, .about__text blockquote { margin-left: auto; margin-right: auto; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__intro { text-align: center; }
  .contact__intro p { margin-left: auto; margin-right: auto; }
  .contact__details { align-items: center; }
}

@media (max-width: 860px) {
  .nav, .header__phone { display: none; }
  .nav__toggle { display: flex; }

  .nav {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 250ms var(--ease), opacity 250ms var(--ease);
  }
  .nav.is-open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { width: 100%; padding: 12px 0; }

  .grid--3 { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-6px); }

  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
}

/* =========================================================
   NOWE BLOKI (dopisane — istniejące reguły powyżej bez zmian)
   Pasek zaufania, kroki „Jak działam”, tabela porównawcza, pilność.
   Korzystają wyłącznie z istniejących tokenów z :root.
   ========================================================= */

/* --- Pasek zaufania pod hero --- */
.trustbar {
  background: var(--black);
  border-top: 1px solid rgba(250, 246, 239, 0.1);
  padding: 26px 0;
}
.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trustbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.trustbar__item strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
  line-height: 1;
}
.trustbar__item span {
  font-size: 13.5px;
  color: rgba(250, 246, 239, 0.68);
  max-width: 210px;
}

/* --- Kroki „Jak działam” --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* --- Tabela porównawcza pakietów --- */
.compare {
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.compare__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare__caption {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  text-align: left;
  padding: 24px 26px 4px;
}
.compare__table th,
.compare__table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare__table thead th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--black);
  border-bottom: 2px solid var(--black);
  vertical-align: bottom;
}
.compare__table thead th span {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.compare__table tbody th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: none; }
.compare__table tbody tr:nth-child(even) { background: var(--gray-100); }
.compare__table .is-yes { font-weight: 700; color: var(--black); }
.compare__table .is-no { color: var(--gray-400); }

/* --- Zgoda RODO w formularzu ---
     Reguła globalna `input { width: 100% }` rozciągnęłaby checkbox — tu go przywracamy. */
#rodo {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  float: left;
  margin-top: 4px;
  accent-color: var(--black);
}
#rodo:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1); }
label[for="rodo"] {
  display: block;
  overflow: hidden;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.45;
}
#rodoError { clear: both; }

/* --- Klauzula informacyjna RODO przy formularzu (element <details>) ---
     Domyślnie zwinięta, otwierana natywnie przez przeglądarkę — bez JavaScriptu. */
.form__legal {
  margin: 14px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}
.form__legal > summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
}
.form__legal > summary:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.form__legal p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 10px;
}
.form__legal a { color: var(--black); font-weight: 600; text-decoration: underline; }

/* --- Podstrona z polityką prywatności --- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin: 40px 0 14px; }
.legal p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 14px; }
.legal ol, .legal ul { padding-left: 22px; margin-bottom: 8px; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal li {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.legal li > ol, .legal li > ul { margin-top: 10px; }
.legal a { color: var(--black); font-weight: 600; text-decoration: underline; }
.legal b { color: var(--text); }
.legal__back { margin-top: 36px; }

/* --- Nota pod formularzem --- */
.form__note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .compare { margin-top: 36px; }
  .compare__caption { padding: 20px 20px 4px; font-size: 15px; }
}

@media (max-width: 640px) {
  .topbar p { font-size: 12.5px; }
  .hero { padding: 64px 0 56px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__trust { flex-direction: column; gap: 12px; align-items: flex-start; margin: 0 auto; width: fit-content; }
  .problem__number { font-size: 44px; }
  .section { padding: 64px 0; }
  .form__row--split { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
