/* Blaze — one small motion per case page (instead of the eight-tiles merge repeated on almost every page,
   each page gets its own, just as plain: dark tiles, one white card). The merge itself stays only on NOSKY, where eight checks
   really became one task (projekt.css).
   Timing comes from projekt.js: a figure with [data-steps] counts --s (and [data-s]) up while on screen. Every moving part carries
   --at, the step it happens on; --on turns 1 from that step and --off is the opposite, so CSS only says where a part goes and the
   transitions do the motion. Step 0 sets everything back unseen (.is-reset), the last step fades the picture out (.is-out).
   Reduced motion: no steps, the finished picture (data-rest). */

.pm * { --on: clamp(0, calc(var(--s, 0) - var(--at, 999) + 1), 1); --off: calc(1 - var(--on)); }
.pm__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); transition: opacity .5s ease; }
.pm.is-reset .pm__stage, .pm.is-out .pm__stage { opacity: 0; }
.pm.is-reset *, .pm.is-reset *::before, .pm.is-reset *::after { transition: none !important; }
.pm :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.pm :where(p) { margin: 0; }
.pm-tile { border-radius: 12px; background: #1d1d20; font-size: 15px; line-height: 1.25; color: var(--fg); text-wrap: balance; }
.pm-card { border-radius: 14px; background: var(--fg); color: #0A0A0A; }
.pm-card b { display: block; font: 600 17px/1.25 var(--hf), sans-serif; }
.pm-card .pc-sm { display: block; font-size: 13px; color: rgba(10, 10, 10, .6); }
/* a round tick: an empty ring that fills once its step comes (dark on the white card, light on a dark tile) */
.pm-tick { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #0A0A0A; }
.pm-tick::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: var(--on); transform: scale(calc(.5 + .5 * var(--on)));
  background: #0A0A0A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23F4F749' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pm-tick--light { box-shadow: inset 0 0 0 2px var(--fg); }
.pm-tick--light::after { background-color: var(--fg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230A0A0A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pm-in { opacity: var(--on); transform: translateY(calc(var(--off) * 10px)); transition: opacity .5s ease, transform .6s cubic-bezier(.3, .6, .2, 1); }

/* Prodator: eight separate tables lie about loose, click one by one into the rows of one table, and the table gets its name */
.pm-db { display: grid; gap: 10px; width: min(560px, 100%); --k: 1; }
.pm-db__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.pm-db__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: 14px;
  background: rgb(255 255 255 / calc(.04 * var(--on))); box-shadow: inset 0 0 0 1px rgb(255 255 255 / calc(.08 * var(--on))); transition: background .5s ease, box-shadow .5s ease; }
.pm-db__rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px;
  transform: translate(calc(var(--x) * var(--k) * var(--off)), calc(var(--y) * var(--k) * var(--off))) rotate(calc(var(--r) * var(--off)));
  box-shadow: 0 10px 22px rgb(0 0 0 / calc(.4 * var(--off))); transition: transform .6s cubic-bezier(.5, 0, .25, 1), box-shadow .6s ease; }
.pm-db__rows li::after { content: ""; flex: none; width: 34%; height: 6px; border-radius: 3px; background: rgba(248, 248, 248, .14); }

/* Echo: one alert in the middle, a pulse goes out, and every phone around lights up at the same moment */
.pm-echo { --rx: 36%; --ry: 30%; --cy: 44%; }
.pm-echo__card, .pm-echo__ring { position: absolute; left: 50%; top: var(--cy); }
.pm-echo__card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; white-space: nowrap; z-index: 1;
  opacity: var(--on); transform: translate(-50%, -50%) scale(calc(.92 + .08 * var(--on))); transition: opacity .5s ease, transform .6s cubic-bezier(.3, .6, .2, 1); }
.pm-echo__ring { width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--fg); opacity: 0; }
.pm-echo[data-s="3"] .pm-echo__ring { animation: pm-ring 1.3s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes pm-ring { from { opacity: .6; transform: scale(.7); } to { opacity: 0; transform: scale(4.2); } }
.pm-echo__phones li { position: absolute; width: 30px; height: 54px; margin: -27px 0 0 -15px; border-radius: 8px;
  left: calc(50% + var(--rx) * cos(var(--a))); top: calc(var(--cy) + var(--ry) * sin(var(--a)));
  background: rgb(calc(29 + 219 * var(--on)) calc(29 + 219 * var(--on)) calc(32 + 216 * var(--on)));
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / calc(.1 * var(--off))); transform: scale(calc(1 + .1 * var(--on))); transition: background .35s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pm-echo__phones li::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 10px; border-radius: 3px; background: #0A0A0A;
  opacity: var(--on); transition: opacity .35s ease .1s; }
.pm-echo__chips { position: absolute; left: 16px; right: 16px; bottom: clamp(14px, 3vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pm-echo__chips li { padding: 5px 10px; border-radius: 99px; background: #1d1d20; font-size: 12px; line-height: 1.3; color: var(--muted); }

/* Izzy: the first version's steps; the four waiting ones get crossed out, then the new order's three steps tick and the order is in */
.pm-izzy { display: grid; width: min(620px, 100%); }
.pm-izzy > * { grid-area: 1 / 1; align-self: center; }
.pm-izzy__old { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; opacity: var(--off); transform: translateY(calc(var(--on) * -10px));
  transition: opacity .5s ease, transform .6s ease; }
.pm-izzy__old li { position: relative; display: grid; place-items: center; padding: 18px 10px; text-align: center;
  opacity: calc(1 - .72 * var(--on)); transition: opacity .5s ease .25s; }
.pm-izzy__old li::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--fg);
  transform: scaleX(var(--on)); transform-origin: 0 50%; transition: transform .4s cubic-bezier(.6, 0, .3, 1); }
.pm-izzy__new { display: grid; gap: 16px; justify-items: center; }
.pm-izzy__new ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.pm-izzy__new li { display: flex; align-items: center; gap: 12px; padding: 16px; }
.pm-izzy__card { display: flex; align-items: center; gap: 14px; padding: 16px 22px; }

/* RozpočetPro: the drawings and papers go into the budget one by one, each one writing its line, and the total comes last */
.pm-rp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 24px; align-items: center; width: min(640px, 100%); --gx: 56px; --gy: 0px; }
.pm-rp__files { display: grid; gap: 8px; }
.pm-rp__files li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px;
  opacity: var(--off); transform: translate(calc(var(--on) * var(--gx)), calc(var(--on) * var(--gy))) scale(calc(1 - .1 * var(--on)));
  transition: opacity .45s ease .1s, transform .55s cubic-bezier(.5, 0, .25, 1); }
