/* bikelove — wspólny styl strony */
:root {
  --asphalt: #1b1d1f;
  --asphalt-2: #24272a;
  --line-dark: #34383c;
  --bone: #ece9e2;
  --bone-dim: #a9a69e;
  --studio: #e8e6e1;
  --ink: #17191b;
  --muted: #6c6a64;
  --gold: #c7a35a;      /* Aurum */
  --steel: #9db1bf;     /* Nowe i używane */
  --white: #ffffff;     /* Colnago */
  --radius: 6px;
  --wide: 'Archivo', system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--asphalt); color: var(--bone);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wide { font-stretch: 125%; font-weight: 300; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad); background: rgba(27, 29, 31, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.top.is-over { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.top-btn { justify-self: start; background: none; border: 0; color: inherit; font: inherit; font-size: 15px; cursor: pointer; padding: 6px 0; }
.logo { text-decoration: none; font-size: 22px; font-stretch: 125%; font-weight: 500; letter-spacing: .02em; }
.logo span { font-weight: 200; }
.top-right { justify-self: end; display: flex; gap: 22px; font-size: 15px; }
.top-right a { text-decoration: none; }
.top-right a:hover, .top-btn:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }

.menu {
  position: fixed; inset: 0; z-index: 100; background: var(--asphalt); display: none;
  padding: 90px var(--pad) 40px; overflow: auto;
}
.menu.is-open { display: block; }
.menu-close { position: absolute; top: 18px; left: var(--pad); }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a {
  text-decoration: none; font-size: clamp(34px, 6vw, 72px); line-height: 1.12;
  font-stretch: 125%; font-weight: 200; color: var(--bone-dim); transition: color .2s;
}
.menu nav a:hover, .menu nav a:focus-visible { color: var(--bone); }
.menu .menu-meta { margin-top: 48px; color: var(--bone-dim); font-size: 15px; display: grid; gap: 4px; }

/* ---------- stopka / salon ---------- */
.salon {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 80px var(--pad);
  border-top: 1px solid var(--line-dark);
}
.salon h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.salon p { margin: 0; color: var(--bone-dim); max-width: 46ch; }
.salon dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; align-content: start; }
.salon dt { color: var(--bone-dim); }
.salon dd { margin: 0; }
.foot { padding: 22px var(--pad); color: var(--bone-dim); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); }
.placeholder { border-bottom: 1px dashed var(--bone-dim); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid currentColor; background: none;
  color: inherit; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-solid:hover { background: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: #000; color: var(--white); border-color: #000; }

/* ---------- strona główna: trzy ścieżki ---------- */
.paths { display: flex; height: 100svh; min-height: 620px; }
.path {
  container-type: inline-size;
  position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(18px, 2.6vw, 40px) clamp(28px, 5vh, 56px); text-decoration: none; overflow: hidden;
  border-right: 1px solid var(--line-dark); transition: flex-grow .7s cubic-bezier(.2, .7, .2, 1);
}
.path:last-child { border-right: 0; }
.paths:hover .path, .paths:focus-within .path { flex-grow: .8; }
.paths .path:hover, .paths .path:focus-visible { flex-grow: 1.8; }
.path-art { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.path-art img { width: 94%; max-width: 980px; transform: translateY(-14%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.path:hover .path-art img { transform: translateY(-14%) scale(1.03); }
.path-name {
  position: relative; margin: 0; font-size: clamp(34px, 13cqi, 112px); line-height: .95;
  font-stretch: 125%; font-weight: 200;
}
.path-desc { position: relative; margin: 14px 0 0; max-width: 34ch; min-height: 3.1em; color: var(--bone-dim); font-size: 15px; }
.path-go { position: relative; margin-top: 22px; align-self: flex-start; }
.path--aurum { background: radial-gradient(120% 70% at 50% 42%, #3a3326 0%, #232220 55%, var(--asphalt) 100%); }
.path--aurum .path-name { color: var(--gold); }
.path--colnago { background: linear-gradient(180deg, #262829 0%, #1e2022 100%); }
.path--colnago .path-name { color: var(--white); }
.path--steel { background: linear-gradient(180deg, #202529 0%, #1b1f22 100%); }
.path--steel .path-name { color: var(--steel); }
.path-mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.path-mark span {
  font-stretch: 125%; font-weight: 100; font-size: clamp(120px, 20vw, 320px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 233, 226, .09); transform: translateY(-12%);
}
.path-mark--bikes { display: grid; place-items: center; }
.path-mark--bikes img { width: min(70%, 420px); opacity: .22; transform: translateY(-14%); }

/* sekcja „ostatnio dodane” */
.band { padding: 90px var(--pad); }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; }
.band-head h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.05; }
.band-head a { color: var(--bone-dim); }

/* ---------- karty ogłoszeń ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 22px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card-photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--studio); border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo img.is-placeholder { width: 64%; height: auto; object-fit: contain; opacity: .7; }
.card:hover .card-photo img:not(.is-placeholder) { transform: scale(1.02); }
.card-photo img { transition: transform .5s ease; }
.tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px;
  background: var(--ink); color: var(--white);
}
.tag--reserved { background: var(--gold); color: var(--ink); }
.tag--sold { background: #5d5f61; }
.card.is-sold .card-photo img { filter: grayscale(1); opacity: .55; }
.card-title { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.25; }
.card-sub { margin: 2px 0 0; color: var(--bone-dim); font-size: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--bone-dim); }
.card-specs span { white-space: nowrap; }
.card-specs b { color: var(--bone); font-weight: 500; }
.price { font-size: 19px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s { display: block; text-align: right; color: var(--bone-dim); font-weight: 400; font-size: 13px; line-height: 1.2; }

/* ---------- nagłówek sekcji ---------- */
.hero-sec { padding: 70px var(--pad) 40px; display: grid; gap: 18px; }
.hero-sec h1 { margin: 0; font-size: clamp(56px, 10vw, 150px); line-height: .9; font-stretch: 125%; font-weight: 200; }
.hero-sec p { margin: 0; max-width: 52ch; color: var(--bone-dim); font-size: 18px; }
.tone-colnago h1 { color: var(--white); }
.tone-steel h1 { color: var(--steel); }
.tone-gold h1 { color: var(--gold); }

/* filtry */
.filters { display: flex; flex-wrap: wrap; gap: 26px; align-items: end; padding: 0 var(--pad) 34px; }
.filter { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.filter legend, .filter > span { font-size: 13px; color: var(--bone-dim); padding: 0; margin-bottom: 8px; }
.filter > span { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.chip span:hover { border-color: var(--bone-dim); }
.chip input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.select {
  appearance: none; background: transparent; color: var(--bone); border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 8px 34px 8px 14px; font: inherit; font-size: 14px;
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%), linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.select option { color: var(--ink); }
.count { margin-left: auto; color: var(--bone-dim); font-size: 14px; }
.list { padding: 0 var(--pad) 100px; }
.empty { padding: 60px 0; color: var(--bone-dim); }
.empty button { margin-top: 14px; }

/* ---------- strona roweru ---------- */
.bike { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 64px); padding: 30px var(--pad) 90px; }
.crumbs { padding: 26px var(--pad) 0; font-size: 14px; color: var(--bone-dim); }
.crumbs a { color: var(--bone-dim); }
.gallery-main { background: var(--studio); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.is-placeholder { width: 60%; height: auto; object-fit: contain; opacity: .7; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 92px; aspect-ratio: 4/3; padding: 0; border: 1px solid transparent; border-radius: 4px; background: var(--studio); cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--bone); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bike-info h1 { margin: 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; font-weight: 400; }
.bike-info .drive { margin: 8px 0 0; color: var(--bone-dim); font-size: 18px; }
.bike-price { margin: 26px 0 6px; font-size: 34px; font-weight: 500; }
.bike-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bone-dim); }
.bike-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #74c69d; }
.bike-status.is-reserved::before { background: var(--gold); }
.bike-status.is-sold::before { background: #6e7073; }
.specs { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-weight: 400; }
.specs th { color: var(--bone-dim); width: 42%; }
.actions { display: grid; gap: 10px; }
.note { font-size: 14px; color: var(--bone-dim); margin: 16px 0 0; }
.bike-desc { grid-column: 1 / -1; max-width: 70ch; border-top: 1px solid var(--line-dark); padding-top: 34px; }
.bike-desc h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.bike-desc p { margin: 0; color: var(--bone); }

/* okno zapytania */
.dlg { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; background: rgba(10, 11, 12, .6); }
.dlg.is-open { display: grid; }
.dlg-box { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--bone); color: var(--ink); border-radius: 10px; padding: 30px; position: relative; }
.dlg-box h2 { margin: 0 0 6px; font-size: 24px; font-weight: 500; }
.dlg-box > p { margin: 0 0 20px; color: var(--muted); }
.dlg-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid #d3d0c8; border-radius: 6px; padding: 11px 12px;
}
.form .check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.form .check input { margin-top: 4px; }
.done { text-align: center; padding: 20px 0 6px; }
.done h2 { margin-bottom: 8px; }

/* ---------- Aurum ---------- */
.aurum-hero { position: relative; padding: 40px var(--pad) 0; overflow: hidden; }
.aurum-word {
  margin: 0; font-size: clamp(90px, 21vw, 360px); line-height: .8; letter-spacing: -.01em;
  font-stretch: 125%; font-weight: 100; color: var(--gold); text-align: center;
}
.aurum-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0 70px; align-items: end; }
.aurum-lead p { margin: 0; max-width: 48ch; color: var(--bone-dim); font-size: 18px; }
.aurum-lead p:first-child { color: var(--bone); font-size: 22px; line-height: 1.4; }
.model { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); border-top: 1px solid var(--line-dark); }
.model-stage { background: var(--studio); padding: clamp(24px, 4vw, 60px); display: grid; place-items: center; }
.model-info { padding: clamp(28px, 4vw, 60px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.model-info h2 { margin: 0; font-size: clamp(44px, 6vw, 92px); line-height: .9; color: var(--bone); }
.model-kind { margin: 0; color: var(--gold); font-size: 16px; }
.model-info p { margin: 0; color: var(--bone-dim); max-width: 42ch; }
.model-from { font-size: 18px; color: var(--bone); }
.model-from b { font-weight: 500; font-size: 26px; }
.model-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.model:nth-of-type(even) .model-stage { order: 2; }

/* konfigurator w ramie strony */
.conf-wrap { background: var(--white); color: var(--ink); padding: 30px var(--pad) 60px; }
.conf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.conf-tabs a { text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid #e4e2dd; }
.conf-tabs a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  .paths { flex-direction: column; height: auto; min-height: 0; }
  .path { min-height: 72svh; border-right: 0; border-bottom: 1px solid var(--line-dark); flex-grow: 1 !important; }
  .path-art, .path-mark { place-items: start center; padding-top: 84px; }
  .path-art img, .path:hover .path-art img, .path-mark span, .path-mark--bikes img { transform: none; }
  .path-mark span { font-size: 150px; }
  .salon { grid-template-columns: 1fr; gap: 30px; padding: 60px var(--pad); }
  .bike { grid-template-columns: 1fr; }
  .aurum-lead { grid-template-columns: 1fr; gap: 18px; }
  .model { grid-template-columns: 1fr; }
  .model:nth-of-type(even) .model-stage { order: 0; }
  .form { grid-template-columns: 1fr; }
  .top-right a:not(:last-child) { display: none; }
  .count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
   Strony Aurum (układ na wzór starego bikelove + aurumbikes)
   ========================================================= */
.light { background: #f4f2ed; color: var(--ink); }
.light .muted, .light p.lead-dim { color: var(--muted); }
.white { background: var(--white); color: var(--ink); }

/* zdjęcie na całą szerokość z tytułem */
.hero-photo { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.72) 100%); }
.hero-photo .in { position: relative; z-index: 1; padding: 0 var(--pad) clamp(40px, 8vh, 90px); max-width: 1100px; }
.hero-photo .kind { margin: 0 0 10px; font-size: 16px; color: rgba(255,255,255,.82); }
.hero-photo h1 { margin: 0; font-size: clamp(64px, 12vw, 190px); line-height: .86; font-stretch: 125%; font-weight: 200; }
.hero-photo .tagline { margin: 18px 0 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; max-width: 34ch; }
.hero-photo .actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-photo .btn { border-color: rgba(255,255,255,.8); }

/* wstęp */
.intro { padding: clamp(70px, 10vw, 140px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.intro h2 { margin: 0; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; font-weight: 300; }
.intro p { margin: 0 0 16px; font-size: 18px; line-height: 1.6; max-width: 60ch; }
.intro p:last-child { margin-bottom: 0; }
.intro .dim { color: var(--bone-dim); }
.light .intro .dim, .light.intro .dim { color: var(--muted); }

/* pasek zdjęć */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strip img { width: 100%; height: clamp(260px, 34vw, 520px); object-fit: cover; }
.strip--3 { grid-template-columns: 1.4fr 1fr 1fr; }

/* trzy cechy */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(60px, 8vw, 110px) var(--pad); }
.feat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.feat h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.feat p { margin: 0 0 10px; color: var(--bone-dim); max-width: 46ch; }
.light .feat p { color: var(--muted); }
.feat ol { margin: 10px 0 0; padding-left: 20px; color: var(--bone-dim); }
.feat li { margin-bottom: 4px; }

/* liczby */
.stats { padding: clamp(70px, 9vw, 120px) var(--pad); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.stats h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; font-weight: 300; }
.stats p { margin: 0; color: var(--muted); max-width: 56ch; }
.stats .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stats .num b { display: block; font-size: clamp(64px, 8vw, 120px); line-height: .9; font-stretch: 125%; font-weight: 200; color: var(--ink); }
.stats .num span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
.stats small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* sekcje zdjęcie + tekst */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70svh; }
.split > img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.split .txt { padding: clamp(40px, 6vw, 100px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.split h2 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; font-stretch: 125%; font-weight: 200; }
.split p { margin: 0; color: var(--bone-dim); max-width: 52ch; }
.light.split p, .light .split p { color: var(--muted); }
.split.rev > img { order: 2; }

/* zdjęcie na całą szerokość z podpisem */
.wide-photo { position: relative; color: var(--white); }
.wide-photo img { width: 100%; height: clamp(360px, 70svh, 820px); object-fit: cover; }
.wide-photo .cap { position: absolute; left: var(--pad); bottom: clamp(26px, 5vw, 60px); max-width: 560px; }
.wide-photo .cap h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 56px); line-height: 1.05; font-weight: 300; }
.wide-photo .cap p { margin: 0; font-size: 17px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.wide-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6)); pointer-events: none; }
.wide-photo .cap { z-index: 1; }

/* wybierz konfigurację */
.choose { padding: clamp(70px, 9vw, 120px) var(--pad); }
.choose > h2 { margin: 0 0 36px; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; font-stretch: 125%; font-weight: 200; }
.builds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.build { background: var(--white); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.build img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; margin-bottom: 8px; }
.build h3 { margin: 0; font-size: 24px; font-weight: 500; }
.build p { margin: 0; color: var(--muted); }
.build .from { color: var(--ink); font-size: 16px; margin-top: auto; padding-top: 10px; }
.build .from b { font-size: 26px; font-weight: 500; }
.build .btn { align-self: flex-start; margin-top: 8px; }
.spec-note { margin-top: 26px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* gwarancja / atuty */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 60px var(--pad); border-top: 1px solid var(--line-dark); }
.perks h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.perks p { margin: 0; color: var(--bone-dim); font-size: 15px; }

/* wybór modelu na stronie Aurum */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mcard { position: relative; display: block; color: var(--white); text-decoration: none; overflow: hidden; min-height: 78svh; }
.mcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.mcard:hover > img { transform: scale(1.04); }
.mcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.72)); }
.mcard .in { position: absolute; left: 28px; right: 28px; bottom: 30px; z-index: 1; }
.mcard .kind { margin: 0 0 6px; font-size: 15px; color: rgba(255,255,255,.82); }
.mcard h3 { margin: 0; font-size: clamp(40px, 4.6vw, 72px); line-height: .95; font-stretch: 125%; font-weight: 200; }
.mcard p { margin: 10px 0 0; font-size: 15px; color: rgba(255,255,255,.88); }

/* historia */
.story { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 4px; align-items: stretch; }
.story img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; filter: grayscale(1); }
.story .txt { padding: clamp(36px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.story blockquote { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-weight: 300; }
.story cite { font-style: normal; color: var(--bone-dim); font-size: 15px; }

/* baner Tenerife */
.tenerife { position: relative; color: var(--white); }
.tenerife > img { width: 100%; height: clamp(460px, 86svh, 900px); object-fit: cover; }
.tenerife::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,0) 60%); }
.tenerife .in { position: absolute; z-index: 1; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: 520px; display: grid; gap: 16px; }
.tenerife .kind { margin: 0; color: var(--gold); }
.tenerife h2 { margin: 0; font-size: clamp(40px, 5.6vw, 84px); line-height: .95; font-stretch: 125%; font-weight: 200; }
.tenerife p { margin: 0; font-size: 17px; }
.tenerife .btn { justify-self: start; }

