/* Финальный блок и подвал: светлая волна снизу и карточка подвала поверх неё */

/* --- финальный призыв --- */
.sec-final {
  position: relative;
  overflow: hidden;
  background: #fcfbf8;
  color: #14141c;
}

/* Большая мягкая волна (фиолет/синий/розовый) у нижнего края */
.sec-final::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140%;
  height: 360px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(40% 60% at 50% 100%, rgba(160, 190, 255, .9), transparent 72%),
    radial-gradient(55% 70% at 16% 100%, #3f72ff, transparent 74%),
    radial-gradient(55% 70% at 84% 100%, #4f7cff, transparent 74%),
    radial-gradient(50% 65% at 28% 100%, #ff6fd8, transparent 76%),
    radial-gradient(50% 65% at 72% 100%, #ff4f9a, transparent 76%),
    radial-gradient(70% 70% at 50% 100%, #ff2d55, transparent 78%);
  filter: blur(34px) saturate(1.15);
}

.final-in {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 20px 200px;
  text-align: center;
}

.final-robot {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 16px 36px rgba(20, 20, 28, .2));
  animation: final-robot-float 4s ease-in-out infinite alternate;
}

@keyframes final-robot-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.final-h {
  margin: 0 auto 18px;
  max-width: 20ch;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #14141c;
}

.final-lede {
  margin: 0 auto 26px;
  max-width: 46ch;
  color: #4a4c60;
  font-size: clamp(16px, 1.6vw, 20px);
}

.sec-final .cta-row { justify-content: center; }

.sec-final .btn-primary { background: #111; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.sec-final .btn-ghost { background: #fff; color: #111; }

/* --- подвал --- */
.site-foot {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: transparent;
  color: #4a4a57;
  padding: 0;
}
/* Наезд на волну — только там, где перед подвалом финальный блок (лендинг) */
body:has(.sec-final) .site-foot { margin-top: -140px; }

.foot-card {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 48px;
  border-radius: 24px;
  background: #f3f1ec;
  box-shadow: 0 20px 60px rgba(20, 20, 28, .08);
}

.foot-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.foot-logo { height: 96px; width: auto; margin-bottom: 12px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .12)); }

.foot-col h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #14141c; }

.foot-col a {
  display: block;
  margin-bottom: 8px;
  color: #4a4a57;
  font-size: 14px;
  text-decoration: none;
}

.foot-col a:hover { color: #14141c; }

.site-foot .foot-note { color: #6b6b78; margin-top: 12px; font-size: 13px; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 20, 28, .1);
  font-size: 13px;
  color: #6b6b78;
}

.foot-bottom p { margin: 0; }

.foot-cookie { color: #4a4a57; text-decoration: none; cursor: pointer; }
.foot-cookie:hover { color: #14141c; }

@media (max-width: 760px) {
  .final-h { font-size: 30px; }
  .final-in { padding: 90px 20px 160px; }
  .foot-card { padding: 28px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .final-robot { animation: none; }
}
/* Кнопки финала — рядом, по центру */
.sec-final .cta-row { justify-content: center; gap: 12px; }
