/* Shared accessible typography, navigation and responsive layout for all product pages. */
:root { --text-muted: #a2b4ce; --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
body, button, input, select, textarea { font-family: var(--font-sans); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { font-size: 1rem; line-height: 1.6; }
*, *::before, *::after { box-sizing: border-box; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }
button { font: inherit; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 120; background: rgba(8,12,20,.96); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1280px; margin: auto; min-height: 80px; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { color: #60a5fa; font: 800 1.5rem/1.1 var(--font-sans); letter-spacing: -.04em; text-decoration: none; flex-shrink: 0; }
.site-brand small { display: block; margin-top: 5px; color: var(--text-muted); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.language-switch { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.language-switch a { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 8px; border: 1px solid transparent; border-radius: 8px; color: #b9c8dd; text-decoration: none; font: 700 .875rem/1.2 var(--font-sans); }
.language-switch a[aria-current] { background: #172d4c; border-color: #3b82f6; color: #fff; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 16px; padding: 12px 16px; background: #fff; color: #080c14; }
.skip-link:focus { top: 8px; }
.page { padding-top: 120px; }
h1, h2, .narrative-title, .products-title, .product-title { font-family: var(--font-sans) !important; font-weight: 800; letter-spacing: -.035em !important; line-height: 1.12 !important; overflow-wrap: anywhere; }
h1, .narrative-title { font-size: clamp(2rem, 4.6vw, 4.5rem) !important; }
h1, h2, .narrative-title, .products-title { text-wrap: balance; }
h2, .products-title { font-size: clamp(1.75rem, 3.5vw, 3.25rem) !important; }
.product-title { font-size: clamp(1.5rem, 2.5vw, 2rem) !important; }
.lead, .narrative-lead, .product-desc { font-size: 1.0625rem; line-height: 1.7; }
.chain-name { font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.3; font-weight: 800; }
.chain-sub, .product-step, .footer-info, .stat-label, .tag, .eyebrow { font-size: .875rem; }
.btn-view { min-height: 44px; height: auto; font-size: .875rem; }
.layout-split, .layout-split-wide { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,4vw,56px); }
.layout-split > *, .layout-split-wide > *, .slide > *, .card, .stats-row > *, .compare-row > *, .r-grid > *, .pipeline > * { min-width: 0; }
.slide { padding: 112px 48px 110px; overflow-y: auto; justify-content: flex-start; overscroll-behavior: contain; }
.slide > * { flex-shrink: 0; margin-block: auto; }
.slides { height: 100dvh; }
.nav { bottom: max(16px, env(safe-area-inset-bottom)); gap: 4px; padding: 6px 10px; }
.nav-btn { width: 44px; height: 44px; color: #c6d5ed; }
.nav-btn:disabled { opacity: .35; cursor: default; }
.dot { border: 0; border-radius: 0; background: transparent; width: 28px; height: 44px; position: relative; padding: 0; }
.dot::after { content: ''; position: absolute; top: 18px; left: 10px; width: 8px; height: 8px; background: #8098bb; border-radius: 50%; }
.dot.active { width: 28px; background: transparent; box-shadow: none; }
.dot.active::after { background: #60a5fa; box-shadow: 0 0 10px #3b82f6; }
.slide-counter { top: auto; bottom: 31px; right: 32px; font-size: .875rem; }
.kbd-hint { display: none; }
.mockup-body { padding: 24px; }
.criterion { flex-wrap: wrap; }
.crit-weight { white-space: nowrap; }
.compare-label, .compare-us, .compare-them { overflow-wrap: anywhere; }
.compare-us, .compare-them, .sec-text, .flow-sub, .pipe-sub, .step-sub, .feature-sub, .channel-sub { font-size: .9375rem; }
.sec-title, .flow-title, .pipe-title, .step-title, .feature-title, .channel-title { font-size: 1rem; }
.pipe-step { min-width: 0; }
.mock-date { color: var(--text-muted); }
/* JS-off fallback keeps every section reachable. */
html:not(.has-js) .slides { height: auto; }
html:not(.has-js), html:not(.has-js) body { height: auto; overflow: auto; }
html:not(.has-js) .slide { position: relative; opacity: 1; pointer-events: auto; }
html:not(.has-js) .nav, html:not(.has-js) .slide-counter { display: none; }
/* ── Material Symbols, the same icon set as aiest.ru ── */
.mi { font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 1.15em; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; vertical-align: -.15em; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.chain-icon .mi, .product-icon .mi, .flow-icon .mi, .step-icon .mi, .sec-icon .mi, .channel-icon .mi, .stat-num .mi, .feature .icon .mi, .list-item i .mi { font-size: 1em; color: #60a5fa; }
.pain-title .mi, .tag .mi, .mock-section-title .mi, .mock-btn .mi { color: #60a5fa; }
.list-item i { font-style: normal; }
.mi.mi-yes { color: #22c55e; }
.mi.mi-no { color: #f87171; }
/* Inter has weights where the previous display face had none. */
.stat-num, .mock-score-val, .step-num, .flow-num, .pipe-num { font-weight: 800; letter-spacing: -.03em; }

/* ── Header call to action ── */
.site-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(59,130,246,.45); border-radius: 10px; background: rgba(59,130,246,.12); color: #cfe1ff; font: 700 .875rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap; }
.header-cta:hover { border-color: #60a5fa; background: rgba(59,130,246,.2); }
.header-cta .mi { font-size: 1.25rem; color: inherit; }

/* ── Contact block that closes every page ── */
.cta-contact { margin-top: 40px; padding: 28px 32px; border: 1px solid rgba(59,130,246,.28); border-radius: 20px; background: linear-gradient(135deg, rgba(59,130,246,.13), rgba(59,130,246,.04)); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.cta-contact-text { flex: 1 1 260px; min-width: 0; }
.cta-contact-title { margin: 0 0 6px; font: 800 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--font-sans); letter-spacing: -.03em; color: #e8f0fe; }
.cta-contact-sub { margin: 0; color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.cta-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(59,130,246,.45); border-radius: 12px; background: rgba(59,130,246,.1); color: #cfe1ff; font: 700 1rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap; }
.cta-btn:hover { border-color: #60a5fa; background: rgba(59,130,246,.2); }
.cta-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.cta-btn-primary:hover { background: #3b82f6; border-color: #3b82f6; }
.cta-btn .mi { font-size: 1.25rem; color: inherit; }
.cta-btn-ghost { background: transparent; border-color: rgba(99,179,255,.28); color: #b9c8dd; }
.cta-btn-ghost:hover { background: rgba(59,130,246,.12); }
.bi { width: 1.125rem; height: 1.125rem; fill: currentColor; flex-shrink: 0; }
.cta-contact-foot { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--text-muted); }
.cta-contact-foot a { color: #9cc4ff; text-decoration: none; }
.cta-contact-foot a:hover { color: #60a5fa; }
/* Inline links inside body copy keep the dark theme instead of the browser default blue. */
.slide a:not([class]), .page a:not([class]) { color: #9cc4ff; text-decoration: underline; text-underline-offset: 3px; }
.slide a:not([class]):hover, .page a:not([class]):hover { color: #60a5fa; }
/* Where a number comes from: market estimate, research example or indicative effect. */
.note-src { margin: 12px 0 0; font-size: .8125rem; line-height: 1.45; color: #8ea3c2; }
/* The key product leads the home page as a full-width card. */
.product-featured { grid-column: 1 / -1; border-color: rgba(59,130,246,.45); background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(13,20,36,.92) 58%); }
.product-featured .product-title { font-size: clamp(1.75rem, 3vw, 2.5rem) !important; }
.product-featured .product-desc { max-width: 760px; }
/* A slide that still does not fit shows a real scrollbar rather than hiding its last lines. */
.slide { scrollbar-width: thin; scrollbar-color: rgba(96,165,250,.55) transparent; }
.slide::-webkit-scrollbar { width: 8px; }
.slide::-webkit-scrollbar-thumb { background: rgba(96,165,250,.45); border-radius: 4px; }

@media (max-width: 1100px) { .slide-counter { right: 16px; } .slide { padding-inline: 24px; } }
@media (max-width: 980px), (pointer: coarse) {
  html, body { width: 100%; height: auto; min-height: 100%; overflow-x: clip; overflow-y: auto; }
  .site-header-inner { min-height: 76px; padding: 10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); }
  .site-brand small { max-width: 200px; }
  .slides { height: auto; position: static; padding-top: 76px; }
  .slide, .slide.active { position: relative; inset: auto; opacity: 1; pointer-events: auto; transform: none; transition: none; padding: 40px 24px; overflow: visible; min-height: 0; height: auto; scroll-margin-top: 76px; border-bottom: 1px solid var(--border); }
  .slide > * { max-width: 760px; margin: auto; }
  .slide .anim, .slide.active .anim { opacity: 1; transform: none; animation: none; }
  .layout-split, .layout-split-wide, .steps, .sec-grid, .feature-grid, .channel-grid, .r-grid { grid-template-columns: minmax(0,1fr) !important; gap: 24px !important; }
  .nav, .slide-counter { display: none; }
  .pipeline { flex-direction: column; align-items: stretch; gap: 22px; }
  .pipe-step + .pipe-step { margin-left: 0; }
  .pipe-step:not(:last-child)::after { content: '↓'; left: 50%; right: auto; top: auto; bottom: -24px; transform: translateX(-50%); }
  .stats-row { flex-wrap: wrap; gap: 12px; }
  .stat-box { flex: 1 1 180px; border-radius: 14px !important; }
  .compare-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .compare-heading { display: none !important; }
  .compare-us::before, .compare-them::before { content: attr(data-label) ': '; display: block; font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
  .cta-box, .mockup-body { padding: 24px !important; }
  .contact { flex-wrap: wrap; }
  .page { max-width: 800px; padding: 112px 24px 40px; gap: 40px; }
  .chain { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 16px; padding: 24px; }
  .chain-step { min-width: 0; }
  .chain-arrow { display: none; }
  .products { grid-template-columns: minmax(0,1fr); }
  .product { padding: 28px; }
  .header-cta { padding: 0 12px; }
  .cta-contact { padding: 24px; gap: 16px; }
}
@media (max-width: 480px) {
  .site-header-inner { gap: 8px; }
  .site-brand { font-size: 1.25rem; }
  .site-brand small { max-width: 125px; font-size: .75rem; line-height: 1.3; }
  .language-switch { gap: 0; }
  .language-switch a { padding: 6px; }
  .page { padding-inline: 16px; }
  .slide { padding: 32px 16px; }
  .card, .cta-box, .mockup-body { padding: 20px !important; }
  .mockup-topbar { padding: 12px; flex-wrap: wrap; }
  .mock-scores { grid-template-columns: minmax(0,1fr); }
  .criterion { padding: 12px; gap: 8px; }
  .flow-step { padding: 14px 12px; gap: 10px; }
  .flow-step > :nth-child(2) { min-width: 0; flex: 1; }
  .stat-box { flex-basis: 100%; }
  .product { padding: 24px; }
  .product-footer { flex-wrap: wrap; gap: 12px; }
  .header-cta-label { display: none; }
  .header-cta { width: 44px; padding: 0; justify-content: center; }
  .cta-contact { padding: 20px 16px; }
  .cta-contact-actions { width: 100%; }
  .cta-btn { flex: 1 1 100%; justify-content: center; }
  .cta-btn-ghost { flex: 1 1 0; }
  .slide [style*='display:flex'], .slide [style*='display: flex'] { flex-wrap: wrap; }
  .slide [style*='padding:20px 32px'] { padding: 20px !important; }
}
/* Laptops at 1366x768 and other short screens: fit a slide instead of hiding its end. */
@media (min-width: 981px) and (pointer: fine) and (max-height: 900px) {
  .site-header-inner { min-height: 64px; padding: 8px 32px; }
  .page { padding-top: 96px; }
  .slide { padding: 76px 40px 68px; }
  h1, .narrative-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important; }
  h2, .products-title { font-size: clamp(1.5rem, 2.6vw, 2rem) !important; }
  .lead, .narrative-lead, .product-desc { font-size: 1rem; line-height: 1.5; }
  .eyebrow { margin-bottom: 8px; }
  .layout-split, .layout-split-wide { gap: clamp(18px, 2.4vw, 32px); }
  .r-grid, .steps, .sec-grid, .feature-grid, .channel-grid, .stats-row, .pipeline { gap: 14px !important; }
  .card, .cta-box, .mockup-body { padding: 14px !important; }
  .criterion { padding: 10px 12px !important; }
  .stat-num { font-size: 2.25rem !important; }
  .cta-contact { margin-top: 16px; padding: 16px 20px; gap: 10px 24px; }
  .cta-contact-title { font-size: 1.125rem; }
  .cta-contact-sub { font-size: .875rem; }
  .cta-btn { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
}

/* Anything still taller than the viewport is scaled down rather than cropped. */
@media (min-width: 981px) and (pointer: fine) and (max-height: 830px) {
  .slide > * { zoom: .875; }
}
@media (min-width: 981px) and (pointer: fine) and (max-height: 745px) {
  .slide > * { zoom: .8; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 380px) {
  .site-brand small { max-width: 76px; }
}
