:root {
  /* Paleta z brand manuala VBS (v1b, 2018) */
  --navy: #000088;        /* Granatowy — Reflex Blue C — kolor główny */
  --navy-hover: #14149c;  /* rozjaśniony do :hover */
  --yellow: #ffe600;      /* Żółty A */
  --amber: #ffb300;       /* Żółty B — akcent */
  --steel: #c7d1de;       /* Stalowy */

  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #16161d;
  --ink-soft: #5c6270;
  --line: #dfe3ea;
  --brand: var(--navy);
  --brand-dark: var(--navy-hover);
  --busy: #e0322c;
  --busy-bg: #fdeceb;
  --free: #2fa84f;
  --radius: 18px;
  --shadow: 0 1px 3px rgba(0,0,64,.06), 0 8px 30px rgba(0,0,64,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Nagłówki i akcenty — Montserrat (brand secondary) */
.hero h1, .section-title, .card h3, .nav .logo { font-family: "Montserrat", "PT Sans", sans-serif; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,253,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav .logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav .logo-img { height: 24px; width: auto; display: block; }
.nav .logo-rental {
  font-family: "Montserrat", sans-serif; font-weight: 300; font-size: 21px;
  color: var(--navy); letter-spacing: .01em; line-height: 1;
  padding-left: 9px; border-left: 1.5px solid var(--steel);
}
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav { display: none; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 88px 0 72px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.hero h1 span { color: var(--brand); }
.hero p { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-soft); margin-top: 18px; max-width: 620px; margin-inline: auto; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero z wideo w tle */
.hero-video { position: relative; overflow: hidden; padding: 128px 0 116px; }
.hero-video .wrap { position: relative; z-index: 2; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-vid {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%; width: auto; height: auto;
  transform: translate(-50%, -50%) scale(1.12); /* lekkie przycięcie — chowa watermark z rogu */
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,32,.30) 0%, rgba(0,0,32,.10) 35%, rgba(0,0,48,.55) 100%),
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,32,.10), rgba(0,0,48,.45));
}
/* Tekst na wideo — biały, czytelny */
.hero-video h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,40,.45); }
.hero-video h1 span { color: #ffd21a; }        /* akcent = żółć marki (na ciemnym czyta się lepiej niż granat) */
.hero-video p { color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,40,.4); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 980px; font-size: 15px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--brand); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f2f2f5; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Vehicle cards ---------- */
.fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.fleet.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
@media (max-width: 780px) { .fleet { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card .photo {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef1f6, #dfe4ec);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .photo.clickable img { cursor: zoom-in; transition: transform .3s; }
.card .photo.clickable:hover img { transform: scale(1.03); }

/* miniatury */
.thumbs { display: flex; gap: 8px; padding: 12px 12px 0; overflow-x: auto; }
.thumbs img { width: 64px; height: 46px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; border: 2px solid transparent; transition: opacity .15s, border-color .15s; flex-shrink: 0; }
.thumbs img:hover { opacity: 1; }
.thumbs img.active { opacity: 1; border-color: var(--brand); }
.card .photo .placeholder { color: #9aa0aa; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card .photo .placeholder svg { width: 46px; height: 46px; opacity: .5; }
.card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.card .tagline { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.card .price { color: var(--brand); font-weight: 600; font-size: 16px; margin-top: 14px; }
.card .specs { list-style: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.card .specs li { font-size: 14px; }
.card .specs li b { display: block; color: var(--ink-soft); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.card .actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Calendar ---------- */
.cal-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.cal-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--ink); transition: background .15s; }
.cal-controls button:hover { background: #f2f2f5; }
.cal-controls .month-label { font-size: 18px; font-weight: 600; min-width: 190px; text-align: center; }

.cal-filter { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.cal-filter button { padding: 8px 18px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; cursor: pointer; color: var(--ink-soft); transition: all .15s; }
.cal-filter button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.legend { display: flex; gap: 22px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; }
.legend .dot.free { background: var(--free); }
.legend .dot.busy { background: var(--busy); }

.calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 30px; }
@media (max-width: 780px) { .calendars { grid-template-columns: 1fr; } }

.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.calendar h4 { text-align: center; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: 11px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; padding-bottom: 6px; }
.cal-grid .day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 9px; position: relative; }
.cal-grid .day.empty { visibility: hidden; }
.cal-grid .day.free { background: #f2f7f3; color: var(--ink); }
.cal-grid .day.busy { background: var(--busy-bg); color: var(--busy); font-weight: 600; }
.cal-grid .day.past { color: #c7c7cc; }
.cal-grid .day.today { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { text-align: center; }
.contact-item .icon { font-size: 26px; }
.contact-item .label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-top: 10px; }
.contact-item a, .contact-item .val { display: block; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; margin-top: 4px; }
.contact-item a:hover { color: var(--brand); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.9); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; }
@media (max-width: 640px) { .lb-nav { width: 42px; height: 42px; font-size: 24px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* ---------- Footer ---------- */
footer.foot { text-align: center; padding: 40px 0; color: var(--ink-soft); font-size: 13px; border-top: 1px solid var(--line); }
