/* ==========================================================================
   LB Cars — arkusz stylów
   Paleta wywiedziona z logo: granat #1F3A6E, błękit #7EB5E8
   ========================================================================== */

:root {
  --navy: #1f3a6e;
  --navy-deep: #14264a;
  --navy-ink: #0d1a33;
  --sky: #7eb5e8;
  --sky-bright: #2f7fd4;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: #dde3ee;
  --muted: #6b7a94;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 26, 51, 0.06);
  --shadow-md: 0 8px 28px rgba(13, 26, 51, 0.09);
  --shadow-lg: 0 20px 50px rgba(13, 26, 51, 0.14);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --hero-image: url("../../images/hero-macan.jpg");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* --- Typografia ---------------------------------------------------------- */

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

h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky-bright);
  margin-bottom: 0.75rem;
  display: block;
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 56ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--sky-bright);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 127, 212, 0.32);
}

.btn--primary:hover {
  background: #2570bd;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.btn--outline:hover {
  border-color: var(--sky-bright);
  color: var(--sky-bright);
}

/* --- Nagłówek ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 0.25rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--sky-bright);
  transition: width 0.22s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.phone-link:hover {
  color: var(--sky-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

/* Zdjęcie w tle — podmień plik images/hero-macan.jpg na własny */
.hero--photo {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
}

/* Przyciemnienie w barwach marki: granat od lewej, żeby tekst był czytelny,
   a auto zostało widoczne po prawej stronie kadru */
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(13, 26, 51, 0.96) 0%,
      rgba(20, 38, 74, 0.9) 38%,
      rgba(31, 58, 110, 0.72) 62%,
      rgba(31, 58, 110, 0.5) 100%),
    linear-gradient(180deg,
      rgba(13, 26, 51, 0.55) 0%,
      transparent 45%,
      rgba(13, 26, 51, 0.6) 100%);
}

@media (max-width: 780px) {
  /* na wąskim ekranie tekst zajmuje całą szerokość — mocniejsze przyciemnienie */
  .hero--photo::before {
    background:
      linear-gradient(180deg,
        rgba(13, 26, 51, 0.9) 0%,
        rgba(20, 38, 74, 0.86) 55%,
        rgba(13, 26, 51, 0.92) 100%);
  }
}

/* Dolna krawędź hero: prosta linia z cienkim akcentem w kolorze błękitu */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--sky-bright) 40%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero .eyebrow {
  color: var(--sky);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--sky);
}

.hero__lede {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sky);
}

.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.5rem;
}

/* --- Sekcje -------------------------------------------------------------- */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--tight {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* --- Filtry -------------------------------------------------------------- */

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field select,
.field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy-ink);
}

.field select:focus,
.field input:focus {
  outline: 2px solid var(--sky-bright);
  outline-offset: 1px;
}

.filters__reset {
  background: none;
  border: 0;
  color: var(--sky-bright);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 0;
  text-align: left;
}

.results-count {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* --- Siatka aut ---------------------------------------------------------- */

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.car-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.car-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e6ecf6, #cfdcef);
  overflow: hidden;
}

.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card__media img {
  transform: scale(1.04);
}

.car-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  opacity: 0.28;
}

.car-card__placeholder svg {
  width: 68px;
  height: 68px;
}

.badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: var(--sky-bright);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.badge--referral {
  left: auto;
  right: 0.875rem;
  background: var(--navy);
}

.badge--sold {
  background: #8b96a8;
}

/* stan auta — zielony = bezwypadkowy, bursztyn = kosmetyczne szkody */
.badge--clean {
  background: #1f7a4d;
}

.badge--minor {
  background: #b4741a;
}

.car-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.spec-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.spec-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sky-bright);
}

.car-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.price small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.2rem;
}

