.vc-footer-ram {
  --vcfr-bg: #020203;
  --vcfr-panel: #07080a;
  --vcfr-text: #f5f5f5;
  --vcfr-muted: rgba(245, 245, 245, 0.56);
  --vcfr-line: rgba(255, 255, 255, 0.12);
  --vcfr-red: #ef102d;
  position: relative;
  overflow: hidden;
  color: var(--vcfr-text);
  background: var(--vcfr-bg);
  border-top: 1px solid rgba(239, 16, 45, 0.28);
  font-family: "Inter", Arial, sans-serif;
}

.vc-footer-ram *,
.vc-footer-ram *::before,
.vc-footer-ram *::after {
  box-sizing: border-box;
}

.vc-footer-ram a {
  color: inherit;
  text-decoration: none;
}

.vc-footer-ram__stage {
  position: relative;
  min-height: clamp(120px, 15vw, 210px);
  overflow: hidden;
  isolation: isolate;
  background:
    /* Left headlight ambient — calibrated to x=29%, y=57% of stage */
    radial-gradient(ellipse 38% 28% at 29% 57%, rgba(255, 195, 55, 0.16), transparent 100%),
    /* Right headlight ambient — calibrated to x=72%, y=57% of stage */
    radial-gradient(ellipse 38% 28% at 72% 57%, rgba(255, 195, 55, 0.16), transparent 100%),
    linear-gradient(180deg, #030303 0%, #050505 72%, #090909 100%);
}

.vc-footer-ram__stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 9%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--vcfr-red) 18%, var(--vcfr-red) 82%, transparent 100%);
  box-shadow: 0 0 10px rgba(239, 16, 45, 0.8), 0 0 34px rgba(239, 16, 45, 0.34);
}

/* ── Yellow/amber frame animation around the stage ──────────────
   Activates via .vc-footer-ram__stage.lights-on class added by JS
   after the LightSequence completes (breathe loop start moment).
   Uses a pseudo overlay border so it never affects layout.        */
@keyframes vcFramePulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 2px rgba(255, 195, 55, 0.00),
      0 0 0 0 rgba(255, 195, 55, 0.00);
    opacity: 0;
  }
  15% {
    box-shadow:
      inset 0 0 0 2px rgba(255, 195, 55, 0.90),
      0 0 30px 4px rgba(255, 185, 40, 0.28);
    opacity: 1;
  }
  50% {
    box-shadow:
      inset 0 0 0 2px rgba(255, 215, 80, 0.65),
      0 0 20px 2px rgba(255, 185, 40, 0.14);
    opacity: 1;
  }
  85% {
    box-shadow:
      inset 0 0 0 2px rgba(255, 195, 55, 0.90),
      0 0 30px 4px rgba(255, 185, 40, 0.28);
    opacity: 1;
  }
}

/* Frame element — separate div added via LightSequence JS */
.vc-footer-ram__frame {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  /* initial state: invisible */
}

.vc-footer-ram__frame.is-active {
  animation: vcFramePulse 3.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .vc-footer-ram__frame.is-active {
    animation: none;
    box-shadow: inset 0 0 0 2px rgba(255, 195, 55, 0.50);
    opacity: 1;
  }
}

.vc-footer-ram__stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 7%;
  right: 7%;
  bottom: 0;
  height: 28%;
  background: radial-gradient(ellipse at center, rgba(255, 200, 60, 0.07), transparent 66%);
  filter: blur(22px); /* warm amber floor reflection from headlights */
}

.vc-footer-ram__vehicle {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1%;
  width: min(34vw, 360px);
  aspect-ratio: 1368 / 768; /* exact image dimensions: 1368×768 */
  transform: translateX(-50%);
  transform-origin: 50% 85%;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.88));
}

.vc-footer-ram__vehicle-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  /* NO clip-path — was cutting 14.5% of DRL and 32% of marker pixels on right edge */
  user-select: none;
  pointer-events: none;
}

.vc-footer-ram__vehicle-layer--base { z-index: 1; }
.vc-footer-ram__vehicle-layer--markers { z-index: 2; opacity: 0; mix-blend-mode: screen; }
.vc-footer-ram__vehicle-layer--drl { z-index: 3; opacity: 0; mix-blend-mode: screen; }
.vc-footer-ram__vehicle-layer--full { z-index: 4; opacity: 0; mix-blend-mode: screen; }

