:root {
  color-scheme: dark;

  /* Umówione - czerń + złoto (jedno źródło prawdy dla kolorów) */
  --color-bg-primary: #0b0b0b;
  --color-bg-secondary: #161616;
  --color-bg-light: #f5f4f1;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #b4b2a9;
  --color-text-on-light: #161616;
  --color-text-on-light-muted: #5f5e5a;
  --color-accent: #e8b45a;
  --color-accent-strong: #d89b3e;
  --color-accent-dark-text: #412402;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.08);

  --bg: var(--color-bg-primary);
  --panel: rgba(22, 22, 22, 0.74);
  --panel-strong: rgba(22, 22, 22, 0.94);
  --line: var(--color-border);
  --text: var(--color-text-on-dark);
  --muted: var(--color-text-on-dark-muted);
  --subtle: rgba(180, 178, 169, 0.62);
  --accent-strong: var(--color-accent);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

/* Atrybut [hidden] musi wygrywać z klasami ustawiającymi display (grid/flex).
   Bez tego elementy ukrywane z JS-a i tak się renderują. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(232, 180, 90, 0.07), transparent 22%),
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 88% 30%, rgba(232, 180, 90, 0.05), transparent 18%),
    linear-gradient(180deg, #0a0a0a 0%, #101010 38%, var(--color-bg-primary) 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-glow {
  position: fixed;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.24;
  z-index: -1;
}

.page-glow--left {
  top: -10rem;
  left: -12rem;
  background: rgba(232, 180, 90, 0.16);
}

.page-glow--right {
  top: 28rem;
  right: -14rem;
  background: rgba(255, 255, 255, 0.12);
}

.topbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, -14px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.topbar.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 1.1rem -1px 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-logo {
  display: block;
  height: 1.8rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.nav a,
.topbar-cta,
.brand {
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.nav a:hover,
.brand:hover {
  color: var(--color-accent);
}

.topbar-cta {
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--color-accent-strong);
  border-radius: 999px;
  color: var(--color-accent-dark-text);
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
}

.topbar-cta:hover {
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 6rem;
}

.section {
  padding: 3.6rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  min-height: min(calc(100vh - 8rem), 36rem);
  padding-top: 3.4rem;
  transform: translateY(calc(var(--hero-lift, 0px) * -0.15));
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label,
.stack-kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--subtle);
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 2.9vw, 3rem);
  line-height: 1.15;
}

.section h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  max-width: 18ch;
  line-height: 1.2;
}

.lead {
  max-width: 56ch;
  margin: 1.1rem 0 0;
  font-size: clamp(0.94rem, 0.9vw, 1.02rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--color-accent-dark-text);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  box-shadow: 0 18px 40px rgba(232, 180, 90, 0.22);
}

.button--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.button--ghost:hover {
  border-color: var(--color-accent-strong);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.trust-row div,
.copy-card,
.feature-card,
.stack-card,
.calendly-card,
.metric-card,
.cta-banner,
.chat-panel__summary div,
.chat-bubble {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.trust-row div {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
}

.trust-row strong {
  display: block;
  font-size: 1.02rem;
}

.trust-row span {
  font-size: 0.86rem;
}

.trust-row span,
.feature-card p,
.stack-card li,
.copy-card p,
.calendly-card__desc,
.chat-panel__summary span,
.chat-panel__summary strong,
.chat-bubble {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 30rem;
  display: grid;
  align-items: center;
}

.device-stage {
  position: relative;
  min-height: 30rem;
  display: grid;
  place-items: center;
  perspective: 1800px;
  transform-style: preserve-3d;
}

.device-frame {
  position: relative;
  width: min(100%, 460px);
  transform-style: preserve-3d;
  transform:
    translateY(var(--device-y, 0px))
    rotateX(var(--device-tilt-x, 14deg))
    rotateY(var(--device-tilt-y, -16deg))
    rotateZ(var(--device-tilt-z, 0deg))
    scale(var(--device-scale, 0.96));
  will-change: transform;
}

.device-reflection {
  position: absolute;
  inset: -5% -6% auto auto;
  width: 42%;
  height: 26%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 72%);
  filter: blur(18px);
  opacity: 0.7;
  transform: translateZ(70px);
  pointer-events: none;
}

.device-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.device-orbit--one {
  width: 20rem;
  height: 20rem;
  right: -1rem;
  top: 3rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
  opacity: 0.55;
  animation: drift-orbit 16s ease-in-out infinite;
}

.device-orbit--two {
  width: 14rem;
  height: 14rem;
  left: -0.5rem;
  bottom: 5rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%);
  opacity: 0.42;
  animation: drift-orbit 19s ease-in-out infinite reverse;
}

.float-panel {
  transform: translateZ(0);
  animation: float 9s ease-in-out infinite;
  will-change: transform;
}

.chat-panel {
  position: relative;
  padding: 0.85rem;
  font-size: 0.86rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.94), rgba(8, 8, 8, 0.94)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), transparent 22%);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.chat-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.chat-panel__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.2rem 0.7rem;
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 0 10px rgba(255, 255, 255, 0.05);
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #febc2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.window-title {
  font-size: 0.8rem;
  color: var(--subtle);
}

.chat-panel__content {
  display: grid;
  gap: 0.75rem;
}

.chat-panel__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.chat-panel__summary div {
  padding: 0.7rem;
  border-radius: 16px;
}

.chat-panel__summary span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.76rem;
}

.chat-panel__summary strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.chat-thread {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  line-height: 1.5;
}

.chat-bubble--incoming {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.05);
}

.chat-bubble--outgoing {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.92);
  color: #070707;
  box-shadow: 0 20px 42px rgba(255, 255, 255, 0.06);
}

.chat-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric-card {
  padding: 0.9rem;
  border-radius: 18px;
  background: var(--panel-strong);
}

.metric-card--accent {
  border: 1px solid var(--color-accent-strong);
  background: linear-gradient(180deg, rgba(232, 180, 90, 0.16), rgba(232, 180, 90, 0.05));
}

.metric-card p {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--subtle);
}

.metric-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.metric-card span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--subtle);
  line-height: 1.5;
}

/* Domyślnie treść jest widoczna. Ukrywamy ją do animacji dopiero, gdy JS wystartuje
   (klasa .js na <html>) — inaczej awaria skryptu oznacza pustą stronę. */
.section-reveal,
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js .section-reveal,
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .section-reveal.is-visible,
.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero nigdy nie jest animowane — treść above the fold musi być widoczna od razu
   (lepszy LCP i brak ryzyka pustego pierwszego ekranu). */
.js .hero.section-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .section-reveal,
  .js .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.copy-card {
  padding: 1.3rem;
  border-radius: var(--radius-lg);
}

.copy-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}

