.premium-footer {
  --footer-blue: #2f6bff;
  --footer-violet: #8159ff;
  --footer-cyan: #22c4e8;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px) 0 calc(clamp(20px, 3vw, 30px) + var(--sticky-cta-height, 148px));
  background: #fff;
  color: #0b1930;
}

.premium-footer__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 101, 195, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 101, 195, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 34%, #000 68%, transparent);
}

.premium-footer__orb {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  animation: footer-orbit 11s ease-in-out infinite alternate;
}

.premium-footer__orb--one {
  top: -155px;
  left: -115px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.12), transparent 70%);
}

.premium-footer__orb--two {
  right: -125px;
  bottom: -155px;
  background: radial-gradient(circle, rgba(129, 89, 255, 0.1), transparent 70%);
  animation-delay: -5s;
}

.premium-footer__container {
  position: relative;
  perspective: 1300px;
}

.premium-footer__card {
  --footer-tilt-x: 0deg;
  --footer-tilt-y: 0deg;
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 38px) clamp(22px, 5vw, 54px) clamp(22px, 3vw, 30px);
  border: 1px solid #e1e8f3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 44px rgba(20, 51, 105, 0.08),
    0 3px 10px rgba(20, 51, 105, 0.05),
    inset 0 1px 0 #fff;
  text-align: center;
  transform: translate3d(0, 0, 0) rotateX(var(--footer-tilt-x)) rotateY(var(--footer-tilt-y));
  transform-style: preserve-3d;
  backdrop-filter: blur(10px);
  transition: opacity 0.75s ease, transform 0.28s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.premium-footer__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--footer-light-x, 50%) var(--footer-light-y, 50%), rgba(72, 126, 255, 0.08), transparent 34%);
  transition: opacity 0.35s ease;
}

.premium-footer__card:hover {
  border-color: rgba(63, 112, 225, 0.25);
  box-shadow:
    0 24px 58px rgba(31, 70, 140, 0.11),
    0 5px 14px rgba(31, 70, 140, 0.06),
    inset 0 1px 0 #fff;
}

.premium-footer__card:hover::before {
  opacity: 1;
}

.premium-footer__brand {
  display: inline-flex;
  align-items: center;
  width: clamp(218px, 23vw, 272px);
  overflow: hidden;
  border-radius: 16px;
  line-height: 0;
  text-decoration: none;
  transform: translateZ(36px);
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-footer__brand:hover {
  filter: drop-shadow(0 10px 16px rgba(38, 101, 235, 0.16));
  transform: translateZ(36px) translateY(-2px);
}

.premium-footer__brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.premium-footer__intro {
  max-width: 620px;
  margin: 13px auto 0;
  color: #5d6c82;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
  transform: translateZ(24px);
}

.premium-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  transform: translateZ(28px);
}

.premium-footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #dbe5f4;
  border-radius: 999px;
  background: #f7f9fd;
  box-shadow: inset 0 1px 0 #fff;
  color: #3d506d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.premium-footer__contacts a:hover {
  border-color: rgba(92, 141, 255, 0.45);
  background: #edf3ff;
  color: #1f57dc;
  transform: translateY(-2px);
}

.premium-footer__contacts svg {
  width: 16px;
  height: 16px;
  fill: var(--footer-blue);
}

.premium-footer__beam {
  position: relative;
  height: 1px;
  margin: clamp(20px, 3vw, 28px) 0 clamp(17px, 2.5vw, 22px);
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(82, 116, 181, 0.18), transparent);
}

.premium-footer__beam span {
  position: absolute;
  top: 0;
  left: -28%;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--footer-cyan), var(--footer-blue), transparent);
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.75);
  animation: footer-beam 5.5s ease-in-out infinite;
}

.premium-footer__disclaimer {
  max-width: 820px;
  margin: 0 auto;
  color: #718098;
  font-size: 12.5px;
  line-height: 1.62;
}

.premium-footer__disclaimer strong {
  color: #42536d;
  font-weight: 700;
}

.premium-footer__bottom {
  display: flex;
  justify-content: center;
  gap: 6px 24px;
  flex-wrap: wrap;
  margin-top: 17px;
  color: #8a96a8;
  font-size: 11.5px;
  line-height: 1.55;
}

.premium-footer__bottom p {
  margin: 0;
}

.premium-footer.footer-motion-ready .premium-footer__card {
  opacity: 0;
  transform: translate3d(0, 20px, 0) rotateX(4deg);
}

.premium-footer.footer-motion-ready .premium-footer__card.footer-card--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(var(--footer-tilt-x)) rotateY(var(--footer-tilt-y));
}

@keyframes footer-beam {
  0% { left: -28%; opacity: 0; }
  15% { opacity: 1; }
  72% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes footer-orbit {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(26px, -18px, 0) scale(1.08); }
}

@media (max-width: 767px) {
  .premium-footer {
    padding: 18px 0 calc(16px + var(--sticky-cta-height, 108px));
  }

  .premium-footer__grid {
    background-size: 42px 42px;
  }

  .premium-footer__card {
    padding: 24px 16px 20px;
    border-radius: 17px;
  }

  .premium-footer__brand {
    width: clamp(194px, 62vw, 232px);
    border-radius: 13px;
  }

  .premium-footer__intro {
    font-size: 13.5px;
  }

  .premium-footer__contacts {
    align-items: stretch;
    flex-direction: column;
    margin-top: 16px;
  }

  .premium-footer__contacts a {
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
  }

  .premium-footer__disclaimer {
    font-size: 11.5px;
    line-height: 1.58;
  }

  .premium-footer__bottom {
    gap: 8px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-footer__orb,
  .premium-footer__beam span {
    animation: none !important;
  }

  .premium-footer__card,
  .premium-footer__brand,
  .premium-footer__contacts a {
    transition-duration: 0.01ms !important;
  }

  .premium-footer.footer-motion-ready .premium-footer__card,
  .premium-footer.footer-motion-ready .premium-footer__card.footer-card--visible {
    opacity: 1;
    transform: none;
  }
}
