/* ==========================================================================
   Auto Naprawa Jarosław Pluskota — workshop site
   Palette pulled from logo: amber-yellow + deep charcoal.
   ========================================================================== */

:root {
  --yellow: #F5C518;
  --yellow-bright: #FFD84A;
  --yellow-deep: #D9A906;
  --ink: #161616;
  --ink-2: #1F1F1F;
  --ink-3: #2A2A2A;
  --char: #3A3A3A;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --bg: #FAFAF7;
  --bg-2: #F2F1EB;
  --white: #FFFFFF;
  --red: #E5443B;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px -10px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.35);

  --radius: 14px;
  --radius-lg: 22px;

  --container: 1200px;

  --font-display: "Oswald", "Arial Narrow", "Impact", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body.nav-open { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button { font: inherit; cursor: pointer; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 .5em;
  color: var(--ink);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

.ink-yellow { color: var(--yellow-deep); }
.dot-yellow { color: var(--yellow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--char);
  margin-bottom: 18px;
}
.eyebrow__bar {
  width: 28px; height: 4px;
  background: var(--yellow);
  display: inline-block;
}

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin: 0 auto 48px; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 26px; font-size: 1.05rem; }

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(245,197,24,.7), inset 0 -2px 0 rgba(0,0,0,.08);
}
.btn--primary:hover { background: var(--yellow-bright); transform: translateY(-1px); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover { background: var(--yellow); color: var(--ink); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Reveal on scroll ----------
   Animation zamiast transition: po zakończeniu wjazdu animacja zwalnia
   property `transform`, więc :hover (np. .service, .value, .review)
   może swobodnie ustawić swój własny translateY bez konfliktu.
   Opacity podtrzymujemy przez kaskadę z .reveal--in. */
.reveal { opacity: 0; }
.reveal--in {
  opacity: 1;
  animation: reveal-up .6s ease;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Subtle accent rule (replaces caution-tape) ---------- */
.rule-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--yellow) 18%, var(--yellow) 82%, transparent 100%);
  margin: 0;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #DADADA;
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 16px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__left .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #888;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
.topbar__left--open .dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.18);
  position: relative;
}
/* Pulsujący „halo" na osobnym pseudo-elemencie z transform+opacity (GPU),
   zamiast animowanego box-shadow na samym .dot (drogie: repaint każdą klatkę). */
.topbar__left--open .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(74,222,128,.6);
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__right a { color: #C9C9C9; transition: color .15s; }
.topbar__right a:hover { color: var(--yellow); }
.topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow) !important;
  font-weight: 600;
}

@media (max-width: 720px) {
  .topbar__right a:not(.topbar__phone) { display: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.nav--scrolled {
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.12);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.nav__brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  color: var(--char);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--yellow);
  transition: width .2s ease;
}
.nav__links a:hover::after { width: 100%; }

@media (max-width: 980px) {
  .nav__links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  padding: 80px 0 100px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 80%);
}
.hero__streak {
  position: absolute;
  width: 140%;
  height: 80px;
  background: var(--yellow);
  transform: rotate(-7deg);
  opacity: 0.08;
}
.hero__streak--1 { top: 15%; left: -20%; }
.hero__streak--2 { bottom: 18%; left: -20%; background: var(--white); opacity: 0.04; height: 40px; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__copy .eyebrow { color: rgba(255,255,255,.7); }
.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.hero__lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 52ch;
  margin: 22px 0 32px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__cta .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero__cta .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 540px;
}
.hero__stats li {
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px 14px;
}
.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__stats-suffix { color: var(--yellow); font-size: 1.2rem; }
.hero__stats > li > span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
/* WERSJA TESTOWA: tablica z logo po prawej stronie hero */
.hero__logo-plate {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-bottom: 8px solid var(--yellow);
  padding: 60px 54px;
  box-shadow: var(--shadow-lg);
  width: 128%;
  max-width: none;
  margin-right: -8%;
}
.hero__logo-plate img {
  width: 100%;
  height: auto;
}
.hero__car {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 100%;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.4));
}
.hero__gear {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 130px;
  height: 130px;
  animation: spin 24s linear infinite;
  opacity: 0.95;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { height: auto; order: -1; justify-content: center; }
  .hero__car { width: 100%; }
  .hero__logo-plate { width: 100%; padding: 36px 32px; margin-right: 0; }
}

