/* «Ярус» v4 — правки по замечаниям 14.11 вечером.
   Три цвета: жёлтый, графит, газетная бумага. Газетные вырезки — настоящая фактура (ambientCG CC0) и рваные края.
   Точки фона — живые (dots.js), а не картинка. Подключается после poster.css. */

:root { --pz-tex: url("paper/paper-news.webp"); }

/* ---------- живые точки вместо нарисованных */
main > section::after,
.pz-hero__dots,
.story__dots,
.pz-hero__ring { display: none !important; }
canvas.pz-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main > section, footer.closing, .story__stage { position: relative; }
main > section:not(.story) > .wrap, footer.closing > .wrap { position: relative; z-index: 1; }
.story__stage > .pz-dots { z-index: 1; }

/* ---------- газетная вырезка: фактура + рваный верх и низ (маска), волокна по кромке */
.pz-clip,
main > section#call .st,
main > section#ticket .step-card,
main > section#faq .faq__item,
main > section#price .calc,
main > section#price .leave,
main > section#start .form-box,
main > section.pz-hero .pz-hero__lead,
main > section.pz-hero a.fit,
main > section#master .pp-demo,
main > section#price .price-free {
  background-color: #efe9d8 !important;
  background-image: var(--pz-tex) !important;
  background-size: 640px auto !important;
  color: var(--pz-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  -webkit-mask: url("paper/tear-h0.png") top / 100% 30px no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 56px) no-repeat, url("paper/tear-h1b.png") bottom / 100% 30px no-repeat;
  mask: url("paper/tear-h0.png") top / 100% 30px no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 56px) no-repeat, url("paper/tear-h1b.png") bottom / 100% 30px no-repeat;
  padding-top: 34px !important;
  padding-bottom: 34px !important;
  filter: drop-shadow(0 14px 14px rgb(0 0 0 / 22%));
}
/* тень у маски не видна — даём её родителю-ряду */
main > section#call .chain, main > section#ticket .steps-row, main > section#faq .faq, main > section#price .price-side { filter: drop-shadow(0 16px 18px rgb(0 0 0 / 18%)); }
main > section#price .price-free { color: var(--pz-ink) !important; }
main > section#price .price-free b { color: var(--pz-ink) !important; background: var(--pz-sun); padding: 0 6px; }
main > section#start .form-box::before, main > section#price .calc::before { top: 10px !important; }
main > section.pz-hero a.fit { padding: 26px 22px !important; }

/* ---------- первый экран: заголовок в 2–3 строки, не столбиком */
.pz-hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr) !important; }
main > section.pz-hero h1 { max-width: 15ch !important; font-size: clamp(50px, 6.6vw, 124px) !important; }
@media (max-width: 900px) { .pz-hero__grid { grid-template-columns: 1fr !important; } }

/* ---------- демо-звонок: без чёрной рамки, телефон — вырезка на жёлтом */
main > section#call .call-frame { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 10px !important; min-height: 0 !important; }
main > section#call .device {
  box-shadow: 0 0 0 10px #efe9d8, 0 0 0 11px rgb(0 0 0 / 8%), 0 34px 50px -20px rgb(0 0 0 / 45%) !important;
  rotate: 2deg;
}
main > section#call .demo-end { grid-area: end !important; position: static !important; justify-content: flex-start !important; flex-wrap: wrap; }
main > section#call .call-grid { grid-template-areas: "head phone" "chain phone" "end phone" !important; }
main > section#call .dv-say button { color: #17181c !important; }

/* ---------- вопросы: заголовок не прячется под карточками, у текста есть поля */
main > section#faq .faq-head { position: static !important; }
main > section#faq .faq__item { padding-left: 30px !important; padding-right: 30px !important; }
main > section#faq .faq__item h3 { margin: 0 0 10px; }

