/* ============================================================
   Transport Piaseczno - demo
   Szablon odniesienia: movetrans.webflow.io (editorial, duza lekka
   typografia, kafelki ze zdjeciem i chipami, numerowany proces).
   Sygnatura wlasna z uniqueness-seed: neon-noir (czern + zolty z logo),
   rytm alternating-split, ziarno na tle, powolny reveal od dolu.
   ============================================================ */

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

html { scroll-behavior: smooth; }
html.menu-open, html.lb-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* --- typografia ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.06;
  margin: 0;
}
.h2 {
  font-size: clamp(30px, 5vw, 54px);
  max-width: 20ch;
}
.h2--srodek { max-width: 24ch; margin-inline: auto; text-align: center; }
.kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.na-ciemnym .kicker { color: var(--accent); }
p { margin: 0 0 18px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; }

/* --- sekcje ---------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.na-ciemnym {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink) 100%);
  color: #FFF;
}
.na-ciemnym .lead { color: var(--muted-dark); }

/* zszycie jasnych i ciemnych sekcji gradientem zamiast kreski */
.szew { height: 56px; background: linear-gradient(180deg, var(--bg), var(--surface-2)); }

/* ziarno (sygnatura: grain-overlay) */
.fx-grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

/* --- przyciski -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
  letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--zolty { background: var(--accent); color: var(--accent-ink); }
.btn--zolty:hover { background: #FFD93B; }
.btn--ciemny { background: var(--ink); color: #FFF; }
.btn--ciemny:hover { background: var(--ink-3); }
.btn--kontur { background: transparent; color: var(--text); border-color: var(--line); }
.btn--kontur:hover { border-color: var(--ink); }
.na-ciemnym .btn--kontur, .hero .btn--kontur, .kafel .btn--kontur { color: #FFF; border-color: rgba(255, 255, 255, .32); }
.na-ciemnym .btn--kontur:hover, .hero .btn--kontur:hover, .kafel .btn--kontur:hover { border-color: #FFF; background: rgba(255, 255, 255, .08); }
.btn .znak { flex: none; }

/* --- preloader (wzor: Shiva Dance) ------------------------------ */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: var(--ink);
  transition: opacity .5s var(--ease), visibility .5s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.loader-logo { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 8vw, 62px); letter-spacing: -.02em; }
.loader-logo .ghost { color: rgba(255, 255, 255, .16); }
.loader-logo .fill {
  position: absolute; inset: 0; color: #FFF; white-space: nowrap;
  clip-path: inset(0 100% 0 0); transition: clip-path .18s linear;
}
.loader-bar { width: min(260px, 60vw); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .18s linear; }

