/* =========================================================
   VARIABLES
========================================================= */
:root {
  --bg-main: #000000;
  --bg-alt: #0a0a0a;
  --gold: #c9a86a;
  --text-main: #ffffff;
  --text-muted: #cccccc;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1440px;
}

/* UWAGA: fonty Montserrat / Inter trzeba zaimportować w <head> HTML, np.:
   <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
   Bez tego przeglądarka użyje domyślnego sans-serif. */

/* =========================================================
   RESET & BASE
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Gwarantuje, że atrybut [hidden] zawsze chowa element, nawet gdy jego własna
   klasa ustawia display (np. .vehicle-wrapper { display: grid }), co inaczej
   przebija domyślną regułę przeglądarki dla [hidden] przy równej specyficzności. */
[hidden] { display: none !important; }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  padding-top: 92px;
}

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

.page { max-width: var(--max-width); margin: 0 auto; }

/* =========================================================
   TOPBAR
========================================================= */
.topbar {
  width: 100%;
  background: rgba(0,0,0,0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(201,168,106,0.25);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo img {
  height: 48px;
}

.topbar-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.topbar-nav a {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: 0.2s;
}

.topbar-nav a:hover {
  color: var(--gold);
}

.topbar-nav .cta {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
}

.topbar-nav .cta:hover {
  background: rgba(201,168,106,0.15);
}

/* Hamburger — widoczny tylko na mobile (patrz media query niżej) */
.topbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

.topbar-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.25s ease;
}

.topbar-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.topbar-toggle.open span:nth-child(2) {
  opacity: 0;
}
.topbar-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: 0.2s;
}

.btn.gold { background: var(--gold); color: #000; }
.btn.gold:hover { background: #d8b97b; }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn.ghost:hover { background: rgba(201,168,106,0.1); }

/* =========================================================
   HERO — PREMIUM COMPACT (B2)
========================================================= */
.hero-shell {
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.hero {
  position: relative;
  max-width: calc(var(--max-width) - 48px); /* tyle samo co realna szerokość boxów poniżej (max-width - ich padding) */
  margin: 0 auto;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.95);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.5) 90%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  font-size: 48px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero__text {
  font-size: 20px;
  color: var(--text-muted);
}

/* =========================================================
   SECTIONS (GLOBAL)
========================================================= */
.section {
  padding: 80px 24px;
  text-align: center;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 16px;
}

.lead {
  color: var(--gold);
  margin-bottom: 40px;
}

/* =========================================================
   GRID & CARDS
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  align-items: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  padding-bottom: 24px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  align-items: center;
  margin: 16px 0 8px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card img {
  height: 260px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   WHY SECTION
========================================================= */
.why {
  background: var(--bg-alt);
  padding: 80px 24px;
  text-align: center;
}

.why h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 16px;
}

.why__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.why-item {
  padding: 16px;
}

.why-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold);
}

.why-item__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.why-item__text {
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================================
   UPCOMING
========================================================= */
.upcoming {
  background: var(--bg-main);
  padding: 80px 24px;
  text-align: center;
}

.upcoming h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 16px;
}

.upcoming__cars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.upcoming-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  padding-bottom: 24px;
}

.upcoming-card img {
  width: 100%;
  height: 200px;
  opacity: 0.45;
  object-fit: cover;
}

.upcoming-card__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold);
  margin-top: 16px;
}

.upcoming-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 16px 0 8px;
}

.upcoming-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Flipboard (animowany licznik "Dostępny za X dni") */
.flipboard {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 32px;
  perspective: 300px;
}

.flipboard .top,
.flipboard .bottom,
.flipboard .flip {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  line-height: 32px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.flipboard .top {
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.flipboard .bottom {
  bottom: 0;
  line-height: 0;
  transform-origin: top;
}

.flipboard .flip {
  top: 0;
  height: 50%;
  transform-origin: bottom;
  backface-visibility: hidden;
}

.flipboard.flip-animate .flip {
  animation: flipTop 0.35s ease-in forwards;
}

.flipboard.flip-animate .bottom {
  animation: flipBottom 0.35s ease-out forwards;
}

@keyframes flipTop {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-90deg); }
}

