/* ==========================================================================
   LUSTRO Detailing Studio
   Jeden akcent (#4FD1FF), dwa fonty (Unbounded + Inter), jeden easing.
   ========================================================================== */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0B0B0D;          /* Nocna czerń */
  --surface: #16171B;     /* Grafit */
  --line: #2A2C33;        /* Stal */
  --text: #F4F4F5;        /* Porcelana */
  --muted: #9CA0AA;       /* Popiół */
  --accent: #4FD1FF;      /* Lodowy błękit (zamiennie: #C9A86A) */
  --accent-rgb: 79, 209, 255;
  --error: #FF8A8A;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 150px);
  --radius: 16px;

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .94rem + .25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

::selection { background: rgba(var(--accent-rgb), .3); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.no-scroll { overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Układ i typografia ---------- */

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section__head {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section__lead {
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* błysk przelatujący przez nagłówek */
.shine {
  background: linear-gradient(120deg, var(--text) 40%, var(--accent) 50%, var(--text) 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2.4s var(--ease) both;
}
/* oba końce gradientu mają kolor tekstu, więc powtórzenie tła jest niewidoczne */
@keyframes shine {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s var(--ease);
}

.btn .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }

/* błysk na przycisku po najechaniu */
.btn:not(.glass)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:not(.glass):hover::after { transform: translateX(100%); }

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}
.btn--accent:hover { box-shadow: 0 12px 32px -10px rgba(var(--accent-rgb), .65); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.btn--ghost:not(.glass)::after { background: linear-gradient(120deg, transparent 30%, rgba(var(--accent-rgb), .18) 50%, transparent 70%); }

.btn--glass { color: var(--text); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 34px; font-size: 16px; }

/* ---------- Liquid glass ---------- */

.glass {
  --x: 50%;
  --y: 0%;
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -8px 16px rgba(255, 255, 255, .04),
    0 10px 30px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
}

/* połysk na górnej połowie szkła */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 40%);
  pointer-events: none;
}

/* światło podążające za kursorem */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--x) var(--y), rgba(255, 255, 255, .18), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.glass:hover::after { opacity: 1; }

/* prawdziwe załamanie światła — tylko Chromium (klasa .liquid z JS) */
.liquid .glass {
  -webkit-backdrop-filter: url(#liquid) blur(4px) saturate(180%);
  backdrop-filter: url(#liquid) blur(4px) saturate(180%);
}

/* ciemny podkład pod szkłem nad jasnym zdjęciem */
.glass--dim { background: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)), rgba(11, 11, 13, .35); }
.btn--glass:hover { background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)), rgba(11, 11, 13, .3); }

/* ==========================================================================
   4.1 Nawigacja
   ========================================================================== */

.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  transition: transform .55s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 16px)); }

.nav__pill {
  pointer-events: auto;
  width: min(100%, 1100px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 8px 0 20px;
  transition: background-color .4s var(--ease), background .4s var(--ease);
}

.nav.is-scrolled .nav__pill {
  background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)), rgba(11, 11, 13, .35);
}

.nav__logo { display: block; flex: none; }
.nav__logo .logo { width: 142px; height: auto; }

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.nav__links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 244, 245, .78);
  text-decoration: none;
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta { height: 48px; }