.vc-footer-ram__beam {
  position: absolute;
  z-index: 1;
  /* top: 48% → headlights at y=56.5% of vehicle image → ~58% of stage;
     beam height=20% means top needs to be 58%-10% = 48% for center alignment */
  top: 48%;
  width: 34%;
  height: 20%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(12px);
}

.vc-footer-ram__beam--left {
  /* Right edge = focal point at ~38% of stage (L headlight at x=35% of vehicle).
     right: 62% → right edge sits at 100%-62%=38% from stage-left.
     Beam extends left (width:34%) → occupies -5% to 38%. */
  right: 62%;
  background: radial-gradient(ellipse at right center, rgba(255, 243, 200, 0.46), rgba(255, 225, 140, 0.12) 48%, transparent 76%);
  transform: rotate(-5deg);
}

.vc-footer-ram__beam--right {
  /* Left edge = focal point at ~64% of stage (R headlight at x=68% of vehicle).
     left: 64% → left edge at 64% from stage-left.
     Beam extends right (width:34%) → occupies 64% to 98%. */
  left: 64%;
  background: radial-gradient(ellipse at left center, rgba(255, 243, 200, 0.46), rgba(255, 225, 140, 0.12) 48%, transparent 76%);
  transform: rotate(5deg);
}

/* Kompaktowy CTA-hero stopki (pierwszy div) — niższy, ale z zachowanym obrazem portu. */
.vc-footer-ram > div:first-child {
  min-height: clamp(170px, 19vw, 280px) !important;
}

.vc-footer-ram__body {
  position: relative;
  z-index: 5;
  max-width: 1510px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 42px) clamp(22px, 5vw, 84px) clamp(18px, 2.2vw, 30px);
  display: grid;
  grid-template-columns: 1.35fr 0.72fr 0.9fr 1fr;
  gap: clamp(18px, 2.2vw, 36px);
  background: linear-gradient(180deg, rgba(2, 2, 3, 0.96), #020203 30%);
}

.vc-footer-ram__brand {
  min-width: 0;
}

.vc-footer-ram__circle-logo {
  display: block;
  width: clamp(104px, 9vw, 140px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 14px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 18px rgba(239, 16, 45, 0.12));
}

.vc-footer-ram__logo {
  width: clamp(210px, 22vw, 320px);   /* większe (było 160-240) */
  height: auto;
  display: block;
  margin: 0 0 18px clamp(6px, 2.4vw, 34px);  /* przesunięcie w prawo */
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(239, 16, 45, 0.16));
}

