/* Новые блоки, часть 2: заглушки роликов, пример диалога, бегущая строка, «Как начать»,
   «Вопросы», подвал; телефонная раскладка всех новых блоков (кроме тарифов). */

/* ── заглушка ролика: живой «экран раздела» ─────────── */
.tour-mock { position: absolute; inset: 0; padding: 26px 28px 64px; display: grid; grid-template-rows: auto 1fr; gap: 20px; }
.mock-top { display: flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: -0.01em; }
.mock-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #3D6BFF, #1535ED); box-shadow: 0 12px 26px -12px rgba(21, 53, 237, 0.8); }
.mock-ic svg { width: 22px; height: 22px; }
.mock-note { position: absolute; left: 24px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: var(--glass-strong); border: 1px solid var(--glass-line); }
.mock-note svg { color: var(--blue); }
.mock-bars { display: flex; align-items: flex-end; gap: 9px; }
.mock-bars i { flex: 1; height: var(--h); border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #5C8BFF, #1535ED); transform-origin: bottom; animation: mock-grow 1s var(--ease) var(--d) both; }
@keyframes mock-grow { from { transform: scaleY(0.04); } }
.mock-chat { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.mock-chat i { height: 46px; border-radius: 18px; animation: mock-pop 0.7s var(--ease) both; }
.mock-chat .me { align-self: flex-end; width: 52%; border-bottom-right-radius: 6px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)) 18px 19px / 58% 8px no-repeat, linear-gradient(180deg, #3D6BFF, #1535ED); }
.mock-chat .bot { width: 74%; height: 64px; border: 1px solid var(--glass-line); border-bottom-left-radius: 6px; animation-delay: 0.35s;
  background: linear-gradient(rgba(21, 53, 237, 0.16), rgba(21, 53, 237, 0.16)) 18px 18px / 70% 8px no-repeat,
    linear-gradient(rgba(21, 53, 237, 0.09), rgba(21, 53, 237, 0.09)) 18px 36px / 46% 8px no-repeat, var(--glass-strong); }
.mock-chat .bot.short { width: 46%; height: 46px; animation-delay: 0.6s; background: linear-gradient(rgba(21, 53, 237, 0.13), rgba(21, 53, 237, 0.13)) 18px 19px / 62% 8px no-repeat, var(--glass-strong); }
.mock-chat .me.short { width: 34%; animation-delay: 0.9s; }
@keyframes mock-pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.mock-line { width: 100%; height: 100%; overflow: visible; }
.mock-line path { fill: none; stroke: #2F64FF; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: mock-draw 1.8s var(--ease) 0.15s forwards; vector-effect: non-scaling-stroke; }
@keyframes mock-draw { to { stroke-dashoffset: 0; } }
.mock-feed { display: grid; gap: 10px; align-content: center; }
.mock-feed i { display: grid; grid-template-columns: 36px 1fr 74px; gap: 14px; align-items: center; height: 50px; padding: 0 14px; border-radius: 15px; background: var(--glass-strong); border: 1px solid var(--glass-line); animation: mock-slide 0.7s var(--ease) var(--d) both; }
.mock-feed b { width: 36px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #CFE0FF, #8FB2FF); }
.mock-feed em { height: 9px; border-radius: 9px; background: rgba(21, 53, 237, 0.14); }
.mock-feed span { height: 12px; border-radius: 9px; background: linear-gradient(90deg, #2FBF77, #14915A); opacity: 0.85; }
@keyframes mock-slide { from { opacity: 0; transform: translateX(26px); } }
.mock-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 8%; }
.mock-ab i { position: relative; border-radius: 18px; background: linear-gradient(160deg, #DCE7FF, #AFC6FF); animation: mock-pop 0.7s var(--ease) both; }
.mock-ab i.win { animation-delay: 0.3s; box-shadow: 0 0 0 3px #2F64FF, 0 20px 40px -20px rgba(21, 53, 237, 0.7); }
.mock-ab b { position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #fff; color: var(--blue); }

/* ── пример диалога ─────────────────────────────────── */
.dialog { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.dialog-orb { min-height: 560px; }
.dialog-main { display: grid; gap: 18px; justify-items: start; }
.chat { width: 100%; max-width: 620px; padding: 0; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--glass-line); font-size: 15px; }
.chat-ava { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #E8F4FF 0%, #56B8F5 30%, #1446FF 64%, #0B1A5C 100%); box-shadow: 0 6px 14px -6px rgba(20, 70, 255, 0.8); }
.chat-on { margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #14915A; }
.chat-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #19A463; box-shadow: 0 0 0 4px rgba(25, 164, 99, 0.15); }
.chat-body { display: grid; gap: 12px; padding: 22px; min-height: 380px; align-content: start; }
.msg { max-width: 90%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; animation: mock-pop 0.6s var(--ease) both; }
.msg.me { justify-self: end; color: #fff; background: linear-gradient(180deg, #3D6BFF, #1535ED); border-bottom-right-radius: 6px; }
.msg.bot { justify-self: start; display: grid; gap: 8px; background: var(--glass-strong); border: 1px solid var(--glass-line); border-bottom-left-radius: 6px; }
.msg-label { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.msg-lead { font-weight: 650; }
.msg ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.msg-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.msg-src span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--blue); background: rgba(21, 53, 237, 0.08); }
body[data-theme="dark"] .msg-src span { color: #9CC2FF; background: rgba(57, 136, 255, 0.16); }
.typing { display: flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.5; } }
.voice-note { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.voice-note svg { color: var(--blue); flex: none; }

/* бегущая строка вопросов */
.asks-marquee { margin: 64px -56px 0; display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.asks-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.asks-row.rev .asks-track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ── как начать ─────────────────────────────────────── */
.start { position: relative; list-style: none; padding: 0; margin: 56px auto 0; max-width: 1120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.start::before { content: ""; position: absolute; top: 32px; left: 17%; right: 17%; height: 2px; background: linear-gradient(90deg, rgba(21, 53, 237, 0.05), rgba(21, 53, 237, 0.35), rgba(21, 53, 237, 0.05)); }
.start-step { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 12px; padding: 0 12px; }
.start-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 34% 30%, #CFE2FF 0%, #3988FF 50%, #1535ED 100%); box-shadow: 0 0 0 8px var(--bg), 0 18px 36px -14px rgba(21, 53, 237, 0.8); }
.start-step h3 { margin-top: 8px; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.start-step p { max-width: 310px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.start-cta { display: flex; justify-content: center; margin-top: 48px; }
body.scroll .scene[data-scene="start"] { min-height: 0; padding-bottom: 72px; }

/* ── вопросы ────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; max-width: 1220px; margin: 0 auto; align-items: start; }
.faq-wrap .flow-head { position: sticky; top: 132px; }
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: 0 22px 50px -40px rgba(23, 59, 122, 0.5); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 24px; font-size: 17.5px; font-weight: 650; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 22px; }
.faq-plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(21, 53, 237, 0.07); transition: transform 0.5s var(--ease), background 0.5s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--blue); transform: translate(-50%, -50%); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: rgba(21, 53, 237, 0.14); }
body[data-theme="dark"] .faq-plus { background: rgba(57, 136, 255, 0.18); }
body[data-theme="dark"] .faq-plus::before, body[data-theme="dark"] .faq-plus::after { background: #9CC2FF; }
.faq-item p { padding: 0 24px 22px; max-width: 660px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ── полоса под шапкой: текст страницы не наезжает на меню ── */
.nav-shade { position: fixed; z-index: 4; left: 0; right: 0; top: 0; height: 104px; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
body.scrolled .nav-shade { opacity: 1; }
body:not(.scroll) .nav-shade { display: none; }

/* ── подвал ─────────────────────────────────────────── */
.foot { position: absolute; left: 56px; right: 56px; bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--glass-line); font-size: 14px; color: var(--ink-3); }
.foot .brand img { width: 32px; height: 32px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
/* финал: крупный заголовок слева, сфера справа */
body.scroll .scene[data-scene="cta"] .cta { left: 56px; top: 46%; bottom: auto; transform: translateY(-50%); width: min(680px, 50%); justify-items: start; text-align: left; gap: 18px; }
.cta h2 { font-size: clamp(44px, 4.6vw, 68px); line-height: 1.02; text-wrap: balance; }
.cta .lead { max-width: none; font-size: 21px; color: var(--ink); font-weight: 500; }
body.scroll .scene[data-scene="cta"] .cta .hero-actions { justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) { .asks-track { animation: none; } }

/* ── телефон ────────────────────────────────────────── */
@media (max-width: 700px) {
  body.scroll .scene.flow { padding: 92px 16px 64px; }
  body.scroll .scene.pin { height: auto; padding: 0; }
  .pin-stage { position: static; height: auto; min-height: 0; padding: 92px 16px 40px; }
  .pillars { display: grid; gap: 12px; }
  .pillar { position: relative; inset: auto; width: auto; color: var(--ink); transform: none; }
  .pillar .pillar-more { grid-template-rows: 1fr; }
  .tour { grid-template-columns: 1fr; gap: 18px; }
  .tour-left { display: contents; }
  .tour .flow-head { order: 0; }
  .tour-screen { position: relative; top: 0; order: 1; margin-top: 0; }
  .tour-list { order: 2; }
  .tour-left h2 { font-size: 32px; }
  .tour-screen-in { aspect-ratio: 4 / 3; }
  .tour-mock { padding: 16px 16px 52px; gap: 12px; }
  .mock-top { font-size: 15px; }
  .mock-ic { width: 34px; height: 34px; border-radius: 11px; }
  .mock-chat { gap: 8px; }
  .mock-chat i { height: 34px; }
  .mock-chat .bot { height: 48px; }
  .mock-chat .bot.short { height: 34px; }
  .mock-chat .me.short { display: none; }
  .mock-note { left: 14px; bottom: 12px; font-size: 11.5px; }
  .tools { height: auto; display: grid; gap: 10px; margin-top: 20px; }
  .tools-net, .tools-spark { display: none; }
  .tools-col { position: static; width: auto; display: grid; grid-template-rows: none; gap: 10px; }
  .tool-center { display: grid; position: static; width: auto; order: -1; opacity: 1; transform: none; }
  .orb-caption { display: none; }
  .tools-col.left .tool, .tools-col.right .tool { --from: 0px; }
  .dialog { grid-template-columns: 1fr; }
  .dialog-orb { display: none; }
  .chat-body { min-height: 0; padding: 16px; }
  .chat-top { padding: 14px 16px; font-size: 14px; }
  .asks-marquee { margin: 40px -16px 0; }
  .start { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .start::before { display: none; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-wrap .flow-head { position: static; }
  body.scroll .scene[data-scene="cta"] .cta { left: 16px; right: 16px; top: auto; bottom: 130px; transform: none; width: auto; justify-items: center; text-align: center; }
  body.scroll .scene[data-scene="cta"] .cta .hero-actions { justify-content: center; }
  .cta h2 { font-size: 32px; }
  .foot { left: 16px; right: 16px; flex-wrap: wrap; gap: 12px 20px; }
  .foot nav { gap: 16px; flex-wrap: wrap; }
}