.nav__burger {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .2s;
}
.nav__burger span:nth-child(1) { transform: translateY(-5px); }
.nav__burger span:nth-child(2) { transform: translateY(5px); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

/* logo, które się rysuje */
.motion .logo--anim .logo__diamond {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw 1.2s var(--ease) .1s forwards;
}
.motion .logo--anim .logo__ray {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw .5s var(--ease) .85s forwards;
}
.motion .logo--anim .logo__ray--2 { animation-delay: 1s; }
.motion .logo--anim .logo__spark {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0) rotate(-90deg);
  animation: spark .6s var(--ease) 1.15s forwards;
}
.motion .logo--anim .logo__word {
  opacity: 0;
  animation: fade-in .8s var(--ease) .5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spark { to { transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* menu mobilne */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 110px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 13, .9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.menu.is-open {
  transform: none;
  visibility: visible;
  transition: transform .6s var(--ease), visibility 0s;
}

.menu__links { list-style: none; padding: 0; display: grid; gap: 6px; }
.menu__links a {
  display: inline-block;
  font: 600 clamp(2rem, 8vw, 3rem)/1.2 var(--font-display);
  letter-spacing: -.02em;
  text-decoration: none;
}
.menu__links a,
.menu__foot {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu.is-open .menu__links a,
.menu.is-open .menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 150ms);
}
.menu__foot { display: grid; gap: 14px; justify-items: start; }
.menu__phone { color: var(--muted); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }

/* ==========================================================================
   4.2 Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 140px clamp(96px, 13vh, 150px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform-origin: 60% 40%;
}
.hero__bg picture, .hero__media {
  width: 100%;
  height: 100%;
}
.hero__media {
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 13, .82) 28%, rgba(11, 11, 13, .25) 62%, rgba(11, 11, 13, .55) 100%),
    linear-gradient(90deg, rgba(11, 11, 13, .75) 0%, rgba(11, 11, 13, .1) 65%);
}

.hero__inner { display: grid; gap: 24px; justify-items: start; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 15ch;
}
.hero__line { display: block; }

.hero__lead {
  max-width: 46ch;
  color: rgba(244, 244, 245, .78);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
}
.mouse {
  position: relative;
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(244, 244, 245, .5);
  border-radius: 12px;
}
.mouse::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  border: 1.5px solid var(--accent);
  animation: ring 2.4s var(--ease) infinite;
}
.mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(-3px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes ring {
  0%   { opacity: .6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* stan przed animacją wejścia (zdejmowany przez JS albo awaryjnie po 2,5 s) */
.motion.is-loading .hero__title,
.motion.is-loading [data-hero] { visibility: hidden; }

/* ==========================================================================
   4.3 Liczby
   ========================================================================== */

.stats { padding-top: clamp(64px, 8vw, 110px); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
}

.stat { padding: 6px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }

.stat__num {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.stat__num em { font-style: normal; color: var(--accent); }
.stat__num small { font-size: .45em; color: var(--muted); letter-spacing: 0; margin-left: .15em; }
.stat__label { margin-top: 14px; color: var(--muted); }

.marquee-wrap { margin-top: clamp(56px, 7vw, 96px); }
.marquee-wrap__label {
  text-align: center;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 16px;
  list-style: none;
  padding: 0;
}
.is-looping .marquee__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font: 600 clamp(1rem, .9rem + .5vw, 1.375rem)/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s;
}
.brand::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  opacity: .7;
}
.brand:hover { color: var(--text); }

/* ==========================================================================
   4.4 Usługi
   ========================================================================== */

.services { overflow: hidden; isolation: isolate; }

.services__blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.services__blobs span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .26), rgba(var(--accent-rgb), 0) 68%);
  will-change: transform;
}
.services__blobs span:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: 18%; animation: drift-a 28s ease-in-out infinite alternate; }
.services__blobs span:nth-child(2) { width: 42vw; height: 42vw; right: -10vw; top: 40%; animation: drift-b 34s ease-in-out infinite alternate; opacity: .8; }
.services__blobs span:nth-child(3) { width: 30vw; height: 30vw; left: 38%; bottom: -8%; animation: drift-c 24s ease-in-out infinite alternate; opacity: .6; }
@keyframes drift-a { to { transform: translate(22vw, 6vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-18vw, -12vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-14vw, -20vh) scale(1.2); } }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 5vw, 64px);
}

.card {
  --x: 50%;
  --y: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 30px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(320px circle at var(--x) var(--y), rgba(var(--accent-rgb), .12), transparent 60%),
    rgba(22, 23, 27, .58);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: translate .3s var(--ease), border-color .3s;
}
.card:hover { translate: 0 -6px; border-color: var(--accent); }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--accent);
}
.card__icon .i { width: 24px; height: 24px; stroke-width: 1.5; }

.card h3 {
  font: 600 1.25rem/1.25 var(--font-display);
  letter-spacing: -.01em;
  margin: 28px 0 10px;
}
.card p { color: var(--muted); font-size: 16px; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}
.card__price { font-size: 15px; color: var(--muted); }
.card__price strong { color: var(--text); font-weight: 600; }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
.card__more::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__more .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.card:hover .card__more .i { transform: translateX(4px); }
.card__more:focus-visible { outline: none; }
.card__more:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 3px; }