.pm-rp__files li::before { content: ""; flex: none; width: 10px; height: 13px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px rgba(248, 248, 248, .4); }
.pm-rp__card { padding: 18px 20px; }
.pm-rp__lines { display: grid; gap: 10px; margin: 16px 0; }
.pm-rp__lines li, .pm-rp__total { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 14px; align-items: center; }
.pm-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(10, 10, 10, .07); overflow: hidden; }
.pm-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 100%); border-radius: 4px; background: rgba(10, 10, 10, .72);
  transform: scaleX(var(--on)); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.3, .6, .2, 1) .2s; }
.pm-rp__total { padding-top: 14px; border-top: 1px solid rgba(10, 10, 10, .1); font-size: 14px; font-weight: 600; }

/* SC Fajne: the site is a signpost; the white card in the middle, its six sections round it, lit one after another */
.pm-fj { display: grid; gap: 12px; width: min(560px, 100%); }
.pm-fj ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pm-fj li { --now: calc(clamp(0, calc(var(--s, 0) - var(--at) + 1), 1) - clamp(0, calc(var(--s, 0) - var(--at)), 1));
  display: grid; place-items: center; padding: 18px 10px; text-align: center;
  background: rgb(calc(29 + 219 * var(--now)) calc(29 + 219 * var(--now)) calc(32 + 216 * var(--now)));
  color: rgb(calc(248 - 238 * var(--now)) calc(248 - 238 * var(--now)) calc(248 - 238 * var(--now)));
  transform: scale(calc(1 + .04 * var(--now))); transition: background .4s ease, color .4s ease, transform .5s cubic-bezier(.3, .6, .2, 1); }