.features .section-heading,
.showcase .section-heading,
.contact .section-heading {
  margin-bottom: 1.4rem;
}

.feature-grid,
.showcase-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-card,
.stack-card {
  padding: 1.2rem;
  border-radius: 22px;
  font-size: 0.92rem;
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.feature-card h3,
.stack-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.feature-card p,
.stack-card li {
  line-height: 1.65;
}

.stack-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
}

.stack-card--large {
  grid-column: span 2;
}

.conversation-bubble {
  max-width: 90%;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.conversation-bubble--dark {
  background: rgba(255, 255, 255, 0.06);
  margin-right: auto;
}

.conversation-bubble--light {
  background: rgba(255, 255, 255, 0.92);
  color: #070707;
  margin-left: auto;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 26px;
}

.cta-banner p:last-child {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.7;
}

.calendly-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 26px;
  text-align: center;
}

.calendly-card h3 {
  margin: 0.3rem 0 0.8rem;
  font-size: 1.4rem;
}

.calendly-card p {
  margin: 0 auto 1.4rem;
  max-width: 48ch;
  font-size: 0.94rem;
}

.calendly-card .button {
  min-width: 14rem;
}

.calendly-card {
  max-width: 760px;
}

.booking-embed {
  min-width: 280px;
  height: 700px;
  margin-top: 0.4rem;
  border-radius: 18px;
  overflow: hidden;
}

.booking-fallback-link {
  margin: 0.9rem auto 0;
  font-size: 0.84rem;
  color: var(--subtle);
}

.booking-fallback-link a {
  color: var(--color-accent);
  font-weight: 600;
}

