/* Одна синяя палитра; варианты отличаются композицией и движением камеры. */
:root { --brand-blue: #0137fb; }
html, body, .stage-inner, .site-rest .hero,
.site-header .nav, .site-header .nav.stuck { background: var(--brand-blue); }
.site-header .nav.stuck { backdrop-filter: none; }
.site-intro .hero-grain { display: none; }
.win { border-radius: 22px; box-shadow: 0 28px 70px rgba(0, 13, 70, .24), 0 0 0 1px rgba(255,255,255,.3); }
/* Счётчик не меняет ширину плашки во время ранней прокрутки. */
.hero-overlays .stake { min-width: 270px; }
.win { position: relative; z-index: 1; }
.stage-inner[data-level="intro"] .win { box-shadow: 0 3px 0 #d8e5ff, 0 7px 0 #6a91f9, 0 50px 110px #001a7166; }
.ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1.5px solid rgba(20,35,65,.25); background: rgba(255,255,255,.35); }
.dev { padding-bottom: 0; }
/* Не мелькать обычным текстом до разбиения заголовка для вступления. */
html[data-demo-boot] #h1:not([data-words-ready]) { visibility: hidden; }
/* Первый видимый кадр уже рассчитан по шрифту и размерам окна. */
html[data-demo-boot="pending"] .dev { visibility: hidden; opacity: 0; pointer-events: none; }
/* При общем плане узкого кадра фон закрывает предыдущий отчёт. */
#Lp { background: var(--paper); }
.txt { text-align: center; }
.txt > .sub { margin-inline: auto; }
.txt > .messenger-channels { justify-content: center; margin-inline: auto; }
.demo-caption { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.demo-caption .fx-tag { display: flex; width: max-content; max-width: min(380px,calc(100% - 40px)); border: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 15px; font-weight: 500; line-height: 1.35; white-space: normal; perspective: 900px; }
/* Те же материалы используются на экране и в миниатюрах выбора. */
[data-tips="glass"] { --tip-bg: linear-gradient(135deg,#fffffff5,#e4effff2); --tip-ink: #142747; --tip-edge: #b0c4f1; --tip-radius: 18px; --tip-shadow: 0 3px 0 #9db4df, 0 12px 28px #142c6252, inset 0 0 0 1px #ffffffb3, inset 0 2px 1px #fff; --tip-tail: none; --tip-animation: caption-glass; }
[data-tips="callout"] { --tip-bg: #fff; --tip-ink: #142442; --tip-edge: #dce5f5; --tip-radius: 17px 17px 7px 17px; --tip-shadow: 0 2px 3px #12294b0d, 0 12px 28px #12294b36; --tip-tail: ""; --tip-animation: caption-callout; }
[data-tips="title"] { --tip-bg: #122747; --tip-ink: #fff; --tip-edge: #ffffff73; --tip-radius: 15px; --tip-shadow: 0 3px 0 #091329, 0 16px 32px #07172f59, inset 0 1px 1px #ffffff26; --tip-tail: none; --tip-animation: caption-title; }
.caption-body { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; max-width: 100%; padding: 12px 16px; border: 1px solid var(--tip-edge); border-radius: var(--tip-radius); background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--tip-shadow); backdrop-filter: blur(22px) saturate(1.12); transform-style: preserve-3d; transform-origin: 50% 50%; }
.caption-body.has-detail { flex-direction: column; align-items: center; gap: 5px; }
.caption-title { font-weight: 650; line-height: 1.25; text-wrap: balance; }
.caption-detail { font-size: 13px; font-weight: 400; line-height: 1.4; opacity: .84; }
.caption-body::before { content: var(--tip-tail); position: absolute; right: 22px; bottom: -6px; width: 12px; height: 12px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
[data-placement="below"] .caption-body::before { top: -6px; bottom: auto; }
.fx-tag[data-reveal="true"] .caption-body { animation: var(--tip-animation) .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes caption-glass { from { opacity: 0; transform: translate3d(-12px,24px,-150px) rotateX(24deg) rotateY(-16deg) scale(.94); } to { opacity: 1; transform: rotateX(3deg) rotateY(-4deg); } }
@keyframes caption-callout { from { opacity: 0; transform: translate3d(42px,12px,-120px) rotateY(-24deg) rotateZ(3deg); } to { opacity: 1; transform: rotateX(2deg) rotateY(-4deg) rotateZ(-.4deg); } }
@keyframes caption-title { from { opacity: 0; transform: translate3d(-30px,14px,-100px) rotateY(18deg); clip-path: inset(0 100% 0 0 round 13px); } to { opacity: 1; transform: rotateX(2deg) rotateY(3deg); clip-path: inset(0 round 13px); } }
.design-preview { position: fixed; right: 16px; bottom: 12px; z-index: 100; display: flex; gap: 3px; padding: 5px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; background: #0b1850; color: #fff; box-shadow: 0 8px 24px #0003; }
.design-preview a { padding: 9px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; }
.design-preview a[aria-current] { color: #102044; background: #bef425; }
.design-preview a:hover { outline: 1px solid #ffffff60; }
.design-preview summary { padding: 6px 11px; list-style: none; border-radius: 20px; font-size: 12px; cursor: pointer; }
.design-preview summary::-webkit-details-marker { display: none; }
.design-preview summary::after { content: "⌄"; margin-left: 5px; opacity: .6; }
.design-preview details[open] summary { background: #ffffff18; }
.preview-options { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column; gap: 3px; padding: 7px; border: 1px solid #ffffff26; border-radius: 16px; background: #0b1850f5; box-shadow: 0 12px 36px #00134040; backdrop-filter: blur(16px); }
.preview-help { margin: 3px 12px 5px; color: #c6d4f8; font-size: 12px; line-height: 1.4; }
.tip-options { gap: 6px; }
.tip-options > button { border: 1px solid #ffffff1a; }
.design-preview .tip-options > button[aria-pressed="true"] { color: #fff; background: #ffffff0c; border-color: #ffffff73; }
.tip-option-label { display: flex; align-items: center; justify-content: space-between; }
.tip-options > button[aria-pressed="true"] .tip-option-label::after { content: "✓"; color: #bef425; }
.tip-swatch { display: flex; align-items: center; justify-content: center; height: 72px; margin-top: 8px; padding: 10px 20px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg,#d3e1ff40,#0137fb20); }
.tip-swatch .caption-body { padding: 8px 13px; font-size: 13px; line-height: 1.3; }
.design-preview details:not([open]) .preview-options { display: none; }
.design-preview button { border: 0; padding: 9px 12px; border-radius: 9px; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.design-preview button[aria-pressed="true"] { color: #102044; background: #bef425; }

/* Шесть дополнительных экранов: два ряда по три невысоких карточки. */
.more { padding-block: 52px; background: #f2f5fc; }
.more h2, .more .lede { text-align: center; margin-inline: auto; }
.more .lede { margin-bottom: 28px; }
.more .cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.more .card { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 144px; align-items: center; gap: 14px; padding: 0; min-height: 156px; border: 1px solid #e1e7f3; border-radius: 20px; background: linear-gradient(145deg,#fff,#f8faff); cursor: pointer; box-shadow: 0 8px 30px #17336506; transition: transform .35s, box-shadow .35s; }
.more .card .cb { padding: 18px 0 18px 20px; gap: 7px; min-height: 0; align-content: center; text-align: left; }
.more .card b { font-size: 18px; font-weight: 600; letter-spacing: -.025em; color: #142442; }
.more .card .cb span { font-size: 14px; line-height: 1.45; max-width: 44ch; }
.more .card::after { content: none; }
.more .card .th { position: relative; width: 128px; height: auto; margin: 0 16px 0 0; aspect-ratio: 1572 / 892; border: 1px solid #dce4f2; border-radius: 10px; box-shadow: 0 6px 16px #193c7c12; }
.more .card .card-expand { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 18px; height: 18px; color: #7182a1; pointer-events: none; transition: transform .2s, color .2s; }
.more .card .card-expand svg { width: 12px; height: 12px; }
.more .card:hover .card-expand, .more .card:focus-visible .card-expand { color: var(--brand-blue); transform: scale(1.08); }
.more .card .th img { height: auto; }
.more .card .th img, .screen-preview[data-gallery="true"] .report-crop > img { width: 100%; margin-left: 0; }
.screen-preview { overscroll-behavior: contain; }
.screen-preview .preview-head { z-index: 1; }
.screen-preview .preview-note { position: sticky; bottom: 0; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; text-align: center; }
.site-rest .head { text-align: center; }
.site-rest .head .lede { margin-inline: auto; }
.more .card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px #17336514; }
.more .card:focus-visible { outline: 3px solid #0137fb; outline-offset: 4px; }
@media (max-width: 999px) {
  .more .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .more { padding-block: 40px; }
  .more .cards { grid-template-columns: 1fr; gap: 12px; }
}

/* Три способа встроить каналы в композицию, без выбора приложения. */
.txt h2 { position: relative; }
.txt h2 .messenger-channels { position: absolute; left: 50%; top: -32px; width: max-content; display: flex; justify-content: center; margin: 0; transform: translateX(-50%); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.txt h2 .messenger-app { display: inline-flex; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
[data-channels="glass"] [data-channel-pair] { width: fit-content; gap: 14px; padding: 9px 14px; border: 1px solid #ffffff38; border-radius: 999px; background: #ffffff15; box-shadow: inset 0 1px 0 #ffffff18, 0 8px 24px #002ad51a; backdrop-filter: blur(12px); }
[data-channels="glass"] [data-channel-pair] img { width: 24px; height: 24px; border-radius: 6px; }
[data-channels="glass"] [data-channel-pair] .messenger-app:first-child { padding-right: 14px; border-right: 1px solid #ffffff30; }
[data-channels="card"] [data-channel-pair] { display: none; }
.notification-origin small { font-size: 10px; }
.conversation .morning-card { width: 100%; max-width: none; padding: 24px 28px; font-size: 18px; line-height: 1.45; }
.morning-card h3 { font-size: 30px; }
.morning-card > .briefing-block { margin-top: 20px; }
.morning-card .attention-label { margin: 0 0 10px; font-size: 14px; }
.conversation .morning-note { margin-left: 18px; padding: 18px 22px; font-size: 16px; line-height: 1.45; }
.morning-note .attention-label { margin: 0 0 10px; font-size: 14px; }
.morning-card .message-action, .morning-note .message-action { border: 0; padding: 0; margin-top: 10px; font-weight: 500; }
.morning-note .briefing-amount { font-size: 22px; }
.message-card .delta-negative, .static-chat .delta-negative { color: #b42332; }
.step-demo .stage-inner[data-scroll-mode="steps"] { touch-action: pan-x pinch-zoom; }
.stage-inner[data-rewinding="true"] .cur,
.stage-inner[data-rewinding="true"] .ring { visibility: hidden !important; }
.fx-native-lift[data-material="symbol"] { overflow: visible; box-shadow: none; }
.fx-native-lift[data-material="symbol"]::after { display: none; }
.close-card .message-footnote { font-size: 13px; }
@media (min-width: 1000px) {
  .demo-caption .fx-tag { max-width: calc(100% - 40px); }
  .demo-caption .caption-body > span { white-space: nowrap; text-wrap: nowrap; }
  /* Кино: слева только заголовок и описание, подпись встроена в окно. */
  [data-variant="cinema"] .txts { min-height: 280px; }
  /* Панорама: заголовок над экраном, широкая симметричная композиция. */
  [data-variant="panorama"] .stage-inner { --dw: min(84vw, calc((100vh - 380px) * 1.454)); }
  [data-variant="panorama"] .dev { top: auto; bottom: 72px; right: calc((100vw - var(--dw)) / 2); }
  [data-variant="panorama"] .col { top: 42px; left: 5vw; width: 90vw; max-width: none; transform: none; }
  [data-variant="panorama"] .txts { min-height: 156px; }
  [data-variant="panorama"] .txt { display: block; }
  [data-variant="panorama"] .txt h2 { font-size: clamp(48px, 5vw, 80px); margin-bottom: 0; }
  [data-variant="panorama"] .txt .sub { max-width: 54ch; padding-top: 0; margin-top: 14px; }
  [data-variant="panorama"] .messenger-channels { grid-column: 2; }
  [data-variant="panorama"] .conversation,
  [data-variant="editorial"] .conversation { --cw: min(88vw, 1100px); top: calc(50% + 55px); right: calc((100vw - var(--cw)) / 2); }
  [data-variant="panorama"] .conversation .message-thread,
  [data-variant="editorial"] .conversation .message-thread { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; }
  [data-variant="panorama"] .conversation .message-card,
  [data-variant="editorial"] .conversation .message-card { width: 100%; max-width: none; margin: 0; align-self: start; }
  [data-variant="panorama"] .conversation .outgoing,
  [data-variant="editorial"] .conversation .outgoing { grid-column: 2; grid-row: 1; width: fit-content; max-width: 95%; margin-top: 32px; justify-self: end; }
  [data-variant="panorama"] .conversation .signal-card,
  [data-variant="editorial"] .conversation .signal-card { grid-column: 1; grid-row: 1 / span 2; }
  [data-variant="panorama"] .conversation .answer-card,
  [data-variant="editorial"] .conversation .answer-card { grid-column: 2; grid-row: 2; }
  [data-variant="panorama"] .conversation .action-card,
  [data-variant="editorial"] .conversation .action-card { margin-top: 14px; }
  [data-variant="panorama"] .conversation .morning-note, [data-variant="panorama"] .conversation .close-note,
  [data-variant="editorial"] .conversation .morning-note, [data-variant="editorial"] .conversation .close-note { margin-top: 64px; }
  /* Крупный план: широкий кадр с приближением отдельных блоков отчёта. */
  [data-variant="editorial"] .stage-inner { --dw: min(94vw, calc((100vh - 360px) * 1454 / 570)); }
  [data-variant="editorial"] .screen { aspect-ratio: var(--report-width) / 570; }
  [data-variant="editorial"] .dev { top: auto; bottom: 72px; right: calc((100vw - var(--dw)) / 2); }
  [data-variant="editorial"] .col { left: 3vw; top: 42px; width: 94vw; max-width: none; transform: none; }
  [data-variant="editorial"] .txts { min-height: 130px; }
  [data-variant="editorial"] .txt { display: block; }
  [data-variant="editorial"] .txt h2 { font-size: clamp(42px, 4vw, 64px); font-weight: 600; margin-bottom: 0; }
  [data-variant="editorial"] .txt .sub { max-width: 54ch; font-size: 16px; padding-top: 0; margin-top: 14px; }
  [data-variant="editorial"] .messenger-channels { grid-column: 2; }
}
@media (min-width: 1000px) and (max-height: 850px) {
  .hero-overlays .stake { top: 10px; }
  [data-variant="cinema"] .stage-inner { --dw: min(64vw, calc((100vh - 230px) * 1.454)); }
  [data-variant="cinema"] .dev { top: calc(50% + 10px); }
  [data-variant="cinema"] .conversation { top: calc(50% - 26px); }
}
@media (max-width: 999px) {
  /* Одинаковое закрепление до первого свайпа, в показе и после него:
     на границе не меняются position и transform всей сцены. */
  .stage-pin[data-native-pin] > .stage-inner { position: sticky; top: var(--demo-top); }
  .stage-inner { height: calc(100svh - 70px); }
  .dev { will-change: transform; }
  .hero-overlays .stake { display: grid; min-width: 0; max-width: calc(100% - 24px); top: 12px; right: 12px; backdrop-filter: none; }
  .dev, .hero-overlays { transform-style: flat; }
  /* Отдельные слои сохраняют шапку и заголовок при смене scroll-якоря pin
     в мобильном WebKit: без них неизменившийся текст может не перерисоваться. */
  .site-header .nav, .col, .design-preview { will-change: transform; }
  .design-preview { right: 8px; bottom: 8px; }
  .design-preview summary { padding: 6px 8px; font-size: 11px; }
  .design-preview a { padding: 6px 10px; }
  .design-preview button { padding: 6px 10px; }
  [data-channels="glass"] [data-channel-pair] { margin-top: 8px; padding: 5px 10px; }
  [data-channels="glass"] [data-channel-pair] img { width: 18px; height: 18px; border-radius: 5px; }
  [data-channels="glass"] [data-channel-pair] .messenger-app { font-size: 13px; }
  [data-variant="panorama"] .txt { text-align: center; }
  [data-variant="panorama"] .txt .sub { margin-inline: auto; }
  [data-variant="editorial"] .txt h2 { font-weight: 500; font-size: 36px; }
  .col { top: 42px; }
  .demo-caption .fx-tag { max-width: calc(100% - 32px); font-size: 14px; }
  .demo-caption .caption-body { backdrop-filter: none; transform-style: flat; }
  .demo-caption .fx-tag[data-reveal="true"] .caption-body { animation: caption-mobile .4s ease-out both; }
  .caption-body { gap: 8px; padding: 10px 12px; border-radius: 15px; }
  .conversation .morning-card { padding: 16px 18px; font-size: 15px; line-height: 1.42; }
  .morning-card h3 { font-size: 25px; }
  .morning-card > .briefing-block { margin-top: 16px; }
  .morning-card .attention-label { font-size: 13px; margin-bottom: 8px; }
  .conversation .morning-note { margin-left: 5px; padding: 12px 15px; font-size: 14px; line-height: 1.42; }
  .morning-note .attention-label { font-size: 13px; margin-bottom: 8px; }
  .morning-card .message-action { margin-top: 8px; }
  .morning-note .briefing-amount { font-size: 20px; }
  [data-variant="panorama"] .messenger-channels { justify-content: center; }
  [data-variant="panorama"][data-channels="glass"] [data-channel-pair] { margin-inline: auto; }
}
@media (max-width: 560px) {
  .stage-inner { height: calc(100svh - 60px); }
}
@keyframes caption-mobile { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Без движения все три варианта сохраняют обычную читаемую страницу. */
.conversation .demo-label { margin: 16px 8px 0; font-size: 11px; line-height: 1.4; text-align: center; }
.static-story .static-example-note { margin: 14px 8px 0; font-size: 11px; }
.static .col { display: none; }
.static .dev { padding-bottom: 0; }

/* Нативные документы: текст, таблицы и SVG-графики сохраняют качество при лупе. */
.lay bizar-render { position: absolute; left: 0; top: 0; width: 1710px; max-width: none; }
.cam > bizar-render { clip-path: inset(0 0 0 var(--report-left)); }
.dishes-panel bizar-render { width: 672px; }
.product-panel bizar-render { width: 1180px; }
.product-panel { background: var(--paper); }
.native-backdrop { background: rgb(18 33 70 / .18); backdrop-filter: none; }
.more .card .th bizar-render { width: 100%; }
.screen-preview .report-crop > bizar-render { width: 100%; margin: 0; }
.static-story bizar-render { width: 100%; }

/* Переписка остаётся одной колонкой: уведомление, вопрос, затем ответ. */
.conversation .message-thread { display: flex !important; flex-direction: column; gap: 14px !important; }
.conversation .message-card { grid-column: auto !important; grid-row: auto !important; margin: 0 !important; }
.conversation .outgoing { align-self: flex-end !important; width: fit-content !important; max-width: 88% !important; }
.conversation .answer-card { align-self: flex-start; }
@media (min-width: 1000px) {
  [data-variant="cinema"] .txts { min-height: 180px; }
  [data-variant="panorama"] .conversation, [data-variant="editorial"] .conversation { --cw: min(72vw, 690px); }
  [data-variant="panorama"] .col, [data-variant="editorial"] .col { top: 68px; }
  [data-variant="panorama"] .stage-inner { --dw: min(86vw, calc((100vh - 330px) * 1.454)); }
  [data-variant="panorama"] .dev, [data-variant="editorial"] .dev { bottom: 42px; }
  .conversation .message-card { font-size: 16px; }
  .conversation .signal-card h3, .conversation .answer-card strong { font-size: 22px; }
}
@media (max-width: 999px) {
  .message-thread[data-thread="signal"] .outgoing, .message-thread[data-thread="signal"] .answer-card { position: static; }
  .conversation .message-thread { gap: 10px !important; }
  .conversation .message-card { width: 100%; max-width: 100%; }
}
@media (min-width: 1000px) and (max-height: 850px) {
  [data-variant="panorama"] .col, [data-variant="editorial"] .col { top: 48px; }
  [data-variant="panorama"] .txt h2, [data-variant="editorial"] .txt h2 { font-size: 52px; }
  .conversation .message-card { padding: 12px 18px; font-size: 15px; }
  .conversation .message-thread { gap: 10px !important; }
  .conversation .signal-card h3, .conversation .answer-card strong { font-size: 20px; }
}
.static .demo-caption { display: none; }
.static[data-variant="editorial"] .screen { aspect-ratio: var(--report-width) / 1000; }