.pm-fj__card { padding: 18px 22px; text-align: center; }

/* CF Hero: the inhalation diary fills day by day, and a full week earns a badge */
.pm-cf { width: min(520px, 100%); padding: 22px 24px; }
.pm-cf__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 20px 0 18px; }
.pm-cf__days li { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: rgba(10, 10, 10, .55); }
.pm-cf__days .pm-tick { width: 30px; height: 30px; }
.pm-cf__badge { display: flex; align-items: center; gap: 10px; width: max-content; margin: 0 auto; padding: 8px 16px 8px 10px; border-radius: 99px;
  background: #0A0A0A; color: var(--fg); font-size: 14px; font-weight: 600;
  opacity: var(--on); transform: scale(calc(.5 + .5 * var(--on))); transition: opacity .3s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.pm-cf__badge::before { content: ""; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.8l2.5 5.2 5.7.7-4.2 3.9 1.1 5.6L10 14.4l-5.1 2.8 1.1-5.6-4.2-3.9 5.7-.7z' fill='%23F4F749'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 900px) {
  .pm-db { --k: .3; }
  .pm-db__rows li::after { display: none; }
  .pm-echo { --rx: 39%; --ry: 31%; --cy: 42%; }
  .pm-echo__card { white-space: normal; width: max-content; max-width: 50%; padding: 12px 14px; gap: 10px; }
  .pm-echo__card b { font-size: 15px; }
  .pm-echo__phones li { width: 26px; height: 46px; margin: -23px 0 0 -13px; }
  .pm-izzy__old { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-izzy__old li { padding: 14px 10px; }
  .pm-izzy__new ol { grid-template-columns: 1fr; gap: 8px; }
  .pm-izzy__new li { padding: 12px 14px; }
  .pm-rp { grid-template-columns: 1fr; gap: 16px; --gx: 0px; --gy: 40px; }
  .pm-rp__files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pm-rp__files li { padding: 8px 10px; font-size: 13px; }
  .pm-rp__files li::before { display: none; }
  .pm-rp__lines { gap: 8px; margin: 12px 0; }
  .pm-cf { padding: 20px 16px; }
  .pm-cf__days { gap: 4px; }
  .pm-cf__days .pm-tick { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm__stage, .pm *, .pm *::before, .pm *::after { transition: none !important; animation: none !important; }
}

/* ---- the second motion on six pages: NOSKY's white checklist card (projekt.css .pc-report) had been copied to every
   page, where it only listed three features; NOSKY keeps it, the other six get a motion of their own in the same plain style. The
   figure keeps its band (.pc-report--plain, the client's colour) or its picture (.pm-rep--side: the picture left, the motion right).
   --to closes a part's window: --live is 1 from --at up to the step before --to (a digit giving way to the next, a cursor that comes
   and goes). A [data-s] keyframe only decorates (a tap); every state of the still picture comes from the steps. */
.pm-rep * { --live: calc(var(--on) * clamp(0, calc(var(--to, 999) - var(--s, 0)), 1)); }
.pm-rep .pm__stage { position: relative; inset: auto; width: 100%; padding: 0; isolation: isolate; }
.pm-rep--side .pm__stage { position: absolute; inset: 0 0 0 58%; width: auto; padding: 16px clamp(16px, 4vw, 56px) 16px 16px; }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pm-head .pc-sm { white-space: nowrap; }
.pm-num { font-variant-numeric: tabular-nums; }
/* a value that changes in place: every version in one grid cell, the current one shown */
.pm-swap { display: inline-grid; justify-items: end; }
.pm-swap > * { grid-area: 1 / 1; opacity: var(--live); transition: opacity .35s ease; }
/* a tap: a soft ring spreads from the middle of what was tapped (started by each motion's own [data-s] rule) */
.pm-tap { position: relative; }
.pm-tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(10, 10, 10, .22); opacity: 0; pointer-events: none; }
@keyframes pm-tap { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(2.4); } }
/* a mouse pointer that comes in, does its one thing and leaves */
.pm-cur { position: absolute; z-index: 1; width: 16px; height: 20px; opacity: var(--live); transform: translate(calc(var(--off) * 18px), calc(var(--off) * 14px)); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M1.5 1.5v14.2l3.6-3.4 2.3 5.4 2.6-1.1-2.3-5.3h5z' fill='%230A0A0A' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity .3s ease, transform .5s cubic-bezier(.3, .6, .2, 1); }

/* Prodator: the salespeople's records lie faint, nearly unseen; a thin line passes over the list, each record comes back into view
   as the line reaches it, and all five cases are found */
.pm-pd { width: min(440px, 100%); padding: 20px 22px; }
.pm-pd__list { position: relative; margin: 16px 0 0; }
.pm-pd__list ul { display: grid; gap: 8px; }
.pm-pd__list li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 42px; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 10px;
  background: rgba(10, 10, 10, .045); font-size: 14px; font-weight: 600; opacity: calc(.12 + .88 * var(--on)); transition: opacity .7s ease; }
.pm-pd__list li i { height: 6px; border-radius: 3px; background: rgba(10, 10, 10, .16); }
.pm-pd__list li i:first-of-type { width: var(--w, 80%); }
.pm-pd__scan { --p: clamp(0, calc((var(--s, 0) - 2) / 5), 1); position: absolute; left: -8px; right: -8px; top: calc(var(--p) * 100%); height: 2px; margin-top: -1px;
  border-radius: 1px; background: rgba(10, 10, 10, .5); opacity: var(--live); transition: top .6s linear, opacity .35s ease; }
.pm-pd__scan::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 34px; background: linear-gradient(rgba(10, 10, 10, 0), rgba(10, 10, 10, .06)); }
.pm-pd__done { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(10, 10, 10, .1); }
.pm-pd .pm-pd__done b { font-size: 16px; }