/* --- naglowek --------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  background: rgba(16, 17, 20, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--naglowek);
  padding-block: 10px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 92px; width: auto; }
.naglowek-prawa { display: flex; align-items: center; gap: 12px; }

.ikona-kolo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); color: #FFF;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.ikona-kolo:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-tel {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px 0 16px;
  border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .22);
  color: #FFF; text-decoration: none;
  font-family: var(--font-display); font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-tel:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px;
  background: var(--accent); border: 0; border-radius: 50%; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--accent-ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(2) { width: 70%; }

@media (max-width: 900px) {
  :root { --naglowek: 70px; }
  .logo-link img { height: 52px; }
  .btn-tel span { display: none; }
  .btn-tel { padding: 0; width: 46px; justify-content: center; }
  .naglowek-social { display: none; }
}

/* --- szuflada menu (wzor: Shiva Dance) -------------------------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10, 11, 13, .62);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.szuflada {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(400px, 88vw);
  padding: 30px 34px 40px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--ink); color: #FFF;
  transform: translateX(102%); transition: transform .45s var(--ease);
  overflow-y: auto;
}
.szuflada.open { transform: none; }
.szuflada-zamknij {
  align-self: flex-end; width: 44px; height: 44px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  color: #FFF; cursor: pointer;
}
.szuflada-tytul { font-family: var(--font-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.szuflada > a {
  font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em;
  text-decoration: none; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transform: translateX(22px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
}
.szuflada > a:hover { color: var(--accent); }
.szuflada.open > a { opacity: 1; transform: none; }
.szuflada.open > a:nth-of-type(1) { transition-delay: .10s; }
.szuflada.open > a:nth-of-type(2) { transition-delay: .16s; }
.szuflada.open > a:nth-of-type(3) { transition-delay: .22s; }
.szuflada.open > a:nth-of-type(4) { transition-delay: .28s; }
.szuflada.open > a:nth-of-type(5) { transition-delay: .34s; }
.szuflada.open > a:nth-of-type(6) { transition-delay: .40s; }
.szuflada-stopka { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.szuflada-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
}
.social-kola { display: flex; gap: 10px; justify-content: center; }

/* --- hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--naglowek) + 56px) 0 clamp(48px, 7vw, 96px);
  background: var(--ink);
  overflow: hidden;
}
.hero__tlo {
  position: absolute; inset: 0;
  background: url("images/hero.jpg") center 42% / cover no-repeat;
  animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 17, 20, .78) 0%, rgba(16, 17, 20, .30) 34%, rgba(16, 17, 20, .86) 78%, rgba(16, 17, 20, .96) 100%),
    linear-gradient(96deg, rgba(16, 17, 20, .72) 0%, rgba(16, 17, 20, .12) 62%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #FFF;
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 500;
  max-width: 16ch;
  margin: 0 0 34px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
}
.hero h1 .miasto { color: var(--accent); }
.hero__akcje { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__akcje .btn { min-width: 262px; }
@media (max-width: 520px) {
  .hero__akcje { flex-direction: column; align-items: stretch; }
  .hero__akcje .btn { min-width: 0; width: 100%; }
}

/* --- pasek zasiegu ---------------------------------------------- */
.zasieg { background: var(--accent); color: var(--accent-ink); padding: 20px 0; }
.zasieg ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px;
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.zasieg li { display: inline-flex; align-items: center; gap: 26px; }
.zasieg li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(20, 22, 26, .45); }
.zasieg li:last-child::after { display: none; }
/* na waskim ekranie pasek lamie sie na kilka wierszy i kropka zostawala na
   koncu wersu jak literowka */
@media (max-width: 760px) { .zasieg li::after { display: none; } .zasieg ul { gap: 8px 20px; } }

/* --- karty uslug ------------------------------------------------- */
/* Cztery uslugi w siatce 2x2: przy trzech kolumnach czwarta karta zostawala
   sama w dolnym rzedzie. */