/* ---------- BRANDS (replaces yellow marquee) ---------- */
.brands {
  background: var(--bg);
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brands__head {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.brands__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.brands__dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
}
.brands__strip {
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.brands__row {
  overflow: hidden;
  padding: 8px 0;
}
.brands__track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  animation: brands-scroll 80s linear infinite;
  padding-left: 44px;
}
.brands__row--reverse .brands__track {
  animation-direction: reverse;
  animation-duration: 90s;
}
.brands__row:hover .brands__track {
  animation-play-state: paused;
}
@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--char);
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.brand:hover { opacity: 1; color: var(--ink); }
.brands__group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brands__group em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--yellow-deep);
  background: rgba(245,197,24,.13);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- VALUES ---------- */
.values {
  padding: 80px 0;
  background: var(--bg);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  isolation: isolate;
}
.value::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  z-index: 1;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.value::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: -1;
}
.value:hover {
  transform: translateY(-4px);
  border-color: transparent;
}
.value:hover::before { transform: scaleX(1); }
.value:hover::after { opacity: 1; }
.value__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.value__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--yellow-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.value__icon svg { width: 22px; height: 22px; }
.value h3 { margin: 0; font-size: 1.05rem; }
.value p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }
.value__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--yellow-deep);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.value__link:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.value__link svg { flex-shrink: 0; }

@media (max-width: 880px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .values__grid { grid-template-columns: 1fr; }
}

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: var(--bg-2);
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: radial-gradient(ellipse at top, rgba(245,197,24,.12), transparent 60%);
  pointer-events: none;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
  border: 1px solid var(--line);
  transition: transform .2s ease;
  isolation: isolate;
}
/* Box-shadow trzymamy na pseudo-elemencie ::after i animujemy tylko opacity
   (GPU compositor) — wielokrotnie tańsze niż transition box-shadow.
   z-index: -1 + isolation: isolate na rodzicu = shadow renderuje się
   pod content kafelka, ale nadal poza jego pudełkiem (bez overflow:hidden). */
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: -1;
}
.service:hover { transform: translateY(-4px); }
.service:hover::after { opacity: 1; }
.service:hover .service__icon { color: var(--yellow-deep); }
.service:hover .service__num { color: var(--yellow); }

.service__num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0,0,0,.18);
  letter-spacing: 0.05em;
  transition: color .2s;
}
.service__icon {
  width: 56px; height: 56px;
  color: var(--ink);
  transition: color .2s ease;
  margin-bottom: 18px;
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.service p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.5; }

.service--feature {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(245,197,24,.25), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 8px);
}
.service--feature .service__num { color: rgba(255,255,255,.25); font-size: 1.2rem; }
.service--feature .service__icon { width: 96px; height: 96px; color: var(--yellow); }
.service--feature h3 {
  font-size: 1.8rem;
  color: var(--white);
}
.service--feature p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 38ch; }
.service--feature:hover .service__icon { color: var(--yellow-bright); }

.service--cta {
  grid-column: span 2;
  background: var(--yellow);
  border-color: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}
.service--cta h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.service--cta p { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 14px; }
.service--cta .btn--dark:hover { background: #000; color: var(--white); }

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .service--feature { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service--feature { grid-column: span 2; }
}
@media (max-width: 460px) {
  .services__grid { grid-template-columns: 1fr; }
  .service--feature { grid-column: span 1; }
  .service--cta { grid-column: span 1; }
}

.services__more {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.more__label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--char);
  margin-right: 6px;
}
.tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s, border-color .15s, transform .15s;
}
.tag:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-1px); }

