/* ==========================================================================
   Блок «Начните работу с сервисом» (CTA) — чистая адаптивная версия
   (заменяет Tilda Zero Block rec1923440241).
   Чёрный фон с радиальным свечением; заголовок-бабл, робот-маскот,
   кнопки сервисов (ПК — заливка, MAX/Telegram — аутлайн), встроенный
   чат-виджет (#novatorix) и нижняя плашка с 4 пунктами.
   ВАЖНО: внутри сохранена точка монтирования виджета #novatorix.
   ========================================================================== */

.cta-section {
  position: relative;
  overflow: hidden;
  background-color: #000000;
  /* радиальное сине-серое свечение по центру, как в исходнике */
  background-image: radial-gradient(60% 55% at 50% 42%, #16242f 0%, #070b11 55%, #000000 100%);
  color: #ffffff;
  padding: 60px 0 70px;
  font-family: 'Geologica', sans-serif;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ----- Заголовок-бабл ----- */
.cta-section__title {
  display: inline-block;
  margin: 0;
  padding: 14px 34px;
  background-color: #1864b1;
  border-radius: 50px;
  color: #ffffff;
  font-family: var(--t-text-font, Arial);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
}

/* «Мысли»-трейл из точек от робота к заголовку */
.cta-section__head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.cta-section__dots {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 10px;
}

.cta-section__dots span {
  display: block;
  border-radius: 50%;
  background-color: #1864b1;
}

.cta-section__dots span:nth-child(1) { width: 12px; height: 12px; }
.cta-section__dots span:nth-child(2) { width: 18px; height: 18px; }
.cta-section__dots span:nth-child(3) { width: 26px; height: 26px; }

/* ----- Тело: робот + кнопки ----- */
.cta-section__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 28px 0 0;
  flex-wrap: wrap;
}

.cta-section__robot {
  flex: 0 0 auto;
  width: 300px;
  max-width: 60vw;
  height: auto;
}

.cta-section__actions {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
}

/* размытое синее свечение под кнопками (точные параметры из исходника:
   690×344, #1864b1, opacity 0.45, blur 50px) */
.cta-section__actions::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 690px;
  max-width: 108%;
  height: 344px;
  transform: translate(-50%, -50%);
  background-color: #1864b1;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.cta-section__actions-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
}

/* Кнопки сервисов */
.cta-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 0 24px;
  border-radius: 20px;
  /* !important — перебиваем глобальный цвет ссылок Tilda #ff8562 */
  color: #ffffff !important;
  font-family: var(--t-text-font, Arial);
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  /* белое свечение/оконтовка, как в исходнике */
  box-shadow: 0 0 15px -3px rgba(255, 255, 255, 0.58);
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* на наведении свечение чуть усиливается (без заливки фоном — как в исходнике) */
.cta-btn:hover {
  box-shadow: 0 0 20px -1px rgba(255, 255, 255, 0.72);
}

/* контент кнопки — над световой волной */
.cta-btn__icon,
.cta-btn span {
  position: relative;
  z-index: 1;
}

/* световая волна, пробегающая по кнопке при наведении (как в исходнике) */
.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 80%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.cta-btn:hover::after {
  animation: cta-btn-wave 0.8s ease;
}

@keyframes cta-btn-wave {
  to { left: 160%; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn:hover::after { animation: none; }
}

.cta-btn__icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* MAX / Telegram — аутлайн, непрозрачный тёмный фон (как в исходнике —
   чтобы синее свечение за кнопками не просвечивало сквозь них) */
.cta-btn--outline {
  height: 80px;
  border: 2px solid #1864b1;
  background-color: #06090f;
}

/* ПК — заливка, крупная */
.cta-btn--pc {
  flex: 1 1 0;
  min-height: 180px;
  font-size: 24px;
  border: 2px solid #1864b1;
  background-color: #1864b1;
}

.cta-btn--pc .cta-btn__icon {
  width: 56px;
  height: 56px;
}

/* ----- Чат-виджет ----- */
.cta-section__widget {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0 0;
  min-height: 80px;
}

/* ----- Нижняя плашка с пунктами ----- */
.cta-section__features {
  margin: 34px 0 0;
  padding: 26px 34px;
  background-color: #000000;
  border: 2px solid #ffffff;
  border-radius: 20px;
}

.cta-section__features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cta-section__features li {
  position: relative;
  padding-left: 26px;
  color: #ffffff;
  font-family: var(--t-text-font, Arial);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
}

.cta-section__features li + li {
  margin-top: 8px;
}

.cta-section__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1864b1;
}

/* ----- Адаптив ----- */
@media screen and (max-width: 980px) {
  .cta-section {
    padding: 40px 0 50px;
  }
  .cta-section__title {
    font-size: 22px;
    padding: 12px 24px;
  }
  .cta-section__body {
    gap: 16px;
  }
  .cta-section__robot {
    width: 200px;
  }
  /* кнопки в один столбец на всю ширину */
  .cta-section__actions {
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
  .cta-section__actions-col {
    gap: 16px;
  }
  .cta-btn--pc {
    min-height: 80px;
    font-size: 20px;
    order: -1; /* ПК первой, как в мобильном исходнике */
  }
  .cta-section__features {
    padding: 20px 22px;
  }
  .cta-section__features li {
    font-size: 16px;
  }
  .cta-section__features li::before {
    width: 8px;
    height: 8px;
  }
}