.booking-notconfigured {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px dashed rgba(255, 190, 90, 0.45);
  background: rgba(255, 190, 90, 0.07);
  text-align: left;
}

.booking-notconfigured strong {
  font-size: 0.92rem;
  color: rgb(255, 205, 130);
}

.booking-notconfigured span {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.booking-notconfigured code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .booking-embed {
    height: 820px;
  }
}

@media (max-width: 560px) {
  .booking-embed {
    /* Calendly na wąskim ekranie renderuje się wyżej - za niski box daje
       podwójny scroll wewnątrz iframe. */
    height: 1000px;
    min-width: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes drift-orbit {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -18px, 0) scale(1.06);
  }
}

.guarantee-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent-strong);
  background: var(--color-bg-secondary);
  color: var(--color-text-on-dark);
  box-shadow: 0 20px 60px rgba(232, 180, 90, 0.1);
}

.guarantee-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-accent-dark-text);
  font-size: 0.95rem;
}

.guarantee-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--color-text-on-dark-muted);
}

.guarantee-banner strong {
  color: var(--color-accent);
}

.feature-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.phase-card {
  padding: 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.phase-card > span {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 180, 90, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.phase-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.phase-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.phase-card li {
  color: var(--muted);
  line-height: 1.55;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.logo-row span {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 0.15rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  font-size: 0.94rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--subtle);
  transition: transform 200ms ease;
}

.faq-item[open] {
  border-color: var(--color-accent-strong);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ Problem → Rozwiązanie: strefy i łącznik ============ */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-zone {
  position: relative;
  padding: 2.6rem 2rem 2.8rem;
  border-radius: 32px;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 0 10px, transparent 10px 20px),
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(155deg, #d8202f 0%, #a4101f 55%, #7c0c19 100%);
  box-shadow: 0 30px 90px rgba(190, 20, 35, 0.35);
}

.problem-zone .section-label {
  color: rgba(255, 255, 255, 0.78);
}

.problem-zone .section-heading h2 {
  color: #ffffff;
}

.before-tag,
.after-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-tag {
  border: 1px dashed rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.92);
}

.before-tag .dot,
.after-tag .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
}

.before-tag .dot {
  background: #ffffff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.problem-card {
  padding: 1.3rem 1.2rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}

.problem-card .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.problem-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: #ffffff;
}

.problem-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.82);
}

.problem-card .stat {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: #ffe1c9;
  font-weight: 700;
}

/* --- łącznik / bridge --- */

.bridge {
  position: relative;
  margin: 1.2rem 0;
  padding: 3.2rem 1.2rem 3.6rem;
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(232, 180, 90, 0.14), transparent 70%),
    var(--panel-strong);
  border: 1px solid var(--line);
}

.bridge-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-accent);
  opacity: 0.5;
  animation: drift 6s ease-in-out infinite;
}

.bridge-particles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.bridge-particles span:nth-child(2) { top: 60%; left: 8%; animation-delay: 1.2s; }
.bridge-particles span:nth-child(3) { top: 30%; left: 90%; animation-delay: 0.6s; }
.bridge-particles span:nth-child(4) { top: 75%; left: 92%; animation-delay: 2s; }
.bridge-particles span:nth-child(5) { top: 15%; left: 50%; animation-delay: 1.6s; }

@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-14px) scale(1.6); opacity: 0.9; }
}

.transform-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.transform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 16px;
  flex: none;
}

.transform-icon--before {
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.transform-icon--after {
  color: var(--color-accent-dark-text);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  box-shadow: 0 0 0 6px rgba(232, 180, 90, 0.12), 0 14px 30px rgba(232, 180, 90, 0.25);
  animation: pop-in 900ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms both;
}

@keyframes pop-in {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.transform-arrow {
  color: var(--color-accent);
  animation: shuttle 1.8s ease-in-out infinite;
}

@keyframes shuttle {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}

.bridge-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--color-accent);
}

.bridge h3 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 26ch;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.stat-pop {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.4rem 0 0.3rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  animation: pop-in 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 450ms both;
}

.stat-pop span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.bridge-sub {
  position: relative;
  z-index: 1;
  margin: 0.2rem auto 1.7rem;
  max-width: 40ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.chip-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
}