/* ---------- GALLERY ---------- */
.gallery {
  padding: 100px 0;
  background: var(--bg);
}
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.gallery__filter {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--char);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.gallery__filter:hover { background: var(--bg-2); }
.gallery__filter--active {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--ink);
  transition: transform .35s ease, opacity .3s ease;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .35s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.gallery__item:hover figcaption { transform: translateY(0); }
.gallery__cat {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.gallery__item--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  position: absolute;
  visibility: hidden;
}

@media (max-width: 980px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  color: var(--white);
}
.lightbox::backdrop {
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(4px);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox__inner {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: grid;
  place-items: center;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.18);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  transform: scale(1.05);
}
.lightbox__close { top: -52px; right: 0; }
.lightbox__nav--prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: -60px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__caption {
  margin-top: 18px;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 8px; right: 8px; }
}

/* ---------- BEFORE/AFTER SLIDER ---------- */
.before-after {
  padding: 80px 0 100px;
  background: var(--bg);
}
.ba {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  user-select: none;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-lg);
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba__before { filter: contrast(0.95) saturate(0.7) brightness(0.85); }
.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}
.ba__after img { filter: none; }

.ba__label {
  position: absolute;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}
.ba__label--before {
  left: 18px;
  background: rgba(229,68,59,.92);
  color: var(--white);
}
.ba__label--after {
  right: 18px;
  background: var(--yellow);
  color: var(--ink);
}

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--yellow);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 4;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px; height: 50px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  transition: transform .15s;
}
.ba--dragging .ba__handle::before { transform: translate(-50%, -50%) scale(1.1); }
.ba__handle-arrow {
  position: relative;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  z-index: 1;
  width: 24px;
  text-align: center;
  pointer-events: none;
}
.ba__handle:focus-visible::before {
  box-shadow: 0 0 0 3px rgba(245,197,24,.6), 0 6px 18px rgba(0,0,0,.4);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__photo { position: relative; }
.about__photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--ink);
  aspect-ratio: 3 / 2;
  background: var(--ink);
}
.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__copy h2 { text-transform: uppercase; }
.about__copy p { color: var(--char); font-size: 1.05rem; max-width: 56ch; }

.about__bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}
.about__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.about__bullets li span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  position: relative;
}
.about__bullets li span::after {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 5px; height: 9px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}

@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { max-width: 480px; }
}

/* ---------- REVIEWS ---------- */
.reviews {
  background: var(--ink);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.reviews::before {
  content: "★";
  position: absolute;
  top: -60px; right: -40px;
  font-size: 380px;
  color: rgba(245,197,24,.06);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}
.reviews .eyebrow { color: rgba(255,255,255,.7); }
.reviews h2 { color: var(--white); }
.reviews__score {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  background: rgba(255,255,255,.05);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
}
.reviews__score strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}
.reviews__stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.05rem; }
.reviews__score span { color: rgba(255,255,255,.7); font-size: 0.92rem; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.review {
  background: var(--ink-3);
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  margin: 0;
  position: relative;
  transition: transform .2s ease, background .2s ease;
}
.review:hover { transform: translateY(-4px); background: #303030; }
.review__stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 14px; }
.review blockquote {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  font-style: italic;
}
.review blockquote::before { content: "\201C"; color: var(--yellow); font-size: 2rem; line-height: 0; margin-right: 2px; vertical-align: -10px; font-family: serif; }
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.review__avatar {
  --c: var(--yellow);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.review figcaption strong { display: block; font-size: 0.95rem; color: var(--white); }
.review figcaption small { color: rgba(255,255,255,.55); font-size: 0.8rem; }

.reviews__cta { text-align: center; margin-top: 36px; }
.reviews__cta .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.3); }
.reviews__cta .btn--ghost:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