/* okno ze szczegółami usługi */
.sheet {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.sheet[open] { animation: sheet-in .5s var(--ease); }
.sheet.is-closing { animation: sheet-out .25s ease forwards; }
.sheet::backdrop {
  background: rgba(5, 5, 7, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }

.sheet__inner {
  position: relative;
  display: grid;
  gap: 18px;
  max-height: calc(100svh - 50px);
  overflow: auto;
  padding: clamp(26px, 4vw, 40px);
}
.sheet__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  transition: border-color .3s;
}
.sheet__close:hover { border-color: var(--accent); }
.sheet h3 {
  font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-display);
  letter-spacing: -.02em;
  padding-right: 52px;
}
.sheet__body { display: grid; gap: 18px; color: var(--muted); font-size: 16px; }
.sheet__body ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--text); }
.sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.sheet__meta dt { font-size: 13px; color: var(--muted); }
.sheet__meta dd { color: var(--text); font-weight: 600; }
.sheet .btn { justify-self: start; }

/* lista z „ptaszkami” — pakiety i okno usługi */
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .2em;
  background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

/* ==========================================================================
   4.5 Jak pracujemy
   ========================================================================== */

.process__steps {
  --gap: clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin-top: clamp(48px, 6vw, 80px);
}

.step { position: relative; padding-right: 8px; }

.step__seg {
  position: absolute;
  top: 28px;
  left: 28px;
  width: calc(100% + var(--gap));
  height: 1px;
  background: var(--line);
}
.step:last-child .step__seg { display: none; }
.step__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), .7);
  transform-origin: left center;
  transform: scaleX(var(--s, 1));
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font: 600 15px/1 var(--font-display);
  color: var(--muted);
  transition: color .4s, background-color .4s, border-color .4s, box-shadow .4s;
}
.step.is-lit .step__num {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 0 32px rgba(var(--accent-rgb), .45);
}
.step h3 {
  font: 600 1.25rem/1.25 var(--font-display);
  letter-spacing: -.01em;
  margin: 28px 0 10px;
}
.step p { color: var(--muted); font-size: 16px; max-width: 30ch; }

/* ==========================================================================
   4.6 Przed / Po
   ========================================================================== */

.ba-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 36px auto 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.ba-tabs button {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.ba-tabs button:hover { color: var(--text); }
.ba-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.ba-center { display: flex; justify-content: center; }

.ba {
  --p: .5;
  --pos: calc(var(--p) * 100%);
  --w: 1200px;
  --h: 675px;
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba__stage, .ba__set { position: absolute; inset: 0; }
.ba__set { opacity: 0; transition: opacity .5s var(--ease); }
.ba[data-active="lakier"] .ba__set[data-set="lakier"],
.ba[data-active="wnetrze"] .ba__set[data-set="wnetrze"],
.ba[data-active="felgi"] .ba__set[data-set="felgi"] { opacity: 1; }

.ba__set img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* DEMO: „przed” udawane filtrem i nakładką. Po podmianie na prawdziwe zdjęcie PRZED usuń klasę --demo i .ba__grime. */
.ba__before--demo img { filter: saturate(.72) contrast(.82) brightness(.9); }
.ba__set[data-set="wnetrze"] .ba__before--demo img { filter: saturate(.55) sepia(.2) contrast(.84) brightness(.86); }
.ba__set[data-set="felgi"] .ba__before--demo img { filter: sepia(.5) saturate(.7) contrast(.86) brightness(.78); }
.ba__grime {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.ba__grime[data-grime="paint"] { mix-blend-mode: screen; }

.ba__label {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(11, 11, 13, .6);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__label--before { left: 18px; }
.ba__label--after { right: 18px; color: var(--accent); }

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .65);
  pointer-events: none;
}

/* uchwyt: okrągła szklana soczewka, która powiększa lakier pod sobą */
.ba__lens {
  position: absolute;
  top: 50%;
  left: var(--pos);
  z-index: 3;
  width: 56px;
  height: 56px;
  translate: -50% -50%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(var(--accent-rgb), .45);
  pointer-events: none;
  transition: scale .3s var(--ease);
}
.ba.is-dragging .ba__lens { scale: 1.12; }

.ba__lens-view {
  position: absolute;
  width: var(--w);
  height: var(--h);
  left: calc(28px - var(--w) * var(--p));
  top: calc(28px - var(--h) / 2);
  transform-origin: calc(var(--w) * var(--p)) 50%;
  scale: 1.4;
}
.ba__lens-view .ba__stage { position: absolute; inset: 0; }

.ba__lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .45), transparent 34%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(255, 255, 255, .12) 72%, rgba(0, 0, 0, .25) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -6px 12px rgba(255, 255, 255, .1);
}
.ba__lens-arrows {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
}
.ba__lens-arrows .i { width: 14px; height: 14px; stroke-width: 2.5; }

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.ba:has(.ba__range:focus-visible) .ba__lens { outline: 2px solid var(--accent); outline-offset: 4px; overflow: visible; }