.chip .icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
}

.bridge-chevron {
  position: relative;
  z-index: 1;
  color: var(--color-accent);
  animation: nudge 2.2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bridge-particles span,
  .transform-arrow,
  .bridge-chevron,
  .transform-icon--after,
  .stat-pop {
    animation: none;
  }
}

/* --- Jak działa: strefa jasnozielona / mapa przepływu --- */

.solution-zone {
  padding: 2.6rem 2rem 2.8rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(155deg, #dff8df 0%, #bdf0c4 100%);
  box-shadow: 0 30px 90px rgba(40, 160, 90, 0.22);
}

.solution-zone .section-label {
  color: #1f7a44;
}

.solution-zone .section-heading h2 {
  color: #0f3a1f;
}

.after-tag {
  background: rgba(15, 58, 31, 0.1);
  color: #1f7a44;
}

.after-tag .dot {
  background: #1f9d52;
  box-shadow: 0 0 8px rgba(31, 157, 82, 0.7);
}

.flow {
  display: grid;
  grid-template-columns: 1fr 2.2rem 1fr 2.2rem 1fr 2.2rem 1fr;
  align-items: center;
  gap: 0;
  margin-top: 1.6rem;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f9d52;
}

.flow-connector svg {
  width: 1.3rem;
  height: 1.3rem;
}

.step-card {
  padding: 1.3rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 58, 31, 0.14);
  background: #f5fdf6;
  box-shadow: 0 18px 46px rgba(20, 90, 45, 0.14);
}

.step-card .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  background: #1f9d52;
  color: #ffffff;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #0f3a1f;
}

.step-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #3c6b4a;
}

.step-card .step-no {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #5f9270;
}

/* --- Fazy: jeden zwarty blok zamiast czterech kart --- */
.phase-compact {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  /* Złoto narasta w dół - wzrok kończy na ostatniej fazie. */
  background:
    linear-gradient(
      180deg,
      rgba(232, 180, 90, 0) 0%,
      rgba(232, 180, 90, 0.03) 40%,
      rgba(232, 180, 90, 0.09) 74%,
      rgba(232, 180, 90, 0.2) 100%
    ),
    var(--panel);
}

.phase-compact li {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 15rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

/* Pasek po lewej gęstnieje z każdą fazą. */
.phase-compact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  opacity: var(--phase-weight, 0.15);
}

.phase-compact li:nth-child(1) { --phase-weight: 0.14; }
.phase-compact li:nth-child(2) { --phase-weight: 0.3; }
.phase-compact li:nth-child(3) { --phase-weight: 0.55; }

.phase-compact li:last-child {
  --phase-weight: 1;
  border-bottom: 0;
  border-top: 1px solid rgba(232, 180, 90, 0.34);
  box-shadow: inset 0 -30px 60px -30px rgba(232, 180, 90, 0.22);
}

.phase-compact__no {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: calc(0.45 + var(--phase-weight, 1) * 0.55);
}

.phase-compact strong {
  font-size: 1rem;
  color: var(--muted);
}

.phase-compact li:last-child strong {
  color: var(--text);
}

.phase-compact__desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: calc(0.72 + var(--phase-weight, 1) * 0.28);
}

.phase-compact__note {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--subtle);
}

/* --- "Dlaczego my" + dowód: jeden pasek pod fazami zamiast dwóch sekcji --- */
.offer-notes {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem 2rem;
  margin-top: 1.1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.why-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.why-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
  line-height: 1.9;
  color: var(--color-accent);
}