.siatka-uslug {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 54px;
}
@media (min-width: 860px) { .siatka-uslug { grid-template-columns: 1fr 1fr; } }
.usluga {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px 16px 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* chipy do dolu karty, zeby rzedy siatki konczyly sie rowno */
.usluga .chipy { margin-top: auto; }
.usluga:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.usluga__foto { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 24px; }
.usluga__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.usluga:hover .usluga__foto img { transform: scale(1.06); }
.usluga h3 { font-size: 25px; padding: 0 12px; margin-bottom: 12px; }
.usluga p { padding: 0 12px; color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.chipy { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; list-style: none; margin: 0; }
.chipy li {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  letter-spacing: .04em;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted);
}
.pod-siatka { margin-top: 46px; text-align: center; }

/* --- o nas / dlaczego (alternating-split) ------------------------ */
.split {
  display: grid; gap: clamp(32px, 5vw, 74px);
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__foto { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1; }
.split__foto img { width: 100%; height: 100%; object-fit: cover; }
.cytat {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42;
  color: var(--text); margin: 0 0 12px;
  padding-left: 22px; border-left: 3px solid var(--accent);
}
.cytat-autor { font-size: 14px; color: var(--muted); margin-bottom: 34px; }
.fakty { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fakty li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px;
}
.fakty b { font-family: var(--font-display); font-weight: 600; display: block; font-size: 17px; margin-bottom: 3px; }
.fakty span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.fakty .znak { flex: none; color: var(--accent-deep); margin-top: 3px; }

/* --- pasek trzech zdjec ------------------------------------------ */
.pasek-zdjec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 62px; }
/* height:auto jest konieczne: atrybuty width/height na <img> dzialaja jak
   deklaracje CSS i bez tego przebijaja aspect-ratio (zdjecia rosly do 700 px). */
.pasek-zdjec img { border-radius: var(--r-lg); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .pasek-zdjec { grid-template-columns: 1fr 1fr; } .pasek-zdjec img:last-child { display: none; } }

/* --- proces ------------------------------------------------------ */
.kroki { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 54px; }
.krok {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  padding: 30px 26px 32px;
}
.krok__nr {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .16em;
  color: var(--accent); display: block; margin-bottom: 26px;
}
.krok h3 { font-size: 22px; color: #FFF; margin-bottom: 10px; }
.krok p { color: var(--muted-dark); font-size: 15.5px; margin: 0; }

/* --- opinie ------------------------------------------------------ */
.ocena-pasek {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px 0 0; font-family: var(--font-display); font-size: 15px; color: var(--muted);
}
.gwiazdki { color: var(--accent-deep); letter-spacing: 2px; font-size: 18px; }
.karuzela { position: relative; margin-top: 46px; }
.karuzela__tor {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.karuzela__tor::-webkit-scrollbar { display: none; }
.opinia {
  flex: 0 0 min(430px, 84vw); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.opinia .gwiazdki { margin-bottom: 16px; }
.opinia p { font-size: 16.5px; color: var(--text); margin-bottom: 22px; }
.opinia footer { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.opinia footer small { display: block; font-family: var(--font-text); font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.karuzela__nawigacja { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }
.karuzela__btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.karuzela__btn:hover { background: var(--accent); border-color: var(--accent); }

/* --- kontakt ----------------------------------------------------- */
.kontakt-uklad { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); margin-top: 54px; }
@media (max-width: 900px) { .kontakt-uklad { grid-template-columns: 1fr; } }
.kontakt-kafle { display: grid; gap: 16px; align-content: start; }
.kafel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.kafel h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 14px; }
.kafel .z-ikona { display: flex; gap: 13px; align-items: flex-start; color: #FFF; font-size: 17px; text-decoration: none; }
.kafel .z-ikona .znak { flex: none; color: var(--accent); margin-top: 3px; }
.godziny { list-style: none; margin: 0; padding: 0; }
.godziny li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; color: var(--muted-dark); font-size: 15.5px; }
.godziny li b { font-weight: 500; color: #FFF; }
.godziny .kropki { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, .25); transform: translateY(-4px); }
.godziny li span:last-child { color: #FFF; font-variant-numeric: tabular-nums; }
.mapa { border-radius: var(--r-xl); overflow: hidden; min-height: 430px; border: 1px solid rgba(255, 255, 255, .11); }
.mapa iframe { width: 100%; height: 100%; min-height: 430px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
.kontakt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* --- stopka ------------------------------------------------------ */
.stopka { background: var(--ink); color: var(--muted-dark); padding: 64px 0 40px; border-top: 1px solid var(--line-dark); }
.stopka__gora { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .stopka__gora { grid-template-columns: 1fr 1fr; } .stopka__gora > div { grid-column: 1 / -1; } }
.stopka img { height: 86px; width: auto; margin-bottom: 18px; }
.stopka__nap { font-size: 15.5px; line-height: 1.75; }
.stopka__nap a { color: #FFF; text-decoration: none; }
.stopka__linki { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-family: var(--font-display); font-size: 15.5px; }
.stopka__linki a { text-decoration: none; }
.stopka__linki a:hover { color: var(--accent); }
.stopka__dol {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px;
}

/* --- reveal (sygnatura: slow-reveal-up) -------------------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: .07s; }
.rv:nth-child(3) { transition-delay: .14s; }
.rv:nth-child(4) { transition-delay: .21s; }

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