@media (max-width: 980px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT / HOURS ---------- */
.contact {
  padding: 100px 0;
  background: var(--bg);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__hours h2 { text-transform: uppercase; }
.hours {
  list-style: none;
  padding: 0;
  margin: 30px 0 24px;
  border-top: 1px solid var(--line);
}
.hours li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.hours li span { color: var(--char); }
.hours li strong { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; font-size: 1.05rem; }
.hours__closed strong { color: var(--red); }

.contact__hint {
  background: var(--yellow);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin: 0;
  border-left: 4px solid var(--ink);
}

.contact__cards { display: grid; gap: 16px; }
.ccard {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.ccard__icon {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ccard__icon svg { width: 26px; height: 26px; }
.ccard small {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ccard strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.ccard span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.ccard--phone strong { color: var(--yellow-deep); }

@media (max-width: 980px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- MAP (osadzona w kolumnie kontaktu) ---------- */
.map__wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--ink);
  background: var(--ink);
}
.map__wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  filter: contrast(1.02);
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--yellow);
  color: var(--ink);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 8px, transparent 8px 22px);
  pointer-events: none;
}
.cta-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
}
.cta-strip h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  text-transform: uppercase;
  color: var(--ink);
}
.cta-strip p { margin: 0; font-size: 1.05rem; color: var(--ink-3); }
.cta-strip .btn--primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.4);
}
.cta-strip .btn--primary:hover { background: #000; }

@media (max-width: 720px) {
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- FOOTER ---------- */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.foot__brand img {
  height: 80px;
  width: auto;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.foot__brand p { color: rgba(255,255,255,.6); font-size: 0.92rem; max-width: 36ch; }

.foot h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin: 0 0 16px;
}
.foot ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.foot ul a { color: rgba(255,255,255,.7); transition: color .15s; }
.foot ul a:hover { color: var(--yellow); }
.foot ul li { font-size: 0.92rem; }

.foot__legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0 32px;
  color: rgba(255,255,255,.6);
  font-size: 0.88rem;
  line-height: 1.65;
}
.foot__legal h4 { margin-bottom: 10px; }
.foot__legal p { margin: 0; }
.foot__legal strong { color: rgba(255,255,255,.85); }
.foot__legal a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--yellow); }
.foot__legal .nowrap { white-space: nowrap; }

.foot__bottom-inner a { color: rgba(255,255,255,.65); text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom-inner a:hover { color: var(--yellow); }

.foot__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  background: #0d0d0d;
}
.foot__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}

@media (max-width: 880px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   ITERATION 3 — burger menu, mobile polish, focus-visible
   ========================================================================== */

/* ---------- Mobile burger toggle ---------- */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 10px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Mobile slide-down nav panel ---------- */
.nav__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.4);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .2s ease, transform .25s ease;
  z-index: 49;
}
.nav__mobile:not([hidden]) { display: flex; }
.nav__mobile--open {
  opacity: 1;
  transform: none;
}
.nav__mobile a {
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile a:hover, .nav__mobile a:focus-visible { color: var(--yellow); }
.nav__mobile-cta {
  margin-top: 14px;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--ink) !important;
  background: var(--yellow);
  border-radius: 999px;
}
.nav__mobile-cta:hover { color: var(--ink) !important; background: var(--yellow-bright); }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav { position: sticky; }
}

/* ---------- Address reset (avoid default italic) ---------- */
address {
  font-style: normal;
  display: block;
}
.foot__address {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}
.foot__address a { color: rgba(255,255,255,.85); transition: color .15s; }
.foot__address a:hover { color: var(--yellow); }
.foot__address span { color: rgba(255,255,255,.7); }

/* ---------- Global :focus-visible ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Mobile polish ---------- */

/* B2: map shorter on mobile */
@media (max-width: 720px) {
  .map__wrap iframe { height: 320px; }
  .map__wrap { border-width: 3px; }
}

/* B4: hero stats — 2-up + full-width 3rd on tiny screens */
@media (max-width: 420px) {
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 100%;
  }
  .hero__stats li:nth-child(3) { grid-column: 1 / -1; }
  .hero__stats strong { font-size: 1.7rem; }
}

