html[data-mobile-landing] { scrollbar-width: none; }
html[data-mobile-landing]::-webkit-scrollbar { display: none; }
html[data-mobile-landing] .nav { height: 55px; }
html[data-mobile-landing] .hero { padding: 89px var(--pad) 55px; gap: 21px; }
html[data-mobile-landing] .hero h1 { font-size: clamp(29px, 9.4vw, 40px); }
html[data-mobile-landing] .hero .cta-row { gap: 13px 21px; }
html[data-mobile-landing] .hero .swarm-col { width: min(100%, 322px); }
html[data-mobile-landing] .sec { padding: 55px var(--pad); scroll-margin-top: 55px; }
html[data-mobile-landing] .sec h2 { font-size: clamp(29px, 8.7vw, 34px); }
html[data-mobile-landing] .panel { padding-inline: calc(var(--pad) - 8px); }
html[data-mobile-landing] .price { grid-template-columns: minmax(0, 1fr); gap: 21px; }
html[data-mobile-landing] .plan { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 13px; }
html[data-mobile-landing] .plan-n { font-size: 18px; gap: 5px; }
html[data-mobile-landing] .plan-p small { display: block; margin: 3px 0 0; text-align: right; }
html[data-mobile-landing] .price .cta { font-size: clamp(13px, 3.8vw, 15.5px); padding-inline: 13px; gap: 8px; white-space: normal; }
html[data-mobile-landing] .mobile-faq-ready { gap: 21px; }
html[data-mobile-landing] .mobile-faq-ready .faq-nav { display: none; }
html[data-mobile-landing] .mobile-faq-ready .faq-side { gap: 8px; }
html[data-mobile-landing] .mobile-faq-ready summary { min-height: 48px; padding: 11px 0; gap: 13px; font-size: 15.5px; }
html[data-mobile-landing] .mobile-faq-ready .faq-topic { scroll-margin-top: 68px; }
html[data-mobile-landing] .mobile-faq-ready .faq-topic > summary h3 { font: inherit; margin: 0; }
html[data-mobile-landing] .mobile-faq-ready .faq-topic > .faq-g { padding-inline: 13px; }
html[data-mobile-landing] .penta .pct { font-size: 9px; }
html[data-mobile-landing] .product { overflow: clip; }
html[data-mobile-landing] .p-side { display: grid; gap: 8px; text-align: center; }
html[data-mobile-landing] .p-side .sub { margin-inline: auto; font-size: 14px; line-height: 1.55; }
html[data-mobile-landing] .p-side .plates { display: none; }
html[data-mobile-landing] .stage-pin { gap: 13px; scroll-margin-top: 68px; }
html[data-mobile-landing] .stage {
  height: auto;
  --phone-room: max(175px, calc(100svh - var(--intro-height, 165px) - 100px));
}
html[data-mobile-landing] .phone-visual {
  position: relative; display: grid; place-items: center;
  width: min(100%, 334px, calc(var(--phone-room) * .487)); aspect-ratio: 668/1372;
}
@media (orientation: landscape) and (max-height: 500px) {
  html[data-mobile-landing] .stage-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  html[data-mobile-landing] .stage { --phone-room: max(175px, calc(100svh - 94px)); }
}
html[data-mobile-landing] .frame.mobile-phone {
  width: min(100%, 322px); height: auto; max-width: none; aspect-ratio: auto; display: grid;
  grid-template-columns: minmax(0, 1fr); place-items: stretch; gap: 0;
  grid-template-rows: calc(54px * var(--phone-scale, 1)) minmax(0,1fr) calc(26px * var(--phone-scale, 1));
  padding: 0 8px; border: 1px solid #515156; border-radius: 34px;
  background: #0b0b0c; box-shadow: inset 0 0 0 2px #19191d, 0 21px 55px -21px #000b;
  transform-origin: center; isolation: isolate;
}
html[data-mobile-landing] .phone-status, html[data-mobile-landing] .phone-home {
  position: relative; display: grid; align-items: center; color: var(--demo-ink, var(--ink));
  background: var(--demo-bg, var(--bg));
}
/* Единые размеры рамки из .claude/tools/phone.html, умноженные на
   фактический масштаб экрана: остров 124×36, статус 54, дом 26. */
html[data-mobile-landing] .phone-status { grid-area: 1 / 1; z-index: 2; display: flex; justify-content: space-between;
  height: calc(54px * var(--phone-scale, 1));
  padding-inline: calc(34px * var(--phone-scale, 1)); overflow: hidden;
  font-size: calc(16px * var(--phone-scale, 1)); font-weight: 600; white-space: nowrap; background: transparent; }
