/* =============================================================
   DACHMISTRZ — arkusz stylów
   1. Zmienne i motyw      6. Usługi / Proces
   2. Reset i typografia   7. Realizacje / Opinie
   3. Komponenty (btn…)    8. FAQ / Kontakt
   4. Nagłówek i nawigacja 9. Stopka
   5. Hero / O nas        10. Responsywność (RWD)
   ============================================================= */

/* ---------- 1. ZMIENNE I MOTYW ---------- */
:root {
  --brand:        #e2601a;
  --brand-600:    #c8501a;
  --brand-300:    #f5a06a;
  --brand-soft:   #fdf1e9;

  --ink:          #0f1a26;
  --ink-2:        #16283a;

  --bg:           #ffffff;
  --bg-alt:       #f5f7fa;
  --surface:      #ffffff;
  --surface-2:    #f0f3f7;
  --border:       #e2e8f0;

  --text:         #16212e;
  --muted:        #5b6b7c;
  --on-dark:      #eef3f8;
  --on-dark-mut:  #9fb2c4;

  --radius:       18px;
  --radius-sm:    12px;
  --radius-lg:    28px;

  --shadow-sm:    0 1px 2px rgba(15,26,38,.06), 0 2px 6px rgba(15,26,38,.05);
  --shadow:       0 10px 30px -12px rgba(15,26,38,.18);
  --shadow-lg:    0 30px 60px -24px rgba(15,26,38,.30);

  --container:    1200px;
  --header-h:     76px;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

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

/* motyw ciemny — systemowy… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d1620;
    --bg-alt:    #111e2b;
    --surface:   #16232f;
    --surface-2: #1c2b39;
    --border:    #27384a;
    --text:      #e6edf4;
    --muted:     #9db0c2;
    --brand-soft:#26313a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.7);
  }
}
/* …i wymuszony przełącznikiem */
:root[data-theme="dark"] {
  --bg:        #0d1620;
  --bg-alt:    #111e2b;
  --surface:   #16232f;
  --surface-2: #1c2b39;
  --border:    #27384a;
  --text:      #e6edf4;
  --muted:     #9db0c2;
  --brand-soft:#26313a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.7);
}

/* ---------- 2. RESET I TYPOGRAFIA ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* wysunięte menu mobilne nie może rozciągać strony */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden; /* fallback dla starszych przeglądarek */
  overflow-x: clip;   /* clip nie blokuje skoku do kotwicy */
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.18rem; font-weight: 700; }

p  { color: var(--muted); }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  scroll-margin-top: var(--header-h);
}
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section-sub { margin-top: 1rem; font-size: 1.06rem; }

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.ico {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.stars .ico, .quote { fill: currentColor; stroke: none; }

/* animacja pojawiania się */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* bez JavaScriptu treść musi być widoczna od razu */
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- 3. KOMPONENTY ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.1em; height: 1.1em; }

.btn-primary {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  box-shadow: 0 10px 24px -10px rgba(226,96,26,.85);
}
.btn-primary:hover { --btn-bg: var(--brand-600); box-shadow: 0 16px 30px -12px rgba(226,96,26,.9); }

.btn-outline { border-color: var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-outline-light {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }

.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }

.btn-link { padding-inline: 0; color: var(--brand); }
.btn-link:hover .ico { transform: translateX(4px); }
.btn-link .ico { transition: transform .25s var(--ease); }

.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn .ico { width: 20px; height: 20px; }

/* ---------- 4. NAGŁÓWEK I NAWIGACJA ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg); /* fallback dla starszych przeglądarek */
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-stuck {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: .7rem; flex: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 8px 18px -8px rgba(226,96,26,.9);
}
.logo-mark svg {
  width: 24px; height: 24px;
  fill: none; stroke: #fff; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.logo-text {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.01em;
  line-height: 1.05;
  color: var(--text);
}
.logo-text span { color: var(--brand); }
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  position: relative;
  display: block;
  white-space: nowrap; /* „O nas" nie może się łamać na dwie linie */
  padding: .55rem .8rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  transition: color .22s, background-color .22s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-mobile-extra { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
  position: relative;
  z-index: 96; /* nad panelem menu, żeby „X” pozostał klikalny */
}
.header-tel .ico { color: var(--brand); }
.burger { display: none; }
.icon-btn .ico-moon, :root[data-theme="dark"] .icon-btn .ico-sun { display: none; }
:root[data-theme="dark"] .icon-btn .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .ico-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .ico-moon { display: block; }
}