/* ---------- обзор-плитки: один стиль — бумага и жёлтый, без золотых рендеров */
main > section.tiles { background: var(--pz-ink) !important; }
main > section.tiles .tile { background-color: #efe9d8 !important; background-image: var(--pz-tex) !important; background-size: 640px auto !important; color: var(--pz-ink) !important; border-radius: 6px !important; }
main > section.tiles .tile:nth-child(2), main > section.tiles .tile:nth-child(3) { background-color: var(--pz-sun) !important; background-image: none !important; }
main > section.tiles .tile .tile__title, main > section.tiles .tile .tile__lead { color: var(--pz-ink) !important; }
main > section.tiles .tile .tile__link { color: var(--pz-ink) !important; font-weight: 800; text-decoration: underline; text-decoration-color: var(--pz-sun); text-decoration-thickness: 4px; text-underline-offset: 5px; }
main > section.tiles .tile:nth-child(2) .tile__link, main > section.tiles .tile:nth-child(3) .tile__link { text-decoration-color: var(--pz-ink); text-decoration-thickness: 2px; }
main > section.tiles .tile .tile__pic::before { display: none !important; }
.tile__pic--cut { position: relative !important; inset: auto !important; height: auto !important; margin: auto 0 0; width: 100%; display: flex; justify-content: center; align-items: flex-end; flex: 1 1 auto; min-height: 0; }
.tile__pic--cut img { width: auto !important; height: auto !important; max-width: 92%; max-height: 360px; object-fit: contain !important; filter: drop-shadow(0 18px 20px rgb(0 0 0 / 25%)); }
.tile__pic--shot img { max-height: 330px; rotate: -2deg; }

/* ---------- жилица ругается: рука машет вокруг локтя */
.scold { position: relative; width: min(92%, 520px); margin: auto auto 0; aspect-ratio: 1155 / 1036; }
.scold img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgb(0 0 0 / 22%)); }
.scold .scold__arm { transform-origin: 36% 70%; }
@media (prefers-reduced-motion: no-preference) {
  .scold .scold__arm { animation: scold 1.15s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes scold { 0%, 100% { rotate: -9deg; } 18% { rotate: 7deg; } 34% { rotate: -6deg; } 52% { rotate: 9deg; } 70% { rotate: -4deg; } }
}

/* ---------- плитка-ссылка на страницу подключения */
.tile__pic--bp img { rotate: -1.5deg; }

/* ---------- раздел мастера: вырезка, кнопки, крупный телефон */
main > section#master .pp-demo { padding: 40px 34px !important; }
main > section#master .pp-actions .btn { background: var(--pz-ink) !important; color: var(--pz-sun) !important; border-color: var(--pz-ink) !important; }
main > section#master .outcomes li { border-color: rgb(23 24 28 / 20%) !important; }
main > section#master .outcomes li.is-on, main > section#master .outcomes li[aria-current] { background: var(--pz-sun); }

/* ---------- подложки меню и мобильной панели */
.nav__link .chev { display: none; }
@media (max-width: 760px) {
  main > section#call .device { rotate: 0deg; }
}

/* ---------- 3D-ноутбук: кадр не выше экрана */
.pz-3d { width: min(100%, calc((100vh - 120px) * 1.6)); margin: 8px auto 0 !important; }
.desk-shot-ns { width: 100%; height: auto; }

/* ---------- №04: лента крупных экранов */
@media (min-width: 901px) {
  main > section#ticket { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  main > section#ticket .wrap { overflow: visible; }
  main > section#ticket .steps-row { display: flex !important; flex-wrap: nowrap; gap: 36px; width: max-content; padding: 10px 40px 10px 0; }
  main > section#ticket .step-card { width: min(34vw, 460px); flex: none; }
  main > section#ticket .step-card__shot { height: min(44vh, 460px) !important; }
  main > section#ticket .section-head { margin-bottom: 18px !important; }
  main > section#ticket h2 { font-size: clamp(40px, 4.4vw, 76px) !important; }
}
main > section#ticket .step-card__shot img { border-radius: 26px; box-shadow: 0 0 0 7px #17181c, 0 20px 30px -16px rgb(0 0 0 / 40%); }
main > section#ticket .step-card__shot--wide img { border-radius: 10px; box-shadow: 0 0 0 5px #17181c; }
main > section#ticket .step-card h3 { font-size: 24px !important; font-weight: 800 !important; }
main > section#ticket .step-card p { font-size: 17px !important; color: rgb(23 24 28 / 78%) !important; }
@media (max-width: 900px) { main > section#ticket .step-card__shot { height: 64vh !important; } }

/* ---------- №05: телефон жильца с экранами */
main > section#resident .resident-grid { align-items: center !important; min-height: calc(100vh - 140px); }
.app-steps { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 10px; counter-reset: app; }
.app-steps li { counter-increment: app; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 14px 16px; border-left: 4px solid rgb(251 250 246 / 18%); cursor: pointer; transition: background .25s, border-color .25s; }
.app-steps li::before { content: counter(app, decimal-leading-zero); grid-row: span 2; font: 800 22px/1 ui-monospace, Menlo, Consolas, monospace; color: rgb(251 250 246 / 45%); }
.app-steps li b { color: #fbfaf6; font-size: 21px; font-weight: 800; }
.app-steps li span { color: rgb(251 250 246 / 70%); font-size: 16px; line-height: 1.45; }
.app-steps li.is-on { background: rgb(251 213 48 / 12%); border-left-color: var(--pz-sun); }
.app-steps li.is-on::before { color: var(--pz-sun); }
main > section#resident .resident-rows { display: none; }
.app-phone { width: min(100%, 340px); aspect-ratio: 9 / 19.2; margin: 0 auto; padding: 12px; border-radius: 46px; background: #17181c; box-shadow: 0 0 0 10px #efe9d8, 0 0 0 11px rgb(0 0 0 / 10%), 0 40px 60px -24px rgb(0 0 0 / 70%); rotate: -2deg; }
.app-phone__screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; }
.app-scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.app-scr--bill { background: #fff; display: grid; place-items: start center; overflow: hidden; }
.app-scr--bill .ui.bill { width: 100%; transform-origin: 50% 0; }

/* ---------- №06: схема звонков */
.flow { margin: 40px 0 0; padding: 40px 30px 30px !important; }
.flow__modes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.flow__mode { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #17181c; background: transparent; color: #17181c; font: 700 15px/1 "Onest", system-ui, sans-serif; cursor: pointer; }
.flow__mode.is-on { background: #17181c; color: #fbd530; }
.flow__svg { width: 100%; height: auto; display: block; font-family: "Onest", system-ui, sans-serif; }
.flow[data-mode="all"] .flow__node--disp rect { fill: #e6e0cf; }
.flow__cap { margin-top: 8px; font: 600 16px/1.4 "Onest", system-ui, sans-serif; color: rgb(23 24 28 / 75%); }
/* закреплённые блоки: пока раздел закреплён, его .wrap во весь экран */
main > section#ticket .pin-spacer > .wrap, main > section#resident .pin-spacer > .wrap { width: min(1320px, calc(100% - 48px)); }
main > section#ticket { padding-top: 0 !important; padding-bottom: 0 !important; }
main > section#ticket > .wrap, main > section#ticket .pin-spacer > .wrap { min-height: 100vh; display: flex !important; flex-direction: column; justify-content: center; padding: calc(var(--v3-nav, 72px) + 20px) 0 30px; }
@media (min-width: 901px) {
  main #ticket h2 { font-size: clamp(36px, 3.6vw, 60px) !important; max-width: none !important; }
  main #ticket h2::before { margin-bottom: 10px !important; }
  main #ticket .section-head { margin-bottom: 14px !important; gap: 8px !important; }
  main #ticket .step-card__shot { height: min(36vh, 380px) !important; margin-bottom: 8px !important; }
  main #ticket .step-card { padding-top: 30px !important; padding-bottom: 30px !important; }
  main #ticket .step-card p { font-size: 16px !important; }
  #ticket .wrap { height: 100vh; min-height: 0 !important; box-sizing: border-box; }
}
@media (min-width: 901px) {
  main #ticket .section-head { max-width: none !important; }
  main #ticket .step-card__shot { height: min(32vh, 340px) !important; }
}
/* трещины от удара */
svg.pz-cracks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.pz-hero__art { overflow: visible; }
.pz-hero__phone { z-index: 1; }
.pz-hero__tag { z-index: 3; }

/* текст вылезает из концов трещин (slam.js): обёртка режет, надпись поднимается снизу */
.pz-crack-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: max-content;
  translate: -50% -60%;
  overflow: hidden;
  padding: 0 2px 3px;
  pointer-events: none;
}
.pz-crack-label > span {
  display: block;
  padding: 7px 11px 6px;
  background: var(--pz-ink, #17181c);
  color: var(--pz-sun, #fbd530);
  font: 800 clamp(13px, 1.05vw, 17px)/1 "Onest", system-ui, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 12em;
  text-wrap: balance;
  line-height: 1.1;
  clip-path: polygon(0 6%, 5% 0, 12% 8%, 22% 1%, 100% 5%, 98% 52%, 100% 96%, 90% 100%, 82% 92%, 72% 100%, 0 95%, 2% 48%);
  box-shadow: 0 6px 12px rgb(0 0 0 / 28%);
}
@media (max-width: 640px) {
  .pz-crack-label > span { font-size: 11px; padding: 5px 8px 4px; }
}

/* печать «Заявка у нас» после отправки формы (slam.js) */
#start .form-box { position: relative; }
.pz-stamp {
  position: absolute;
  right: 22px;
  top: 22px;
  width: clamp(118px, 11.5vw, 168px);
  height: auto;
  aspect-ratio: 1;
  color: #17181c;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.pz-stamp text { font-family: "Onest", system-ui, sans-serif; font-weight: 800; fill: currentColor; }
.pz-stamp__ring { font-size: 15.5px; letter-spacing: 1.3px; }
.pz-stamp__mid { font-size: 15px; }

/* ссылка на страницу «Как подключить» из карточки GSM */
main > section#connect .tile__link { display: inline-block; margin-top: 14px; color: var(--pz-ink, #17181c) !important; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- первый экран: коллаж из рваных вырезок (story-src/make_hero_collage.py) вместо трещин */
.pz-collage { position: absolute; left: 3%; right: -20%; top: -6%; bottom: -12%; z-index: 0; pointer-events: none; }
.pz-collage__pile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 45%; }
.pz-word { position: absolute; height: auto; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 22%)); will-change: transform; }
.pz-word--0 { left: -2%; top: 5%; width: 56%; rotate: -7deg; }
/* «ЗАЯВКА» наклеена поверх телефона, на клавиатуру: экран с заявкой виден */
.pz-word--1 { left: 18%; top: 57%; width: 58%; rotate: -9deg; z-index: 3; }
.pz-word--2 { left: 6%; top: 84%; width: 54%; rotate: 3deg; }
.pz-hero__phone { z-index: 2; }
@media (max-width: 900px) {
  .pz-collage { left: -6%; right: -6%; top: -2%; bottom: -4%; }
  .pz-word--0 { left: 0; top: 3%; width: 52%; }
  .pz-word--1 { left: 24%; top: 58%; width: 52%; }
  .pz-word--2 { left: 6%; top: 84%; width: 50%; }
}

/* ---------- №01: рука со смартфоном — газетная вырезка из фото (story-src/make_call_phone.py).
   Экран в картинке прорезан, под ним живой экран звонка (.device), он масштабируется под прорезь (--k из v4.js). */
main > section#call .call-frame {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  border-radius: 0 !important; padding: 0 !important; min-height: 0 !important; display: block !important;
}
main > section#call .call-hand { --k: .887; position: relative; width: min(100%, 560px); aspect-ratio: 705 / 955; margin-inline: auto; rotate: -3deg; }
main > section#call .call-hand__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 26px 30px rgb(0 0 0 / 30%)); }
/* прорезь экрана в картинке (доли картинки) */
main > section#call .call-hand .device {
  position: absolute !important; left: 14.26%; top: 3.93%;
  width: 300px !important; height: calc(300px * 2.1586) !important; --dv-h: calc(300px * 2.1586);
  transform-origin: 0 0; scale: var(--k); rotate: 0deg !important;
  border: 0 !important; border-radius: 34px !important; box-shadow: none !important; z-index: 1;
}
main > section#call .call-hand .device::after { display: none; }
main > section#call .call-hand .dv-island { visibility: hidden; }
main > section#call .call-hand .dv-status { padding-top: 4px; }
@media (max-width: 760px) {
  main > section#call .call-hand { width: 560px; max-width: none; margin-left: calc(50% - 560px * 0.380); rotate: 0deg; }
}
/* №01 на телефоне: в одну колонку */
@media (max-width: 900px) {
  main > section#call .call-grid { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "head" "phone" "chain" "end" !important; }
  main > section#call .call-phone { position: relative !important; top: auto !important; }
}

/* ---------- №03 мастер: посетитель сам жмёт клавиши кнопочного телефона (master.js).
   Без фото мастера: мастер — это вы, палец подсказывает, куда нажать. Меню как в кнопочном телефоне:
   жёлтая полоса едет к исходу, который получился. */
main > section#master .master-grid { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important; gap: clamp(28px, 4vw, 64px) !important; align-items: center; }
main > section#master .master-grid > * { grid-column: auto !important; }
main > section#master h2 { font-size: clamp(40px, 4.6vw, 74px) !important; line-height: .92 !important; max-width: 11ch; }
main > section#master .t-lead { margin-top: 18px; max-width: 44ch; }
@media (max-width: 900px) { main > section#master .master-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.ms-ask { margin: 26px 0 10px; font: 700 12px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--pz-ink, #17181c); }
.ms-menu { position: relative; display: grid; gap: 4px; padding: 8px; background: #17181c; border-radius: 14px; box-shadow: 6px 6px 0 rgb(23 24 28 / 22%); max-width: 520px; }
.ms-menu__hl { position: absolute; left: 8px; right: 8px; top: 0; height: 0; border-radius: 9px; background: #fbd530; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ms-btn { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px 0 10px; border: 0; border-radius: 9px;
  background: transparent; color: #fbfaf6; font: 700 16px/1.2 "Onest", system-ui, sans-serif; text-align: left; cursor: pointer; transition: color .2s, background-color .2s; }
.ms-btn:hover { background: rgb(251 250 246 / 8%); }
.ms-btn__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid currentColor; font: 800 13px/1 ui-monospace, Consolas, monospace; opacity: .8; }
.ms-btn__k { font: 700 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.ms-btn[aria-pressed="true"] { color: #17181c; background: transparent; }
.ms-btn[aria-pressed="true"] .ms-btn__k { opacity: .8; }
.ms-btn:focus-visible { outline: 3px solid #fbd530; outline-offset: 2px; }
.ms-log { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; min-height: 150px; max-width: 520px; align-content: start; }
.ms-log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: baseline; font: 500 15px/1.4 "Onest", system-ui, sans-serif; color: #17181c; }
.ms-log time { font: 700 12px/1 ui-monospace, Consolas, monospace; opacity: .6; }
.ms-log li.is-key { font-weight: 800; }
.ms-log li.is-key span { background: linear-gradient(transparent 58%, rgb(251 213 48 / 85%) 58% 92%, transparent 92%); }

.ms-stage { position: relative; min-height: 620px; }
.ms-phone { position: absolute; left: 6%; top: 50%; width: min(300px, 40%); margin-top: calc(min(300px, 40%) * -1.06); rotate: -6deg; transform-origin: 50% 85%; z-index: 2; }
.ms-nokia { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 28px rgb(0 0 0 / 32%)); pointer-events: none; }
.ms-lcd { position: absolute; left: 13.6%; top: 26.4%; width: 63.6%; height: 23.2%; display: grid; grid-template-rows: auto 1fr auto; gap: 3%; padding: 6% 7% 4%; border-radius: 6px; overflow: hidden;
  background: #cfd2c3 radial-gradient(circle, rgb(0 0 0 / 9%) 0 .6px, transparent 1px) 0 0 / 3px 3px;
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 18%), inset 0 6px 10px rgb(0 0 0 / 12%);
  color: #1d1f19; font: 700 clamp(9px, .8vw, 13px)/1.18 "Courier New", ui-monospace, monospace; pointer-events: none; }
.ms-lcd__who { margin: 0; padding-bottom: 3%; border-bottom: 1.5px solid currentColor; text-transform: uppercase; letter-spacing: .04em; }
.ms-lcd__text { margin: 0; white-space: pre-line; }
.ms-lcd__soft { margin: 0; text-align: center; text-transform: uppercase; letter-spacing: .06em; min-height: 1.1em; }
.ms-phone.is-ring .ms-lcd { animation: ms-blink .5s steps(2) infinite; }
@keyframes ms-blink { 50% { background-color: #e6e8d9; } }

/* клавиши: прозрачные кнопки поверх картинки телефона */
.ms-key { position: absolute; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.ms-key::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 3px dashed transparent; transition: border-color .2s; }
.ms-key:hover::before, .ms-key:focus-visible::before { border-color: #17181c; }
.ms-key.is-hint::before { border-color: #fbd530; border-style: solid; box-shadow: 0 0 0 3px #17181c; animation: ms-key-pulse 1.2s ease-in-out infinite; }
.ms-key.is-press::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(251 213 48 / 70%); animation: ms-key-press .45s ease-out forwards; }
@keyframes ms-key-pulse { 50% { scale: 1.08; } }
@keyframes ms-key-press { from { opacity: 1; } to { opacity: 0; } }
.ms-key:focus-visible { outline: none; }
.ms-key > span { position: absolute; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 5px 9px; background: #17181c; color: #fbd530; font: 800 12px/1 "Onest", system-ui, sans-serif;
  letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ms-key.is-hint > span, .ms-key:hover > span, .ms-key:focus-visible > span { opacity: 1; }
.ms-key--navi { left: 31%; top: 49.5%; width: 38%; height: 11%; border-radius: 40% 40% 50% 50%; }
.ms-key--navi > span { right: calc(100% + 64%); }
.ms-key--c { left: 70%; top: 56.5%; width: 20%; height: 8%; }
.ms-key--c > span { left: calc(100% + 18px); }
.ms-key--1 { left: 7%; top: 64%; width: 22%; height: 7.5%; }
.ms-key--1 > span { right: calc(100% + 18px); }
.ms-finger { position: absolute; z-index: 4; width: 30%; height: auto; translate: -36% -6%; opacity: 0; pointer-events: none; filter: drop-shadow(0 10px 10px rgb(0 0 0 / 30%)); transition: opacity .2s; }
.ms-finger.is-on { opacity: 1; }

.ms-bubble { position: absolute; left: 50%; top: 4%; z-index: 3; max-width: 48%; margin: 0; padding: 16px 18px 15px; color: #fbfaf6;
  font: 600 clamp(14px, 1.1vw, 17px)/1.4 "Onest", system-ui, sans-serif; transform-origin: 0% 100%; scale: 0;
  border: 0 solid transparent; border-image: url("paper/card-black.webp?v=1") 40 fill / 40px / 24px stretch; }
.ms-bubble b { color: #fbd530; }
.ms-stamp { position: absolute; right: 6%; top: 44%; z-index: 3; margin: 0; padding: 12px 18px; color: #17181c;
  font: 900 clamp(16px, 1.5vw, 24px)/1.05 "Onest", system-ui, sans-serif; letter-spacing: .03em; text-transform: uppercase; text-align: center; white-space: pre-line;
  rotate: -12deg; scale: 0; border: 0 solid transparent; border-image: url("paper/card-sun.webp?v=1") 40 fill / 40px / 24px stretch; }
.ms-stamp.is-red { color: #b31d1d; border-image-source: url("paper/card-white.webp?v=1"); }

/* попытки: три звонка и старший */
.ms-tries { position: absolute; right: 2%; bottom: 4%; z-index: 2; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ms-tries li { display: grid; justify-items: center; gap: 6px; width: 74px; padding: 10px 4px 8px; border: 2px solid #17181c; border-radius: 10px; background: #fbfaf6;
  font: 700 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: #17181c; transition: background-color .25s, color .25s, translate .25s; }
.ms-tries li b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; font: 900 15px/1 "Onest", system-ui, sans-serif; }
.ms-tries li.is-now { background: #fbd530; translate: 0 -6px; box-shadow: 0 6px 0 #17181c; }
.ms-tries li.is-miss { background: #17181c; color: rgb(251 250 246 / 70%); }
.ms-tries li.is-miss b { text-decoration: line-through; }
.ms-tries li.is-ok { background: #17181c; color: #fbd530; }
.ms-tries li.is-alarm { background: #b31d1d; border-color: #b31d1d; color: #fff; }
@media (prefers-reduced-motion: no-preference) { .ms-tries li.is-now b { animation: ms-key-pulse .9s ease-in-out infinite; } }

@media (max-width: 900px) {
  /* на телефоне телефон сразу под заголовком, меню и журнал — под ним */
  main > section#master .master-grid { gap: 0 !important; }
  main > section#master .master-text { display: contents; }
  main > section#master .master-text > h2 { order: 1; }
  main > section#master .master-text > .t-lead { order: 2; }
  main > section#master .ms-stage { order: 3; }
  main > section#master .ms-ask { order: 4; }
  main > section#master .ms-menu { order: 5; }
  main > section#master .ms-log { order: 6; }
  .ms-stage { min-height: 520px; margin-top: 0; }
  .ms-phone { left: 6%; width: min(270px, 58%); margin-top: calc(min(270px, 58%) * -1.12); }
  .ms-bubble { left: 46%; max-width: 54%; top: 0; font-size: 13px; padding: 12px 14px; }
  .ms-stamp { right: 2%; top: 46%; }
  .ms-tries { left: 0; right: 0; bottom: 0; justify-content: center; gap: 6px; }
  .ms-tries li { width: 64px; }
  .ms-lcd { font-size: 9px; }
  .ms-key--navi > span { right: auto; left: calc(100% + 54%); }
  .ms-key--1 > span { right: auto; left: calc(100% + 12px); top: 130%; }
}
@media (prefers-reduced-motion: reduce) { .ms-bubble, .ms-stamp { scale: 1; } .ms-phone.is-ring .ms-lcd, .ms-key.is-hint::before { animation: none; } }

/* ====================================================================================
   Рваная бумага для всех листочков и плашек (как журнальные вырезки на референсе владельца):
   рамка из 9 частей (story-src/make_paper_pieces.py frames) — край печати, белая сердцевина с волокнами, тень.
   Край бумаги совпадает с краем блока (outset = поле картинки). Старая маска и фон отключены. */
.pz-clip,
main > section#call .st,
main > section#ticket .step-card,
main > section#faq .faq__item,
main > section#price .calc,
main > section#price .leave,
main > section#start .form-box,
main > section.pz-hero .pz-hero__lead,
main > section.pz-hero a.fit,
main > section#price .price-free,
main > section.tiles .tile,
main > section.cx-embed .cx-paper,
main > section.cx-embed .cx-step {
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  clip-path: none !important;
  box-shadow: none !important;
  filter: none !important;
  border-radius: 0 !important;
  border-style: solid !important;
  border-width: 0 !important;
  border-color: transparent !important;
  border-image: url("paper/card-white.webp?v=1") 40 fill / 40px / 24px stretch !important;
}
main > section.tiles .tile:nth-child(2),
main > section.tiles .tile:nth-child(3),
main > section#price .price-free { border-image-source: url("paper/card-sun.webp?v=1") !important; }
main > section#call .chain, main > section#ticket .steps-row, main > section#faq .faq, main > section#price .price-side { filter: none !important; }
main > section.tiles .tiles__grid { gap: 40px !important; }
.pz-clip { padding: 10px !important; }
/* рваный край выходит за блок на 24px — раздвигаем соседей */
main > section#faq .faq { gap: 44px !important; }
main > section#ticket .steps-row { gap: 44px !important; padding-inline: 24px; }
main > section#call .chain { gap: 40px !important; }
main > section#price .price-side { gap: 44px !important; display: grid; }

/* ---------- слайд «Жилец звонит в УК. Пятый раз.»: жилица машет рукой, вокруг — её эмоции из рваной газеты (angry.js) */
main > section#angry { background: var(--pz-sun, #fbd530) !important; padding: 0 !important; }
.ag-stage { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--v3-nav, 72px) + 30px) 0 40px; overflow: hidden; }
.ag-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.ag-text h2 { max-width: 11ch !important; }
.ag-text .t-lead { max-width: 34ch; margin-top: 22px; color: #17181c !important; }
.ag-art { position: relative; aspect-ratio: 1 / .95; }
.ag-woman { position: absolute !important; left: 8%; bottom: 0; width: 88% !important; margin: 0 !important; z-index: 2; }
.ag-emo, .ag-calm { position: absolute; height: auto; z-index: 3; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 20%)); will-change: transform; }
/* голова жилицы ≈ x 45–75%, y 17–45%: эмоции вокруг, лицо открыто */
.ag-fifth { left: -10%; top: -2%; width: 56%; rotate: -8deg; }
.ag-busy { left: 50%; top: -6%; width: 54%; rotate: 6deg; }
.ag-grawlix { left: 76%; top: 11%; width: 26%; rotate: 8deg; }
.ag-again { left: 72%; top: 33%; width: 38%; rotate: -9deg; }
.ag-leak { left: -8%; top: 30%; width: 40%; rotate: -6deg; }
.ag-hello { left: 26%; top: 13%; width: 24%; rotate: 10deg; }
.ag-bolt-a { left: 82%; top: 52%; width: 7%; rotate: 16deg; }
.ag-bolt-b { left: 34%; top: 27%; width: 5%; rotate: -14deg; }
.ag-steam-a { left: 46%; top: 9%; width: 11%; }
.ag-steam-b { left: 66%; top: 7%; width: 8%; }
.ag-bang { left: 2%; top: 47%; width: 7%; rotate: -12deg; }
.ag-calm { left: 18%; top: 58%; width: 66%; rotate: -4deg; z-index: 4; }
#angry:not(.is-live) .ag-calm { display: none; }
#angry.is-calm .scold__arm { animation-play-state: paused !important; }
@media (max-width: 900px) {
  .ag-grid { grid-template-columns: 1fr; }
  .ag-art { width: 100%; margin-top: 20px; }
}

/* ---------- №06: диспетчер за компьютером, сцена из рваной бумаги (modes.js) */
main > section#modes .modes-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important; gap: 48px !important; align-items: center; }
main > section#modes .modes-grid > * { grid-column: auto !important; }
.md-modes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.md-mode { min-height: 48px; padding: 0 20px; border: 2px solid #17181c; border-radius: 999px; background: transparent; color: #17181c; font: 700 15px/1 "Onest", system-ui, sans-serif; cursor: pointer; }
.md-mode.is-on { background: #17181c; color: #fbd530; }
.md-mode:focus-visible { outline: 3px solid #17181c; outline-offset: 3px; }
.md-scene { position: relative; aspect-ratio: 1.18; }
.md-scene > * { position: absolute; height: auto; }
.md-disp { left: -2%; bottom: 0; width: 60%; z-index: 2; transform-origin: 30% 100%; filter: drop-shadow(0 16px 20px rgb(0 0 0 / 22%)); }
.md-monitor { right: 0; top: 8%; width: 54%; z-index: 3; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 28%)); }
.md-stand { right: 15%; top: 55%; width: 22%; z-index: 2; }
/* лоток заявок поверх экрана монитора */
.md-inbox { right: 4%; top: 13%; width: 46%; height: 50%; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.md-inbox img { position: relative; width: 44%; height: auto; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 25%)); }
.md-mouse { left: 50%; top: 82%; width: 7.5%; z-index: 1; rotate: -14deg; }
.md-sweat { left: 30%; top: 14%; width: 5%; z-index: 4; scale: 0; }
.md-word { z-index: 5; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 22%)); scale: 0; }
.md-ring-a { left: -6%; top: 0; width: 34%; rotate: -10deg; }
.md-ring-b { left: 22%; top: -4%; width: 24%; rotate: 8deg; }
.md-quiet { left: 0; top: 2%; width: 34%; rotate: -5deg; }
.md-badge { right: 0; bottom: 0; width: 20%; z-index: 4; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 25%)); }
.md-fly { inset: 0; z-index: 6; pointer-events: none; }
.md-fly img { position: absolute; left: 0; top: 0; height: auto; will-change: transform; }
.md-cap { margin-top: 16px; font: 600 16px/1.45 "Onest", system-ui, sans-serif; color: #17181c; max-width: 52ch; }
@media (max-width: 900px) { main > section#modes .modes-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (prefers-reduced-motion: reduce) { .md-quiet { scale: 1; } }

/* ---------- «Попробуйте сами»: мини-версии трёх приложений (try.js). Устройства — газетные вырезки,
   экраны — живые, в стиле «Ярус · Город» (белый, жёлтый = ваш ход, Onest). */
main > section#try { background: #17181c !important; color: #fbfaf6 !important; }
main > section#try h2 { color: #fbfaf6 !important; max-width: 18ch; }
main > section#try .t-lead { color: rgb(251 250 246 / 80%) !important; max-width: 62ch; }
.ty-head { display: grid; gap: 18px; margin-bottom: 26px; }
.ty-word { width: min(420px, 70%); height: auto; rotate: -3deg; }
.ty-tabs { display: none; gap: 8px; margin-bottom: 14px; }
.ty-tab { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #fbfaf6; background: transparent; color: #fbfaf6; font: 700 15px/1 "Onest", system-ui, sans-serif; cursor: pointer; }
.ty-tab.is-on { background: #fbd530; border-color: #fbd530; color: #17181c; }
.ty-row { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr) minmax(0, .78fr); gap: 26px; align-items: end; }
.ty-dev { margin: 0; position: relative; }
.ty-cap { margin-bottom: 10px; font: 500 14px/1.3 "Onest", system-ui, sans-serif; color: rgb(251 250 246 / 70%); }
.ty-cap b { display: block; font-size: 18px; color: #fbfaf6; }
.ty-dev.is-turn .ty-cap b::after { content: "ваш ход"; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: #fbd530; color: #17181c; font-size: 12px; vertical-align: 2px; }
/* телефон в руке: прорезь экрана — x 14.26%, y 3.93%, ширина 47.38%; экран 300 × 648 и масштаб --k */
.ty-hand { --k: .8; position: relative; aspect-ratio: 705 / 955; }
.ty-hand__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 22px 26px rgb(0 0 0 / 40%)); }
.ty-hand .ty-screen { position: absolute; left: 14.26%; top: 3.93%; width: 300px; height: 648px; transform-origin: 0 0; scale: var(--k); z-index: 1; border-radius: 34px; overflow: hidden; }
.ty-hand--flip .ty-hand__img { scale: -1 1; }
.ty-hand--flip .ty-screen { left: auto; right: 14.26%; transform-origin: 100% 0; }
/* монитор: прорезь экрана — x 6.36%, y 8.94%, ширина 87.27%; экран 640 × 415 */
.ty-mon { --k: .8; position: relative; aspect-ratio: 660 / 470; }
.ty-mon__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; filter: drop-shadow(0 22px 26px rgb(0 0 0 / 40%)); }
.ty-mon .ty-screen { position: absolute; left: 6.36%; top: 8.94%; width: 640px; height: 415px; transform-origin: 0 0; scale: var(--k); z-index: 3; overflow: hidden; }
/* --- общий вид экранов */
.ty-screen { background: #fff; color: #17181c; font: 400 14px/1.35 "Onest", system-ui, sans-serif; }
.ty-screen button { font: inherit; cursor: pointer; }
.ty-phone { display: flex; flex-direction: column; padding: 0 0 58px; }
.tp-status { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 6px 22px 0; font-size: 12px; font-weight: 600; }
.tp-dot { width: 46px; height: 6px; border-radius: 3px; background: #17181c; }
.tp-top { padding: 8px 18px 12px; border-bottom: 1px solid #e6e7ea; display: grid; gap: 2px; }
.tp-top small { color: #5c5d61; font-size: 12px; }
.tp-top b { font-size: 16px; }
.tp-on { font-style: normal; color: #15803d; }
.tp-view { padding: 14px 16px; display: grid; gap: 12px; align-content: start; flex: 1; overflow: hidden; }
.tp-view[hidden] { display: none; }
.tp-big { min-height: 52px; border: 0; border-radius: 14px; background: #fbd530; color: #17181c; font-weight: 800 !important; font-size: 16px !important; }
.tp-sub { margin: 4px 0 0; font-weight: 700; font-size: 15px; }
.tp-card { padding: 12px; border: 1px solid #e6e7ea; border-radius: 14px; display: grid; gap: 4px; }
.tp-card span { color: #15803d; font-size: 13px; }
.tp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-cat { min-height: 92px; border: 1px solid #e6e7ea; border-radius: 16px; background: #fff; display: grid; place-items: center; align-content: center; gap: 8px; font-weight: 700 !important; }
.tp-cat i { width: 34px; height: 34px; border-radius: 10px; background: #fff3c4; box-shadow: inset 0 0 0 2px #fbd530; }
.tp-field { min-height: 86px; padding: 10px 12px; border: 2px solid #17181c; border-radius: 12px; font-size: 14px; }
.tp-photo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5c5d61; }
.tp-photo i { width: 44px; height: 44px; border-radius: 8px; background: #d9dbe0 linear-gradient(135deg, #c3c6cc 0 40%, #e6e7ea 40%); }
.tp-ok { padding: 10px 12px; border-radius: 12px; background: #e8f5ec; color: #15803d; font-size: 13px; }
.tp-title { font-size: 20px; }
.tp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-steps li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; color: #8e929a; }
.tp-steps li::before { content: ""; grid-row: span 2; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid #c3c6cc; box-sizing: border-box; }
.tp-steps li b { font-size: 14px; }
.tp-steps li span { font-size: 12px; }
.tp-steps li.is-done { color: #17181c; }
.tp-steps li.is-done::before { border-color: #15803d; background: #15803d radial-gradient(circle, #fff 0 2px, transparent 2.5px); }
.tp-steps li.is-now { color: #17181c; }
.tp-steps li.is-now::before { border-color: #17181c; background: #fbd530; animation: tp-pulse 1.4s ease-in-out 3; }
@keyframes tp-pulse { 50% { box-shadow: 0 0 0 7px rgb(251 213 48 / 45%); } }
.tp-rate { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #fff7d6; }
.tp-rate[hidden], .tp-thanks[hidden] { display: none; }
.tp-rate p { margin: 0; font-weight: 700; }
.tp-stars button { border: 0; background: none; font-size: 28px !important; color: #e0a800; letter-spacing: 2px; padding: 0; }
.tp-thanks { padding: 10px 12px; border-radius: 12px; background: #e8f5ec; color: #15803d; }
.tp-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #e6e7ea; background: #fff; font-size: 12px; color: #5c5d61; }
.tp-tabbar .is-on { padding: 6px 12px; border-radius: 999px; background: #fff3c4; color: #17181c; font-weight: 700; }
.tp-empty { margin-top: 40px; text-align: center; color: #5c5d61; line-height: 1.5; }
.tp-call { margin: 10px; padding: 26px 16px !important; border-radius: 22px; background: #17181c; color: #fbfaf6; text-align: center; }
.tp-call small { color: #fbd530; font-weight: 700; }
.tp-call b { font-size: 26px; }
.tp-call p { margin: 0; font-size: 14px; line-height: 1.45; }
.tp-now { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #fff7d6; box-shadow: inset 4px 0 0 #fbd530; }
.tp-now small { color: #5c5d61; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.tp-now b { font-size: 18px; }
.tp-now span { color: #5c5d61; font-size: 13px; }
.tp-eta { display: flex; gap: 8px; }
.tp-eta[hidden] { display: none; }
.tp-eta button { flex: 1; min-height: 44px; border: 2px solid #17181c; border-radius: 12px; background: #fff; font-weight: 700 !important; }
/* мини-программа ПК */
.ty-pc { display: grid; grid-template-columns: 112px 1fr; font-size: 12px; }
.tc-side { background: #fff7e1; padding: 12px 10px; display: grid; align-content: start; gap: 6px; }
.tc-side b { font-size: 18px; margin-bottom: 8px; }
.tc-side span { padding: 6px 8px; border-radius: 8px; color: #3b3c40; }
.tc-side span.is-on { background: #fbd530; font-weight: 700; color: #17181c; }
.tc-main { position: relative; padding: 12px 14px; }
.tc-bar { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tc-bar b { font-size: 18px; }
.tc-bar span { color: #5c5d61; }
.tc-tab { width: 100%; border-collapse: collapse; }
.tc-tab th { text-align: left; font-weight: 600; color: #5c5d61; padding: 6px; border-bottom: 1px solid #e6e7ea; }
.tc-tab td { padding: 8px 6px; border-bottom: 1px solid #f0f1f3; vertical-align: top; }
.tc-tab td small { display: block; color: #5c5d61; }
.tc-new td { background: #fff7d6; }
.tc-new td:first-child { box-shadow: inset 4px 0 0 #fbd530; }
.tc-st { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef0f3; font-weight: 600; }
.tc-st--work, .tc-st--go { background: #fff3c4; }
.tc-st--ok { background: #e8f5ec; color: #15803d; }
.tc-btn { min-height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: #fbd530; font-weight: 800 !important; }
.tc-pick { position: absolute; right: 14px; top: 92px; width: 230px; display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgb(0 0 0 / 22%); }
.tc-pick[hidden], .tc-toast[hidden] { display: none; }
.tc-pick button { text-align: left; padding: 8px 10px; border: 1px solid #e6e7ea; border-radius: 10px; background: #fff; font-weight: 700 !important; }
.tc-pick button small { display: block; font-weight: 400; color: #5c5d61; }
.tc-toast { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #17181c; color: #fbfaf6; }
/* жёлтая метка «нажмите здесь» */
.ty-mark { position: absolute; z-index: 20; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(251 213 48 / 35%); border: 3px solid #fbd530; pointer-events: none; animation: ty-mark 1.2s ease-out infinite; }
.ty-mark::after { content: "нажмите"; position: absolute; left: 40px; top: 4px; padding: 3px 8px; border-radius: 6px; background: #fbd530; color: #17181c; font: 800 12px/1.2 "Onest", system-ui, sans-serif; white-space: nowrap; }
@keyframes ty-mark { 0% { box-shadow: 0 0 0 0 rgb(251 213 48 / 60%); } 100% { box-shadow: 0 0 0 18px rgb(251 213 48 / 0%); } }
.ty-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; }
.ty-say { margin: 0; font: 700 18px/1.4 "Onest", system-ui, sans-serif; color: #fbd530; }
.ty-reset { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid #fbfaf6; background: transparent; color: #fbfaf6; font: 700 15px/1 "Onest", system-ui, sans-serif; cursor: pointer; }
@media (max-width: 900px) {
  .ty-tabs { display: flex; }
  .ty-row { grid-template-columns: minmax(0, 1fr); }
  .ty-dev { display: none; }
  .ty-row[data-on="res"] .ty-dev--res, .ty-row[data-on="disp"] .ty-dev--disp, .ty-row[data-on="mst"] .ty-dev--mst { display: block; }
  .ty-hand { width: min(100%, 420px); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .ty-mark, .tp-steps li.is-now::before { animation: none; } }

/* ---------- «Скачать приложения»: рваные карточки, отдельная большая плашка для жильцов (apps.js) */
main > section#apps { background: #17181c !important; color: #fbfaf6 !important; }
main > section#apps h2 { color: #fbfaf6 !important; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 48px; margin-top: 40px; }
.ap-card { position: relative; display: grid; align-content: start; gap: 14px; padding: 44px 34px 34px; color: #17181c;
  border: 0 solid transparent; border-image: url("paper/card-white.webp?v=1") 40 fill / 40px / 24px stretch; }
.ap-card--res { grid-column: 1 / -1; border-image-source: url("paper/card-sun.webp?v=1"); padding: 50px 44px 40px; }
.ap-word { position: absolute; left: 18px; top: -46px; width: min(330px, 62%); height: auto; rotate: -4deg; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 30%)); }
.ap-card--res .ap-word { width: min(380px, 50%); }
.ap-card h3 { margin: 6px 0 0; font: 900 clamp(24px, 2.2vw, 34px)/1.05 "Onest", system-ui, sans-serif; letter-spacing: -.03em; }
.ap-card p { margin: 0; font: 500 16px/1.5 "Onest", system-ui, sans-serif; max-width: 46ch; }
.ap-res { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 30px; align-items: center; }
.ap-res__text { display: grid; gap: 16px; align-content: start; }
.ap-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font: 600 17px/1.4 "Onest", system-ui, sans-serif; }
.ap-list li { padding-left: 26px; position: relative; }
.ap-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 3px; background: #17181c; rotate: 8deg; }
.ap-res__phone { width: min(100%, 360px); justify-self: center; margin: -40px 0 -60px; }
.ap-shots { background: #fff; }
.ap-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ap-btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; border-radius: 999px;
  background: #fbd530; color: #17181c; font: 800 16px/1 "Onest", system-ui, sans-serif; text-decoration: none; transition: transform .15s; }
.ap-btn--ink { background: #17181c; color: #fbd530; }
.ap-btn:hover { transform: translateY(-2px); }
.ap-btn:focus-visible { outline: 3px solid #17181c; outline-offset: 3px; }
/* стрелка падает в лоток — при наведении прыгает */
.ap-btn__ico { position: relative; width: 18px; height: 20px; }
.ap-btn__ico::before { content: ""; position: absolute; left: 7px; top: 0; width: 4px; height: 12px; background: currentColor; border-radius: 2px; }
.ap-btn__ico::after { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-right: 4px solid currentColor; border-bottom: 4px solid currentColor; rotate: 45deg; }
.ap-btn:hover .ap-btn__ico::before, .ap-btn:hover .ap-btn__ico::after { animation: ap-drop .7s ease-in-out infinite; }
.ap-btn__ico { border-bottom: 3px solid currentColor; }
@keyframes ap-drop { 50% { translate: 0 4px; } }
.ap-meta { font: 600 13px/1.4 ui-monospace, Consolas, monospace !important; opacity: .7; }
@media (max-width: 900px) {
  .ap-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .ap-res { grid-template-columns: minmax(0, 1fr); }
  .ap-res__phone { margin: 0 auto -30px; width: min(80%, 320px); }
}
@media (prefers-reduced-motion: reduce) { .ap-btn:hover .ap-btn__ico::before, .ap-btn:hover .ap-btn__ico::after { animation: none; } }
/* «Попробуйте сами»: устройства крупнее — ряд шире колонки текста; где «ваш ход» — чуть ближе */
@media (min-width: 901px) {
  .ty-row { width: min(1440px, calc(100vw - 40px)); position: relative; left: 50%; translate: -50% 0; grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr) minmax(0, .95fr); gap: 18px; }
  .ty-dev { transition: scale .45s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
  .ty-dev.is-turn { scale: 1.08; z-index: 3; }
  .ty-row:has(.is-turn) .ty-dev:not(.is-turn) { scale: .95; }
}
.ty-phone { font-size: 15px; }
.tp-top b { font-size: 17px; }
.tp-big { min-height: 56px; font-size: 17px !important; }
.tp-view { overflow-y: auto; scrollbar-width: none; }
.tp-view::-webkit-scrollbar { display: none; }
.tp-steps { gap: 7px; }

/* ---------- пробный месяц выдан (page.js showTrial, D-123): логин и пароль один раз */
.trial-ok { display: grid; gap: 14px; padding-top: 16px; color: #17181c; }
.trial-ok__kicker { margin: 0; display: inline-block; justify-self: start; padding: 6px 12px; background: #17181c; color: #fbd530; font: 800 14px/1.2 "Onest", system-ui, sans-serif; letter-spacing: .02em; }
.trial-ok__h { margin: 0; font: 900 clamp(24px, 2.4vw, 34px)/1.05 "Onest", system-ui, sans-serif; letter-spacing: -.03em; }
.trial-ok__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fffdf5; border: 2px solid #17181c; }
.trial-ok__label { font: 600 14px/1.3 "Onest", system-ui, sans-serif; color: #5c5d61; }
.trial-ok__value { font: 700 20px/1.2 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.trial-ok__copy { min-height: 44px; padding: 0 14px; border: 2px solid #17181c; border-radius: 999px; background: #fbd530; color: #17181c; font: 700 14px/1 "Onest", system-ui, sans-serif; cursor: pointer; }
.trial-ok__note { margin: 0; font: 500 15px/1.45 "Onest", system-ui, sans-serif; }
.trial-ok__links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .trial-ok__row { grid-template-columns: 1fr; } }
/* подтверждение номера звонком (page.js verifyByCall, D-125) */
.call-check .call-check__num { font-size: 20px; letter-spacing: .01em; }
.call-check__wait { font-variant-numeric: tabular-nums; color: #5c5d61; }
/* Последний шаг: подтвердить номер через Яндекс ID (page.js yandexStep, D-126). Кнопка — по образцу кнопки Яндекс ID:
   чёрная, белая надпись, красный круг с «Я». */
.ya-card { gap: 16px; }
.ya-card .trial-ok__note b { white-space: nowrap; }
.ya-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; justify-self: start; min-height: 56px; padding: 0 26px 0 14px; border: 0; border-radius: 14px; background: #000; color: #fff; font: 600 17px/1 "Onest", system-ui, sans-serif; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / 18%); transition: transform .12s ease, background .12s ease; }
.ya-btn:hover { background: #1c1c1c; }
.ya-btn:active { transform: translateY(1px); }
.ya-btn:focus-visible { outline: 3px solid #fbd530; outline-offset: 3px; }
.ya-btn:disabled { cursor: progress; opacity: .85; }
.ya-btn__logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fc3f1d; color: #fff; font: 800 18px/1 "Onest", system-ui, sans-serif; }
.ya-card__fine { margin: 0; font: 500 13px/1.45 "Onest", system-ui, sans-serif; color: #5c5d61; }
.ya-card__err { margin: 0; font: 600 14px/1.45 "Onest", system-ui, sans-serif; color: #b91c1c; }
.ya-card__alt { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ya-card__link { padding: 6px 0; border: 0; background: none; color: #17181c; font: 600 14px/1.3 "Onest", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) { .ya-btn { width: 100%; justify-self: stretch; } }

/* ── №01: единая палитра карточек «куда уйдёт заявка» (15.11) ──
   Бумага — кремовая, текст — графит, жёлтый — только «ваш ход» и текущий шаг, красный — авария, зелёный — сделано.
   Плашки внутри карточек — одной формы: графитовая «этикетка» статуса, белая строка заявки, чёрный экран робота. */
#call .chain { --c-ink: #17181c; --c-paper: #fffdf5; --c-cream: #f3eddc; --c-sun: #fbd530; --c-muted: #5c5d61; --c-red: #b91c1c; --c-ok: #15803d; --c-line: rgb(23 24 28 / 16%); }
#call .st h3 { color: var(--c-ink); font-weight: 650; letter-spacing: -.01em; }
#call .st-text { color: var(--c-muted); }
#call .deskrow { background: var(--c-paper) !important; border: 2px solid var(--c-ink) !important; border-radius: 12px; color: var(--c-ink) !important; box-shadow: 3px 3px 0 var(--c-ink); }
#call .dr-what { background: var(--c-ink) !important; color: var(--c-sun) !important; font-weight: 700; letter-spacing: .02em; border-radius: 6px; }
#call .deskrow.is-urgent .dr-what { background: var(--c-red) !important; color: #fff !important; }
#call .deskrow.is-assigned .dr-what { background: var(--c-sun) !important; color: var(--c-ink) !important; }
#call .dr-main small, #call .dr-who { color: var(--c-muted) !important; }
#call .st-assign { background: var(--c-sun); border: 2px solid var(--c-ink); color: var(--c-ink); font-weight: 700; box-shadow: 3px 3px 0 var(--c-ink); }
#call .st-assign:not(:disabled) { animation: callYourTurn 1.6s ease-in-out infinite; }
#call .st-assign:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c-ink); }
#call .st-assign:disabled { opacity: 1 !important; background: transparent !important; color: var(--c-muted) !important; border: 2px dashed rgb(23 24 28 / 28%) !important; box-shadow: none !important; }
#call .lcd { background: var(--c-ink); color: var(--c-paper); border-radius: 12px; padding: 12px 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; box-shadow: 3px 3px 0 rgb(23 24 28 / 30%); }
#call .lcd-who { color: var(--c-sun); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
#call .lcd .kw { color: rgb(255 253 245 / 55%); }
#call .lcd .kw.on { color: var(--c-sun); }
#call .track li { background: transparent; border: 1.5px solid var(--c-line); color: var(--c-muted); }
#call .track li.is-done { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
#call .track li.is-done::before { background: var(--c-sun); border-color: var(--c-sun); }
#call .track li.is-now { background: var(--c-sun); border-color: var(--c-ink); color: var(--c-ink); }
#call .incoming { border-radius: 12px; }
/* «Ваш ход»: пока звонок не начат — подсказка на первой карточке, где нажать */
#call .call-grid:has(#device[data-state="idle"]) #st-desk .st-live::before {
  content: "Сначала нажмите зелёную трубку на телефоне справа →"; display: block; margin-bottom: 10px; padding: 6px 10px; width: fit-content;
  background: var(--c-sun); color: var(--c-ink); font-weight: 700; font-size: 13px; border-radius: 8px; transform: rotate(-1deg);
}
@media (max-width: 900px) { #call .call-grid:has(#device[data-state="idle"]) #st-desk .st-live::before { content: "Сначала нажмите зелёную трубку на телефоне выше ↑"; } }
@keyframes callYourTurn { 0%, 100% { box-shadow: 3px 3px 0 var(--c-ink), 0 0 0 0 rgb(251 213 48 / 70%); } 50% { box-shadow: 3px 3px 0 var(--c-ink), 0 0 0 8px rgb(251 213 48 / 0%); } }

/* Палец нажимает зелёную трубку, пока звонок не начат: показывает, куда жать. Висит на руке с телефоном (не внутри
   экрана — там он обрезается), кончик пальца — над зелёной кнопкой. */
#call .call-hand { position: relative; }
#call .call-hand::after {
  content: ""; position: absolute; left: calc(45.6% - 26px); top: calc(69.5% - 5px); width: 72px; height: 94px; pointer-events: none; z-index: 6;
  background: url("finger.svg") center / contain no-repeat; filter: drop-shadow(3px 6px 6px rgb(0 0 0 / 35%));
  opacity: 0; transform-origin: 36% 6%;
}
#call .call-grid:has(#device[data-state="idle"]) .call-hand::after { animation: fingerTap 2.4s ease-in-out .8s infinite; }
@keyframes fingerTap {
  0% { opacity: 0; transform: translate(26px, 30px) rotate(-12deg) scale(1); }
  18% { opacity: 1; transform: translate(6px, 8px) rotate(-12deg) scale(1); }
  30% { opacity: 1; transform: translate(0, 0) rotate(-12deg) scale(.9); }
  40% { opacity: 1; transform: translate(4px, 5px) rotate(-12deg) scale(1); }
  70% { opacity: 1; transform: translate(4px, 5px) rotate(-12deg) scale(1); }
  100% { opacity: 0; transform: translate(26px, 30px) rotate(-12deg) scale(1); }
}
#call .call-grid:has(#device[data-state="idle"]) .dv-call { animation: callYourTurn 2.4s ease-in-out .8s infinite; }
@media (prefers-reduced-motion: reduce) {
  #call .call-hand::after, #call .st-assign:not(:disabled), #call .call-grid .dv-call { animation: none !important; }
  #call .call-grid:has(#device[data-state="idle"]) .call-hand::after { opacity: 1; transform: translate(4px, 5px) rotate(-12deg); }
}

/* ── «Одна заявка от звонка до оценки»: экраны без чёрных углов (15.11) ──
   Окно телефона ровно по снимку (без полей), тонкая графитовая рамка; наведи или нажми — экран пролистывается до низа,
   карточка наклоняется за курсором (shots.js). */
main > section#ticket .step-card__shot {
  height: min(40vh, 400px) !important; width: calc(min(40vh, 400px) * 0.545) !important; flex: none; margin: 0 auto 4px !important; aspect-ratio: auto !important;
  background: #fffdf5 !important; border-radius: 26px !important; overflow: hidden !important; position: relative;
  border: 3px solid #17181c; box-shadow: 6px 8px 0 #17181c; cursor: ns-resize; transform: rotate(var(--tilt, -1.2deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
main > section#ticket .step-card:nth-child(even) .step-card__shot { --tilt: 1.2deg; }
main > section#ticket .step-card__shot img {
  position: absolute; left: 0; top: 0; width: 100% !important; height: auto !important; max-width: none !important;
  object-fit: initial !important; border-radius: 0 !important; box-shadow: none !important;
  transition: transform 3.2s cubic-bezier(.45, 0, .2, 1); transform: translateY(0);
}
main > section#ticket .step-card__shot.is-scrolled img { transform: translateY(var(--scroll-to, 0px)); }
main > section#ticket .step-card__shot--wide { width: 100% !important; height: auto !important; cursor: zoom-in; border-radius: 14px !important; margin-top: auto !important; }
main > section#ticket .step-card__shot--wide img { position: static !important; display: block; }
main > section#ticket .step-card__shot--wide img { transition: transform .6s ease; transform-origin: 0 0; }
main > section#ticket .step-card__shot--wide.is-scrolled img { transform: scale(1.6); }
main > section#ticket .step-card__shot::after {
  content: "листать ↓"; position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px;
  background: #17181c; color: #fbd530; font: 700 11px/1.4 "Onest", system-ui, sans-serif; letter-spacing: .03em; opacity: .9; transition: opacity .2s;
}
main > section#ticket .step-card__shot--wide::after { content: "крупнее +"; }
main > section#ticket .step-card__shot.is-scrolled::after { opacity: 0; }
main > section#ticket .step-card:hover .step-card__shot { box-shadow: 9px 12px 0 #17181c; }
@media (max-width: 900px) { main > section#ticket .step-card__shot { height: min(62vh, 520px) !important; width: calc(min(62vh, 520px) * 0.545) !important; } main > section#ticket .step-card__shot--wide { width: 100% !important; height: auto !important; } }
@media (prefers-reduced-motion: reduce) { main > section#ticket .step-card__shot img { transition: none; } }

/* ====================================================================================
   Первый экран без газетной кучи под телефоном (просьба владельца 15.11): телефон стоит на жёлтом,
   а глянцевые обрывки — под текстом. На жёлтом фоне жёлтых обрывков нет: серебро и белый под чернилами,
   чёрный под жёлтым текстом (story-src/make_paper_pieces.py gloss). */
.pz-collage__pile { display: none !important; }
.pz-hero__phone canvas { filter: drop-shadow(0 26px 30px rgb(23 24 28 / 28%)); }
main > section.pz-hero .pz-hero__lead { border-image-source: url("paper/card-silver.webp?v=1") !important; rotate: -1.2deg; }
main > section.pz-hero a.fit:nth-child(1) { border-image-source: url("paper/card-black.webp?v=1") !important; }
main > section.pz-hero a.fit:nth-child(2) { border-image-source: url("paper/card-silver.webp?v=1") !important; }
main > section.pz-hero a.fit:nth-child(3) { border-image-source: url("paper/card-white.webp?v=1") !important; }
main > section.pz-hero a.fit:nth-child(1) b,
main > section.pz-hero a.fit:nth-child(1) b::after { color: var(--pz-sun, #fbd530) !important; }
main > section.pz-hero a.fit:nth-child(1) span { color: rgb(251 250 246 / 82%) !important; }
main > section.pz-hero a.fit:hover { background: none !important; translate: 0 -3px; }
.pz-hero__tag {
  background: none !important; border: 0 solid transparent; border-image: url("paper/card-black.webp?v=1") 40 fill / 30px / 14px stretch;
  padding: 16px 20px !important; color: var(--pz-sun, #fbd530) !important;
}
@media (prefers-reduced-motion: no-preference) { main > section.pz-hero a.fit { transition: translate .25s ease; } }
/* шов 9-частной рамки (outset 24px: шов в 16px от края блока) даёт волосок жёлтого фона — под серединой обрывка подложка его цвета */
main > section.pz-hero .pz-hero__lead,
main > section.pz-hero a.fit:nth-child(2) { background: linear-gradient(#c3c6cd, #c3c6cd) center / calc(100% - 28px) calc(100% - 28px) no-repeat !important; }
main > section.pz-hero a.fit:nth-child(1) { background: linear-gradient(#1d1e23, #1d1e23) center / calc(100% - 28px) calc(100% - 28px) no-repeat !important; }
main > section.pz-hero a.fit:nth-child(3) { background: linear-gradient(#f4f3ef, #f4f3ef) center / calc(100% - 28px) calc(100% - 28px) no-repeat !important; }

/* ---------- №11 калькулятор как лист чертежа (calc.js): рамка с полем подшивки, сетка, размерная линия-ползунок,
   штамп в углу. Шутка: «Розыск мастера» — дома на глянцевых обрывках вместо звёзд. */
main > section#price .calc--draw { position: relative; display: grid; gap: 10px; padding: 46px 44px 40px 58px !important; isolation: isolate; }
main > section#price .calc--draw::after {
  content: ""; position: absolute; inset: 22px 20px 20px 34px; z-index: -1; pointer-events: none;
  border: 1.5px solid #17181c; outline: 1px solid rgb(23 24 28 / 45%); outline-offset: -6px;
  background:
    repeating-linear-gradient(0deg, rgb(23 24 28 / 7%) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgb(23 24 28 / 7%) 0 1px, transparent 1px 22px);
}
main > section#price .calc--draw > * { position: relative; }
.calc__hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.calc__hud-t { font: 800 12px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: #17181c; }
.calc__wanted { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.calc__wanted li { position: relative; width: 44px; height: 40px; background: url("paper/card-black.webp?v=1") center / 100% 100% no-repeat; rotate: -3deg; }
.calc__wanted li:nth-child(2n) { rotate: 4deg; background-image: url("paper/card-silver.webp?v=1"); }
.calc__wanted li::before {
  content: ""; position: absolute; inset: 9px 11px 10px; background: rgb(251 250 246 / 26%);
  -webkit-mask: url("house.svg") center / contain no-repeat; mask: url("house.svg") center / contain no-repeat; transition: background-color .25s;
}
.calc__wanted li:nth-child(2n)::before { background: rgb(23 24 28 / 22%); }
.calc__wanted li.is-on::before { background: #fbd530; }
.calc__wanted li:nth-child(2n).is-on::before { background: #17181c; }
.calc__wanted li.is-new { animation: calc-wanted .32s steps(2) 4; }
@keyframes calc-wanted { 50% { opacity: .15; } }

main > section#price .calc--draw .calc__label { font: 700 13px/1.2 ui-monospace, Consolas, monospace !important; letter-spacing: .12em; text-transform: uppercase; }
.calc__dim { position: relative; }
main > section#price .calc--draw .calc__input {
  width: 100%; height: 62px; padding: 0 64px 0 16px; border: 2px solid #17181c !important; border-radius: 4px !important; background: #fffdf5 !important;
  font: 800 32px/1 ui-monospace, Consolas, monospace !important; letter-spacing: .02em; color: #17181c; box-shadow: 4px 4px 0 #17181c;
}
main > section#price .calc--draw .calc__input:focus-visible { outline: 3px solid #17181c; outline-offset: 3px; }
.calc__unit { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font: 700 16px/1 ui-monospace, Consolas, monospace; color: rgb(23 24 28 / 70%); pointer-events: none; }

/* ползунок — размерная линия: стрелки на концах, засечки, жёлтая метка */
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 10px 0 0; background: transparent; cursor: pointer; --fill: .6; }
.calc__range::-webkit-slider-runnable-track {
  height: 14px; border: 0;
  background:
    linear-gradient(#17181c 0 0) left center / calc(var(--fill) * 100%) 4px no-repeat,
    linear-gradient(#17181c 0 0) center / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, #17181c 0 1.5px, transparent 1.5px 20%) 0 0 / calc(100% + 1.5px) 100% no-repeat;
}
.calc__range::-moz-range-track { height: 14px; background: linear-gradient(#17181c 0 0) center / 100% 1.5px no-repeat, repeating-linear-gradient(90deg, #17181c 0 1.5px, transparent 1.5px 20%) 0 0 / calc(100% + 1.5px) 100% no-repeat; }
.calc__range::-moz-range-progress { height: 4px; background: #17181c; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -6px; border: 2.5px solid #17181c; border-radius: 4px; background: #fbd530; box-shadow: 3px 3px 0 #17181c; rotate: 45deg; }
.calc__range::-moz-range-thumb { width: 22px; height: 22px; border: 2.5px solid #17181c; border-radius: 4px; background: #fbd530; box-shadow: 3px 3px 0 #17181c; rotate: 45deg; }
.calc__range:focus-visible { outline: 3px solid #17181c; outline-offset: 4px; }
.calc__ticks { display: flex; justify-content: space-between; margin: -2px -6px 0; font: 700 11px/1 ui-monospace, Consolas, monospace; color: rgb(23 24 28 / 75%); }
.calc__ticks span:nth-child(3) { color: #17181c; text-decoration: underline 2px #fbd530; text-underline-offset: 3px; }

.calc__formula { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 ui-monospace, Consolas, monospace; color: #17181c; }
.calc__formula i { flex: 1; height: 12px; min-width: 30px; background: linear-gradient(#17181c 0 0) left center / calc(100% - 10px) 1.5px no-repeat; position: relative; }
.calc__formula i::after { content: ""; position: absolute; right: 0; top: 50%; translate: 0 -50%; border: 6px solid transparent; border-left: 10px solid #17181c; border-right: 0; }
main > section#price .calc--draw .calc__out { margin: 2px 0 0; font-weight: 900 !important; }
.calc__min { display: none; padding: 3px 6px; border: 1.5px solid #17181c; font: 800 11px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; background: #fbd530; }
.calc--draw.is-min .calc__min { display: inline-block; }
.calc__joke { margin: 0; justify-self: start; padding: 6px 10px 5px; background: #17181c; color: #fbd530; font: 800 14px/1.25 "Onest", system-ui, sans-serif; rotate: -1deg; min-height: 1.25em; }
.calc__joke:empty { display: none; }
main > section#price .calc--draw .calc__hint { font-size: 14px; margin: 4px 0 0; }

/* штамп чертежа */
.calc__stamp { justify-self: end; width: min(100%, 380px); margin-top: 10px; border-collapse: collapse; font: 700 11px/1.25 ui-monospace, Consolas, monospace; color: #17181c; background: #fffdf5; }
.calc__stamp td { border: 1.5px solid #17181c; padding: 5px 7px; vertical-align: middle; }
.calc__stamp td:last-child { text-align: right; white-space: nowrap; }
.calc__stamp-t { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) {
  main > section#price .calc--draw { padding: 40px 26px 34px 34px !important; }
  main > section#price .calc--draw::after { inset: 18px 12px 14px 18px; }
  .calc__hud { flex-wrap: wrap; }
  .calc__wanted li { width: 38px; height: 35px; }
  .calc__wanted li::before { inset: 8px 9px 9px; }
  main > section#price .calc--draw .calc__input { font-size: 26px !important; height: 56px; }
  .calc__formula { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .calc__wanted li.is-new { animation: none; } }

/* прежний первый экран стал вторым (первый — «Солнце садится», assets/daynight): заголовок теперь h2, вид тот же */
main > section.pz-hero h2#hero-h {
  margin: 0; font-family: "Onest", system-ui, sans-serif !important; font-weight: 900 !important;
  font-size: clamp(50px, 6.6vw, 124px) !important; line-height: .88 !important; letter-spacing: -.055em !important;
  color: var(--pz-ink) !important; max-width: 15ch !important;
}
main > section.pz-hero h2#hero-h::before { content: none !important; }
@media (max-width: 640px) { main > section.pz-hero h2#hero-h { font-size: clamp(44px, 13vw, 64px) !important; } }

/* ---------- 18.11: 3D-телефон мастера (master3d.js): модель вместо вырезки, кнопки — на проекциях клавиш */
.ms-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .35s; }
.ms-phone.is-3d .ms-canvas { opacity: 1; }
.ms-phone.is-3d .ms-nokia { visibility: hidden; }
.ms-phone.is-3d { rotate: -3deg; }
.ms-phone.is-3d .ms-lcd { border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / 22%); }
.ms-key--d { display: none; border-radius: 46%; }
.ms-phone.is-3d .ms-key--d { display: block; }
.ms-phone.is-3d .ms-key { border-radius: 46%; }
.ms-phone.is-3d .ms-key--navi { border-radius: 40% 40% 50% 50%; }
@media (min-width: 901px) {
  .ms-phone { width: min(360px, 44%); margin-top: calc(min(360px, 44%) * -1.06); }
}

/* ---------- 18.11: диспетчер говорит и работает мышью (modes.js) */
.md-inbox .md-tk { position: relative; width: 44%; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 25%)); }
.md-inbox .md-tk img { position: static; display: block; width: 100%; height: auto; filter: none; }
.md-inbox .md-tk::after { content: "мастер ✓"; position: absolute; right: -6%; bottom: -10%; padding: 3px 7px 2px; background: #fbd530; color: #17181c; border: 1.5px solid #17181c;
  font: 800 11px/1.1 "Onest", system-ui, sans-serif; rotate: -6deg; scale: 0; transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.md-inbox .md-tk.is-done::after { scale: 1; }
.md-inbox .md-tk.is-mine::before { content: "диспетчер"; position: absolute; left: -4%; top: -12%; padding: 2px 6px; background: #17181c; color: #fbd530; font: 800 10px/1.1 "Onest", system-ui, sans-serif; rotate: -4deg; z-index: 1; }
.md-say { left: 2%; top: 4%; z-index: 7; max-width: 44%; margin: 0; padding: 14px 16px 13px; color: #17181c; scale: 0; transform-origin: 70% 100%;
  font: 800 clamp(14px, 1.15vw, 18px)/1.25 "Onest", system-ui, sans-serif; border: 0 solid transparent;
  border-image: url("paper/card-white.webp?v=1") 40 fill / 26px / 12px stretch; }
.md-say::after { content: ""; position: absolute; right: 18%; bottom: -18px; width: 22px; height: 22px; background: #f4f3ef; border: 2px solid #17181c; border-top: 0; border-left: 0; rotate: 35deg; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.md-cursor { z-index: 8; width: 2.6%; height: auto; translate: -12% -6%; pointer-events: none; filter: drop-shadow(1px 2px 0 rgb(0 0 0 / 35%)); }
.md-cursor path { fill: #fbfaf6; stroke: #17181c; stroke-width: 1.6; stroke-linejoin: round; }
.md-click { z-index: 7; width: 5%; aspect-ratio: 1; margin: -2.5% 0 0 -2.5%; border: 3px solid #fbd530; border-radius: 50%; opacity: 0; pointer-events: none; box-shadow: 0 0 0 2px #17181c; }
.md-mouse { transform-origin: 50% 100%; }

/* диспетчер — бумажная кукла: тело, челюсть (говорит), пальцы (щёлкают); story-src/make_dispatcher_parts.py */
.md-disp { aspect-ratio: 1317 / 1396; }
.md-disp > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.md-disp__jaw { transform-origin: 26.96% 31.66%; }  /* по линиям владельца, 18.11 */
.md-disp__fingers { transform-origin: 79.5% 80.8%; }
/* мышь — под пальцами, рука лежит на ней */
.md-mouse { left: 50.5%; top: 85.5%; width: 7.6%; rotate: -10deg; }

/* ---------- 18.11: картинки крупнее (владелец: «картинки сделай больше») */
@media (min-width: 901px) {
  main > section#modes .modes-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr) !important; gap: 36px !important; }
  .ag-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  main > section#ticket .step-card__shot:not(.step-card__shot--wide) { height: min(45vh, 470px) !important; width: calc(min(45vh, 470px) * 0.545) !important; }
  .ag-art { transform: scale(1.06); transform-origin: 60% 70%; }
}

/* ---------- 18.11 жилица крупнее; вырезки внутри экрана и не ложатся на текст (владелец: «текст аккуратнее, чтобы не перекрывал») */
@media (min-width: 901px) {
  .ag-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .ag-art { transform: translateY(6%) scale(1.12); transform-origin: 50% 80%; }
  /* правый край: с учётом scale(1.12) вырезки кончаются в пределах экрана и на 1280 */
  #angry .ag-fifth { left: -4%; top: 3%; width: 48%; }
  #angry .ag-busy { left: 46%; top: 0; width: 47%; }
  #angry .ag-grawlix { left: 71%; top: 13%; width: 23%; }
  #angry .ag-again { left: 66%; top: 52%; width: 28%; }
  #angry .ag-bolt-a { left: 84%; top: 66%; }
}
/* телефон: заголовок → жилица во всю ширину → текст; вырезки над головой и по бокам, лицо открыто */
@media (max-width: 900px) {
  .ag-stage { align-items: start; padding: calc(var(--v3-nav, 64px) + 12px) 0 14px; }
  .ag-grid { gap: 8px; }
  .ag-text { display: contents; }
  .ag-text h2 { order: 0; }
  .ag-art { order: 1; justify-self: center; width: min(100%, calc((100svh - var(--v3-nav, 64px) - 290px) * .76)); aspect-ratio: .76; margin-top: 14px; }
  .ag-text .t-lead { order: 2; margin-top: 0; font-size: 15px; line-height: 1.42; }
  #angry .ag-woman { left: -6%; width: 112% !important; }
  #angry .ag-fifth { left: -2%; top: 1%; width: 52%; rotate: -6deg; }
  #angry .ag-busy { left: 50%; top: 2%; width: 50%; rotate: 5deg; }
  #angry .ag-hello { left: 2%; top: 12%; width: 42%; rotate: 5deg; }
  #angry .ag-grawlix { left: 74%; top: 11%; width: 25%; }
  #angry .ag-steam-a { left: 44%; top: 17%; width: 11%; }
  #angry .ag-steam-b { left: 64%; top: 16%; width: 8%; }
  #angry .ag-leak { left: 0; top: 30%; width: 36%; }
  #angry .ag-bolt-b { left: 33%; top: 27%; width: 6%; }
  #angry .ag-again { left: 73%; top: 52%; width: 27%; }
  #angry .ag-bang { left: 3%; top: 49%; width: 8%; }
  #angry .ag-bolt-a { left: 88%; top: 65%; width: 8%; }
  #angry .ag-calm { left: 3%; top: 60%; width: 94%; }
  #angry .ag-text h2 { transition: opacity .3s !important; }
  #angry.is-phone .ag-text h2 { opacity: 0 !important; }
}

/* ---------- 18.11 №01 «куда уйдёт заявка»: плашки из той же глянцевой рваной бумаги, что по всему сайту
   (белая — карточка, чёрная — строка заявки и экран робота, жёлтая — подсказка «ваш ход»). Без кремового, без комиксных теней. */
#call .st h3 { font-weight: 800; letter-spacing: -.02em; color: #17181c; }
#call .st-text { color: #3d4048; }
#call .deskrow, #call .st.is-open .deskrow { padding: 14px 16px; background: none !important; color: #fbfaf6 !important; box-shadow: none;
  border: 0 solid transparent !important; border-radius: 0; border-image: url("paper/card-black.webp?v=1") 40 fill / 26px / 12px stretch !important; }
#call .deskrow .dr-main b { color: #fbfaf6; }
#call .deskrow :is(.dr-main small, .dr-who), #call .st.is-open .deskrow :is(.dr-main small, .dr-who) { color: rgb(251 250 246 / 70%) !important; }
#call .dr-what { background: #fbd530 !important; color: #17181c !important; border-radius: 4px; font-weight: 800; }
#call .deskrow.is-urgent .dr-what { background: #d32020 !important; color: #fff !important; }
#call .deskrow.is-assigned .dr-what { background: #fbfaf6 !important; color: #17181c !important; }
#call .st-assign { min-height: 48px; padding: 0 22px; border: 0 !important; border-radius: 999px; background: #17181c !important; color: #fbfaf6 !important; font-weight: 700; box-shadow: none; }
#call .st-assign:not(:disabled) { animation: callTurn18 1.4s ease-in-out infinite; }
#call .st-assign:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgb(0 0 0 / 22%); }
#call .st-assign:disabled { background: transparent !important; color: rgb(23 24 28 / 50%) !important; border: 1.5px solid rgb(23 24 28 / 22%) !important; }
@keyframes callTurn18 { 0%, 100% { box-shadow: 0 0 0 0 rgb(23 24 28 / 45%); } 50% { box-shadow: 0 0 0 8px rgb(23 24 28 / 0%); } }
#call .lcd { padding: 14px 16px; background: none; box-shadow: none; border: 0 solid transparent; border-radius: 0;
  border-image: url("paper/card-black.webp?v=1") 40 fill / 26px / 12px stretch; }
#call .call-grid:has(#device[data-state="idle"]) #st-desk .st-live::before { padding: 9px 14px 8px; background: none; border: 0 solid transparent; border-radius: 0;
  border-image: url("paper/card-sun.webp?v=1") 40 fill / 22px / 10px stretch; font-weight: 800; transform: rotate(-1.2deg); }
#call .track li { background: transparent; border-color: rgb(23 24 28 / 22%); color: #3d4048; }

/* ---------- 18.11 обзор (#overview): картинка занимает весь низ плитки — без пустых полей; ряды одной высоты.
   Чертёж — крупный фрагмент с модемом и выносками (modem-drawing-iso.svg), а не лист A3 мелким шрифтом. */
main > section.tiles .tile { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 22px !important;
  min-height: 0 !important; padding-bottom: 0 !important; overflow: hidden !important; }
main > section.tiles .tile .tile__pic { position: relative !important; inset: auto !important; flex: 1 1 auto !important; width: auto !important; height: auto !important;
  min-height: 300px !important; margin: 0 !important; display: block !important; z-index: 1; }
main > section.tiles .tile .tile__pic img { position: absolute !important; left: 50%; top: 0; translate: -50% 0; height: auto !important; max-width: none !important;
  max-height: none !important; object-fit: initial !important; box-shadow: none; }
main > section.tiles .tile .tile__pic--shot img { width: 100% !important; top: 8px; rotate: -1.5deg; filter: drop-shadow(0 18px 20px rgb(0 0 0 / 28%)); }
main > section.tiles .tile .tile__pic--cut img[src*="cut-nokia"] { width: min(48%, 300px) !important; rotate: -7deg; top: 6px; }
/* у вырезки диспетчера фигура в левой половине — сдвигаем, чтобы лицо было по центру плитки */
main > section.tiles .tile .tile__pic--cut img[src*="cut-dispatcher"] { width: min(118%, 640px) !important; left: 72%; top: 0; }
main > section.tiles .tile .tile__pic--bp img { width: 100% !important; top: 6px; rotate: -1deg; filter: drop-shadow(0 16px 18px rgb(0 0 0 / 30%)); }
@media (min-width: 901px) {
  main > section.tiles .tiles__grid { grid-auto-rows: clamp(600px, 46vw, 690px) !important; }
}
@media (max-width: 900px) {
  main > section.tiles .tile { padding-top: 34px !important; }
  main > section.tiles .tile .tile__pic { flex: none !important; min-height: 0 !important; height: min(76vw, 420px) !important; }
  /* снимок программы и чертёж — во всю ширину по своей высоте, без пустоты под ними */
  main > section.tiles .tile :is(.tile__pic--shot, .tile__pic--bp) { height: auto !important; padding-bottom: 30px; }
  main > section.tiles .tile :is(.tile__pic--shot, .tile__pic--bp) img { position: static !important; translate: none; display: block; }
}

/* ---------- 18.11 мастер: меню, подписи клавиш, попытки и журнал — та же глянцевая рваная бумага, что везде */
.ms-menu { padding: 14px; background: none; border-radius: 0; box-shadow: none; border: 0 solid transparent;
  border-image: url("paper/card-black.webp?v=1") 40 fill / 30px / 14px stretch; }
.ms-menu__hl { left: 12px; right: 12px; border-radius: 0; background: none; border: 0 solid transparent;
  border-image: url("paper/card-sun.webp?v=1") 40 fill / 16px / 5px stretch; }
.ms-btn { border-radius: 0; }
.ms-btn:hover { background: rgb(251 250 246 / 7%); }
.ms-btn__n { border-radius: 3px; }
.ms-log { min-height: 0; padding: 20px 22px 18px; border: 0 solid transparent; border-image: url("paper/card-white.webp?v=1") 40 fill / 28px / 14px stretch; }
.ms-log:empty::before { content: "Здесь будет видно, что делает робот: кому звонит и что слышит мастер."; font: 500 15px/1.45 "Onest", system-ui, sans-serif; color: #3d4048; }
.ms-key > span { padding: 7px 11px 6px; background: none; border-radius: 0; border: 0 solid transparent;
  border-image: url("paper/card-black.webp?v=1") 40 fill / 14px / 4px stretch; }
.ms-tries li { border: 0 solid transparent; border-radius: 0; background: none !important; box-shadow: none !important;
  border-image: url("paper/card-white.webp?v=1") 40 fill / 18px / 6px stretch; transition: color .25s, translate .25s; }
.ms-tries li.is-now { border-image-source: url("paper/card-sun.webp?v=1"); }
.ms-tries li:is(.is-miss, .is-ok, .is-alarm) { border-image-source: url("paper/card-black.webp?v=1"); }
.ms-tries li.is-alarm { color: #fbfaf6; }
.ms-tries li.is-alarm b { background: #d32020; border-color: #d32020; color: #fff; }

/* ---------- 18.11 все плашки в одном стиле: выбранный шаг у жильцов — жёлтая рваная бумага; шаги заявки — белая */
.app-steps li { border-left: 0; padding: 16px 18px; border: 0 solid transparent; transition: color .25s; }
.app-steps li.is-on { background: none; border-image: url("paper/card-sun.webp?v=1") 40 fill / 24px / 10px stretch; }
/* poster.css красит текст #resident светлым через id — перебиваем тем же весом */
main > section#resident .resident-text .app-steps li.is-on::before, main > section#resident .resident-text .app-steps li.is-on b { color: #17181c !important; }
main > section#resident .resident-text .app-steps li.is-on span { color: rgb(23 24 28 / 82%) !important; }
main > section#start .next-steps li { background: none !important; box-shadow: none !important; border-radius: 0 !important; border: 0 solid transparent !important;
  border-image: url("paper/card-white.webp?v=1") 40 fill / 24px / 10px stretch !important; }

/* ---------- 18.11 №06 «Одна заявка»: закреплённый слайд, крупный телефон, шесть настоящих экранов (v4.js) */
main > section#ticket { padding: 0 !important; }
.tk-stage { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; align-items: center;
  min-height: 100vh; min-height: 100svh; padding-top: calc(var(--v3-nav, 72px) + 20px); padding-bottom: 24px; --tk-h: min(calc(100svh - var(--v3-nav, 72px) - 70px), 800px); }
.tk-text h2 { max-width: 12ch !important; margin: 0; }
.tk-lead { margin: 16px 0 0; max-width: 38ch; font: 500 clamp(16px, 1.25vw, 19px)/1.45 "Onest", system-ui, sans-serif; color: #17181c; }
.tk-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: tk; max-width: 560px; }
.tk-steps li { counter-increment: tk; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 18px; border: 0 solid transparent; color: rgb(23 24 28 / 62%); transition: color .25s; }
.tk-steps li::before { content: counter(tk, decimal-leading-zero); grid-row: span 2; font: 800 22px/1.2 ui-monospace, Menlo, Consolas, monospace; }
.tk-steps b { font: 800 clamp(18px, 1.5vw, 22px)/1.25 "Onest", system-ui, sans-serif; letter-spacing: -.02em; }
.tk-steps span { margin-top: 4px; font: 500 15px/1.45 "Onest", system-ui, sans-serif; display: none; }
.tk-steps li.is-on { color: #fbfaf6; border-image: url("paper/card-black.webp?v=1") 40 fill / 24px / 10px stretch; }
.tk-steps li.is-on::before { color: #fbd530; }
.tk-steps li.is-on span { display: block; color: rgb(251 250 246 / 82%); }
.tk-devices { position: relative; height: var(--tk-h); }
.tk-dev { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; visibility: hidden; }
.tk-dev.is-on, .tk-devices.is-live .tk-dev { visibility: visible; }
/* телефон: чёрная рамка, экран целиком, за ним — рваный лист бумаги (коллаж) */
.tk-phone { position: relative; height: 100%; aspect-ratio: 540 / 1175; padding: 10px; border-radius: 46px; background: #0f1013;
  box-shadow: inset 0 0 0 2px #34353b, 0 40px 60px -30px rgb(0 0 0 / 60%); }
.tk-phone::before { content: ""; position: absolute; z-index: -1; inset: 4% -16% 2% -12%; rotate: -4deg; border: 0 solid transparent;
  border-image: url("paper/card-white.webp?v=1") 40 fill / 30px / 14px stretch; }
.tk-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; }
.tk-desk { position: relative; width: min(100%, 780px); aspect-ratio: 1440 / 900; padding: 10px; border-radius: 16px; background: #0f1013;
  box-shadow: inset 0 0 0 2px #34353b, 0 40px 60px -30px rgb(0 0 0 / 60%); rotate: -1.2deg; }
.tk-desk::before { content: ""; position: absolute; z-index: -1; inset: -8% -5% -10% -6%; rotate: 2.5deg; border: 0 solid transparent;
  border-image: url("paper/card-white.webp?v=1") 40 fill / 30px / 14px stretch; }
.tk-desk img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
/* наклейка «на что смотреть»: жёлтая рваная бумага, заходит на край экрана */
.tk-note { position: absolute; z-index: 2; right: calc(100% - 34px); max-width: 260px; margin: 0; padding: 12px 16px 11px; rotate: -3deg;
  font: 800 clamp(15px, 1.15vw, 18px)/1.25 "Onest", system-ui, sans-serif; color: #17181c; border: 0 solid transparent;
  border-image: url("paper/card-sun.webp?v=1") 40 fill / 22px / 10px stretch; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 22%)); }
.tk-note::after { content: "→"; margin-left: 8px; }
.tk-note--top { top: 12%; }
.tk-note--up { top: 29%; }
.tk-note--mid { top: 60%; }
.tk-note--low { top: 78%; }
.tk-note--desk { top: 34%; right: auto; left: -6%; }
.tk-note--desk::after { content: ""; margin: 0; }
@media (max-width: 900px) {
  .tk-stage { grid-template-columns: 1fr; gap: 10px; align-content: start; padding-top: calc(var(--v3-nav, 64px) + 10px); padding-bottom: 12px;
    --tk-h: min(calc(100svh - var(--v3-nav, 64px) - 250px), 640px); }
  .tk-text { display: contents; }
  .tk-text h2 { order: 0; font-size: clamp(28px, 8vw, 40px) !important; max-width: 14ch !important; }
  .tk-lead { display: none; }
  .tk-devices { order: 1; }
  .tk-steps { order: 2; margin: 6px 0 0; }
  .tk-steps li:not(.is-on) { display: none; }
  .tk-steps li { padding: 12px 14px; }
  .tk-steps b { font-size: 17px; }
  .tk-steps span { font-size: 14px; }
  .tk-phone { padding: 7px; border-radius: 32px; }
  .tk-phone img { border-radius: 26px; }
  .tk-phone::before { inset: 3% -10% 1% -8%; }
  .tk-note { right: auto; left: calc(100% - 46px); max-width: 44vw; font-size: 13px; padding: 9px 12px 8px; rotate: 3deg; }
  .tk-note::after { content: ""; margin: 0; }
  .tk-note::before { content: "← "; }
  .tk-note--desk { left: 2%; top: -14%; }
  .tk-note--desk::before { content: ""; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-dev { position: relative; inset: auto; visibility: visible; margin-bottom: 40px; }
  .tk-devices { height: auto; }
  .tk-devices .tk-phone { height: var(--tk-h); }
}
/* старые правила раздела (лента) делали .wrap столбцом — для нового слайда сетка */
main > section#ticket > .wrap.tk-stage, main > section#ticket .pin-spacer > .wrap.tk-stage { display: grid !important; flex-direction: initial; justify-content: initial;
  width: min(1320px, calc(100% - 48px)); margin-inline: auto; padding: calc(var(--v3-nav, 72px) + 20px) 0 24px; }
.tk-devices { flex: none; }
@media (max-width: 900px) {
  main > section#ticket > .wrap.tk-stage, main > section#ticket .pin-spacer > .wrap.tk-stage { width: calc(100% - 32px); padding: calc(var(--v3-nav, 64px) + 10px) 0 12px; }
}
/* размеры без процентов: телефон — ровно высота сцены; раздел — во всю ширину с полями (закрепление держит ширину) */
main > section#ticket > .wrap.tk-stage, main > section#ticket .pin-spacer > .wrap.tk-stage { box-sizing: border-box; width: 100% !important; max-width: none !important; margin: 0 !important;
  padding-left: max(24px, calc((100vw - 1320px) / 2)) !important; padding-right: max(24px, calc((100vw - 1320px) / 2)) !important; --tk-h: min(calc(100svh - var(--v3-nav, 72px) - 120px), 780px); }
.tk-phone { height: var(--tk-h); width: auto; }
.tk-note { width: max-content; max-width: 250px; }
@media (max-width: 900px) {
  main > section#ticket > .wrap.tk-stage, main > section#ticket .pin-spacer > .wrap.tk-stage { padding-left: 16px !important; padding-right: 16px !important;
    --tk-h: min(calc(100svh - var(--v3-nav, 64px) - 268px), 620px); }
  .tk-note, .tk-note--desk { left: 50%; right: auto; top: -12px; translate: -50% 0; max-width: 92%; rotate: -2deg; }
  .tk-note--desk { top: -18%; }
  .tk-note::before, .tk-note::after { content: none; }
}

/* номер шага явно: на телефоне видна только текущая строка, счётчик CSS тогда всегда «01» */
.tk-steps li:nth-child(1)::before { content: "01"; }
.tk-steps li:nth-child(2)::before { content: "02"; }
.tk-steps li:nth-child(3)::before { content: "03"; }
.tk-steps li:nth-child(4)::before { content: "04"; }
.tk-note--desk { left: -3%; }

/* ---------- 18.11 приложения в телефонах крупнее (владелец: «сделай намного больше телефон, а то не видно») */
.app-scr { box-shadow: -14px 0 26px rgb(0 0 0 / 22%); }
@media (min-width: 901px) {
  main > section#resident .app-phone { width: auto; height: min(calc(100svh - var(--v3-nav, 72px) - 110px), 800px); }
  .ap-res__phone { width: min(100%, 480px); margin: -70px 0 -90px; }
}
@media (max-width: 900px) {
  main > section#resident .app-phone { width: min(88vw, 400px); }
  .ap-res__phone { width: min(94vw, 440px); margin: 0 auto -50px; }
}

/* ---------- 18.11 мастер понятнее: подсказка «что нажать» над телефоном, подписи у попыток и журнала */
.ms-now { position: relative; z-index: 4; margin: 0 0 14px; padding: 14px 18px 13px; max-width: 520px;
  font: 800 clamp(16px, 1.3vw, 19px)/1.3 "Onest", system-ui, sans-serif; color: #17181c; letter-spacing: -.01em;
  border: 0 solid transparent; border-image: url("paper/card-sun.webp?v=1") 40 fill / 24px / 10px stretch; rotate: -1deg; transform-origin: 20% 50%; }
.ms-tries__cap { position: absolute; right: 2%; bottom: calc(4% - 30px); z-index: 2; margin: 0; max-width: 320px; text-align: right;
  font: 600 13px/1.35 "Onest", system-ui, sans-serif; color: rgb(23 24 28 / 72%); }
.ms-btn__k { display: none !important; }
.ms-btn { grid-template-columns: 30px 1fr; }
.ms-ask { font: 800 15px/1.3 "Onest", system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; margin: 28px 0 10px !important; }
.ms-log__h { margin: 22px 0 0; font: 800 15px/1.3 "Onest", system-ui, sans-serif; color: #17181c; }
.ms-log { margin-top: 8px !important; }
@media (max-width: 900px) {
  main > section#master .ms-log__h { order: 6; }
  main > section#master .ms-log { order: 7; }
  .ms-now { margin: 18px 0 6px; font-size: 16px; }
  .ms-stage { min-height: 600px; }
  .ms-tries__cap { left: 0; right: 0; bottom: -36px; max-width: none; text-align: center; }
  main > section#master .ms-ask { margin-top: 48px !important; }
}

/* ---------- 19.11 ноутбук (#desk): пока 3D-модель грузится — её же первый кадр картинкой (poster.js снимает is-ready);
   закрепление раздела создаётся сразу, страница не прыгает, когда модель догружается */
.pz-3d.is-near:not(.is-ready) { background: url("laptop-poster.webp?v=2") center / contain no-repeat; }  /* is-near — когда модель начала грузиться */
/* на сенсорных экранах «наведение» залипает после нажатия — подпись клавиши только у подсказанной */
@media (hover: none) { .ms-key:not(.is-hint) > span { opacity: 0 !important; } }
/* облачко робота — под подсказкой, а не под ней спрятано */
.ms-bubble { top: 96px; }
@media (max-width: 900px) { .ms-bubble { top: 128px; } }

/* 19.11: пока закреплён слайд «Одна заявка» (v4.js), нижняя полоса с кнопкой уезжает — не закрывает текст шага */
@media (max-width: 900px) {
  :root.pz-nobar body > nav.actionbar { transform: translateY(100%) !important; visibility: hidden !important; transition: transform .24s ease, visibility 0s .24s !important; }
}
