.road-divider-smart {
  --road-h: 118px;
  --lane-top: 26px;
  --lane-bottom: 82px;
  --road-pad: 10px;
  position: relative;
  width: 100vw;
  height: var(--road-h);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #2b2b2b;
  isolation: isolate;
}

.road-divider-smart::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,.10) 100%),
    url('https://xn----8sbfxi5b.xn--p1ai/wp-content/uploads/2026/04/Текстура-свежего-асфальта.png') center/cover no-repeat;
  filter: brightness(.82) contrast(1.03);
  z-index: 0;
}

.road-divider-smart::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.10) 0 1px, transparent 1px calc(100% - 1px), rgba(0,0,0,.24) calc(100% - 1px) 100%);
  z-index: 1;
  pointer-events: none;
}

.road-divider-smart__edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.24);
  z-index: 2;
}

.road-divider-smart__edge--top { top: 22%; }
.road-divider-smart__edge--middle { top: 50%; opacity: .20; }
.road-divider-smart__edge--bottom { top: 78%; }

.road-divider-smart__center {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 6px;
  margin-top: -3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.96) 0 42px,
    transparent 42px 84px
  );
  box-shadow: 0 0 10px rgba(255,255,255,.10);
  animation: roadMarksFlowSmart 7s linear infinite;
  z-index: 2;
}

.road-divider-smart__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.14), transparent 10%, transparent 90%, rgba(0,0,0,.14)),
    linear-gradient(to bottom, rgba(255,255,255,.03), transparent 18%, transparent 82%, rgba(0,0,0,.12));
  z-index: 20;
  pointer-events: none;
}

.rds-vehicle {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  z-index: 5;
}

.rds-vehicle svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(-1);
  transform-origin: center;
}

.rds-vehicle__inner {
  position: relative;
  width: 100%;
  height: 100%;
  animation: vehicleBobSmart 3.2s ease-in-out infinite;
}

.rds-vehicle__shadow {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -4px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 60%, rgba(0,0,0,0) 100%);
  filter: blur(2px);
  z-index: -1;
}

/* Передние фары */
.rds-vehicle__lights {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 14px;
  opacity: .78;
  z-index: 4;
}

.rds-vehicle__lights::before,
.rds-vehicle__lights::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 52px;
  height: 5px;
  background: linear-gradient(90deg, rgba(255,244,190,.96), rgba(255,244,190,0));
  filter: blur(2px);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
}

.rds-vehicle__lights::before { top: 1px; }
.rds-vehicle__lights::after { bottom: 1px; }

/* Задние стопы */
.rds-vehicle__brakes {
  position: absolute;
  left: -2px;
  top: 50%;
  width: 20px;
  height: 18px;
  transform: translateY(-50%);
  z-index: 5;
}

.rds-vehicle__brake {
  position: absolute;
  left: 0;
  width: 10px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,40,40,.18);
  box-shadow: 0 0 0 rgba(255,40,40,0);
  transition: opacity .12s linear, background .12s linear, box-shadow .12s linear;
  opacity: .18;
}

.rds-vehicle__brake--top { top: 3px; }
.rds-vehicle__brake--bottom { bottom: 3px; }

.rds-vehicle.is-braking .rds-vehicle__brake {
  opacity: 1;
  background: rgba(255,60,60,1);
  box-shadow: 0 0 8px rgba(255,50,50,.8), 0 0 16px rgba(255,40,40,.45);
}

/* Поворотники */
.rds-vehicle__blinkers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.rds-vehicle__blinker {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: .08;
  background: rgba(255,170,30,.2);
  box-shadow: 0 0 0 rgba(255,170,30,0);
}

/* Верхний борт */
.rds-vehicle__blinker--front-up {
  right: 6px;
  top: 4px;
}

.rds-vehicle__blinker--rear-up {
  left: 6px;
  top: 4px;
}

/* Нижний борт */
.rds-vehicle__blinker--front-down {
  right: 6px;
  bottom: 4px;
}

.rds-vehicle__blinker--rear-down {
  left: 6px;
  bottom: 4px;
}

.rds-vehicle.is-signaling-up .rds-vehicle__blinker--front-up,
.rds-vehicle.is-signaling-up .rds-vehicle__blinker--rear-up,
.rds-vehicle.is-signaling-down .rds-vehicle__blinker--front-down,
.rds-vehicle.is-signaling-down .rds-vehicle__blinker--rear-down {
  animation: blinkAmberSmart .7s steps(1) infinite;
}

/* Размеры техники */
.rds-vehicle--roller { width: 72px; height: 28px; }
.rds-vehicle--tractor { width: 108px; height: 34px; }
.rds-vehicle--dump { width: 116px; height: 38px; }
.rds-vehicle--bulldozer { width: 86px; height: 30px; }
.rds-vehicle--paver { width: 114px; height: 36px; }
.rds-vehicle--truck { width: 124px; height: 38px; }

@keyframes roadMarksFlowSmart {
  from { transform: translateX(0); }
  to { transform: translateX(-84px); }
}

@keyframes vehicleBobSmart {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-0.7px); }
}

@keyframes blinkAmberSmart {
  0%, 49% {
    opacity: .14;
    background: rgba(255,170,30,.25);
    box-shadow: 0 0 0 rgba(255,170,30,0);
  }
  50%, 100% {
    opacity: 1;
    background: rgba(255,180,40,1);
    box-shadow: 0 0 8px rgba(255,160,20,.95), 0 0 16px rgba(255,160,20,.5);
  }
}

@media (max-width: 767px) {
  .road-divider-smart {
    --road-h: 84px;
    --lane-top: 20px;
    --lane-bottom: 59px;
  }

  .road-divider-smart__edge--top { top: 22%; }
  .road-divider-smart__edge--middle { top: 50%; }
  .road-divider-smart__edge--bottom { top: 78%; }

  .road-divider-smart__center {
    height: 4px;
    margin-top: -2px;
    background: repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.96) 0 24px,
      transparent 24px 50px
    );
  }

  .rds-vehicle--roller { width: 48px; height: 18px; }
  .rds-vehicle--tractor { width: 70px; height: 22px; }
  .rds-vehicle--dump { width: 78px; height: 24px; }
  .rds-vehicle--bulldozer { width: 56px; height: 20px; }
  .rds-vehicle--paver { width: 76px; height: 24px; }
  .rds-vehicle--truck { width: 82px; height: 24px; }

  .rds-vehicle__lights {
    width: 34px;
    height: 10px;
  }

  .rds-vehicle__brakes {
    width: 14px;
    height: 12px;
  }

  .rds-vehicle__brake {
    width: 8px;
    height: 3px;
  }

  .rds-vehicle__blinker {
    width: 5px;
    height: 5px;
  }

  .rds-vehicle__blinker--front-up,
  .rds-vehicle__blinker--rear-up { top: 2px; }

  .rds-vehicle__blinker--front-down,
  .rds-vehicle__blinker--rear-down { bottom: 2px; }
}