/* Дополнения к сохранённому варианту: доступность и компактные экраны. */
html { scroll-padding-top: 70px; }
img { max-width: 100%; }
.btn { line-height: 1.4; }
.site-rest { background: #f6f8fc; color: #16203a; }
.site-rest .cookie { z-index: 70; }
.site-rest .contact { z-index: 80; }
.site-rest .contact[hidden] { display: none; }
.static-story { display: none; }
.static .static-story { display: block; padding: 64px 24px; background: var(--paper); }
.static-story article { max-width: 1240px; margin: 0 auto 56px; }
.static-story h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 16px; }
.static-story p { color: var(--muted); margin-bottom: 20px; max-width: 65ch; }
.static-story img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.static-story .static-chat { max-width: 420px; white-space: pre-line; background: #dfe8f3; padding: 16px; border-radius: 20px; }
.static-chat .bub { margin: 12px 0; max-width: 100%; }
.static-chat .day { display: block; text-align: center; }

/* Три уровня: одно крупное название, кадры анимации остаются прежними. */
/* Шапка и хиро используют исходные стили сайта из rest.css. */
.site-header { display: contents; }
.site-header .wrap, .site-intro .wrap { max-width: none; padding-inline: 0; }
.site-header .nav-links { margin-left: 0; }
.site-header .logo img { width: 73px; }
.site-header .nav:not(.stuck) { backdrop-filter: none; }
.site-header .nav .nav-in { height: 70px; }
.site-intro { position: absolute; inset: 0; }
.site-intro .hero { height: 100%; padding-top: 56px; }
.dev { transform-style: preserve-3d; }
.hero-overlays { position: absolute; inset: 0; z-index: 4; background: transparent; pointer-events: none; transform-style: preserve-3d; }
.hero-overlays .stake { top: 18px; opacity: 1; animation: none; transform-origin: right top; }
.hero-overlays .toasts { transform-origin: left top; }
.hero-overlays .toast { opacity: 0; visibility: hidden; transform: translateX(-110px); animation: none; }
.hero-overlays .toasts { top: 48px; bottom: auto; }
.static .site-intro { position: relative; inset: auto; }
.static .site-intro .hero { height: auto; }
.static .stage-inner { padding-top: 0; }
.static .hero-overlays { display: none; }
.stage-inner { height: calc(100vh - 70px); }
.stage-inner { --level-accent: var(--lime); }
.txt h2 { font-size: clamp(40px, 4.1vw, 70px); letter-spacing: -.045em; line-height: 1.05; margin-bottom: 20px; }
.txt h2 span { display: block; font-size: .46em; font-weight: 500; letter-spacing: -.02em; margin-top: 8px; }
.static-story article { padding-top: 32px; border-top: 3px solid #739de5; }

@media (max-width: 999px) {
  .site-intro .hero { padding-top: 36px; }
  .hero-overlays .toasts { top: 8px; }
  .hero-overlays .stake { display: none; }
  .col { top: 20px; }
  .txts { min-height: 170px; }
  .txt h2 { font-size: clamp(28px, 6vw, 36px); margin-bottom: 12px; }
  .txt h2 span { font-size: 20px; margin-top: 4px; }
  .txt .n { margin-bottom: 10px; }
  .txt > p.sub { font-size: 15px; margin-bottom: 12px; }
  .dev { bottom: 44px; }
  .stage-inner { --report-width: 760; min-height: 0; }
  .screen { max-height: calc(100svh - 335px); }
  .dev { bottom: 58px; }
  .static .dev { width: calc(100vw - 32px); bottom: auto; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 60px; }
  .site-header .nav .nav-in { height: 60px; }
  .stage-inner { height: calc(100vh - 60px); }
}
@media (max-height: 850px) and (min-width: 1000px) {
  .hero-overlays .toasts { top: 0; }
  .site-intro .hero { padding-top: 24px; }
  .site-intro .hero h1 { font-size: clamp(40px, 4vw, 48px); margin-bottom: 20px; }
  .site-intro .hero p.sub { font-size: 17px; margin-bottom: 18px; }
  .site-intro .kicker { font-size: 12px; margin-bottom: 12px; }
  .site-intro .hero-cta { margin-bottom: 12px; }
  .stage-inner { min-height: 0; }
  .txts { min-height: 340px; }
  .txt h2 { font-size: clamp(38px, 3.3vw, 48px); margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.demo-label { display: block; margin-top: 20px; font-size: 12px; color: rgba(255,255,255,.6); }
.dishes-panel { position: absolute; left: 519px; top: 111px; width: 672px; height: 778px; overflow: hidden; border-radius: 20.16px; box-shadow: 0 20px 45px rgb(0 0 0 / .2); }
.dishes-panel img { width: 672px; }
.product-panel { position: absolute; left: 393px; top: 30px; width: 1180px; height: 940px; overflow: hidden; border-radius: 20.16px; }
.product-panel img { width: 1180px; }
.bub.outgoing { align-self: flex-end; background: #dcf8c6; border-radius: 16px 16px 4px 16px; }
.static-chat .bub.outgoing { margin-left: 30px; }
.static-story .story-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story-screens figure { margin: 0; }
.story-screens figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .static-story .story-screens { grid-template-columns: 1fr; } }
.more .card[type="button"] { padding: 0; color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.more .card[type="button"]:hover { border-color: #335ce5; transform: translateY(-3px); }
.more .card:focus-visible { outline: 3px solid #335ce5; outline-offset: 4px; }
.screen-preview { width: min(1500px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); }
.screen-preview::backdrop { background: rgba(5,15,50,.8); backdrop-filter: blur(5px); }
.preview-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-head h2 { font-size: 20px; }
.preview-head button { width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.report-crop { overflow: hidden; }
.report-crop > img, .card .th img { display: block; width: calc(100% * 1710 / var(--report-width)); max-width: none; margin-left: calc(-100% * 256 / var(--report-width)); }
@media (max-width: 999px) { .demo-label { margin-top: 8px; } .txt .sub { max-width: 60ch; } }

/* Нативное раскрытие остаётся поверх того же отчёта Ритма. */
.native-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); backdrop-filter: blur(2px); }
.product-backdrop { background: rgb(11 18 36 / .55); backdrop-filter: blur(3px); }

/* Логотипы из обновлённого хиро основного сайта, перед общим окном сводки. */
.site-intro .clients { position: relative; z-index: 2; margin: 32px auto 0; }
.clients-title { margin: 0 0 14px; text-align: center; color: rgb(255 255 255 / .55); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.clients-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 38px; list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; }
.clients-logos li { display: flex; align-items: center; justify-content: center; width: 128px; height: 70px; }
.clients-logos .clients-logo-seal { width: 72px; }
.clients-logos img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .48; }
@media (max-height: 850px) and (min-width: 1000px) {
  .site-intro .clients { margin-top: 22px; }
  .clients-title { margin-bottom: 10px; }
  .clients-logos li { height: 50px; }
}
@media (max-width: 640px) {
  .site-intro .clients { margin-top: 24px; }
  .clients-title { margin-bottom: 12px; }
  .scroll-hint { display: none; }
  .clients-logos { flex-wrap: nowrap; gap: 10px; }
  .clients-logos li { flex: 1 1 0; min-width: 0; width: auto; height: 40px; }
  .clients-logos .clients-logo-seal { flex: .56 1 0; width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Однократное появление из обновления основного хиро. */
  .clients-title, .clients-logos li { opacity: 0; transform: translateY(18px); animation: rise .45s cubic-bezier(.2,.7,.2,1) forwards; }
  .clients-title { animation-delay: .2s; }
  .clients-logos li { animation-delay: .25s; }
  .clients-logos li:nth-child(2) { animation-delay: .28s; }
  .clients-logos li:nth-child(3) { animation-delay: .31s; }
  .clients-logos li:nth-child(4) { animation-delay: .34s; }
  .clients-logos li:nth-child(5) { animation-delay: .37s; }
  .clients-logos li:nth-child(6) { animation-delay: .4s; }
}

@media (max-width: 640px) {
  .site-intro .hero { padding-top: 24px; }
  .site-intro .hero h1 { margin-bottom: 14px; }
  .site-intro .hero p.sub { margin-bottom: 16px; }
  .site-intro .hero-cta { margin-bottom: 12px; }
  .site-intro .clients { margin-top: 16px; }
  .clients-logos { row-gap: 10px; }
}

/* Сообщения свободно стоят в пространстве; вокруг переписки нет макета устройства. */
.conversation { --cw: min(46vw, 620px); position: absolute; z-index: 7; top: 50%; right: calc(max(24px, 2.6vw) + var(--dw) * .5 - var(--cw) * .5); width: var(--cw); opacity: 0; }
.messenger-channels { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.messenger-app { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; }
.messenger-app img { width: 20px; height: 20px; border-radius: 5px; }
.conversation .chat { position: relative; flex: none; display: block; padding: 0; overflow: visible; }
.message-thread { position: absolute; top: 0; left: 0; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.conversation[data-active-thread="signal"] .message-thread:not([data-thread="signal"]),
.conversation[data-active-thread="close"] .message-thread:not([data-thread="close"]),
.conversation[data-active-thread="morning"] .message-thread:not([data-thread="morning"]) { visibility: hidden; pointer-events: none; }
.conversation .message-card { flex: none; width: calc(100% - 32px); max-width: calc(100% - 32px); padding: 16px 20px; border: 1px solid #ffffffb3; border-radius: 20px; background: #fff; color: #1a2741; font-size: 14.5px; line-height: 1.4; white-space: normal; box-shadow: 0 3px 0 #d7e1ff, 0 20px 50px #00144935; }
.message-card h3 { font-size: 19px; line-height: 1.2; margin: 0; }
.message-card p { margin: 8px 0 0; }
.message-card p:first-child { margin-top: 0; }
.message-card strong { font-weight: 600; }
.message-sender { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: #38506c; }
.message-sender img { width: 25px; height: 25px; padding: 4px; border-radius: 50%; background: #0137fb; }
.message-sender time { margin-left: auto; font-size: 11px; color: #8390a1; }
.notification-origin > img { padding: 0; border-radius: 7px; background: none; width: 30px; height: 30px; }
.notification-origin > span { display: grid; line-height: 1.35; }
.notification-origin small { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #8290a2; }
.briefing-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.briefing-title > span { flex: none; font-size: 10px; font-weight: 500; letter-spacing: 0; padding: 4px 7px; border-radius: 7px; color: #365a8b; background: #edf3fc; }
.conversation .message-card .t { font-size: 10.5px; margin-top: 5px; color: #8290a2; }
.conversation .outgoing { align-self: flex-end; width: auto; max-width: 82%; padding: 12px 18px; border-color: #d4e1ff; border-radius: 20px 20px 5px 20px; background: #e7efff; color: #163c76; font-size: 16px; }
.conversation .answer-card { margin-left: 18px; }
.conversation .action-card { margin-left: 8px; }
.conversation .morning-note, .conversation .close-note { margin-left: 18px; }
.message-card .metric-label { margin-top: 14px; font-size: 12px; color: #7a8799; }
.message-revenue { margin-top: 3px; font-size: 32px; font-weight: 650; line-height: 1.2; letter-spacing: -.04em; color: #192b49; }
.message-card .delta-positive { color: #197354; font-size: 13px; }
.message-price { margin-top: 9px; font-size: 24px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; }
.message-price > span { color: #8a99ae; padding-inline: 5px; font-weight: 400; }
.supplier-price, .point-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 9px; margin-top: 9px; border-top: 1px solid #eaf0f5; }
.supplier-price small { display: block; margin-top: 2px; font-size: 11px; color: #8390a1; }
.supplier-price b, .point-result b { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.message-card .message-footnote { font-size: 11px; color: #7c899c; }
.message-card .attention-label { margin-top: 15px; color: #365a8b; font-size: 12px; font-weight: 650; }
.message-card .attention-label:first-child { margin-top: 0; }
.message-card .message-action { color: #365a8b; padding-top: 10px; margin-top: 12px; border-top: 1px solid #eaf0f5; }
.fx-native-lift { z-index: 16; overflow: hidden; transform-origin: center; box-shadow: 0 16px 38px #122b4d2e, 0 3px 8px #122b4d16; }
.fx-native-lift::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #ffffff70; box-shadow: inset 0 1px 1px #ffffffa0; pointer-events: none; }
.cur { width: 30px; height: 30px; filter: drop-shadow(0 2px 3px #152c4d30); }
@media (max-width: 999px) {
  .conversation { --cw: calc(100vw - 40px); top: 208px; bottom: auto; right: 20px; }
  .message-thread { gap: 8px; }
  .conversation .message-card { width: calc(100% - 8px); max-width: calc(100% - 8px); padding: 10px 15px; border-radius: 16px; font-size: 12.5px; line-height: 1.38; }
  .message-card h3 { font-size: 16px; }
  .message-card p { margin-top: 6px; }
  .message-sender { font-size: 11px; margin-bottom: 8px; }
  .message-sender img { width: 22px; height: 22px; }
  .conversation .outgoing { width: auto; max-width: 88%; font-size: 14px; }
  .conversation .answer-card { margin-left: 5px; }
  .message-thread[data-thread="signal"] .outgoing { position: absolute; top: 0; right: 0; }
  .message-thread[data-thread="signal"] .answer-card { position: absolute; top: 86px; left: 0; }
  .conversation .action-card { margin-left: 0; }
  .conversation .morning-note, .conversation .close-note { margin-left: 5px; }
  .message-revenue { font-size: 29px; }
  .message-price { font-size: 20px; }
  .supplier-price, .point-result { padding-top: 6px; margin-top: 6px; }
}
@media (max-width: 999px) and (max-height: 760px) {
  .conversation { top: 184px; }
  .txt[data-level="messengers"] > .sub { font-size: 14px; line-height: 1.45; }
  [data-variant="editorial"] .txt[data-level="messengers"] h2 { font-size: 28px; }
}
