/*
 * avtomatizaciya-neyrosetyami-enhance.css
 * Стили CTA-слоя: sticky-кнопка, промежуточные CTA-блоки, финальный блок.
 * Палитра страницы: #817af9 (акцент), #5171f7, #646efb, #c883e5, фон #f7faff.
 * Шрифт страницы: FuturaPT.
 */

:root {
  --anb-violet: #817af9;
  --anb-blue: #5171f7;
  --anb-indigo: #646efb;
  --anb-pink: #c883e5;
  --anb-ink: #171717;
  --anb-soft: #f7faff;
}

/* ─── Базовая CTA-кнопка ─────────────────────────────────────── */
.anb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--anb-blue) 0%, var(--anb-violet) 55%, var(--anb-pink) 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'FuturaPT', 'Open Sans', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(81, 113, 247, 0.34);
  transition: transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms ease, filter 220ms ease;
  -webkit-tap-highlight-color: transparent;
}
.anb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(81, 113, 247, 0.44);
  filter: saturate(1.08);
}
.anb-cta:active { transform: translateY(0); }
.anb-cta:focus-visible {
  outline: 3px solid rgba(129, 122, 249, 0.55);
  outline-offset: 3px;
}
.anb-cta__text { display: inline-block; }
.anb-cta__arrow {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  position: relative;
}
.anb-cta__arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}
.anb-cta__arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.anb-cta:hover .anb-cta__arrow { transform: translateX(3px); transition: transform 220ms ease; }

.anb-cta--lg {
  padding: 18px 38px;
  font-size: 19px;
}

/* ─── 1. Sticky floating CTA ─────────────────────────────────── */
.anb-cta--sticky {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 9998;
  transform: translate3d(-50%, 160%, 0);
  transition: transform 460ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms ease, filter 220ms ease;
  white-space: nowrap;
  max-width: calc(100vw - 28px);
  will-change: transform;
  animation: anb-pulse 2.8s ease-in-out 1.2s 3;
}
.anb-cta--sticky.is-visible { transform: translate3d(-50%, 0, 0); }
.anb-cta--sticky:hover { transform: translate3d(-50%, -2px, 0); }

@keyframes anb-pulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(81, 113, 247, 0.34); }
  50%      { box-shadow: 0 14px 32px rgba(81, 113, 247, 0.34), 0 0 0 10px rgba(129, 122, 249, 0); }
}

/* ─── 2. Промежуточные CTA-блоки ─────────────────────────────── */
.anb-mid {
  width: 100%;
  box-sizing: border-box;
  padding: 44px 20px;
  background: var(--anb-soft);
}
.anb-mid__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.anb-mid__title {
  margin: 0 0 10px;
  font-family: 'FuturaPT', 'Open Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.2;
  color: var(--anb-ink);
}
.anb-mid__sub {
  margin: 0 auto 22px;
  max-width: 600px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #4a4a55;
}

/* ─── 3. Финальный CTA-блок ──────────────────────────────────── */
.anb-final {
  width: 100%;
  box-sizing: border-box;
  padding: 64px 20px;
  background: linear-gradient(135deg, var(--anb-blue) 0%, var(--anb-violet) 60%, var(--anb-pink) 120%);
}
.anb-final__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.anb-final__title {
  margin: 0 0 14px;
  font-family: 'FuturaPT', 'Open Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.15;
  color: #fff;
}
.anb-final__sub {
  margin: 0 auto 30px;
  max-width: 620px;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
/* На цветном фоне финального блока кнопку делаем белой с тёмным текстом */
.anb-final .anb-cta {
  background: #fff;
  color: var(--anb-blue) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}
.anb-final .anb-cta:hover {
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  filter: none;
}

/* ─── Адаптив ─────────────────────────────────────────────────── */
@media screen and (max-width: 640px) {
  .anb-cta { font-size: 16px; padding: 15px 26px; }
  .anb-cta--lg { font-size: 17px; padding: 16px 30px; }
  .anb-cta--sticky { bottom: 16px; font-size: 15px; padding: 14px 22px; }
  .anb-mid { padding: 36px 16px; }
  .anb-final { padding: 48px 16px; }
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .anb-cta, .anb-cta--sticky, .anb-cta__arrow { transition: none !important; animation: none !important; }
  .anb-cta--sticky { transform: translate3d(-50%, 160%, 0); }
  .anb-cta--sticky.is-visible { transform: translate3d(-50%, 0, 0); }
}