/* B6: reviews ::before star — shrink on mobile */
@media (max-width: 720px) {
  .reviews::before { font-size: 220px; top: -30px; right: -20px; }
}

/* extra: reduce big section padding on mobile */
@media (max-width: 720px) {
  .values, .services, .about, .reviews, .contact { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-bottom: 72px; }
  .cta-strip { padding: 40px 0; }
  .cta-strip__inner { gap: 20px; }
  .foot { padding-top: 48px; }
  .foot__grid { gap: 32px; padding-bottom: 32px; }
}

/* ==========================================================================
   ITERATION 4 — RODO / cookies / strona prawna / placeholder mapy
   ========================================================================== */

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--ink);
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner--in { opacity: 1; transform: translateY(0); }
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.cookie-banner__copy strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cookie-banner__copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
}
.cookie-banner__copy a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__copy a:hover { color: var(--yellow-bright); }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__btn {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.88rem;
}
.cookie-banner .btn--ghost {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.cookie-banner .btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .cookie-banner__inner { grid-template-columns: 1fr; gap: 12px; }
  .cookie-banner__actions { flex-wrap: wrap; }
  .cookie-banner__btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- MAP PLACEHOLDER (przed zgodą na Google Maps) ---------- */
.map__placeholder {
  width: 100%;
  min-height: 360px;
  background:
    radial-gradient(circle at 30% 30%, rgba(245,197,24,.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(245,197,24,.05), transparent 50%),
    var(--ink);
  color: rgba(255,255,255,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}
.map__placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--yellow);
  margin-bottom: 8px;
}
.map__placeholder h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.map__placeholder p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}
.map__placeholder p a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map__placeholder-addr {
  margin-top: 8px;
  font-size: 0.92rem;
}
.map__placeholder-addr strong { color: var(--white); display: block; margin-bottom: 4px; }

@media (max-width: 720px) {
  .map__placeholder { min-height: 320px; padding: 24px; }
  .map__placeholder h3 { font-size: 1.15rem; }
}

/* ---------- LEGAL PAGE (polityka prywatności) ---------- */
.legal {
  padding: 80px 0 100px;
  background: var(--bg);
  color: var(--ink);
}
.legal__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  max-width: 22ch;
}
.legal__lead {
  font-size: 1.1rem;
  color: var(--char);
  max-width: 70ch;
  margin-bottom: 40px;
}
.legal__toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 56px;
  max-width: 540px;
}
.legal__toc strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--char);
  margin-bottom: 12px;
}
.legal__toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.legal__toc a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.legal__toc a:hover { color: var(--yellow-deep); border-bottom-color: var(--yellow); }

.legal section { margin-bottom: 48px; max-width: 78ch; }
.legal h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  scroll-margin-top: 140px;
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin: 24px 0 12px;
}
.legal p, .legal li { color: var(--char); line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.legal strong { color: var(--ink); }
.legal a {
  color: var(--yellow-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--ink); }

.legal__box {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 18px 0;
  line-height: 1.7;
}

.legal__table {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.legal__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.legal__table th, .legal__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal__table th {
  background: var(--bg-2);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--char);
}
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code {
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.legal__inline-btn {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--yellow-deep);
  color: var(--yellow-deep);
  padding: 0 0 1px;
  font: inherit;
  cursor: pointer;
}
.legal__inline-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

.legal__back { margin-top: 48px; }

@media (max-width: 720px) {
  .legal { padding: 48px 0 64px; }
  .legal__toc { padding: 16px 18px; }
  .legal section { margin-bottom: 36px; }
}

/* ---------- content-visibility: nie renderuj sekcji poza viewportem ----------
   Trzymamy tylko na sekcjach, gdzie nie ma interakcji hover.
   Na .services / .about wycofane — Chromium ma znane bugi z aktualizacją
   stanu :hover gdy sekcja jest containerem content-visibility. */
.foot {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