html[data-mobile-landing] .phone-status-icons { display: flex; gap: calc(6px * var(--phone-scale, 1)); align-items: center; }
html[data-mobile-landing] .phone-status-icons svg { display: block; width: auto; height: calc(12px * var(--phone-scale, 1)); }
html[data-mobile-landing] .phone-status::after { content: ''; position: absolute;
  top: calc(11px * var(--phone-scale, 1)); left: 50%; width: calc(124px * var(--phone-scale, 1));
  height: calc(36px * var(--phone-scale, 1)); border-radius: calc(20px * var(--phone-scale, 1));
  background: #000; border: 1px solid #17171a; transform: translateX(-50%); }
html[data-mobile-landing] .phone-home { grid-area: 3 / 1; height: calc(26px * var(--phone-scale, 1)); justify-items: center; }
html[data-mobile-landing] .phone-home::after { content: ''; width: calc(134px * var(--phone-scale, 1));
  height: calc(5px * var(--phone-scale, 1)); border-radius: calc(3px * var(--phone-scale, 1)); background: #e9e9eb; }
html[data-mobile-landing] .phone-display { grid-area: 1 / 1 / 3; position: relative; overflow: hidden; width: 100%; aspect-ratio: 393/826;
  border-radius: calc(56px * var(--phone-scale, 1)); background: var(--demo-bg, var(--bg)); }
html[data-mobile-landing] .frame .phone-display iframe { position: absolute; top: 0; left: 0; width: 393px;
  height: var(--phone-app-height, 826px); transform: scale(var(--phone-scale, 1)); transform-origin: top left; }
html[data-mobile-landing] .phone-display > .note { position: absolute; inset: 0; display: grid; place-items: center; }
html[data-mobile-landing] .frame.ready .phone-display > .note { visibility: hidden; }
html[data-mobile-landing] .phone-body { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html[data-mobile-landing] .stage:not(.model-ready) .frame.mobile-phone { opacity: 0; pointer-events: none; }
html[data-mobile-landing] .stage.model-fallback .frame.mobile-phone {
  width: 95%; opacity: 1; pointer-events: auto;
}
html[data-mobile-landing] .model-ready .frame.mobile-phone { position: absolute; inset: auto; aspect-ratio: auto;
  left: 5.09%; top: 2.12%; width: 89.82%; height: 95.75%;
  padding: 0; border: 0; border-radius: calc(56px * var(--phone-scale, 1)); overflow: hidden;
  background: var(--demo-bg, var(--bg)); box-shadow: none; }
html[data-mobile-landing] .model-intro .frame { opacity: 0; pointer-events: none; }
html[data-mobile-landing] .model-intro .phone-body { visibility: hidden; }
html[data-mobile-landing] .phone-flight {
  display: none; position: absolute; overflow: hidden; pointer-events: none;
  left: 50%; top: 50%; width: 155.04%; height: 116.98%; transform: translate(-50%, -50%);
}
html[data-mobile-landing] .model-intro .phone-flight { display: block; }
html[data-mobile-landing] .phone-flight img { display: block; width: 600%; height: 400%; max-width: none; }
html[data-mobile-landing] .model-ready .phone-display { height: 100%; min-height: 0; aspect-ratio: auto; }
html[data-mobile-landing] .phone-enter { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; cursor: zoom-in; }
html[data-mobile-landing] .phone-enter span { padding: 8px 13px; border-radius: 999px; background: var(--ink); color: var(--ink-fg);
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 21px #0006; }
html[data-mobile-landing] .phone-enter:focus-visible { outline-offset: -3px; }
html.mobile-demo-open { overflow: hidden; }
html.mobile-demo-open .dive-bg { display: block; position: fixed; inset: 0; z-index: 29; background: var(--demo-bg, var(--bg)); }
html.mobile-demo-open .phone-body { position: fixed; inset: auto; z-index: 30; opacity: 0; }
html[data-mobile-landing].mobile-demo-open .frame.mobile-phone { position: fixed; inset: 0; z-index: 31; width: 100%; height: 100%;
  aspect-ratio: auto; grid-template-rows: 0 minmax(0,1fr) calc(60px + env(safe-area-inset-bottom));
  padding: 0; border: 0; border-radius: 0;
  background: var(--demo-bg, var(--bg)); box-shadow: none; transform-origin: 0 0; }
html.mobile-demo-open .phone-display { height: 100%; aspect-ratio: auto; border-radius: 0; }
html.mobile-demo-open .frame .phone-display iframe { width: 100%; height: 100%; zoom: 1; transform: none; }
html.mobile-demo-open .phone-status, html.mobile-demo-open .phone-home { height: 0; overflow: hidden; opacity: 0; }
html.mobile-demo-open .phone-enter { display: none; }
html.mobile-demo-open .dive-x { display: inline-flex; align-items: center; justify-content: center; position: fixed;
  z-index: 40; bottom: calc(8px + env(safe-area-inset-bottom)); left: 13px; right: 13px;
  min-height: 47px; padding: 0 13px; border-radius: 999px;
  background: var(--demo-ink, var(--ink)); color: var(--demo-ink-fg, var(--ink-fg));
  font-size: 13px; }
html.mobile-demo-open .dive-x span { display: none; }
html.mobile-demo-moving .frame iframe, html.mobile-demo-moving .dive-x { pointer-events: none; }

/* Сравнение компоновок в локальном просмотрщике. */
html[data-mobile-layout] :is(#faces, #leagues, #price, #start) { padding-block: 34px; gap: 21px; }
html[data-mobile-layout] :is(#faces, #price) .f-side { gap: 8px; }
html[data-mobile-layout] :is(#leagues, #start) .c-top { gap: 8px; }
html[data-mobile-layout] :is(#faces, #leagues, #price, #start) .sub { font-size: 15px; line-height: 1.48; }
html[data-mobile-layout] #faces .penta { grid-row: 2; }
html[data-mobile-layout] #faces .f-list { margin-top: 5px; }
html[data-mobile-layout] #faces .f-row { grid-template-columns: 7px 5.2em minmax(0, 1fr); gap: 8px; padding: 6px 0; }
html[data-mobile-layout] #faces .f-row :is(b, span) { font-size: 14px; }
html[data-mobile-layout="choice"] #faces .f-list { display: none; }
html[data-mobile-layout] #leagues .lad { gap: 13px 8px; }
html[data-mobile-layout] #leagues .lg { gap: 3px; }
html[data-mobile-layout] #leagues .lg-emb, html[data-mobile-layout] #leagues .lg img { width: 52px; height: 52px; }
html[data-mobile-layout="choice"] #leagues .lg-emb, html[data-mobile-layout="choice"] #leagues .lg img { width: 42px; height: 42px; }
html[data-mobile-layout] #leagues .lg b { font-size: 15px; }
html[data-mobile-layout] #leagues .lg u { display: none; }
html[data-mobile-layout] #price .p-in { flex-flow: row wrap; gap: 4px 13px; margin-top: 5px; }
html[data-mobile-layout] #price .p-in li { padding: 0; border: 0; font-size: 13px; }
html[data-mobile-layout] #price .plan { min-height: 48px; padding: 8px 13px; border-radius: 13px; }
html[data-mobile-layout] #price .plan-d { display: none; }
html[data-mobile-layout] #price .plan-p { font-size: 19px; }
html[data-mobile-layout] #price .plan-p small { display: inline; margin-left: 3px; font-size: 10px; }
html[data-mobile-layout] #price .pay { gap: 8px; margin-top: 11px; }
html[data-mobile-layout] #price .pay .cta { min-height: 47px; }
html[data-mobile-layout="choice"] #price .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html[data-mobile-layout="choice"] #price .plan { display: grid; grid-template-columns: 1fr; place-items: center; padding-inline: 5px; }
html[data-mobile-layout="choice"] #price .plan-n { flex-direction: column; justify-content: center; gap: 2px; font-size: 14px; }
html[data-mobile-layout="choice"] #price .plan-n em { padding: 0; border: 0; font-size: 10px; }
html[data-mobile-layout="choice"] #price .plan-p { display: none; }
html[data-mobile-layout="choice"] #price .selected-plan-price { margin-top: 13px; color: var(--hot-ink); font-size: 29px; font-weight: 700; }
html[data-mobile-layout="summary"] :is(#faces, #leagues, #price) .sub {
  max-inline-size: 34ch;
  text-wrap: balance;
}
html[data-mobile-layout="summary"] #leagues .sub { margin-inline: auto; }
html[data-mobile-layout="summary"] #price .p-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}
html[data-mobile-layout="summary"] #price .p-in li:last-child { grid-column: 1 / -1; }