.ba-hint { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   4.7 Galeria
   ========================================================================== */

.gallery { isolation: isolate; }
.gallery::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(180px, 22vw, 300px);
  z-index: -1;
  width: min(760px, 100%);
  height: 260px;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .2), transparent 100%);
  pointer-events: none;
}

.gallery__bar { display: flex; justify-content: center; margin: 40px 0 36px; }

.filters {
  display: inline-flex;
  gap: 2px;
  padding: 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  position: relative;
  z-index: 1;
  flex: none;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .3s;
}
.filters button:hover,
.filters button[aria-pressed="true"] { color: var(--text); }

/* szklana „kropla” pod aktywnym filtrem */
.filters__drop {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 0;
  width: 0;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -4px 10px rgba(255, 255, 255, .06),
    0 6px 16px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.masonry { columns: 3; column-gap: 16px; }

.tile {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
}
.tile.is-hidden { display: none; }
.tile__link { display: block; cursor: zoom-in; }
.tile img {
  width: 100%;
  transition: transform .7s var(--ease);
}
.tile:hover img { transform: scale(1.05); }

.tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 2px;
  padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(11, 11, 13, .92), transparent);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  pointer-events: none;
}
.tile:hover .tile__cap,
.tile:focus-within .tile__cap { transform: none; }
.tile__cap strong { font: 600 15px/1.3 var(--font-display); }
.tile__cap span { font-size: 13px; color: var(--muted); }

.gallery__more { display: flex; justify-content: center; margin-top: 28px; }
.gallery__more [hidden] { display: none; }

/* PhotoSwipe */
.pswp { --pswp-bg: #0B0B0D; --pswp-icon-color: #F4F4F5; --pswp-icon-color-secondary: #0B0B0D; }
.pswp__caption-bar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(22, 23, 27, .8);
  border: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}
.pswp__caption-bar:empty { display: none; }
.pswp__caption-bar strong { font-family: var(--font-display); font-weight: 600; margin-right: 8px; }
.pswp__caption-bar span { color: var(--muted); }

/* ==========================================================================
   4.8 Pakiety i ceny
   ========================================================================== */

.pricing { isolation: isolate; }

.pricing__switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 40px 0 56px;
}

.size-switch {
  --i: 1;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.size-switch button {
  position: relative;
  z-index: 1;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .3s;
}
.size-switch button[aria-checked="true"] { color: var(--bg); }
.size-switch__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .5s var(--ease);
}
.size-hint { font-size: 14px; color: var(--muted); min-height: 1.6em; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  list-style: none;
  padding: 0;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.plan h3 { font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; }
.plan__for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 15px; }
.plan__price strong {
  font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.25rem)/1 var(--font-display);
  letter-spacing: -.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.plan ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan .btn { margin-top: auto; width: 100%; }

