:root {
  --page: #fbfbfc;
  --surface: #ffffff;
  --surface-strong: #f3f4f8;
  --surface-glass: rgba(255, 255, 255, 0.74);
  --text: #111218;
  --muted: #5d626f;
  --line: #e8e9f1;
  --accent: #4e51f8;
  --accent-dark: #22242a;
  --accent-soft: #f0f1ff;
  --warm: #edf1ff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 18, 24, 0.09);
  --shadow-soft: 0 14px 36px rgba(17, 18, 24, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(78, 81, 248, 0.08), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(34, 36, 42, 0.06), transparent 28%),
    radial-gradient(circle at 1px 1px, rgba(17, 18, 24, 0.055) 1px, transparent 1.4px),
    var(--page);
  background-size: auto, auto, 22px 22px, auto;
}

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

button {
  font: inherit;
}

.container-xl {
  width: min(1180px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: var(--bs-gutter-y);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-2 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.align-items-center {
  align-items: center;
}

.align-items-stretch {
  align-items: stretch;
}

.align-items-start {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
}

@media (min-width: 1200px) {
  .g-xl-5 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  border-bottom: 1px solid rgba(225, 229, 227, 0.75);
  background: rgba(247, 248, 247, 0.82);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 10px 24px rgba(78, 81, 248, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--accent-dark);
}

.header-cta,
.primary-button,
.secondary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta,
.primary-button {
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #050507, var(--accent));
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(78, 81, 248, 0.18);
}

.secondary-button {
  padding: 0 18px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-glass);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 27, 31, 0.05);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.header-cta:hover,
.primary-button:hover {
  background: linear-gradient(135deg, #050507, #3336d9);
}

.header-cta::after,
.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 560ms ease;
}

.header-cta:hover::after,
.primary-button:hover::after {
  transform: translateX(120%);
}

.section {
  padding: 64px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  padding-bottom: 48px;
}

.chat-section {
  padding-top: 52px;
}

.hero-content {
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 18, 24, 0.04);
}

.hero-eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, var(--accent) 0 45%, transparent 45%),
    linear-gradient(0deg, var(--accent) 0 45%, transparent 45%);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(42px, 6vw, 78px);
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.hero-text,
.section-heading p:not(.eyebrow),
.hero-visual p,
.footer-links,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.trust-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-bullet {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  line-height: 1.35;
  box-shadow: none;
  transition: transform 180ms ease, color 180ms ease;
}

.trust-bullet:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.trust-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.trust-icon::before,
.trust-icon::after {
  content: "";
  position: absolute;
  inset: 6px 3px;
  border-radius: 99px;
  background: #ffffff;
}

.trust-icon::after {
  inset: 3px 6px;
}

.trust-copy {
  display: grid;
  gap: 5px;
}

.trust-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.trust-copy small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.hero-visual {
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.visual-topline {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 14px;
}

.visual-stage {
  position: relative;
  min-height: 390px;
  margin-top: 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 20%, rgba(78, 81, 248, 0.18), transparent 30%),
    radial-gradient(circle at 16% 80%, rgba(34, 36, 42, 0.08), transparent 32%),
    linear-gradient(135deg, rgba(78, 81, 248, 0.08), transparent 48%),
    var(--surface-strong);
  overflow: hidden;
}

.visual-card {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.visual-card-main {
  inset: 44px 44px 96px;
  font-size: clamp(28px, 4vw, 42px);
  animation: floatMain 7s ease-in-out infinite;
}

.visual-card-chat {
  right: 24px;
  bottom: 24px;
  width: 156px;
  height: 78px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  animation: floatSmall 5.5s ease-in-out infinite;
}

.visual-card-lead {
  left: 24px;
  bottom: 34px;
  width: 136px;
  height: 64px;
  background: var(--warm);
  animation: floatSmall 6.5s ease-in-out 400ms infinite;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.chat-heading {
  display: grid;
  max-width: 880px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 26px;
  align-items: end;
}

.chat-heading .eyebrow,
.chat-heading h2 {
  grid-column: 1;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.chat-time {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid rgba(78, 81, 248, 0.18);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.chat-wide {
  width: 100%;
}

.chat-embed {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(78, 81, 248, 0.1), transparent 28%),
    var(--surface);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.chat-embed.is-loading .chat-loader {
  color: var(--text);
}

.chat-embed.is-loaded .chat-loader {
  visibility: hidden;
  opacity: 0;
}

#rqchat {
  min-height: 680px;
  background: var(--surface);
}

#rqchat[hidden] {
  display: none;
}

#rqchat:empty {
  display: grid;
  place-items: center;
}

#rqchat:empty::before {
  content: "Загружаем чат...";
  color: var(--muted);
  font-weight: 800;
}

.chatland-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  background: var(--surface);
}

