.decor-situations,
.decor-how,
.contact-visual-section,
.final-cta-section {
  position: relative;
  overflow: hidden;
}

.decor-situations::before,
.contact-visual-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 20rem 14rem at 82% 18%, rgba(255, 158, 12, .08), transparent 70%),
    radial-gradient(ellipse 22rem 15rem at 16% 86%, rgba(89, 55, 224, .07), transparent 72%);
}

.situation-result-card {
  position: sticky !important;
  overflow: hidden;
  isolation: isolate;
}

.situation-result-card > *:not(.situation-license):not(.situation-chip) {
  position: relative;
  z-index: 2;
}

.situation-license {
  position: absolute;
  z-index: 1;
  right: -58px;
  bottom: -38px;
  width: 245px;
  opacity: .24;
  transform: rotate(-9deg);
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(31, 28, 69, .16));
  animation: decorFloat 6s ease-in-out infinite;
}

.situation-chip,
.final-cta-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: 800 13px var(--font-display);
  pointer-events: none;
}

.situation-chip {
  right: 30px;
  top: 28px;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--brand-purple);
  box-shadow: 0 12px 28px rgba(31, 28, 69, .16);
  animation: decorFloat 4.8s ease-in-out infinite;
}

.decor-how {
  isolation: isolate;
}

.how-route {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 128px;
  z-index: 0;
  height: 150px;
  pointer-events: none;
  opacity: .72;
}

.how-route svg {
  width: 100%;
  height: 100%;
}

.how-route__line {
  stroke: rgba(255, 158, 12, .38);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 12 18;
  animation: routeMove 12s linear infinite;
}

.how-route__car {
  position: absolute;
  left: 16%;
  top: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-purple);
  box-shadow: 0 16px 34px rgba(31, 28, 69, .12);
  animation: routeCar 9s ease-in-out infinite;
}

.how-route__car svg {
  width: 24px;
  height: 24px;
}

.decor-how > h2,
.decor-how > div:not(.how-route),
.decor-how > a {
  position: relative;
  z-index: 1;
}

.contact-visual-section > div {
  position: relative;
  z-index: 1;
}

.telegram-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.telegram-card > *:not(.telegram-phone) {
  position: relative;
  z-index: 2;
}

.telegram-phone {
  position: absolute;
  z-index: 1;
  right: 22px;
  top: 24px;
  width: 132px;
  height: 224px;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #191b25, #4b4e5c);
  box-shadow: 0 24px 46px rgba(31, 28, 69, .18);
  transform: rotate(8deg);
  opacity: .92;
  pointer-events: none;
  animation: decorFloat 5.6s ease-in-out infinite;
}

.telegram-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 158, 12, .18), transparent 6rem),
    linear-gradient(180deg, #f9fbff, #eef2ff);
}

.telegram-phone__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(25, 27, 37, .28);
  transform: translateX(-50%);
}

.telegram-bubble {
  position: absolute;
  max-width: 92px;
  padding: 8px 10px;
  border-radius: 13px;
  font: 800 9px/1.15 var(--font-display);
  box-shadow: 0 8px 18px rgba(31, 28, 69, .08);
}

.telegram-bubble--left {
  left: 10px;
  background: #fff;
  color: var(--ink-900);
}

.telegram-bubble--right {
  right: 10px;
  background: var(--brand-purple);
  color: #fff;
}

.telegram-bubble:nth-of-type(1) {
  top: 46px;
}

.telegram-bubble:nth-of-type(2) {
  top: 96px;
}

.telegram-bubble:nth-of-type(3) {
  top: 148px;
}

.telegram-card h2,
.telegram-card p,
.telegram-card > div:not(.telegram-phone),
.telegram-card > a {
  max-width: calc(100% - 142px);
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.final-cta-card > *:not(.final-cta-license):not(.final-cta-chip) {
  position: relative;
  z-index: 2;
}

.final-cta-license {
  position: absolute;
  z-index: 1;
  right: -44px;
  bottom: -72px;
  width: 310px;
  opacity: .16;
  transform: rotate(-9deg);
  pointer-events: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .16));
  animation: decorFloat 7s ease-in-out infinite;
}

.final-cta-chip {
  right: 54px;
  top: 44px;
  min-height: 38px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  animation: decorFloat 5s ease-in-out infinite;
}

@keyframes decorFloat {
  0%, 100% {
    transform: translateY(0) rotate(var(--decor-rotate, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(var(--decor-rotate, 0deg));
  }
}

@keyframes routeMove {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes routeCar {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateX(180px) translateY(-28px) rotate(7deg);
  }
}

.situation-license,
.telegram-phone,
.final-cta-license {
  --decor-rotate: -8deg;
}

.telegram-phone {
  --decor-rotate: 8deg;
}

@media (max-width: 899px) {
  .decor-situations::before,
  .contact-visual-section::before,
  .how-route,
  .situation-license,
  .situation-chip,
  .final-cta-license,
  .final-cta-chip {
    display: none;
  }

  .telegram-phone {
    position: relative;
    right: auto;
    top: auto;
    width: 116px;
    height: 188px;
    margin: 0 auto 22px;
    transform: rotate(5deg);
  }

  .telegram-card h2,
  .telegram-card p,
  .telegram-card > div:not(.telegram-phone),
  .telegram-card > a {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .situation-license,
  .situation-chip,
  .how-route__line,
  .how-route__car,
  .telegram-phone,
  .final-cta-license,
  .final-cta-chip {
    animation: none !important;
  }
}