.vc-footer-ram__tagline {
  margin: 0 0 10px;
  color: var(--vcfr-red);
  font: 700 0.78rem/1.2 "Inter", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vc-footer-ram__copy {
  max-width: 390px;
  margin: 0 0 20px;
  color: var(--vcfr-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.vc-footer-ram__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid #ff334a;
  background: linear-gradient(180deg, #ed102c, #ad0b20);
  color: #fff;
  font: 800 0.78rem/1 "Inter", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(190, 8, 34, 0.25), inset 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vc-footer-ram__cta:hover,
.vc-footer-ram__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(239, 16, 45, 0.34), inset 0 1px rgba(255, 255, 255, 0.22);
}

.vc-footer-ram__column {
  min-width: 0;
  padding-left: clamp(0px, 2vw, 34px);
  border-left: 1px solid var(--vcfr-line);
}

.vc-footer-ram__heading {
  margin: 0 0 12px;
  color: #fff;
  font: 800 0.9rem/1.2 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.vc-footer-ram__links,
.vc-footer-ram__contacts,
.vc-footer-ram__tracking {
  display: grid;
  gap: 10px;
}

.vc-footer-ram__links a,
.vc-footer-ram__contacts a,
.vc-footer-ram__tracking a {
  width: fit-content;
  color: var(--vcfr-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.vc-footer-ram__links a:hover,
.vc-footer-ram__contacts a:hover,
.vc-footer-ram__tracking a:hover {
  color: #fff;
  transform: translateX(3px);
}

.vc-footer-ram__contact-label {
  display: block;
  margin-bottom: 3px;
  color: rgba(239, 16, 45, 0.9);
  font: 800 0.62rem/1 "Inter", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vc-footer-ram__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vc-footer-ram__socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.vc-footer-ram__socials a:hover {
  border-color: var(--vcfr-red);
  background: rgba(239, 16, 45, 0.1);
}

.vc-footer-ram__location {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(16px, 2.2vw, 26px);
  border-top: 1px solid var(--vcfr-line);
  /* dwie lokalizacje (biuro + warsztat) obok siebie, nie jedna pod drugą */
  display: grid;
  grid-template-rows: auto 1fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  column-gap: clamp(18px, 2.4vw, 34px);
  row-gap: 12px;
  align-items: start;
}

/* druga para (warsztat) ma inline margin-top w HTML — zerujemy dla równania rzędów */
.vc-footer-ram__location > .vc-footer-ram__location-head {
  margin-top: 0 !important;
}

.vc-footer-ram__location-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.vc-footer-ram__location-head .vc-footer-ram__heading {
  margin-bottom: 7px;
}

.vc-footer-ram__location-head p {
  margin: 0;
  color: var(--vcfr-muted);
  font-size: 0.86rem;
}

.vc-footer-ram__location-head > a {
  flex-shrink: 0;
  color: rgba(239, 16, 45, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc-footer-ram__location-head > a:hover,
.vc-footer-ram__location-head > a:focus-visible {
  color: #fff;
}

.vc-footer-ram__map {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(130px, 11vw, 170px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #08090c;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}

.vc-footer-ram__map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,5,9,.22), rgba(4,5,9,.5));
  mix-blend-mode: multiply;
}

.vc-footer-ram__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35) contrast(1.15) brightness(0.5);
}

.vc-footer-ram__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.5) contrast(1.1) brightness(0.55);
}

.vc-footer-ram__contacts a[href^="tel:"] {
  color: #4a9bff;
  font-size: 1.05rem;
  font-weight: 700;
}

.vc-footer-ram__contacts a[href^="tel:"]:hover {
  color: #7fbaff;
}

.vc-footer-ram__contacts a[href*="maps.google"] {
  color: #fff;
}

.vc-footer-ram__legal {
  position: relative;
  z-index: 5;
  max-width: 1510px;
  margin-inline: auto;
  padding: 12px clamp(22px, 5vw, 84px) 14px;
  border-top: 1px solid var(--vcfr-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.vc-footer-ram__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.vc-footer-ram__legal a:hover {
  color: #fff;
}

@media (max-width: 1050px) {
  .vc-footer-ram__stage { min-height: clamp(150px, 26vw, 230px); }
  .vc-footer-ram__vehicle { width: min(46vw, 360px); }
  .vc-footer-ram__body { grid-template-columns: 1.4fr 1fr; }
  .vc-footer-ram__column:nth-child(2) { border-left: 1px solid var(--vcfr-line); }
  .vc-footer-ram__column:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 680px) {
  .vc-footer-ram__stage { min-height: 150px; }
  .vc-footer-ram__vehicle { width: 82vw; bottom: 2%; }
  .vc-footer-ram__beam { display: none; }
  .vc-footer-ram__body { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
  .vc-footer-ram__column { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--vcfr-line); }
  .vc-footer-ram__column:nth-child(2) { border-left: 0; }
  .vc-footer-ram__column:nth-child(3) { padding-top: 30px; }
  .vc-footer-ram__heading { margin-bottom: 18px; }
  .vc-footer-ram__circle-logo { width: 142px; }
  .vc-footer-ram__location { padding-top: 30px; grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; row-gap: 14px; }
  .vc-footer-ram__location-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .vc-footer-ram__location > .vc-footer-ram__location-head + .vc-footer-ram__map { margin-bottom: 6px; }
  .vc-footer-ram__map { height: 180px; border-radius: 10px; }
  .vc-footer-ram__legal { align-items: flex-start; flex-direction: column; }
  .vc-footer-ram__legal-links { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-footer-ram__vehicle-layer--markers { opacity: 0.35; }
  .vc-footer-ram__vehicle-layer--drl { opacity: 0.75; }
  .vc-footer-ram__vehicle-layer--full { opacity: 0.25; } /* subtle full lights visible in reduced-motion */
  .vc-footer-ram__beam { display: none; }
  .vc-footer-ram__cta,
  .vc-footer-ram__links a,
  .vc-footer-ram__contacts a,
  .vc-footer-ram__tracking a { transition: none; }
}