/* Echo: on a plain lock screen one notification slides in, opens into the detail, and the one person who knows something
   presses „Volat Policii ČR“ */
.pm-ec__phone { position: relative; width: 236px; height: 480px; border-radius: 40px; background: #0A0A0A;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), 0 24px 50px rgba(0, 0, 0, .28); }
.pm-ec__screen { position: absolute; inset: 8px; border-radius: 32px; background: #1d1d20; overflow: hidden; }
.pm-ec__screen::before { content: ""; position: absolute; left: 50%; top: 10px; width: 72px; height: 20px; margin-left: -36px; border-radius: 10px; background: #0A0A0A; }
.pm-ec__time { position: absolute; left: 0; right: 0; top: 54px; text-align: center; font: 600 46px/1 var(--hf), sans-serif; letter-spacing: -.02em; color: var(--fg);
  opacity: var(--off); transform: translateY(calc(var(--on) * -10px)); transition: opacity .4s ease, transform .6s ease; }
.pm-ec__slot { position: absolute; left: 10px; right: 10px; top: 132px; transform: translateY(calc(var(--on) * -44px)); transition: transform .6s cubic-bezier(.3, .6, .2, 1); }
.pm-ec__note { padding: 12px; border-radius: 18px; opacity: var(--on); transform: translateY(calc(var(--off) * -28px)) scale(calc(.96 + .04 * var(--on)));
  transition: opacity .45s ease, transform .6s cubic-bezier(.3, .6, .2, 1); }
.pm-ec__top { display: flex; align-items: center; gap: 10px; }
.pm-ec__top .pc-sm { font-size: 12px; }
.pm-ec .pm-ec__top b { font-size: 15px; }
.pm-ec__face { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e6e6e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='15' r='7' fill='%23a3a3a8'/%3E%3Cpath d='M6 40c1-9 7-14 14-14s13 5 14 14z' fill='%23a3a3a8'/%3E%3C/svg%3E") center / cover no-repeat; }
.pm-ec__more { display: grid; align-content: start; gap: 10px; height: calc(var(--on) * 218px); overflow: hidden; transition: height .6s cubic-bezier(.3, .6, .2, 1); }
.pm-ec__photo { display: block; height: 104px; margin-top: 12px; border-radius: 12px; background: #e6e6e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='15' r='7' fill='%23a3a3a8'/%3E%3Cpath d='M6 40c1-9 7-14 14-14s13 5 14 14z' fill='%23a3a3a8'/%3E%3C/svg%3E") 50% 100% / auto 88% no-repeat; }
.pm-ec__bar { display: block; width: var(--w); height: 7px; border-radius: 4px; background: rgba(10, 10, 10, .14); }
.pm-ec__call { display: block; margin-top: 4px; opacity: var(--on); transition: opacity .45s ease; }
.pm-ec__btn { display: grid; place-items: center; height: 44px; border-radius: 12px; overflow: hidden; background: #0A0A0A; color: var(--fg); font-size: 14px; font-weight: 600;
  transform: scale(calc(1 - .04 * var(--live))); transition: transform .25s ease; }
.pm-ec__btn .pm-swap { justify-items: center; }
.pm-ec__btn.pm-tap::after { background: rgba(248, 248, 248, .4); }
.pm-rep[data-s="7"] .pm-ec__btn::after { animation: pm-tap .8s cubic-bezier(.2, .6, .3, 1) forwards; }

/* Izzy: a day, then a time, the price shows, and paying turns the button into „Zaplaceno“, one tap after another */
.pm-iz { width: min(400px, 100%); padding: 20px 22px; }
.pm-iz__cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 6px; margin: 16px 0 0; text-align: center; font-size: 14px; }
.pm-iz__cal span { display: grid; place-items: center; height: 32px; border-radius: 50%; font-variant-numeric: tabular-nums; }
.pm-iz__cal .is-wd { height: 20px; font-size: 12px; color: rgba(10, 10, 10, .5); }
.pm-iz__cal .is-past { color: rgba(10, 10, 10, .3); }
.pm-iz .is-pick { background: rgb(10 10 10 / var(--on)); color: rgb(calc(10 + 238 * var(--on)) calc(10 + 238 * var(--on)) calc(10 + 238 * var(--on)));
  transition: background .3s ease, color .3s ease; }
.pm-iz__cal .is-pick { justify-self: center; width: 32px; }
.pm-iz__slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; }
.pm-iz__slots span { padding: 8px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .14); text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.pm-iz__price { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(10, 10, 10, .1); }
.pm-iz .pm-iz__price b { font-size: 15px; }
.pm-iz__price > i { flex: none; width: 64px; height: 10px; border-radius: 5px; background: #0A0A0A; transform: scaleX(var(--on)); transform-origin: 100% 50%;
  transition: transform .5s cubic-bezier(.3, .6, .2, 1) .1s; }
.pm-iz__pay { display: grid; place-items: center; height: 44px; margin: 16px 0 0; border-radius: 12px; overflow: hidden; font-size: 15px; font-weight: 600;
  background: rgb(10 10 10 / calc(1 - .93 * var(--on))); color: rgb(calc(248 - 238 * var(--on)) calc(248 - 238 * var(--on)) calc(248 - 238 * var(--on)));
  transition: background .4s ease, color .4s ease; }
.pm-iz__pay .pm-swap { justify-items: center; }
.pm-iz__pay.pm-tap::after { background: rgba(248, 248, 248, .4); }
.pm-rep[data-s="3"] .pm-iz__cal .pm-tap::after, .pm-rep[data-s="5"] .pm-iz__slots .pm-tap::after, .pm-rep[data-s="9"] .pm-iz__pay::after { animation: pm-tap .7s cubic-bezier(.2, .6, .3, 1) forwards; }

/* RozpočetPRO: the AI fills the rows in grey; the estimator's pointer rewrites one quantity and the total follows, the margin moves
   and the total follows again, and the offer comes out as a PDF with the firm's logo */
.pm-rb { position: relative; width: min(400px, 100%); padding: 20px 22px; }
.pm-rb__rows { display: grid; margin: 12px 0 0; font-size: 14px; }
.pm-rb__rows li, .pm-rb__total { display: grid; grid-template-columns: minmax(0, 1fr) 58px 88px; gap: 10px; align-items: center; }
.pm-rb__rows li { padding: 8px 0; border-bottom: 1px solid rgba(10, 10, 10, .07); color: rgba(10, 10, 10, .45); font-variant-numeric: tabular-nums; }
.pm-rb__rows li > :not(:first-child), .pm-rb__total > :last-child { justify-self: end; text-align: right; }
.pm-rb .is-hand { color: #0A0A0A; font-weight: 600; }
.pm-rb__q { position: relative; padding: 2px 6px; margin: -2px -6px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgb(10 10 10 / calc(.75 * var(--live))); transition: box-shadow .3s ease; }
.pm-rb__q .pm-cur { right: -12px; bottom: -16px; }
.pm-rb__margin { display: grid; grid-template-columns: auto minmax(0, 1fr) 42px; gap: 14px; align-items: center; margin: 14px 0 0; font-size: 14px; }
.pm-rb__margin > :last-child { justify-self: end; font-variant-numeric: tabular-nums; }
.pm-rb__track { --x: calc(33.3% + 16.7% * var(--on)); position: relative; height: 4px; border-radius: 2px; background: rgba(10, 10, 10, .12); }
.pm-rb__track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--x); border-radius: 2px; background: #0A0A0A; transition: width 1.1s cubic-bezier(.45, 0, .3, 1); }
.pm-rb__knob { position: absolute; left: var(--x); top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #0A0A0A;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .25); transition: left 1.1s cubic-bezier(.45, 0, .3, 1); }
.pm-rb__knob .pm-cur { left: 7px; top: 7px; }
.pm-rb__total { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid rgba(10, 10, 10, .12); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-rb__total > :first-child { grid-column: 1 / 3; }
.pm-rb__pdf { position: absolute; z-index: -1; left: -54px; bottom: 30px; display: grid; align-content: start; gap: 6px; width: 96px; height: 124px; padding: 12px 10px;
  border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
  opacity: var(--on); transform: translateX(calc(var(--off) * 64px)) rotate(calc(-6deg * var(--on))); transition: opacity .3s ease, transform .7s cubic-bezier(.3, .6, .2, 1); }
.pm-rb__pdf::after { content: "PDF"; position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: #0A0A0A; color: var(--fg); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.pm-rb__logo { width: 36px; height: 13px; margin-bottom: 4px; border-radius: 3px; background: #0A0A0A; color: var(--fg); font-size: 7px; font-weight: 700; line-height: 13px; text-align: center; letter-spacing: .08em; }
.pm-rb__pdf i { height: 4px; border-radius: 2px; background: rgba(10, 10, 10, .14); }

/* SC Fajne: a week of lessons; a tap on „Zdravotní“ leaves only the health lessons, each with its time and lektor */
.pm-sf { width: min(420px, 100%); padding: 18px 20px 20px; }
.pm-sf__filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.pm-sf__filters span { padding: 5px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .14); font-size: 12px; }
.pm-sf .is-pick { --x: var(--on); }
.pm-sf .is-was { --x: var(--off); }
.pm-sf :is(.is-pick, .is-was) { background: rgb(10 10 10 / var(--x)); color: rgb(calc(10 + 238 * var(--x)) calc(10 + 238 * var(--x)) calc(10 + 238 * var(--x)));
  transition: background .3s ease, color .3s ease; }
.pm-rep[data-s="3"] .pm-sf__filters .pm-tap::after { animation: pm-tap .7s cubic-bezier(.2, .6, .3, 1) forwards; }
.pm-sf__week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
.pm-sf__week > li { display: grid; align-content: start; gap: 6px; min-width: 0; }
.pm-sf__week > li > span { font-size: 12px; color: rgba(10, 10, 10, .5); }
.pm-sf__week p { display: grid; gap: 1px; padding: 7px 7px 8px; border-radius: 8px; font-size: 11px; line-height: 1.3; background: rgba(10, 10, 10, .05); white-space: nowrap; overflow: hidden;
  opacity: calc(1 - .9 * var(--on)); transition: opacity .6s ease, background .5s ease, color .5s ease; }
.pm-sf .pm-sf__week p b { display: block; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.3; }
.pm-sf__week p em { font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; }
.pm-sf__week p span { color: rgba(10, 10, 10, .55); transition: color .5s ease; }
.pm-sf__week p.is-health { opacity: 1; background: rgb(29 29 32 / calc(.05 + .95 * var(--on))); color: rgb(calc(10 + 238 * var(--on)) calc(10 + 238 * var(--on)) calc(10 + 238 * var(--on))); }
.pm-sf__week p.is-health span { color: rgb(calc(10 + 238 * var(--on)) calc(10 + 238 * var(--on)) calc(10 + 238 * var(--on)) / calc(.55 + .15 * var(--on))); }

/* CF Hero: the circle swells with „Nádech“ and shrinks with „Výdech“, and every breath adds one Kyslik */
.pm-br { width: min(380px, 100%); padding: 20px 22px 22px; }
.pm-br__coins { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: #0A0A0A; color: var(--fg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pm-br__coins::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--fg); }
.pm-br__coins .pm-swap > * { transform: scale(calc(.6 + .4 * var(--on))); transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pm-br__air { display: grid; place-items: center; height: 214px; margin: 10px 0 0; }
.pm-br__air > * { grid-area: 1 / 1; }
.pm-br__halo, .pm-br__core { width: 184px; height: 184px; border-radius: 50%; transition: transform 2s cubic-bezier(.45, 0, .55, 1); }
.pm-br__halo { background: rgba(10, 10, 10, .06); transform: scale(.66); }
.pm-br__core { background: #0A0A0A; transform: scale(.56); }
.pm-br__air > p { position: relative; display: grid; font: 600 17px/1 var(--hf), sans-serif; color: var(--fg); }
.pm-br__air > p span { grid-area: 1 / 1; text-align: center; opacity: 0; transition: opacity .5s ease; }
.pm-rep:is([data-s="2"], [data-s="3"], [data-s="6"], [data-s="7"], [data-s="10"], [data-s="11"]) .pm-br__halo { transform: scale(1.08); }
.pm-rep:is([data-s="2"], [data-s="3"], [data-s="6"], [data-s="7"], [data-s="10"], [data-s="11"]) .pm-br__core { transform: scale(.92); }
.pm-rep:is([data-s="2"], [data-s="3"], [data-s="6"], [data-s="7"], [data-s="10"], [data-s="11"]) .pm-br__in,
.pm-rep:is([data-s="4"], [data-s="5"], [data-s="8"], [data-s="9"], [data-s="12"], [data-s="13"]) .pm-br__out { opacity: 1; }

@media (max-width: 1200px) { .pm-sf__week { gap: 5px; } .pm-sf__week p { padding: 7px 5px 8px; } }
@media (max-width: 900px) {
  /* the picture above, the motion under it */
  .pc-shot.pm-rep--side { aspect-ratio: auto; display: grid; padding-bottom: 48px; }
  .pm-rep--side .pc-report__shot { position: relative; left: auto; top: auto; bottom: auto; transform: none; margin: 20px auto 0; }
  .pm-rep--side .pc-report__shot--render { width: 92%; height: auto; aspect-ratio: 4 / 3; }
  .pm-rep--side .pc-report__shot--page { width: 86%; }
  .pm-rep--side .pm__stage { position: relative; inset: auto; padding: 16px 16px 0; }
  .pm-rb__pdf { left: auto; right: 14px; bottom: auto; top: -70px; transform: translateY(calc(var(--off) * 56px)) rotate(calc(6deg * var(--on))); }
  .pm-sf__week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pm-sf__week > li:nth-child(5) { display: none; }
  .pm-iz, .pm-pd, .pm-rb { padding: 18px 16px; }
  .pm-pd__list li { grid-template-columns: 54px minmax(0, 1fr) 30px; gap: 10px; }
  .pm-br__air { height: 196px; }
  .pm-br__halo, .pm-br__core { width: 168px; height: 168px; }
}