.offer-proof {
  margin: 0;
  align-self: center;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.offer-proof strong {
  color: var(--color-accent);
}

/* ============================================================
   RESPONSYWNOŚĆ
   1060px - laptop / tablet poziomo: hero na jedną kolumnę, siatki 3-4 kol. → 2 kol.
    820px - tablet pionowo: siatki → 1 kolumna, kompaktowy topbar
    620px - telefon: skalowanie typografii, paddingów i CTA
   ============================================================ */

@media (max-width: 1060px) {
  .hero,
  .split,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .phase-compact li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1.1rem 1.2rem;
  }

  .offer-notes {
    grid-template-columns: 1fr;
  }

  .offer-proof {
    padding-left: 0;
    padding-top: 1.1rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  /* Na średnich ekranach dwie kolumny czytają się lepiej niż jedna szeroka. */
  .feature-grid,
  .feature-grid--four,
  .showcase-layout,
  .problem-grid,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .flow-connector {
    display: none;
  }

  .guarantee-banner {
    align-items: flex-start;
    border-radius: 28px;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    gap: 2.4rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 2.6rem);
    max-width: 20ch;
  }

  .hero-visual,
  .device-stage {
    min-height: auto;
  }

  /* Perspektywa 3D na wąskim ekranie tylko rozjeżdża layout i wypycha poziomy scroll. */
  .device-frame {
    width: min(100%, 420px);
    transform: none;
  }

  .device-reflection,
  .device-orbit {
    display: none;
  }

  .stack-card--large {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .feature-grid,
  .feature-grid--four,
  .showcase-layout,
  .problem-grid,
  .phase-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .stack-card--large {
    grid-column: auto;
  }

  .chat-panel__summary,
  .chat-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Topbar: jeden zwarty rząd (marka + CTA), linki jako przewijalny pasek pod spodem. */
  .topbar {
    width: min(1180px, calc(100% - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 0.6rem 0.65rem 0.6rem 1rem;
    border-radius: 22px;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .brand-logo {
    height: 1.35rem;
  }

  .topbar-cta {
    padding: 0.62rem 0.95rem;
    font-size: 0.86rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.9rem;
    font-size: 0.86rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
  }

  section[id] {
    scroll-margin-top: 8rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .problem-zone,
  .solution-zone {
    padding: 1.8rem 1.2rem 2rem;
    border-radius: 26px;
  }

  .bridge {
    padding: 2.4rem 1.2rem 2.6rem;
    border-radius: 26px;
  }
}

@media (max-width: 620px) {
  main {
    width: min(1180px, calc(100% - 1.6rem));
  }

  .topbar {
    top: 0.6rem;
  }

  .brand-logo {
    height: 1.2rem;
  }

  /* Poniżej ~620px cztery linki + CTA nie mieszczą się czytelnie - zostaje
     marka i jedno CTA, nawigację zastępuje przewijanie strony. */
  .nav {
    display: none;
  }

  section[id] {
    scroll-margin-top: 5rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .hero {
    padding-top: 1.4rem;
    gap: 1.8rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    max-width: none;
    line-height: 1.18;
  }

  .section h2 {
    font-size: clamp(1.45rem, 6.4vw, 1.9rem);
    max-width: 22ch;
  }

  .lead {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  /* CTA na całą szerokość - pewniejszy cel dotyku niż dwa wąskie przyciski. */
  .hero-actions {
    margin-top: 1.2rem;
    gap: 0.6rem;
  }

  .hero-actions .button,
  .calendly-card .button {
    width: 100%;
    min-width: 0;
  }

  /* Kafelki zaufania jako zwarte wiersze zamiast trzech wysokich kart. */
  .trust-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1.2rem;
  }

  .trust-row div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.1rem 0.5rem;
    padding: 0.65rem 0.85rem;
  }

  .trust-row strong {
    font-size: 0.95rem;
  }

  .trust-row span {
    font-size: 0.82rem;
  }

  .chat-panel {
    padding: 0.7rem;
    font-size: 0.82rem;
  }

  .chat-panel__summary,
  .chat-metrics {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .guarantee-banner {
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 20px;
  }

  .guarantee-banner p {
    font-size: 0.86rem;
  }

  .problem-zone,
  .solution-zone {
    padding: 1.5rem 1rem 1.6rem;
    border-radius: 22px;
  }

  .bridge {
    margin: 0.8rem 0;
    padding: 2rem 1rem 2.2rem;
    border-radius: 22px;
  }

  .problem-card,
  .step-card,
  .phase-card {
    padding: 1.1rem 1rem 1.2rem;
  }

  .cta-banner,
  .calendly-card {
    padding: 1.4rem 1.1rem;
  }

  .calendly-card h3 {
    font-size: 1.2rem;
  }

  .feature-card,
  .stack-card,
  .calendly-card,
  .cta-banner,
  .copy-card,
  .metric-card,
  .chat-panel__summary div,
  .chat-bubble {
    border-radius: 22px;
  }

  .faq-item {
    padding: 0.15rem 0.9rem;
    font-size: 0.9rem;
  }

  .transform-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .logo-row {
    gap: 0.5rem;
  }

  .logo-row span,
  .chip {
    font-size: 0.78rem;
  }

  /* Poświaty są position: fixed, więc nie tnie ich overflow-x na body. */
  .page-glow {
    width: 24rem;
    height: 24rem;
    filter: blur(70px);
  }

  .page-glow--left {
    top: -6rem;
    left: -8rem;
  }

  .page-glow--right {
    top: 22rem;
    right: -9rem;
  }
}

/* --- Kalkulator strat (sekcja #kalkulator) --- */

.calc-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.9rem 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.calc-field + .calc-field {
  margin-top: 1.6rem;
}

.calc-field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.calc-field__top label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.calc-field__value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}

.calc-card input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    var(--color-accent) var(--calc-fill, 25%),
    rgba(255, 255, 255, 0.14) var(--calc-fill, 25%),
    rgba(255, 255, 255, 0.14) 100%
  );
  cursor: pointer;
}

.calc-card input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(232, 180, 90, 0.45);
  transition: transform 0.15s ease;
}

.calc-card input[type='range']::-webkit-slider-thumb:active {
  transform: scale(1.12);
}

.calc-card input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(232, 180, 90, 0.45);
}

.calc-card input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.calc-card input[type='range']:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
}

