.sector-page[data-sector="oto-galeri"] {
  --auto-hero-height: clamp(18rem, 44vh, 27.5rem);
  --auto-car-overhang: clamp(4.8rem, 14.5vh, 8.2rem);
}

@supports (height: 1svh) {
  .sector-page[data-sector="oto-galeri"] {
    --auto-hero-height: clamp(18rem, 44svh, 27.5rem);
    --auto-car-overhang: clamp(4.8rem, 14.5svh, 8.2rem);
  }
}

.auto-hero {
  position: relative;
  z-index: 3;
  height: var(--auto-hero-height);
  overflow: visible;
  pointer-events: none;
  background: transparent;
}

.auto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #131c2d, #080a10 80%);
  border-bottom: 1px solid #26395488;
  pointer-events: none;
}

.auto-hero.is-rendered::before {
  opacity: 0;
}

.auto-hero-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.auto-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity .35s ease-out;
}

.auto-hero.is-rendered .auto-fallback {
  opacity: 0;
}

.auto-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: calc(100% + var(--auto-car-overhang));
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease-out;
}

.auto-hero.is-rendered .auto-canvas {
  opacity: 1;
}

.auto-fallback-front,
.auto-fallback-rear {
  transition: opacity .35s ease;
}

.auto-fallback-rear {
  opacity: 0;
}

.auto-hero.is-rear .auto-fallback-front {
  opacity: 0;
}

.auto-hero.is-rear .auto-fallback-rear {
  opacity: 1;
}

.auto-plate-button {
  position: absolute;
  z-index: 4;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  translate: -50% -50%;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auto-plate-button[hidden] {
  display: none;
}

.auto-plate-button:focus-visible {
  outline: 2px solid #36ecff;
  outline-offset: 4px;
}

/* Header bar sits right along the overhang zone strictly UNDERNEATH the protruding 3D car. */
.sector-page[data-sector="oto-galeri"] .sector-page-heading--compact {
  position: relative;
  z-index: 1;
  min-height: var(--auto-car-overhang);
  padding-block: .65rem .85rem;
  align-items: center;
}

.sector-page[data-sector="oto-galeri"] .visual-services {
  padding-top: clamp(1.35rem, 3vw, 2.35rem);
}

@media (max-width: 860px) {
  .sector-page[data-sector="oto-galeri"] {
    --auto-hero-height: clamp(15.5rem, 38.5svh, 22rem);
    --auto-car-overhang: clamp(4.6rem, 11.6svh, 6.4rem);
  }

  .sector-page[data-sector="oto-galeri"] .sector-page-heading--compact {
    min-height: auto;
    padding-block: calc(var(--auto-car-overhang) + .35rem) .85rem;
  }

  .sector-page[data-sector="oto-galeri"] .sector-page-heading--compact .sector-page-home {
    grid-row: 1;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auto-canvas,
  .auto-fallback,
  .auto-fallback-front,
  .auto-fallback-rear {
    transition: none;
  }
}