.car-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sky-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.car-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.car-card:hover .car-card__link svg {
  transform: translateX(3px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

/* --- Program poleceń ----------------------------------------------------- */

.referral {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.referral::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -60%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(126, 181, 232, 0.22), transparent 70%);
}

.referral__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.referral h2 {
  margin-bottom: 1rem;
}

.referral h2 span {
  color: var(--sky);
}

.referral p {
  color: rgba(255, 255, 255, 0.8);
}

.referral__amount {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.referral__amount .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.referral__amount .big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin: 0.5rem 0;
}

.referral__amount .big sup {
  font-size: 0.32em;
  vertical-align: super;
  color: var(--sky);
}

.referral__amount .note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky-bright);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

/* --- Zaufanie ------------------------------------------------------------ */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.trust-card svg {
  width: 30px;
  height: 30px;
  color: var(--sky-bright);
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

/* --- Strona auta --------------------------------------------------------- */

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 1.5rem 0 0;
}

.breadcrumb a:hover {
  color: var(--sky-bright);
}

.car-detail {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 4rem;
}

.gallery__main {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e6ecf6, #cfdcef);
  position: relative;
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.625rem;
  margin-top: 0.625rem;
}

.gallery__thumbs button {
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #e6ecf6;
}

.gallery__thumbs button[aria-selected="true"] {
  border-color: var(--sky-bright);
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-aside {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.car-aside h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.car-aside .price {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  font-weight: 500;
  color: var(--muted);
}

.spec-table td {
  text-align: right;
  font-weight: 600;
}

.aside-actions {
  display: grid;
  gap: 0.625rem;
}

.aside-actions .btn {
  width: 100%;
}

.referral-note {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(126, 181, 232, 0.14);
  border: 1px solid rgba(47, 127, 212, 0.25);
  font-size: 0.875rem;
  color: var(--navy);
}

.referral-note strong {
  color: var(--sky-bright);
}

.prose h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.5rem;
}

/* --- Kontakt / stopka ---------------------------------------------------- */

.contact-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.contact-item .label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-item .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.68);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a:hover {
  color: var(--sky);
}

/* --- Responsywność ------------------------------------------------------- */

@media (max-width: 900px) {
  .referral__inner,
  .car-detail {
    grid-template-columns: 1fr;
  }

  .car-aside {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta .btn {
    display: none;
  }

  .phone-link {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--sky-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Ujawnienie historii auta -------------------------------------------- */

.disclosure {
  background: rgba(180, 116, 26, 0.07);
  border: 1px solid rgba(180, 116, 26, 0.3);
  border-left: 4px solid #b4741a;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.disclosure p {
  margin-bottom: 1rem;
  color: var(--navy-ink);
}

.disclosure .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
}

.note-inline {
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.note-inline strong {
  color: var(--navy);
}

/* --- Archiwalne zdjęcia szkody -------------------------------------------- */

.archive {
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(180, 116, 26, 0.45);
}

.archive__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a14;
  margin-bottom: 0.75rem;
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.archive__item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(180, 116, 26, 0.4);
}

.archive__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82);
}