.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-300));
  transition: width .1s linear;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9,15,22,.55);
  backdrop-filter: blur(3px);
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, #0f1a26 0%, #16283a 55%, #1b3145 100%);
  color: var(--on-dark);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}
/* Zapętlona animacja tła. Leży najgłębiej — nad nią jest przyciemnienie
   (.hero-bg), które gwarantuje czytelność nagłówka niezależnie od tego,
   jak jasna jest akurat klatka filmu. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* przyciemnienie najmocniejsze po lewej, czyli pod kolumną z tekstem */
    linear-gradient(100deg,
      rgba(10,17,26,.94) 0%,
      rgba(10,17,26,.88) 38%,
      rgba(10,17,26,.58) 64%,
      rgba(10,17,26,.44) 100%),
    radial-gradient(60% 55% at 78% 18%, rgba(226,96,26,.30), transparent 62%),
    radial-gradient(45% 45% at 8% 82%, rgba(64,132,198,.20), transparent 65%);
}

/* mniej ruchu w tle dla osób, które o to prosiły w ustawieniach systemu */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem .45rem .7rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--on-dark);
  font-size: .86rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}

.hero h1 { color: #fff; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--brand-300), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 54ch;
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--on-dark-mut);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.hero-stats span { font-size: .88rem; color: var(--on-dark-mut); }

/* Padding jest mniejszy niż wysokość plakietki, więc wsuwa się ona lekko na kartę.
   Grafika logo zajmuje w pionie 10–89% karty, wiec plakietki lądują w pustych marginesach. */
.hero-visual { position: relative; padding-block: 42px; }
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15,26,38,.10);
  background: #eef1f4; /* zgodne z jasnym tłem logo */
  animation: floaty 7s ease-in-out infinite;
}
/* Logo jest kwadratowe (1600×1600), a grafika mieści się w pionie
   między 318 a 1269 px — kadr 4:3 obcina puste marginesy, nic nie ucinając. */
.hero-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.float-badge strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.float-badge span   { display: block; font-size: .76rem; color: var(--muted); }
.float-badge > .ico { width: 26px; height: 26px; color: var(--brand); }
.fb-1 { left: 6px;  top: 0;    animation: floaty 7s ease-in-out infinite; }
.fb-2 { right: 6px; bottom: 0; animation: floaty 7s ease-in-out infinite; }
.fb-2 .stars { display: flex; gap: 2px; color: #f5a524; }
.fb-2 .stars .ico { width: 14px; height: 14px; }

/* ---------- PASEK ZAUFANIA ---------- */
.trust {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}
.trust-item { display: flex; align-items: center; gap: .9rem; }
.trust-item .ico {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.trust-item strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.trust-item span   { display: block; font-size: .84rem; color: var(--muted); }

/* ---------- O NAS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 190px 150px;
  gap: 1rem;
  padding-bottom: 40px; /* miejsce na plakietkę „20 lat” pod kafelkami */
}
.tile {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2); /* tło zanim zdjęcie się wczyta */
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}
/* zdjęcie materiału wypełnia kafelek, podpis leży na przyciemnieniu u góry */
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(8,14,20,.78), transparent 58%);
}
.tile:hover img { transform: scale(1.06); }

.tile span {
  position: relative;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.tile-a { grid-column: 1 / 2; grid-row: 1 / 3; }
.exp-badge {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(226,96,26,.95);
  white-space: nowrap; /* „20 lat doświadczenia” w jednej linii także na telefonie */
}
.exp-badge strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; }
.exp-badge span   { font-size: .82rem; opacity: .92; }