.calc-result {
  margin: 1.9rem 0 0;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 180, 90, 0.28);
  background: linear-gradient(180deg, rgba(232, 180, 90, 0.12), rgba(232, 180, 90, 0.04));
  text-align: center;
}

.calc-result__label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.calc-result__amount {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.calc-note {
  margin: 1.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.calc-cta {
  display: block;
  margin-top: 1.3rem;
  text-align: center;
}

.calc-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--subtle);
  text-align: center;
}

@media (max-width: 640px) {
  .calc-card {
    padding: 1.5rem 1.1rem 1.3rem;
  }

  .calc-field__top {
    gap: 0.6rem;
  }

  .calc-field__top label {
    font-size: 0.88rem;
  }
}

/* ============================================================
   Agenda rozmowy przy widgecie rezerwacji
   ============================================================ */

.booking-agenda {
  max-width: 34rem;
  margin: 0 auto 1.6rem;
  padding: 1.2rem 1.3rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  text-align: left;
}

.booking-agenda__title {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}

.booking-agenda ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: agenda;
}

.booking-agenda li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: agenda;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.booking-agenda li + li {
  margin-top: 0.8rem;
}

.booking-agenda li::before {
  content: counter(agenda);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark-text);
  background: var(--color-accent);
}

.booking-agenda__risk {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.booking-agenda__risk svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

/* ============================================================
   Sticky CTA na mobile
   ============================================================ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform 240ms ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__text {
  flex: 1 1 auto;
  min-width: 0;
}

.sticky-cta__text strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.sticky-cta__text span {
  display: block;
  font-size: 0.74rem;
  color: var(--subtle);
}

.sticky-cta .button {
  flex: 0 0 auto;
  min-height: 2.6rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.86rem;
}

/* Pasek tylko tam, gdzie CTA z topbara przestaje być w zasięgu kciuka. */
@media (max-width: 820px) {
  .sticky-cta {
    display: flex;
  }

  /* Zapas, żeby pasek nie przykrywał końca stopki. */
  body {
    padding-bottom: 4.75rem;
  }
}

/* ============================================================
   Stopka
   ============================================================ */

/* Stopka jest poza <main>, więc powtarza jego szerokość. */
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 4rem auto 0;
  padding: 2.6rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer__brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-footer__brand p {
  margin: 0.6rem 0 0;
  max-width: 34ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--subtle);
}

.site-footer__legal p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* --- Podstrony tekstowe (polityka prywatności) --- */

.legal {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.legal h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.legal h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal li + li {
  margin-top: 0.6rem;
}

.legal a {
  color: var(--color-accent);
}

.legal__meta {
  margin: 0 0 2rem;
  font-size: 0.82rem;
  color: var(--subtle);
}

.legal__back {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