.archive__item figcaption {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(13, 26, 51, 0.82);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* --- Warunki sprzedaży ---------------------------------------------------- */

.terms {
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky-bright);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

/* --- Lista wyposażenia (dwie kolumny) ------------------------------------- */

.prose ul.equip {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.1rem;
}

.prose ul.equip li {
  break-inside: avoid;
  margin-bottom: 0.4rem;
}

@media (max-width: 620px) {
  .prose ul.equip {
    columns: 1;
  }
}

/* --- Lightbox ------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 26, 51, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  animation: lb-in 0.18s ease;
}

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.18s ease;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.25rem;
  padding-bottom: 4px;
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

@media (max-width: 620px) {
  .lightbox { padding: 3.5rem 0.5rem; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.75rem; }
}

/* ==========================================================================
   Nowe komponenty: karuzela, O mnie, Nadjeżdżają, VAT, social
   ========================================================================== */

/* --- Karuzela ------------------------------------------------------------- */

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.carousel__track > .car-card {
  flex: 0 0 clamp(280px, 31%, 380px);
  scroll-snap-align: start;
}

.carousel--static .carousel__track { overflow-x: visible; }
.carousel--static .carousel__nav { display: none; }

.carousel__nav {
  position: absolute;
  top: 38%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: opacity 0.18s ease, background 0.18s ease;
}

.carousel__nav svg { width: 20px; height: 20px; }
.carousel__nav:hover:not(:disabled) { background: var(--paper); }
.carousel__nav:disabled { opacity: 0; pointer-events: none; }
.carousel__nav--prev { left: -22px; }
.carousel__nav--next { right: -22px; }

@media (max-width: 1280px) {
  .carousel__nav--prev { left: 4px; }
  .carousel__nav--next { right: 4px; }
}

@media (max-width: 620px) {
  .carousel__track > .car-card { flex-basis: 84%; }
  .carousel__nav { display: none; }
}

/* --- O mnie --------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(300px, 46%) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.about__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}

.about__photo--empty img { display: none; }
.about__photo--empty .about__placeholder { display: grid; }

.about__text h2 { margin-bottom: 1rem; }
.about__text p { color: var(--muted); }
.about__text p strong { color: var(--navy-ink); }
.about__text .btn { margin-top: 0.75rem; }

@media (max-width: 780px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 100%; }
}

/* --- Nadjeżdżają ---------------------------------------------------------- */

.car-card--soon .car-card__media { background: linear-gradient(135deg, #e8ebf1, #d3d9e4); }

.badge--soon { background: var(--navy); }
.badge--prep { background: #6b5aa8; }

.car-card__foot--soon { justify-content: space-between; }

.soon-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.car-grid .is-hidden { display: none; }

.collapse-more {
  text-align: center;
  margin-top: 1.75rem;
}

/* --- Cena: plakietka VAT / leasing ---------------------------------------- */

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.price__tag {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  align-self: center;
}

.price__tag--vat {
  background: rgba(31, 122, 77, 0.1);
  border-color: rgba(31, 122, 77, 0.35);
  color: #1f7a4d;
}

.price--ask {
  font-size: 1.25rem;
  color: var(--muted);
}

/* --- Social --------------------------------------------------------------- */

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.18s ease, color 0.18s ease;
}

.social a:hover { background: var(--sky-bright); color: var(--white); }
.social svg { width: 19px; height: 19px; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* --- Filtry: równe pola --------------------------------------------------- */

.filters {
  align-items: stretch;
}

.field {
  display: flex;
  flex-direction: column;
}

.field select,
.field input {
  height: 42px;
  margin-top: auto;
}

.filters__reset {
  align-self: flex-end;
  height: 42px;
}

.year-range {
  display: flex;
  gap: 0.5rem;
}

.year-range select { flex: 1; min-width: 0; }

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  max-width: 820px;
}

.faq__group {
  font-size: 1.125rem;
  color: var(--sky-bright);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.faq__group:first-child { margin-top: 0; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.625rem;
  overflow: hidden;
}

.faq__item summary {
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--navy-ink);
  transition: color 0.15s ease;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--sky-bright); }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item[open] summary { color: var(--sky-bright); }

.faq__item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--muted);
}

.faq__cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 820px;
}

.faq__cta p { font-weight: 600; color: var(--navy-ink); }

/* --- Drobiazgi ------------------------------------------------------------ */

.contact-strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-strong:hover { color: var(--sky-bright); }

.social--dark {
  margin-top: 0.875rem;
}

.social--dark a {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
}

.terms--note {
  border-left-color: #b4741a;
  background: rgba(180, 116, 26, 0.06);
}

.car-card__media-link { display: block; }

/* --- Leasing: rata + odstępne --------------------------------------------- */

.price-lease .price { margin-bottom: 0.15rem; }

.price-lease__extra {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.spec-table--lease {
  background: rgba(126, 181, 232, 0.09);
  border: 1px solid rgba(47, 127, 212, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.875rem;
  margin-bottom: 1.25rem;
}

.spec-table--lease tr:last-child th,
.spec-table--lease tr:last-child td {
  border-bottom: 0;
  font-weight: 700;
  color: var(--navy);
}