.check-list { display: grid; gap: .75rem; margin-top: 1.8rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--text);
  font-size: .98rem;
}
.check-list .ico {
  width: 22px; height: 22px;
  padding: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  stroke-width: 2.6;
}
.about-copy > p + p { margin-top: 1rem; }
.about-copy h2 { margin-bottom: 1.2rem; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2.2rem; }

/* ---------- 6. USŁUGI ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card-ico {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.3rem;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.card-ico .ico { width: 28px; height: 28px; }
.card:hover .card-ico { background: var(--brand); color: #fff; transform: rotate(-6deg); }

.card h3 { margin-bottom: .6rem; }
.card p  { font-size: .95rem; }
.card ul { margin-top: 1.1rem; display: grid; gap: .45rem; }
.card ul li {
  position: relative;
  padding-left: 1.15rem;
  font-size: .89rem;
  color: var(--muted);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- PROCES ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step::after {
  content: "";
  position: absolute;
  top: 3.1rem; right: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 11px);
}
.step:last-child::after { display: none; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.step:first-child .step-no { background: var(--brand); }
.step h3 { margin-bottom: .5rem; }
.step p  { font-size: .93rem; }

/* ---------- 7. REALIZACJE ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 2.4rem;
}
.filter {
  padding: .6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--brand); border-color: var(--brand); }
.filter.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(226,96,26,.9);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              opacity .35s var(--ease);
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot.is-hidden { display: none; }

/* Zdjęcie i film leżą jedno na drugim pod przyciemnieniem (::after).
   Film jest przezroczysty, dopóki karta nie jest aktywna. */
.shot-art,
.shot-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.shot:hover .shot-art,
.shot.is-playing .shot-art { transform: scale(1.07); }

.shot-video {
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.shot.is-playing .shot-video { opacity: 1; }

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 30%, rgba(8,14,20,.9));
}

/* plakietka podpowiadająca, że karta kryje film */
.shot-play {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(10,16,24,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s;
}
.shot-play .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-left: 2px; }
.shot:hover .shot-play { background: var(--brand); border-color: var(--brand); }
.shot.is-playing .shot-play { opacity: 0; transform: scale(.8); }

.shot figcaption { position: relative; padding: 1.5rem; color: #fff; }
.shot-cat {
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(226,96,26,.9);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.shot figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
}
.shot-meta { display: block; font-size: .85rem; opacity: .78; margin-top: .2rem; }
.gallery-empty { text-align: center; padding: 2rem 0; }

/* ---------- OPINIE ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review {
  position: relative;
  padding: 2.2rem 1.8rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.review .quote {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  width: 46px; height: 46px;
  color: var(--brand);
  opacity: .13;
}
/* odnośnik do źródła opinii w nagłówku sekcji */
.src-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.src-link:hover { color: var(--brand-600); }
.review .stars { display: flex; gap: 3px; color: #f5a524; margin-bottom: .9rem; }
.review .stars .ico { width: 17px; height: 17px; }
.review p { color: var(--text); font-size: .98rem; }
.review footer {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  flex: none;
}
.review footer strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.review footer small  { color: var(--muted); font-size: .82rem; }

/* ---------- PASEK CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, #12212f 0%, #1c3247 60%, #27455f 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p  { color: var(--on-dark-mut); margin-top: .8rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 8. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-intro h2 { margin-bottom: 1rem; }
.faq-intro .btn { margin-top: 1.6rem; }

.faq-list { display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.is-open { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: color .25s;
}
.faq-q:hover { color: var(--brand); }
.faq-q .ico { color: var(--brand); transition: transform .3s var(--ease); }
.faq-item.is-open .faq-q .ico { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  overflow: hidden;
  padding-inline: 1.3rem;
  font-size: .95rem;
}
.faq-item.is-open .faq-a > p { padding-bottom: 1.3rem; }

/* ---------- KONTAKT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1rem; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.info-card:hover { transform: translateX(4px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.info-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.info-txt strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.info-txt > span { display: block; color: var(--muted); font-size: .92rem; }

.map {
  position: relative;
  height: 210px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .75;
}
.map-pin {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand);
  animation: bob 2.6s ease-in-out infinite;
}
.map-pin .ico { width: 40px; height: 40px; stroke-width: 1.6; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, -68%); }
}
.map-btn { position: absolute; bottom: 1rem; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* Telefon i e-mail dzielą wspólne wiersze (etykieta / pole / błąd),
   dzięki czemu inputy zawsze stoją na tej samej wysokości —
   nawet gdy etykieta jednego z nich zawinie się do dwóch linii. */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1.1rem;
  row-gap: .4rem;
  align-items: start;
}
.field-row .field {
  grid-row: span 3;
  grid-template-rows: subgrid;
}
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .89rem;
}
.req { color: var(--brand); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  font-size: .96rem;
  transition: border-color .22s, box-shadow .22s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(226,96,26,.15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }

.err { font-size: .82rem; color: #dc2626; min-height: 0; }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: .7rem;
}
.field-check input {
  width: 20px; height: 20px;
  margin-top: .18rem;
  accent-color: var(--brand);
  padding: 0;
}
.field-check label { font-family: var(--font-body); font-weight: 400; font-size: .87rem; color: var(--muted); }
.field-check .err { grid-column: 1 / -1; }

.form-note { font-size: .82rem; text-align: center; }
/* atrybut hidden musi wygrywać z display:flex poniżej */
.form-success[hidden] { display: none; }
.form-success {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: 11px;
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.4);
  color: #16a34a;
  font-weight: 600;
  font-size: .92rem;
}

