/* ===== БАЗА ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #eef4ff 0, #edf3ff 40%, #f5f7fc 100%);
  color: #0b1020;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== TOPBAR ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 253, 0.95);
  border-bottom: 1px solid rgba(179, 192, 224, 0.5);
}

.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  height: 40px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
}

.nav a {
  position: relative;
  color: #6b7690;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  background: rgba(11, 102, 255, 0.08);
  color: #111729;
}

/* ===== КНОПКИ ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.btn--cta {
  margin-left: 12px;
  background: #246dff;
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(36, 109, 255, 0.45);
}

.btn--cta:hover {
  background: #3f7dff;
  box-shadow: 0 18px 52px rgba(36, 109, 255, 0.6);
  transform: translateY(-1px);
}

.btn--primary {
  background: #ffffff;
  color: #0b1020;
  padding-inline: 26px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.55);
}

.btn--primary:hover {
  background: #e5ecff;
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.7);
}

/* ===== БУРГЕР ===== */

.burger {
  margin-left: 12px;
  width: 40px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(179, 192, 224, 0.7);
  background: #ffffff;
  display: none;            /* на десктопе скрыт */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* ===== MAIN / HERO ===== */

.main {
  padding: 26px 0 60px;
}

/* контейнер героя с GIF-фоном */
.hero--products {
  position: relative;
  width: min(1200px, 100% - 64px);
  margin: 32px auto 56px;
  border-radius: 38px;
  overflow: hidden;
  background: url("loopbackground.gif") center/cover no-repeat;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.02);
}

/* затемняющий градиент поверх GIF */
.hero--products::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(65, 132, 255, 0.55) 0, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.7) 0, rgba(2, 6, 23, 0.45) 55%),
    linear-gradient(135deg, rgba(3, 7, 18, 0.55), rgba(15, 23, 42, 0.7));
  z-index: 0;
}

/* контент поверх фона */
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 46px 48px 50px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  color: #ffffff;
}

.hero__content {
  flex: 1.2;
  max-width: 520px;
}

.hero__title {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero__subtitle {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(230, 238, 255, 0.9);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__tags span {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(12, 25, 70, 0.85);
  border: 1px solid rgba(149, 178, 255, 0.7);
  color: #e5edff;
}

/* правая колонка */
.hero__products-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-pill {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #020617, #020819);
  border: 1px solid rgba(148, 163, 255, 0.45);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(14px);
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.product-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.32), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.product-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.46);
  border-color: rgba(191, 219, 254, 0.8);
}

.product-pill:hover::before {
  opacity: 1;
}

/* иконка */
.product-pill__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 255, 0.6);
}

.product-pill__icon span {
  font-size: 18px;
}

/* ===== Адаптив HERO ===== */

@media (max-width: 1024px) {
  .hero__inner {
    padding: 34px 26px 40px;
    gap: 26px;
  }
}

@media (max-width: 880px) {
  .hero__inner {
    flex-direction: column;
  }

  .hero__content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar__inner {
    padding: 8px 12px;
    gap: 10px;
  }

  .brand__logo {
    height: 34px;
  }

  /* Мобильное меню: по умолчанию скрыто */
  .nav {
    position: fixed;
    inset: 56px 0 auto 0;             /* под шапкой */
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    border-bottom: 1px solid rgba(179, 192, 224, 0.6);
    z-index: 29;
    font-size: 15px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav a:hover {
    background: rgba(36, 109, 255, 0.08);
    color: #111729;
  }

  /* показываем бургер */
  .burger {
    display: inline-flex;
  }

  .hero--products {
    width: calc(100% - 24px);
    border-radius: 28px;
    margin: 18px auto 40px;
  }

  .hero__inner {
    padding: 26px 18px 30px;
    gap: 22px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .product-pill {
    padding: 12px 13px;
  }
}

/* ===== ДЕТАЛЬНЫЕ БЛОКИ ПРОДУКТОВ ===== */

.products {
  padding: 16px 0 40px;
}

.products__inner {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
}

.product-section {
  margin-bottom: 40px;
  padding: 28px 26px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.16) 0, transparent 55%),
    #ffffff;
  box-shadow: 0 22px 60px rgba(15,23,42,.08);
  border: 1px solid rgba(148,163,184,.35);
}

.product-section--alt {
  background:
    radial-gradient(circle at 100% 0%, rgba(14,165,233,.12) 0, transparent 55%),
    #ffffff;
}

.product-section__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #e0ebff;
}

.product-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.product-section__content h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.product-section__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.product-section__list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.product-section__list li + li {
  margin-top: 6px;
}

.product-section__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: #6b7280;
}

.product-section__meta span::before {
  content: "• ";
  color: #2563eb;
}

/* Правая колонка */

.product-section__visual {
  border-radius: 22px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,.16) 0, transparent 55%),
    #0b1220;
  color: #e5edff;
  box-shadow: 0 18px 40px rgba(15,23,42,.38);
}

.product-section__visual--avatar {
  background:
    radial-gradient(circle at 100% 0%, rgba(244,114,182,.18) 0, transparent 55%),
    #0f172a;
}

.product-section__visual--training {
  background:
    radial-gradient(circle at 0% 100%, rgba(45,212,191,.18) 0, transparent 55%),
    #020617;
}

.product-section__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(148,163,255,.5);
}

.product-section__visual ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(226,232,240,.95);
}

.product-section__visual li + li {
  margin-top: 6px;
}

/* Адаптив продуктов */

@media (max-width: 880px) {
  .product-section {
    padding: 22px 18px 24px;
    border-radius: 22px;
  }

  .product-section__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .products__inner {
    width: calc(100% - 24px);
  }

  .product-section__content h2 {
    font-size: 20px;
  }

  .product-section__lead {
    font-size: 14px;
  }
}