.chat-fallback {
  max-width: 680px;
  margin: 0 auto;
  padding: 52px 24px;
  text-align: center;
}

.chat-fallback h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.chat-fallback p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.extra-card {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 27, 31, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.extra-card:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 81, 248, 0.24);
  box-shadow: var(--shadow-soft);
}

.extra-card strong {
  display: block;
  font-size: 17px;
}

.extra-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.extra-shot {
  display: grid;
  width: 100%;
  min-height: 230px;
  place-items: center;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(78, 81, 248, 0.24);
  background:
    linear-gradient(135deg, rgba(78, 81, 248, 0.08), rgba(34, 36, 42, 0.05)),
    var(--surface-strong);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.extra-shot img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.extra-card-empty .extra-shot {
  aspect-ratio: auto;
}

.chat-shell {
  padding: 22px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.chat-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-messages {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.message {
  max-width: 82%;
  padding: 13px 14px;
  border-radius: var(--radius);
  line-height: 1.45;
}

.message.bot {
  justify-self: start;
  background: var(--surface-strong);
}

.message.user {
  justify-self: end;
  color: #ffffff;
  background: var(--accent);
}

.chat-button {
  width: 100%;
}

.embed-note {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-strong);
  font-size: 14px;
}

.review {
  display: grid;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 27, 31, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.review:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 81, 248, 0.24);
  box-shadow: var(--shadow-soft);
}

.review-shot {
  display: grid;
  width: 100%;
  min-height: 190px;
  place-items: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(78, 81, 248, 0.28);
  background:
    linear-gradient(135deg, rgba(78, 81, 248, 0.08), rgba(34, 36, 42, 0.05)),
    var(--surface-strong);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  padding: 18px;
  margin: 0;
  overflow: hidden;
}

.review-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(24, 27, 31, 0.08);
}

.review-shot-placeholder {
  aspect-ratio: 4 / 3;
}

.review blockquote {
  margin: 0;
  line-height: 1.5;
}

.review cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.site-footer .container-xl {
  padding-top: 34px;
  padding-bottom: 44px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.adsflow-credit {
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
}

.adsflow-credit a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  min-height: 100vh;
  background: var(--page);
}

.legal-main {
  padding: 74px 0 96px;
}

.legal-card {
  max-width: 920px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 24px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-weight: 800;
}

.legal-meta {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

@keyframes floatMain {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes floatSmall {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  .header-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .hero-visual {
    min-height: auto;
    padding: 16px;
  }

  .visual-stage {
    min-height: 300px;
  }

  .chat-section {
    padding-top: 44px;
  }

  .chat-heading {
    grid-template-columns: 1fr;
  }

  .chat-heading .eyebrow,
  .chat-heading h2,
  .chat-time {
    grid-column: 1;
  }

  .chat-time {
    grid-row: auto;
    justify-self: start;
  }

  .adsflow-credit {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 20% 4%, rgba(78, 81, 248, 0.08), transparent 28%),
      radial-gradient(circle at 1px 1px, rgba(17, 18, 24, 0.06) 1px, transparent 1.4px),
      var(--page);
    background-size: auto, 18px 18px, auto;
  }

  .site-header {
    padding: 0;
    background: rgba(251, 251, 252, 0.88);
  }

  .site-header .container-xl {
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-row {
    gap: 10px;
    min-height: 64px;
    padding: 8px 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 16px;
  }

  .brand [data-brand-name] {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    width: auto;
    max-width: 154px;
    padding: 0 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  .section {
    padding: 34px 0;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .hero-eyebrow {
    margin-bottom: 24px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.4vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.065em;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.45;
  }

  .trust-bullet {
    padding: 6px 0;
  }

  .trust-copy strong {
    font-size: 18px;
  }

  .trust-copy small {
    font-size: 14px;
  }

  .hero-actions {
    margin: 30px 0 28px;
  }

  .chat-heading {
    margin-bottom: 20px;
  }

  .chat-time {
    min-height: auto;
    padding: 12px 14px;
  }

  .chatland-frame {
    min-height: 560px;
  }

  .extra-shot,
  .review-shot {
    min-height: 140px;
  }

  .extra-shot-placeholder,
  .review-shot-placeholder {
    aspect-ratio: auto;
  }

  .review {
    padding: 12px;
  }

  .hero-actions,
  .hero-actions button {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    min-height: 56px;
  }

  .hero-visual {
    display: none;
  }

  .visual-card-main {
    inset: 24px 18px 92px;
    font-size: 24px;
  }

  .visual-card-chat {
    right: 16px;
    bottom: 18px;
    width: 132px;
    height: 64px;
  }

  .visual-card-lead {
    left: 16px;
    bottom: 24px;
    width: 116px;
    height: 56px;
  }
}