/* ---------- 9. STOPKA ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-mut);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text small { color: var(--on-dark-mut); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p { margin-top: 1.1rem; font-size: .92rem; color: var(--on-dark-mut); max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--on-dark);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.social-fb .ico { fill: currentColor; stroke: none; }

.footer-col h3 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .92rem; transition: color .2s, padding-left .2s var(--ease); }
.footer-col a:hover { color: var(--brand-300); }
.footer-col > ul > li > a:hover { padding-left: 4px; }

.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; }
.footer-contact .ico { width: 18px; height: 18px; margin-top: .3rem; color: var(--brand); }
.footer-legal-min { margin-top: 1.4rem; font-size: .8rem; color: #6c8093; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  padding-right: 3.5rem; /* miejsce na przycisk „do góry” */
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .86rem;
}
.footer-bottom p { color: #6c8093; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-bottom a:hover { color: var(--brand-300); }

/* ---------- POWRÓT NA GÓRĘ ---------- */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(226,96,26,.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }
.to-top .ico { transform: rotate(180deg); }

/* =============================================================
   10. RESPONSYWNOŚĆ
   ============================================================= */

/* --- duże tablety / małe laptopy --- */
@media (max-width: 1100px) {
  .nav-list { gap: .1rem; }
  .nav-link { padding: .5rem .6rem; font-size: .9rem; }
  .header-tel { display: none; }
  .fb-1 { left: 0; }
  .fb-2 { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- tablety --- */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

  /* menu mobilne */
  .burger { display: inline-grid; }
  .burger .ico-close { display: none; }
  .burger[aria-expanded="true"] .ico-open  { display: none; }
  .burger[aria-expanded="true"] .ico-close { display: block; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 95;
    width: min(88vw, 380px);
    height: 100dvh;
    padding: calc(var(--header-h) + 1.5rem) 1.6rem 2rem;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav-link {
    padding: .85rem .9rem;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  .nav-link:hover, .nav-link.is-active { background: var(--surface-2); }
  .nav-link::after { display: none; }

  .nav-mobile-extra {
    display: grid;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.8rem;
  }
  .nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brand);
  }

  /* układ sekcji */
  /* tekst jest tu wyśrodkowany, więc przyciemnienie musi być równomierne,
     a nie mocniejsze po lewej stronie */
  .hero-bg {
    background:
      linear-gradient(rgba(10,17,26,.90), rgba(10,17,26,.86)),
      radial-gradient(70% 45% at 78% 12%, rgba(226,96,26,.28), transparent 62%);
  }
  .hero-video { opacity: .55; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 540px; margin-inline: auto; width: 100%; }
  .hero .lead, .eyebrow { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { max-width: 620px; margin-inline: auto; }

  .trust-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; margin-bottom: 2.5rem; }
  .about-copy  { order: 1; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n)::after { display: none; }

  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* --- telefony --- */
@media (max-width: 640px) {
  .container { width: min(100% - 2rem, var(--container)); }

  .logo-text { font-size: 1.02rem; }
  .logo-text small { display: none; }
  .header-cta { display: none; }

  .hero { padding-top: 2.5rem; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: left;
    max-width: 260px;
  }
  .hero-stats li { display: flex; align-items: baseline; gap: .7rem; }
  .hero-stats strong { min-width: 3.4em; }
  .hero-cta .btn { width: 100%; }

  .float-badge { padding: .6rem .8rem; }
  .hero-visual { padding-block: 48px; /* karta jest tu niższa, więc mniejsze wsunięcie */ }
  .fb-1 { left: 0; top: 0; }
  .fb-2 { right: 0; bottom: 0; }

  .trust-grid { grid-template-columns: 1fr; gap: 1.1rem; }


  .about-media { grid-template-rows: 150px 120px; padding-bottom: 32px; }
  .exp-badge { bottom: 0; padding: .6rem 1rem; }
  .exp-badge strong { font-size: 1.35rem; }

  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }

  .card { padding: 1.6rem 1.35rem; }
  .shot { min-height: 250px; }

  .filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .4rem; }
  .filter { flex: none; }

  /* na telefonie pola układają się jeden pod drugim — subgrid niepotrzebny */
  .field-row { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1.1rem; }
  .field-row .field { grid-row: auto; grid-template-rows: none; row-gap: .4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

/* --- druk --- */
@media print {
  .site-header, .to-top, .nav-backdrop, .cta-band, .map { display: none; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   11. PODSTRONY PRAWNE (polityka prywatności, regulamin, cookies)
   ============================================================= */
.legal-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, #0f1a26 0%, #16283a 60%, #1b3145 100%);
  color: var(--on-dark);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 82% 12%, rgba(226,96,26,.26), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
}
.legal-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--on-dark-mut);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--on-dark-mut); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .ico { width: 14px; height: 14px; transform: rotate(-90deg); }
.legal-updated {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: .84rem;
  color: var(--on-dark);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-toc h2 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.legal-toc ol { counter-reset: toc; display: grid; gap: .1rem; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  padding: .42rem .55rem;
  border-radius: 8px;
  font-size: .89rem;
  color: var(--muted);
  transition: background-color .2s, color .2s;
}
.legal-toc a::before {
  content: counter(toc) ". ";
  color: var(--brand);
  font-weight: 600;
}
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }

.legal-content { max-width: 74ch; }
.legal-content > section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-content > section + section { margin-top: 2.8rem; }
.legal-content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 .6rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1rem; display: grid; gap: .5rem; }
.legal-content ul li, .legal-content ol li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: .35rem; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.legal-content ol { counter-reset: item; }
.legal-content ol li { counter-increment: item; }
.legal-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 600;
}
.legal-content a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:not(.btn):hover { color: var(--brand-600); }
.legal-content strong { color: var(--text); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: .92rem;
}
.legal-table th, .legal-table td {
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.legal-table th {
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
}
.legal-table-wrap { overflow-x: auto; }

/* ramka informacyjna — USUŃ po uzupełnieniu danych firmy */
.legal-note {
  display: flex;
  gap: .85rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 2.2rem;
  border: 1px solid rgba(226,96,26,.4);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}
.legal-note .ico { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.legal-note p { margin: 0; font-size: .92rem; color: var(--text); }
.legal-note strong { display: block; font-family: var(--font-head); margin-bottom: .2rem; }

.legal-contact-box {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.legal-contact-box p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  /* minmax(0,1fr) pozwala kolumnie zwęzić się poniżej szerokości treści */
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}

/* odnośnik do polityki prywatności w zgodzie pod formularzem */
.field-check label a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.field-check label a:hover { color: var(--brand-600); }

/* fragmenty kodu w dokumentach prawnych (np. nazwa klucza w pamięci) */
.legal-content code {
  padding: .12em .4em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  white-space: nowrap;
  color: var(--text);
}