/* ===== ФОН GIF ДЛЯ БЛОКА "ПРИМЕР СЦЕНАРИЕВ" ===== */
.product-section__visual--rag {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 16px;
  overflow: hidden;
  background: url("background.gif") center/cover no-repeat;
  color: #e5edff;
  box-shadow: 0 18px 40px rgba(15,23,42,.38);
}

/* затемняющий слой */
.product-section__visual--rag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* контент поверх затемнения */
.product-section__visual--rag > * {
  position: relative;
  z-index: 1;
}

/* ===== GIF ФОН ДЛЯ БЛОКА "ГДЕ ИСПОЛЬЗУЕТСЯ" (AI-АВАТАРЫ) ===== */
.product-section__visual--avatar {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 16px;
  overflow: hidden;
  background: url("background2.gif") center/cover no-repeat;
  color: #e5edff;
  box-shadow: 0 18px 40px rgba(15,23,42,.38);
}

/* затемняющий слой */
.product-section__visual--avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* контент поверх */
.product-section__visual--avatar > * {
  position: relative;
  z-index: 1;
}

/* ===== GIF ФОН ДЛЯ БЛОКА "РЕЗУЛЬТАТ ДЛЯ БИЗНЕСА" ===== */
.product-section__visual--training {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 16px;
  overflow: hidden;
  background: url("background3.gif") center/cover no-repeat;
  color: #e5edff;
  box-shadow: 0 18px 40px rgba(15,23,42,.38);
}

/* затемняющий слой */
.product-section__visual--training::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* контент поверх */
.product-section__visual--training > * {
  position: relative;
  z-index: 1;
}

/* ===== ГОТОВЫЕ ДЕМОНСТРАЦИИ ===== */

.demos {
  padding: 20px 0 70px;
}

.demos__inner {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  text-align: center;
}

.demos__title {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.demos__subtitle {
  margin: 0 auto 30px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.demos__carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

/* Стрелки */
.demos__arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  color: #111827;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.demos__arrow:hover {
  transform: translateY(-1px);
  background: #e5ecff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
}

.demos__arrow--prev {
  margin-right: 10px;
}

.demos__arrow--next {
  margin-left: 10px;
}

/* Контейнер карточек */
.demos__cards {
  position: relative;
  width: min(640px, 100% - 120px);
  height: 230px;
}

/* Базовый стиль карточки */
.demo-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(460px, 100%);
  transform: translateX(-50%);
  padding: 20px 22px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(59,130,246,0.18) 0, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(236,72,153,0.16) 0, transparent 55%),
    #020617;
  color: #e5edff;
  box-shadow: 0 18px 40px rgba(15,23,42,0.42);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s ease,
    opacity 0.32s ease,
    box-shadow 0.32s ease,
    filter 0.32s ease;
  transform-origin: center center;
}

.demo-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.demo-card__text {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(226,232,240,0.96);
}

.demo-card__list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(209,213,219,0.96);
}

.demo-card__list li + li {
  margin-top: 4px;
}

.demo-card__btn {
  padding-inline: 20px;
  font-size: 13px;
}

/* Позиции: центр, слева, справа */

.demo-card.is-center {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: translateX(-50%) translateY(0) scale(1);
}

.demo-card.is-left {
  opacity: 0.75;
  z-index: 2;
  transform: translateX(calc(-50% - 190px)) translateY(8px) scale(0.9) rotateY(14deg);
  filter: blur(0.1px);
}

.demo-card.is-right {
  opacity: 0.75;
  z-index: 2;
  transform: translateX(calc(-50% + 190px)) translateY(8px) scale(0.9) rotateY(-14deg);
  filter: blur(0.1px);
}

.demo-card.is-hidden {
  opacity: 0;
  z-index: 1;
  transform: translateX(-50%) translateY(20px) scale(0.85);
}

/* Адаптив */

@media (max-width: 900px) {
  .demos__cards {
    width: calc(100% - 80px);
  }

  .demo-card.is-left,
  .demo-card.is-right {
    transform: translateX(-50%) translateY(10px) scale(0.9);
  }
}

@media (max-width: 640px) {
  .demos__inner {
    width: calc(100% - 24px);
  }

  .demos__cards {
    width: 100%;
    height: auto;
    min-height: 220px;
  }

  .demo-card {
    position: absolute;
    width: 100%;
  }

  .demo-card.is-left,
  .demo-card.is-right {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(0.9);
  }

  .demos__arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* ===== БЛОК БЕЗОПАСНОСТИ ===== */

.security {
  padding: 40px 0 60px;
}

.security__inner {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  text-align: center;
}

.security__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e0ebff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.security__title {
  margin: 0 0 26px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.security__row {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.security-mini {
  width: 280px;
  padding: 20px 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.3);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  text-align: center;
}

.security-mini__icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.security-mini h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}

.security-mini p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* === Большая CTA-секция === */

.cta-big {
  padding: 70px 0 90px;
}

.cta-big__inner {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 70px 40px;
  text-align: center;
  background: linear-gradient(135deg, #317bff 0%, #256eff 100%);
  border-radius: 38px;
  box-shadow:
    0 0 120px rgba(37, 110, 255, 0.45),
    0 20px 45px rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.cta-big__inner h2 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-big__inner p {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-big__btn {
  display: inline-block;
  padding: 14px 32px;
  background: #ffffff;
  color: #0b1020;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: 0.18s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cta-big__btn:hover {
  background: #e5edff;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

/* Мобильная адаптация CTA */
@media (max-width: 640px) {
  .cta-big__inner {
    padding: 50px 20px;
  }

  .cta-big__inner h2 {
    font-size: 24px;
  }
}
