/* Local, scaled documents fit inside the existing transparent dental device frames.
   The physical frames and the renderer's measured hero box keep their original size. */
.landing-demos-screen {
  container-type: size;
  color: #163247;
  text-align: left;
}
.landing-demos-document,
.landing-demos-sheet {
  --demo-ink: #163247;
  --demo-muted: #4c6170;
  --demo-line: #d7e2e7;
  color: var(--demo-ink);
  line-height: 1.35;
  text-align: left;
}
.landing-demos-document {
  width: 100%;
  min-height: 100%;
  background: #fff;
  font-size: 2.7cqw;
  animation: landing-demos-scroll 32s ease-in-out 2.5s infinite alternate both;
}
@keyframes landing-demos-scroll {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(min(0px, calc(100cqh - 100%))); }
}
@media (hover: hover) {
  .kf-hero-devices:hover .landing-demos-document { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-demos-document { animation: none; }
}
.landing-demos-cover {
  padding: 1em 1.25em 1.15em;
  color: white;
  background: var(--sp-deep, #25607a);
}
.landing-demos-cover > span,
.landing-demos-heading > small {
  display: block;
  margin-bottom: .55em;
  font-size: .8em;
  font-weight: 550;
}
.landing-demos-cover > strong,
.landing-demos-heading > b {
  display: block;
  font-size: 1.6em;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.025em;
}
.landing-demos-summary {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1em;
  padding: 1em 1.2em 0;
  align-items: center;
}
.landing-demos-figure { min-width: 0; margin: 0; }
.landing-demos-figure figcaption {
  display: block;
  margin: 0 0 .45em;
  color: var(--demo-ink);
  font-size: 1em;
  line-height: 1.35;
}
.landing-demos-figure figcaption span {
  display: block;
  margin-top: .35em;
  font-size: .9em;
  color: var(--demo-muted);
}
.landing-demos-figure :is(svg, img) {
  width: 100%;
  height: auto;
  border-radius: .45em;
}
.landing-demos-total {
  display: flex;
  justify-content: space-between;
  gap: .8em;
  align-items: baseline;
  font-size: .95em;
}
.landing-demos-total span { color: var(--demo-muted); }
.landing-demos-total strong {
  font-variant-numeric: tabular-nums;
  color: var(--sp-deep, #25607a);
  font-size: 1.4em;
  line-height: 1.1;
  white-space: nowrap;
}
.landing-demos-summary .landing-demos-total {
  display: grid;
  gap: .5em;
  align-content: start;
  border-left: 2px solid var(--sp-border, var(--demo-line));
  padding-left: 1em;
}
.landing-demos-path { padding: 1em 1.2em; }
.landing-demos-stages {
  list-style: none;
  margin: .55em 0 0;
  padding: 0;
}
.landing-demos-stages li {
  display: grid;
  grid-template-columns: 1.35em minmax(0, 1fr) auto;
  gap: .65em;
  align-items: baseline;
  margin: 0;
  padding: .72em 0;
  border-top: 1px solid var(--demo-line);
}
.landing-demos-stages small,
.landing-demos-cost span {
  display: block;
  margin-top: .2em;
  color: var(--demo-muted);
}
.landing-demos-stages li strong {
  font-size: .9em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.landing-demos-number {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  color: var(--sp-deep, #25607a);
  background: var(--sp-light, #daedf2);
  border-radius: 50%;
  font-size: .85em;
  font-weight: 650;
}
.landing-demos-screen--phone .landing-demos-document { font-size: 5cqw; animation-duration: 36s; }
.landing-demos-screen--phone .landing-demos-cover { padding-top: 1.8em; }
.landing-demos-screen--phone .landing-demos-summary { grid-template-columns: 1fr; }
.landing-demos-screen--phone .landing-demos-summary .landing-demos-total {
  display: flex;
  border: 0;
  padding: .3em 0;
}
.landing-demos-screen--phone .landing-demos-stages li { grid-template-columns: 1.35em 1fr; }
.landing-demos-screen--phone .landing-demos-stages li strong { grid-column: 2; }
.landing-demos-sizes { padding: 1em 1.2em 0; }
.landing-demos-screen--phone .eko-sizes { grid-template-columns: 1fr; }
.landing-demos-screen--phone .eko-rail li { grid-template-columns: 1.75em minmax(0, 1fr); row-gap: .1em; }
.landing-demos-screen--phone .eko-rail li > span:empty { display: none; }
.landing-demos-screen--phone .eko-rail :is(.eko-ph, strong) { grid-column: 2; }
.landing-demos-screen--phone .eko-rail .eko-node { grid-row: span 2; }

.landing-demos-sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--demo-line);
  border-radius: 16px;
  background: #fff;
  font-size: 15px;
  box-shadow: 0 12px 30px rgb(27 56 71 / 8%);
}
.landing-demos-sheet,
.kf-show__pane.landing-demos-pane { width: 100%; }
.kf-show__pane.landing-demos-pane { grid-template-columns: minmax(0, 1fr); }
/* A pane without a screen of this direction (doctor, chief, rehabilitation example) keeps the stage height; centre its copy. */
.kf-show__stage:has(> .landing-demos-pane--text:not([hidden])) { display: flex; flex-direction: column; justify-content: center; }
.landing-demos-reading { padding: 18px 22px 20px; }
.landing-demos-patient .landing-demos-figure { display: grid; gap: 16px; grid-template-columns: 1fr 1.15fr; align-items: center; }
.landing-demos-patient .landing-demos-figure figcaption { margin: 0; }
.landing-demos-sheet .landing-demos-total {
  padding-top: .85em;
  border-top: 1px solid var(--demo-line);
}
.landing-demos-heading {
  padding: 18px 22px;
  border-bottom: 1px solid var(--demo-line);
  background: var(--sp-bg, #f2f8fa);
}
.landing-demos-heading > small { color: var(--sp-deep, #25607a); }
.landing-demos-heading > b { font-size: 1.3em; }
.landing-demos-source { margin: 0 0 1.25em; }
.landing-demos-source blockquote {
  margin: .5em 0 0;
  padding: .7em .9em;
  border-left: 3px solid var(--sp-accent, #25607a);
  background: var(--sp-bg, #f2f8fa);
  font-size: .95em;
  line-height: 1.55;
}
.landing-demos-label { font-weight: 650; }
.landing-demos-check-figure { margin: -.5em 0 1em; }
.landing-demos-check-figure summary {
  cursor: pointer;
  padding-block: 12px;
  min-height: 44px;
  color: var(--sp-deep, #25607a);
  font-weight: 600;
}
.landing-demos-check-figure .landing-demos-figure {
  max-width: 400px;
  margin: 0 auto;
  padding-bottom: 1em;
}
.landing-demos-cost {
  display: grid;
  grid-template-columns: minmax(7.2em, .42fr) 1fr;
  gap: .8em;
  padding: .8em 0;
}
.landing-demos-cost + .landing-demos-cost { border-top: 1px solid var(--demo-line); }
.landing-demos-cost > strong { color: var(--sp-deep, #25607a); font-variant-numeric: tabular-nums; }
.landing-demos-cost span { font-size: .9em; }
@media (max-width: 580px) {
  .landing-demos-sheet { font-size: 14px; }
  .landing-demos-reading, .landing-demos-heading { padding: 15px; }
  .landing-demos-patient .landing-demos-figure { grid-template-columns: 1fr; gap: 8px; }
  .landing-demos-sheet .landing-demos-stages li { grid-template-columns: 1.35em minmax(0, 1fr); gap: .25em .55em; }
  .landing-demos-sheet .landing-demos-stages li strong { grid-column: 2; }
  .landing-demos-cost { grid-template-columns: 1fr; gap: .25em; }
  .landing-demos-total { flex-wrap: wrap; }
}

/* "Какие зубы в плане": 16px/1200 desktop, 16px/375 mobile.
   Scope to the outer card caption: the two view labels have their own scale. */
.landing-demos-document .landing-demos-figure > figcaption {
  font-size:1.333333cqw;
  text-align:left;
  margin:0 0 .65em;
}
.landing-demos-screen--phone .landing-demos-figure > figcaption { font-size:4.266667cqw; }

/* Real product previews inherit dental device sizing and scrolling. Frames re-shot to the bottom of «Где будет работа»
   (--to-zones, landing-demos.mjs framesToZones) differ in length, so each image ends at its own --kf-scroll-end
   (scrollEnd) — the image bottom meets the screen bottom and the zone scheme stays in view. Both devices still start and
   stop together; 44 s keeps the long phone frame readable. Other frames keep the site scroll (kf-scroll, 26 s), as on
   klinflow.ru. Reduced motion is handled by site.css (animation: none). */
.product-example { min-width: 0; }
.product-example--to-zones .kf-scroll > img { animation-name: kf-example-scroll; animation-duration: 44s; }
@keyframes kf-example-scroll {
  0% { transform: translateY(0); }
  96%, 100% { transform: translateY(var(--kf-scroll-end, -71.8%)); }
}
.product-example__note { margin: 16px 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