.plan--featured {
  padding: 50px 34px;
  border-color: transparent;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(var(--accent-rgb), .12), transparent 60%),
    var(--surface);
}
/* obracająca się, świecąca ramka */
.plan--featured::before,
.plan--featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle),
    rgba(var(--accent-rgb), .12) 0%, var(--accent) 10%, rgba(var(--accent-rgb), .12) 22%,
    rgba(var(--accent-rgb), .12) 50%, var(--accent) 60%, rgba(var(--accent-rgb), .12) 72%);
  animation: spin 5s linear infinite;
  pointer-events: none;
}
.plan--featured::before {
  padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.plan--featured::after {
  z-index: -1;
  filter: blur(22px);
  opacity: .45;
}
@keyframes spin { to { --angle: 360deg; } }

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  translate: -50% 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing__note { margin-top: 36px; text-align: center; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   4.9 Opinie
   ========================================================================== */

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  text-decoration: none;
  transition: border-color .3s;
}
.gbadge:hover { border-color: var(--accent); }
.gbadge strong { font-family: var(--font-display); font-weight: 600; }
.gbadge .i { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.gbadge span { color: var(--muted); }

.reviews__rows { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }

.rrow {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rrow::-webkit-scrollbar { display: none; }
.rrow.is-looping { overflow: hidden; }
.rrow__track { display: flex; width: max-content; }

.review {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(400px, 82vw);
  margin: 0 20px 0 0;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.review__stars { display: flex; gap: 3px; color: var(--accent); }
.review__stars .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.review blockquote { flex: 1; font-size: 16px; line-height: 1.6; }
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.review figcaption img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   4.10 FAQ
   ========================================================================== */

.faq__list { max-width: 760px; margin: clamp(40px, 5vw, 56px) auto 0; border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 clamp(1rem, .95rem + .3vw, 1.2rem)/1.4 var(--font-body);
  text-align: left;
}
.qa__q:hover { color: var(--accent); }
.qa__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: transform .4s var(--ease), border-color .3s, color .3s;
}
.qa__icon .i { width: 18px; height: 18px; }
.qa.is-open .qa__icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.qa.is-open .qa__a > div { visibility: visible; transition-delay: 0s; }
.qa__a p { padding: 0 62px 26px 0; color: var(--muted); font-size: 16px; }

/* ==========================================================================
   4.11 Kontakt i rezerwacja
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact .section__head { margin-bottom: 32px; }

.form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  height: 60px;
  padding: 26px 16px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { height: 132px; resize: vertical; min-height: 100px; padding-top: 30px; }
.field input:hover, .field textarea:hover { border-color: #3A3D46; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12);
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input[type="date"] { color-scheme: dark; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }

/* etykiety unoszą się nad pole */
.field label {
  position: absolute;
  left: 17px;
  top: 19px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
  pointer-events: none;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field--date label {
  transform: translateY(-11px) scale(.76);
}
.field input:focus + label,
.field textarea:focus + label { color: var(--accent); }
.field__opt { color: #6E727C; }

.field__error {
  margin: 6px 2px 0;
  color: var(--error);
  font-size: 13px;
}
.field__error:empty { display: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--error); }

.chips { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color .25s, color .25s, background-color .25s;
}
.chip span::before {
  content: "";
  width: 0;
  height: 14px;
  background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
  transition: width .3s var(--ease);
}
.chip:hover span { border-color: #3A3D46; color: var(--text); }
.chip input:checked + span {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
  color: var(--text);
}
.chip input:checked + span::before { width: 14px; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.consent input::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--bg);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { transform: none; }
.consent a { color: var(--text); }
.consent-wrap.is-invalid .consent input { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }

/* przycisk: kółko ładowania → rysujący się ✓ */
.form__submit {
  min-width: 230px;
  clip-path: inset(0 round 999px);
  transition: clip-path .5s var(--ease), box-shadow .3s var(--ease);
}
.form__submit.is-loading,
.form__submit.is-done {
  clip-path: inset(0 calc(50% - 26px) round 26px);
  pointer-events: none;
  box-shadow: none;
}
.form__submit-label { transition: opacity .2s; }
.form__submit.is-loading .form__submit-label,
.form__submit.is-done .form__submit-label { opacity: 0; }
.form__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2.5px solid rgba(11, 11, 13, .25);
  border-top-color: var(--bg);
  border-radius: 50%;
  opacity: 0;
  animation: rotate .8s linear infinite;
  transition: opacity .2s;
}
.form__submit.is-loading .form__spinner { opacity: 1; }
.form__check {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.form__submit.is-done .form__check { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .25s; }
@keyframes rotate { to { transform: rotate(360deg); } }

.form__status { font-size: 15px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--text); font-weight: 600; animation: fade-up .6s var(--ease) .45s both; }
.form__status.is-error { color: var(--error); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.contact__info { position: sticky; top: 100px; display: grid; gap: 16px; }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0F1013;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(.92) contrast(.9) brightness(.92);
}
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin {
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% -100%;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .6));
}
.map__pin .i { width: 40px; height: 40px; stroke-width: 1.5; fill: rgba(11, 11, 13, .8); }
.map__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 30px;
  height: 10px;
  margin-left: -15px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: ring 2.4s var(--ease) infinite;
}
.map__ui {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.map__note { font-size: 12px; color: var(--muted); max-width: 26ch; line-height: 1.4; }
.map__load { background: rgba(11, 11, 13, .7); }

.info {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-size: 16px;
}
.info li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.info__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
}
.info__icon .i { width: 20px; height: 20px; }
.info small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.info a { text-decoration: none; transition: color .25s; }
.info a:hover { color: var(--accent); }
.info strong { font-weight: 600; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 18px; }
.hours dt { color: var(--muted); }

.chat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ==========================================================================
   4.12 Pas CTA i stopka
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(90px, 11vw, 160px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  z-index: -1;
  width: min(1100px, 140%);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--accent-rgb), .22), transparent 100%);
}
.cta-band h2 {
  max-width: 14ch;
  margin-inline: auto;
  font: 700 clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem)/1.05 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.cta-band p { max-width: 46ch; margin: 20px auto 36px; color: var(--muted); }