.path--aurum.has-photo { background: #111; }
.path--aurum.has-photo .path-art { place-items: stretch; }
.path--aurum.has-photo .path-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none; opacity: .62; }
.path--aurum.has-photo:hover .path-art img { transform: scale(1.03); }
.path--aurum.has-photo .path-desc { color: rgba(255,255,255,.85); }

@media (max-width: 900px) {
  .intro, .stats, .split, .story { grid-template-columns: 1fr; }
  .split.rev > img { order: 0; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip--3 { grid-template-columns: 1fr; }
  .feats, .perks, .models { grid-template-columns: 1fr; }
  .mcard { min-height: 62svh; }
  .story img { min-height: 320px; }
  .path--aurum.has-photo .path-art { padding-top: 0; }
}

/* =========================================================
   Jasny motyw: Nowe i używane (odróżnia się od Aurum i Colnago)
   ========================================================= */
.theme-light {
  --asphalt: #f6f5f2;
  --asphalt-2: #ffffff;
  --line-dark: #dedbd3;
  --bone: #17191b;
  --bone-dim: #6a6862;
  --studio: #ffffff;
  --steel: #46606f;
}
.theme-light .top { background: rgba(246, 245, 242, .9); }
.theme-light .top-right a:hover, .theme-light .top-btn:hover { color: var(--ink); }
.theme-light .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.theme-light .btn-solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.theme-light .btn-solid:hover { background: #000; }
.theme-light .chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.theme-light .card-photo { box-shadow: inset 0 0 0 1px #e7e4dd; }
.theme-light .tag--sold { background: #8a8c8e; }
.theme-light .menu { background: #f6f5f2; }
.theme-light .bike-status::before { background: #2f9e64; }

/* pas „Inne marki” na stronie głównej też jasny */
.path--steel { background: #ecebe6; color: var(--ink); }
.path--steel .path-name { color: #46606f; }
.path--steel .path-desc { color: #5f5d58; }
.path--steel .path-mark--bikes img { opacity: .5; }
.top.is-blend { mix-blend-mode: difference; color: #fff; }

/* poprawki po przeglądzie */
.path--aurum.has-photo .path-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.85) 100%); }
.path--aurum.has-photo .path-art img { opacity: .9; }
.split > img { max-height: 92svh; }
.stats .num b { white-space: nowrap; font-size: clamp(52px, 6.4vw, 104px); }

/* zdjęcia we wszystkich pasach strony głównej */
.path.has-photo { background: #111; color: var(--white); }
.path.has-photo .path-art { place-items: stretch; padding: 0; }
.path.has-photo .path-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none; opacity: .92; }
.path.has-photo:not(.path--aurum):hover .path-art:not(.rotor) img { transform: scale(1.03); }
.path.has-photo .path-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.85) 100%); }
.path.has-photo .path-desc { color: rgba(255,255,255,.86); }
.path--steel.has-photo .path-name { color: #c4d3dd; }
.path.has-photo .btn { border-color: rgba(255,255,255,.85); }

/* obracana kostka */
.path-art.rotor { display: block; overflow: hidden; }
.path-art.rotor img { position: absolute; object-fit: cover; opacity: 1; transform-origin: 50% 50%;
  transition: transform 1.25s cubic-bezier(.7, 0, .2, 1); will-change: transform; }
.path.has-photo:hover .path-art.rotor img { scale: none; }

/* okno zapytania: zawsze jasne, niezależnie od motywu sekcji */
.dlg-box { background: #f4f2ed; color: #17191b; }
.dlg-box > p, .dlg-box .done p { color: #6c6a64; }
.dlg-box .form .check { color: #17191b; }
.dlg-box .btn-ink { background: #17191b; color: #fff; border-color: #17191b; }
.dlg-box .btn-ink:hover { background: #000; color: #fff; }

/* menu w grupach: marka z logo, pod nią modele */
.menu nav { gap: 0; }
.menu-group { padding: 18px 0; border-top: 1px solid var(--line-dark); }
.menu-group:first-child { border-top: 0; padding-top: 0; }
.menu nav a.menu-main { display: inline-flex; align-items: center; gap: .32em; }
.menu-logo { height: .72em; width: auto; flex: none; }
.menu-sub { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; padding-left: calc(.72em * 0.96 + .32em); font-size: clamp(34px, 6vw, 72px); }
.menu nav .menu-sub a { font-size: clamp(18px, 2.2vw, 26px); font-stretch: 100%; font-weight: 400; color: var(--bone-dim); }
.menu nav .menu-sub a:hover, .menu nav .menu-sub a:focus-visible { color: var(--gold); }
/* białe logo Colnago w jasnym menu (sekcja Nowe i używane) */
.theme-light .menu-logo[src*="colnago"] { filter: invert(1); }

/* formularze: pole-pułapka na boty i komunikat błędu */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin: 0; padding: 10px 12px; border-radius: 6px; background: #f6e1dc; color: #7a2a17; font-size: 14px; }
.form-err[hidden] { display: none; }
.form button:disabled { opacity: .6; cursor: progress; }

/* elementy ukrywane filtrami */
.card[hidden], .empty[hidden] { display: none; }
.bike-price s.old { font-size: 20px; color: var(--bone-dim); font-weight: 400; margin-right: 10px; }
.bike-desc { line-height: 1.65; }

/* ---------- Logo BIKELOVE Rowery (SVG jako maska — kolor z otoczenia) ---------- */
.logo-mark { display: inline-block; vertical-align: middle; aspect-ratio: 2066 / 498; height: 30px; background: currentColor;
  -webkit-mask: url(img/logo-black.svg) center / contain no-repeat; mask: url(img/logo-black.svg) center / contain no-repeat; }
.logo { display: inline-flex; align-items: center; line-height: 0; color: inherit; }
@media (max-width: 640px) { .top .logo-mark { height: 24px; } }

/* ---------- Stopka ---------- */
.foot { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: center; padding: 40px var(--pad) 26px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot-logo { color: var(--white); line-height: 0; }
.theme-light .foot-logo { color: var(--ink); }
.foot-logo .logo-mark { height: 46px; }
.foot-about { display: grid; gap: 2px; font-size: 14px; color: var(--bone-dim); }
.foot-about span:first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.foot-about span:not(:first-child) { color: var(--bone); }
.foot-social { display: flex; gap: 10px; justify-self: end; }
.social { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.foot .social { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--bone); transition: background .2s, color .2s; }
.foot .social:hover { background: var(--bone); color: var(--ink); }
.theme-light .foot .social { color: var(--ink); }
.theme-light .foot .social:hover { background: var(--ink); color: #fff; }
.social svg { width: 20px; height: 20px; flex: none; }
.foot-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line-dark); }
@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; }
  .foot-social { justify-self: start; }
  .foot-logo .logo-mark { height: 38px; }
}

/* ---------- Popup z profilami ---------- */
.pop { position: fixed; z-index: 150; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px)); padding: 24px 24px 20px;
  background: #f4f2ed; color: #17191b; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(24px); transition: opacity .35s ease, transform .35s ease; }
.pop.is-in { opacity: 1; transform: none; }
.pop h2 { margin: 0 28px 8px 0; font-size: 21px; font-weight: 500; line-height: 1.2; }
.pop p { margin: 0 0 16px; color: #6c6a64; font-size: 15px; line-height: 1.5; }
.pop-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #6c6a64; padding: 4px; }
.pop-x:hover { color: #17191b; }
.pop-links { display: grid; gap: 8px; }
.pop .social { padding: 11px 14px; border: 1px solid #d9d5cc; border-radius: 999px; font-size: 15px; color: #17191b; transition: background .2s, color .2s; }
.pop .social:hover { background: #17191b; color: #fff; border-color: #17191b; }
@media (max-width: 640px) { .pop { right: 12px; left: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .pop { transition: none; } }

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.check a, .bc-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Strona tekstowa (polityka prywatności) ---------- */
.doc { max-width: 760px; padding: 130px var(--pad) 90px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 10px; font-weight: 400; }
.doc .updated { color: var(--bone-dim); margin: 0 0 40px; font-size: 14px; }
.doc h2 { font-size: 21px; font-weight: 500; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--bone-dim); line-height: 1.65; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--bone); font-weight: 500; }
.doc a { color: var(--bone); }

/* ---------- Typografia: bez sierot w ostatniej linii, wyrównane nagłówki, dzielenie wyrazów tylko w wąskich kolumnach ---------- */
p, li, dd, .card-sub { text-wrap: pretty; }
h1, h2, h3, .card-title { text-wrap: balance; }
@media (max-width: 640px) {
  p, li, dd { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
  p a, li a, dd a { -webkit-hyphens: manual; hyphens: manual; }
}

/* ---------- Płynne przejścia między stronami ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(bike-photo) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
.top { view-transition-name: top; }
.gallery-main img[data-main] { view-transition-name: bike-photo; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Wejście treści przy przewijaniu ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.rv-in { opacity: 1; transform: none; }

/* ---------- Telefon: Zadzwoń / Umów wizytę ---------- */
.fab { display: none; }
@media (max-width: 760px) {
  .fab { position: fixed; z-index: 120; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    transition: transform .3s ease, opacity .3s ease; }
  .fab.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .fab a, .fab button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 999px; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.28); }
  .fab-call { background: #c7a35a; color: #17191b; border: 0; }
  .fab-call svg { width: 18px; height: 18px; }
  .fab-visit { background: #f4f2ed; color: #17191b; border: 0; }
  .foot { padding-bottom: 90px; }
  .pop { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

@media (max-width: 760px) { .theme-light .fab-visit { background: #17191b; color: #fff; } }

.foot-links { align-items: center; }
.foot-login { display: inline-grid; place-items: center; width: 28px; height: 28px; color: inherit; opacity: .45; transition: opacity .2s; }
.foot-login:hover { opacity: .9; }
.foot-login svg { width: 18px; height: 18px; }
