@import url("./onepage-base.css");

/* Final physical correction batch — user review delta */
#start.start-section {
  position: relative;
  min-height: 0;
  height: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
}
#start.start-section::before { display: none; }
#start .start-shell { display: none; }

#aktualnosci .section-heading > .section-kicker,
#o-nas .section-heading > .section-kicker,
.statistics-heading .section-kicker,
#pojazdy .section-heading > .section-kicker,
#galeria .section-heading > .section-kicker,
#kontakt > .contact-shell > .section-heading > .section-kicker {
  display: none;
}
#pojazdy .section-heading > p,
#galeria .section-heading > p,
#kontakt > .contact-shell > .section-heading > p {
  display: none;
}
#aktualnosci .section-heading h2,
#o-nas .section-heading h2,
#statystyki .section-heading h2,
#pojazdy .section-heading h2,
#galeria .section-heading h2,
#kontakt > .contact-shell > .section-heading h2 {
  margin-top: 0;
}

.archive-table thead th.archive-total {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #74101c !important;
  color: #fff;
  box-shadow: -1px 0 0 #9a2733;
}
.archive-table tbody td.archive-total {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #68101a !important;
  color: #fff;
  box-shadow: -1px 0 0 #8d2530;
}
.archive-table tbody tr:hover td.archive-total {
  background: #7a1420 !important;
}

.vehicle-grid {
  align-items: stretch;
  gap: 24px;
  margin-top: 28px;
}
.vehicle-card {
  display: flex;
  flex-direction: column;
  border-color: #30343a;
  border-radius: 14px;
  background: linear-gradient(180deg, #12161b 0%, #0a0c0f 100%);
  box-shadow: 0 22px 54px rgba(0,0,0,.34);
}
.vehicle-card-media {
  position: relative;
  min-height: 248px;
  padding: 18px 24px 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 76%, #252a30 0%, #171b20 40%, transparent 70%),
    linear-gradient(180deg, #161a1f 0%, #0e1115 100%);
  border-bottom-color: #2a2e34;
}
.vehicle-card-media::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7a202a 28%, #7a202a 72%, transparent);
  opacity: .62;
}
.vehicle-card-media img {
  position: relative;
  z-index: 1;
  width: min(96%, 590px);
  height: 228px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 17px 13px rgba(0,0,0,.52));
}
.vehicle-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.vehicle-card-eyebrow { margin-bottom: 8px; }
.vehicle-card h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.vehicle-card-meta {
  gap: 8px;
  margin: 18px 0 20px;
}
.vehicle-card-meta div {
  padding: 10px 11px;
  background: #0b0d10;
  border-color: #2b2f35;
}
.vehicle-card-meta dd { font-size: 13px; }
.vehicle-card-action { margin-top: auto; }
.vehicle-modal-media {
  background:
    radial-gradient(ellipse at 50% 78%, #252a30 0%, #171b20 40%, transparent 72%),
    linear-gradient(180deg, #161a1f 0%, #0e1115 100%);
}
.vehicle-modal-media img {
  filter: drop-shadow(0 20px 14px rgba(0,0,0,.5));
}

.gallery-slide {
  cursor: zoom-in;
  outline: none;
}
.gallery-slide:focus-visible {
  outline: 3px solid rgba(237,28,36,.58);
  outline-offset: 3px;
}
body.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox {
  width: min(96vw, 1440px);
  height: min(94dvh, 1000px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #34383e;
  border-radius: 14px;
  background: #050607;
  color: #fff;
  box-shadow: 0 34px 110px rgba(0,0,0,.78);
}
.gallery-lightbox::backdrop {
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(6px);
}
.gallery-lightbox-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 62px 76px 48px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.04), transparent 44%),
    #050607;
}
.gallery-lightbox-figure {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  place-items: center;
  gap: 12px;
}
.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(94dvh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 16px 54px rgba(0,0,0,.42);
}
.gallery-lightbox-count {
  color: #aeb2b8;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid #42464d;
  background: #0c0f12;
  color: #fff;
  cursor: pointer;
}
.gallery-lightbox-close {
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font: 300 32px/1 system-ui, sans-serif;
}
.gallery-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 62px;
  border-radius: 10px;
  transform: translateY(-50%);
  font: 300 36px/1 system-ui, sans-serif;
}
.gallery-lightbox-prev { left: 14px; }
.gallery-lightbox-next { right: 14px; }
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover { border-color: var(--red); background: #171a1e; }
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 3px solid rgba(237,28,36,.58);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .vehicle-grid { gap: 16px; }
  .vehicle-card-media { min-height: 205px; padding: 14px 16px 10px; }
  .vehicle-card-media img { height: 188px; }
  .vehicle-card-body { padding: 18px; }
  .vehicle-card h3 { font-size: 21px; }
  .vehicle-card-meta { margin: 15px 0 18px; }
}
@media (max-width: 700px) {
  .vehicle-card-media { min-height: 218px; }
  .vehicle-card-media img { height: 202px; }
}
@media (max-width: 640px) {
  #aktualnosci.onepage-section { padding-top: 54px; }
  .archive-table thead th.archive-total,
  .archive-table tbody td.archive-total { box-shadow: -2px 0 0 #8d2530; }
  .gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .gallery-lightbox-panel { padding: 66px 12px 74px; }
  .gallery-lightbox-image { max-height: calc(100dvh - 160px); }
  .gallery-lightbox-close { top: 10px; right: 10px; width: 48px; height: 48px; }
  .gallery-lightbox-nav {
    top: auto;
    bottom: 12px;
    width: 58px;
    height: 50px;
    transform: none;
  }
  .gallery-lightbox-prev { left: calc(50% - 68px); }
  .gallery-lightbox-next { right: calc(50% - 68px); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox-close,
  .gallery-lightbox-nav { transition: none; }
}