.footer {
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.footer .logo { width: 190px; height: auto; }
.footer__about { max-width: 34ch; margin-top: 18px; color: var(--muted); font-size: 15px; }
.footer h3 {
  margin-bottom: 18px;
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer ul { display: grid; gap: 10px; list-style: none; padding: 0; font-size: 15px; }
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--accent); }
.footer__data { font-size: 15px; color: var(--muted); font-style: normal; display: grid; gap: 4px; }
.footer__data a { color: var(--text); }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .25s, color .25s;
}
.socials a:hover { border-color: var(--accent); }
.socials .i { width: 19px; height: 19px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; transition: color .25s; }
.linkish:hover { color: var(--accent); }

/* ogromny napis tylko obrysem — wypełnia się akcentem na końcu strony */
.giant {
  display: block;
  width: calc(100% - 2 * var(--gutter) + 16px);
  height: auto;
  margin: 8px auto clamp(12px, 2vw, 28px);
  overflow: visible;
}
.giant text { font-family: var(--font-display); font-weight: 700; }
.giant__outline { fill: none; stroke: #3A3D46; stroke-width: 1.5; }
.giant__fill { fill: var(--accent); }

/* ==========================================================================
   Pasek na telefonie i baner cookies
   ========================================================================== */

.mbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1.3fr;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  transform: translateY(calc(100% + 32px));
  transition: transform .5s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mbar .i { width: 18px; height: 18px; }
.mbar__call { color: var(--text); background: rgba(255, 255, 255, .07); }
.mbar__book { color: var(--bg); background: var(--accent); }

.cookies {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  gap: 14px;
  width: min(420px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  font-size: 14px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s, transform .5s var(--ease);
}
.cookies[hidden] { display: none; }
.cookies.is-visible { opacity: 1; transform: none; }
.cookies strong { color: var(--text); font-size: 15px; }
.cookies a { color: var(--text); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Responsywność
   ========================================================================== */

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

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .step:nth-child(2) .step__seg { display: none; }

  .masonry { columns: 2; }

  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 28px; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .contact__info .map { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

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

@media (max-width: 640px) {
  .nav__pill { height: 60px; padding-left: 16px; }
  .nav__cta { display: none; }
  .nav__logo .logo { width: 128px; }

  .hero { padding-bottom: 72px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: .14em; gap: 10px; }
  .hero .eyebrow::before { width: 18px; }
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }

  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stat { padding: 0 0 0 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .services__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: radial-gradient(320px circle at var(--x) var(--y), rgba(var(--accent-rgb), .12), transparent 60%), rgba(22, 23, 27, .82); }

  .process__steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { padding-left: 80px; min-height: 56px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 12px; }
  .step:nth-child(2) .step__seg { display: block; }
  .step__seg { width: 1px; height: calc(100% + 40px); }
  .step__fill { transform-origin: center top; transform: scaleY(var(--s, 1)); }

  .ba { aspect-ratio: 4 / 3; border-radius: 16px; }
  .ba__label { top: 12px; font-size: 11px; padding: 6px 11px; }
  .ba__label--before { left: 12px; }
  .ba__label--after { right: 12px; }

  .filters { padding: 4px; gap: 0; }
  .filters button { height: 40px; padding: 0 10px; font-size: 13px; }
  .filters__drop { top: 4px; height: 40px; }
  .masonry { column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 12px; }
  .tile__cap { padding: 28px 10px 9px; }
  .tile__cap strong { font-size: 12px; }
  .tile__cap span { display: none; }

  .size-switch button { padding: 0 18px; }

  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .contact__info { grid-template-columns: 1fr; }
  .contact__info .map { aspect-ratio: 4 / 3; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  .mbar { display: grid; }
  .cookies { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }

  .sheet {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
}

@media (hover: none) {
  .tile__cap { transform: none; }
}

@media (max-height: 640px) {
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Szacunek dla użytkownika
   ========================================================================== */

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

@media (prefers-reduced-transparency: reduce) {
  .glass, .liquid .glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #16171B;
  }
  .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: #16171B; }
  .menu { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(22, 23, 27, .92); }
  .card { background: #16171B; }
}