@keyframes flipBottom {
  0% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

/* =========================================================
   PANORAMA 360
========================================================= */
.panorama-360-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.panorama-360-tabs[hidden],
.panorama-360-viewer[hidden],
.panorama-360-thumb[hidden] {
  display: none !important;
}

.panorama-360-tab {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.panorama-360-tab:hover { background: rgba(201,168,106,0.1); }
.panorama-360-tab.active { background: var(--gold); color: #000; }

.panorama-360-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.panorama-360-viewer {
  width: 100% !important;
  height: 100% !important;
  min-height: 340px;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  background: #111;
}

/* Strony z jedną panoramą (bez zakładek) — widok zajmuje całą wysokość
   dostępną w boxie (tyle samo co miniaturka przed kliknięciem), inaczej
   box kurczyłby się po otwarciu widoku 360°. */
.panorama-360-wrap--no-tabs .panorama-360-viewer {
  height: 404px !important;
  min-height: 404px;
}

.panorama-360-thumb {
  position: relative;
  display: block;
  width: 100%;
  /* Miniaturka wypełnia cały box i ma dokładnie wysokość stanu po kliknięciu:
     340px (widok 360°) + 40px (zakładki przód/tył) + 24px (ich margines) = 404px.
     Dzięki temu box ma tę samą wysokość przed i po kliknięciu — bez skoku. */
  height: 404px;
  flex: none;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  background: #111;
}

.panorama-360-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.panorama-360-thumb:hover img {
  transform: scale(1.03);
  filter: brightness(0.6);
}

.panorama-360-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s ease;
}

.panorama-360-thumb:hover .panorama-360-play { background: rgba(0,0,0,0.15); }

.panorama-360-play__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(0,0,0,0.55);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.panorama-360-play__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

@media (max-width: 900px) {
  /* Widok 360° zawsze 340px. Miniaturka też 340px, ALE tylko gdy nie ma
     zakładek pod nią (wrap--no-tabs) — na stronach z zakładkami (np. dwa/trzy
     wnętrza) miniaturka musi zostać przy bazowych 404px (patrz reguła bazowa
     .panorama-360-thumb), bo po kliknięciu dochodzi wiersz zakładek (64px),
     inaczej box "skacze" o wysokość zakładek. */
  .panorama-360-viewer { height: 340px !important; }
  .panorama-360-wrap--no-tabs .panorama-360-thumb,
  .panorama-360-wrap--no-tabs .panorama-360-viewer { height: 340px !important; min-height: 340px; }
  .panorama-360-play__icon { width: 60px; height: 60px; font-size: 13px; }
  .panorama-360-play__text { font-size: 15px; }
  /* Węższe zakładki, żeby 3 (np. Przód/Tył/Zero Gravity) zmieściły się w jednym
     wierszu nawet na wąskich telefonach — inaczej wiersz zakładek zawija się
     do 2 linii i box "skacze" po kliknięciu w miniaturkę. */
  .panorama-360-tabs { gap: 8px; margin-bottom: 31px; }
  .panorama-360-tab { padding: 8px 12px; font-size: 12px; }
}

/* =========================================================
   BOOKING
========================================================= */
.booking {
  background: var(--bg-alt);
  padding: 80px 24px;
}

.booking__inner {
  max-width: 800px;
  margin: 0 auto;
}

.booking__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.booking__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking__label {
  font-size: 14px;
  color: var(--text-muted);
}

.booking__input,
.booking__select,
textarea {
  background: #111;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
}

textarea { resize: vertical; }

.booking__field--full {
  grid-column: 1 / -1;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: #000;
  border-top: 1px solid rgba(201,168,106,0.4);
  padding: 24px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.social a {
  color: var(--gold);
  margin-left: 12px;
}

/* =========================================================
   ACTIONS (przyciski, np. strona "Dziękujemy")
========================================================= */
.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   VEHICLE PAGE — COMPACT PREMIUM (B2)
========================================================= */

.vehicle-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 40px; /* row-gap column-gap — wyrównuje górę drugiego wiersza boxów */
  align-items: start;
}

/* Cienka linia oddzielająca sekcje (jak na mockupie) */
.section-divider {
  width: 75%;
  max-width: calc(var(--max-width) * 0.75);
  margin: 48px auto;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.vehicle-wrapper .section-divider {
  grid-column: 1 / -1;
  width: 75%;
  max-width: none;
  margin: 0 auto;
}

/* Marginesy skompensowane o padding sąsiednich sekcji, żeby linia była
   wizualnie równo pomiędzy sekcjami, a nie przyklejona do jednej z nich */
.section-divider--after-hero {
  /* dół: -28px + 60px padding-top .vehicle-wrapper = realny odstęp 32px, tyle co góra */
  margin: 32px auto -28px;
}

.section-divider--before-description {
  /* góra: -28px wciąga linię w 60px padding-bottom .vehicle-wrapper → realny odstęp 32px,
     czyli taki sam rytm jak przy linii w siatce (32/33px) */
  margin: -28px auto 32px;
}

/* ------------------------------
   LEWA KOLUMNA — GALERIA + OPIS
------------------------------ */

.vehicle-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0; /* nie pozwól przewijanej galerii "rozepchnąć" siatki na mobile */
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(0,0,0,0.55);
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255,255,255,0.08);
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.gallery-thumbs a {
  display: block;
  flex: 0 0 calc((100% - 3 * 12px) / 4);
  scroll-snap-align: start;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.gallery-thumbs img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Wizualne oznaczenie aktualnie wybranej miniatury (dodaj klasę "active" przez JS) */
.gallery-thumbs img.active {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  opacity: 1;
}

.vehicle-description-left {
  background: var(--bg-alt);
  padding: 14px 28px 28px;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(0,0,0,0.55);
}

.vehicle-description-left h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--text-main);
  text-align: center;
}

.vehicle-description-left p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.vehicle-description-left p:last-child {
  margin-bottom: 0;
}

.vehicle-description-left p strong {
  color: var(--text-main);
}

.vehicle-description-left ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.vehicle-description-left ul:last-child {
  margin-bottom: 0;
}

.vehicle-description-left li {
  margin-bottom: 6px;
}

.equipment-list {
  column-count: 2;
  column-gap: 32px;
}

.equipment-list li {
  break-inside: avoid;
}

@media (max-width: 700px) {
  .equipment-list {
    column-count: 1;
  }
}

/* ------------------------------
   PRAWA KOLUMNA — SPEC + CENA + PODSUMOWANIE
------------------------------ */

/* --- SPECYFIKACJA --- */
.vehicle-specs-box {
  background: #111;
  border-radius: 12px;
  padding: 12px 28px 28px 28px;
  box-shadow: 0 0 32px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
}

.vehicle-specs-box h2 {
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 20px;
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.spec-table .label {
  color: var(--text-muted);
  font-size: 14px;
}

.spec-table .value {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
}

/* --- CENA --- */
.vehicle-price-box {
  margin-top: 24px;
  padding: 18px;
  background: #000;
  border: 1px solid var(--gold);
  border-radius: 10px;
  text-align: center;
}

.vehicle-price-box .price {
  font-size: 26px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

/* --- PODSUMOWANIE --- */
.vehicle-summary-box {
  background: var(--bg-alt);
  padding: 12px 28px 28px 28px;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vehicle-summary-box h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--text-main);
}

.vehicle-summary-box p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.vehicle-summary-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
}

.vehicle-summary-box li {
  margin-bottom: 8px;
}

.vehicle-summary-box li:last-child {
  margin-bottom: 0;
}

.vehicle-summary-box li strong {
  color: var(--text-main);
}

/* --- WIDOK 360° (box w siatce, pod galerią, wyrównany wysokością do Podsumowania) --- */
.vehicle-360-box {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(0,0,0,0.55);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.vehicle-360-box .panorama-360-wrap {
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-summary-box {
  align-self: stretch;
}

/* --- OPIS POJAZDU — pełna szerokość, poniżej siatki galeria/spec --- */
.vehicle-description-full {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* =========================================================
   AUKCJE Z JAPONII
========================================================= */
.auction-notice {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 16px 24px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  background: rgba(201,168,106,0.06);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.auction-notice strong {
  color: var(--gold);
}

.auction-filters {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
}

.auction-filters__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  text-align: left;
}

.auction-filters__field label {
  font-size: 13px;
  color: var(--text-muted);
}

.auction-card__media {
  position: relative;
  margin-bottom: 16px;
}

.auction-photo-placeholder {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px),
    #161616;
  border: 1px dashed rgba(201,168,106,0.4);
}

.auction-photo-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--gold);
  opacity: 0.5;
}

.auction-photo-placeholder span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auction-badge {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.auction-badge--grade {
  left: 10px;
  background: var(--gold);
  color: #000;
}

.auction-badge--house {
  right: 10px;
  background: rgba(0,0,0,0.75);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.auction-card h3,
.auction-card > p {
  padding: 0 20px;
}

.auction-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.auction-card__meta .label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.auction-card__meta .value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

.auction-card .btn {
  margin: 0 20px;
}

.auction-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
  padding: 40px 0;
}

.auction-back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auction-back-link:hover {
  opacity: 0.8;
}

.auction-photo-placeholder--large {
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(0,0,0,0.55);
}

.auction-photo-placeholder--large svg {
  width: 88px;
  height: 88px;
}

/* =========================================================
   RESPONSIVE — GLOBAL + VEHICLE
========================================================= */

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {

  /* GLOBAL */
  body {
    padding-top: 72px;
  }

  .hero {
    height: 420px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__text {
    font-size: 18px;
  }

  .section h2,
  .why h2,
  .upcoming h2 {
    font-size: 32px;
  }

  .grid,
  .why__items,
  .upcoming__cars,
  .booking__form {
    grid-template-columns: 1fr;
  }

  .auction-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .auction-filters__field {
    min-width: 0;
  }

  /* TOPBAR — menu mobilne */
  .topbar-toggle {
    display: flex;
  }

  .topbar-nav {
    position: fixed;
    top: 72px; /* wysokość topbara na mobile, patrz body padding-top wyżej */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.97);
    border-bottom: 1px solid rgba(201,168,106,0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .topbar-nav.open {
    max-height: 420px;
  }

  .topbar-nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .topbar-nav .cta {
    margin: 12px 24px;
    width: calc(100% - 48px);
    text-align: center;
  }

  /* VEHICLE */
  .vehicle-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  /* Kolejność na mobile: galeria -> widok 360 -> (linia) -> specyfikacja -> podsumowanie.
     Elementy w siatce bez wpisanego order domyślnie mają order:0, więc bez
     poniższych wpisów "wyskakiwałyby" na sam początek siatki. Dotyczy to też
     .vehicle-description-left — na stronach BEZ widoku 360° (Ghibli, Porsche,
     Quattroporte...) ten opis wciąż siedzi w tej samej siatce, więc też
     potrzebuje swojego order (na końcu — ma zostać na samym dole). Na stronach
     Z widokiem 360° opis jest już w osobnej sekcji poza .vehicle-wrapper,
     więc ta reguła ich nie dotyczy. */
  .vehicle-gallery { order: 1; }
  .vehicle-360-box { order: 2; }
  .vehicle-wrapper .section-divider { order: 3; }
  .vehicle-specs-box { order: 4; }
  .vehicle-summary-box { order: 5; }
  .vehicle-wrapper .vehicle-description-left { order: 6; }

  .vehicle-gallery {
    gap: 16px;
  }

  .gallery-main img {
    aspect-ratio: 16/10;
  }

  .gallery-thumbs {
    gap: 10px;
  }

  .gallery-thumbs a {
    flex-basis: calc((100% - 3 * 10px) / 4);
  }

  .vehicle-description-left {
    padding: 24px;
  }

  .vehicle-specs-box {
    padding: 22px 24px 26px 24px;
  }

  .vehicle-specs-box h2 {
    font-size: 26px;
  }

  .spec-table {
    gap: 10px 16px;
  }

  .vehicle-price-box {
    padding: 16px;
  }

  .vehicle-price-box .price {
    font-size: 22px;
  }

  .vehicle-summary-box {
    padding: 24px;
  }

  .vehicle-360-box {
    padding: 22px;
  }
}

@media (max-width: 600px) {

  .hero {
    height: 360px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__text {
    font-size: 16px;
  }

  .section h2,
  .why h2,
  .upcoming h2 {
    font-size: 26px;
  }

  .gallery-thumbs a {
    flex-basis: calc((100% - 2 * 10px) / 3);
  }

  .vehicle-specs-box {
    padding: 20px;
  }

  .vehicle-summary-box {
    padding: 20px;
  }

  .vehicle-360-box {
    padding: 18px;
  }

  /* Przycisk "Zapytaj o ten pojazd" na pełną szerokość — łatwiejszy cel dotykowy */
  .vehicle-price-box .btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 420px) {

  /* Tabela specyfikacji: 2 kolumny robią się za ciasne na najmniejszych ekranach (320–380px) */
  .spec-table {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .spec-table .value {
    margin-bottom: 10px;
  }

  .hero__text {
    font-size: 14px;
  }
}