/* Сторінки продуктів Omni POS і Omni Beauty (27.10, план PEE2niGR): спільні заготовки — рамки пристроїв, вітрина ролей,
   розділи з екраном, графіки, «що входить у ціну», «незабаром», питання. Колір — змінні редакції (--mint, --mint-2, --mint-soft, --mint-ink). */

/* ---------- міні-меню розділів ---------- */
.pp-subnav { position: fixed; left: 0; right: 0; top: 68px; transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.pp-subnav.shown { transform: none; opacity: 1; pointer-events: auto; }
.pp-subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.pp-subnav .wrap::-webkit-scrollbar { display: none; }
.pp-subnav a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.pp-subnav a:hover { color: var(--ink); background: var(--surface-2); }
.pp-subnav a.on { color: #fff; background: var(--mint); }
section[id] { scroll-margin-top: 130px; }

/* ---------- рамки пристроїв ---------- */
.dv { position: relative; background: #0b0d0c; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.dv > .sc { position: absolute; inset: 8px; overflow: hidden; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 11px; line-height: 1.3; }
.dv-lap { width: 520px; aspect-ratio: 16 / 10; border-radius: 14px 14px 4px 4px; }
.dv-lap::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -14px; height: 14px; border-radius: 0 0 16px 16px; background: linear-gradient(#cfd5d3, #9aa3a0); }
.dv-tab { width: 360px; aspect-ratio: 4 / 3; border-radius: 22px; } .dv-tab > .sc { inset: 12px; border-radius: 10px; }
.dv-tab.port { width: 270px; aspect-ratio: 3 / 4; }
.dv-ph { width: 210px; aspect-ratio: 9 / 19; border-radius: 34px; } .dv-ph > .sc { inset: 8px; border-radius: 27px; padding-top: 22px; }
.dv-ph::before { content: ""; position: absolute; top: 15px; left: 50%; width: 56px; height: 15px; margin-left: -28px; border-radius: 10px; background: #0b0d0c; z-index: 2; }
.dv-tv { width: 480px; aspect-ratio: 16 / 9; border-radius: 8px; border-width: 6px; border-color: #1a1c1b; } .dv-tv > .sc { inset: 0; border-radius: 2px; }
.dv-tv::after { content: ""; position: absolute; left: 44%; right: 44%; bottom: -22px; height: 22px; background: linear-gradient(#2a2d2c, #161817); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.sc.dk { background: #141816; color: #e9efed; }

/* дрібні елементи екранів */
.sc-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 11.5px; }
.sc.dk .sc-bar { border-color: rgba(255, 255, 255, .08); }
.sc-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.sc-bar .sp { margin-left: auto; color: var(--muted); font-weight: 500; }
.sc-pad { padding: 10px; display: grid; gap: 7px; align-content: start; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 10px; white-space: nowrap; }
.chip.on { background: var(--mint); color: #fff; }
.row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: var(--surface-2); }
.sc.dk .row { background: rgba(255, 255, 255, .06); }
.row b { font-weight: 700; } .row .r { margin-left: auto; font-weight: 700; white-space: nowrap; }
.row small { display: block; color: var(--muted); font-size: 9.5px; }
.av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 10px; color: #fff; background: var(--mint); font-style: normal; }
.av.b { background: #6b7cc9; } .av.c { background: #c9a24a; } .av.d { background: #5aa58c; }
.btnx { display: grid; place-items: center; padding: 8px; border-radius: 9px; background: var(--mint); color: #fff; font-weight: 700; font-size: 11px; }
.btnx.gh { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.mut { color: var(--muted); }
.big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ok { color: var(--mint-ink); font-weight: 700; }

/* ---------- вітрина «усі екрани» (темний блок) ---------- */
.pp-show { overflow: hidden; }
.pp-show .sec-head { margin-inline: auto; text-align: center; align-items: center; }
.pp-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.pp-roles button { font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 10px 18px; border-radius: 999px; color: var(--dark-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--dark-line); transition: background .3s, color .3s, border-color .3s; }
.pp-roles button:hover { color: var(--dark-ink); }
.pp-roles button[aria-pressed="true"] { background: var(--mint); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -12px var(--mint-2); }
.pp-stage { display: flex; align-items: flex-end; justify-content: center; gap: 28px; min-height: 380px; }
.pp-stage .dv { transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s; }
.pp-stage .dv:not(.on) { opacity: .38; filter: saturate(.3) blur(.5px); transform: scale(.92); }
.pp-stage .dv.on { transform: translateY(-10px); }
.pp-cap { max-width: 640px; margin: 34px auto 0; text-align: center; min-height: 54px; color: var(--dark-muted); font-size: 16px; }
.pp-cap b { color: var(--dark-ink); }
.pp-cap.swap { animation: capIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1100px) { .pp-stage .dv-lap { width: 420px; } .pp-stage .dv-tab { width: 300px; } }
@media (max-width: 900px) {
  .pp-stage { min-height: 0; } .pp-stage .dv:not(.on) { display: none; } .pp-stage .dv.on { transform: none; }
  .pp-stage .dv-lap, .pp-stage .dv-tv { width: min(100%, 520px); } .pp-stage .dv-tab { width: min(100%, 380px); }
}

/* ---------- розділ: текст + екран ---------- */
.pp-feat .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pp-feat.flip .pp-txt { order: 2; }
.pp-feat.alt { background: var(--surface-2); }
.pp-txt { display: flex; flex-direction: column; gap: 14px; }
.pp-txt h2 { font-size: clamp(26px, 3vw, 36px); }
.pp-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.pp-list li { position: relative; padding-left: 30px; color: var(--ink); }
.pp-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pp-list li b { font-weight: 700; }
.pp-list li span { color: var(--muted); }
.pp-list li.soon::before { background: color-mix(in srgb, var(--warn) 18%, transparent); }
.soon-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); vertical-align: 1px; white-space: nowrap; }
.pp-vis { position: relative; display: flex; justify-content: center; align-items: center; gap: 18px; min-height: 360px; }
.pp-vis .dv { transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.js .pp-vis[data-reveal] { opacity: 1; transform: none; }
.js .pp-vis[data-reveal] .dv { opacity: 0; transform: translateY(40px) scale(.97); }
.js .pp-vis[data-reveal].in .dv { opacity: 1; transform: none; }
.js .pp-vis[data-reveal].in .dv + .dv { transition-delay: .15s; }
.pp-float { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; max-width: 230px; }
.pp-float b { display: block; font-size: 13.5px; }
.pp-float .mut { font-size: 12px; }
.js .pp-vis .pp-float { opacity: 0; transform: translateY(14px); transition: opacity .6s .5s, transform .6s .5s; }
.js .pp-vis.in .pp-float { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .pp-feat .wrap { grid-template-columns: 1fr; gap: 34px; } .pp-feat.flip .pp-txt { order: 0; }
  .pp-vis { min-height: 0; } .pp-vis .dv-lap { width: min(100%, 520px); } .pp-vis .dv-tab { width: min(100%, 380px); } .pp-vis .dv-tv { width: min(100%, 480px); }
}
@media (max-width: 560px) { .pp-vis .dv-ph + .dv-ph { display: none; } .pp-float { position: static; max-width: none; } .pp-vis { flex-direction: column; } }

/* ---------- кроки (онлайн-запис) ---------- */
.steps { position: relative; height: 100%; }
.steps > div { position: absolute; inset: 0; padding: 10px; display: grid; gap: 7px; align-content: start; opacity: 0; transform: translateX(30px); transition: opacity .5s, transform .5s; }
.steps > div.on { opacity: 1; transform: none; }
.steps > div.off { transform: translateX(-30px); }
.st-h { font-weight: 800; font-size: 13px; }
.st-n { display: flex; gap: 4px; } .st-n i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); } .st-n i.on { background: var(--mint); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.slots span { padding: 6px 0; text-align: center; border-radius: 7px; background: var(--surface-2); font-weight: 600; }
.slots span.on { background: var(--mint); color: #fff; } .slots span.x { opacity: .35; text-decoration: line-through; }

/* ---------- графіки ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--mint) 30%, transparent); height: var(--h); transform-origin: bottom; }
.bars i.hi { background: var(--mint); }
.js [data-reveal] .bars i, .js .bars[data-reveal] i { transform: scaleY(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--k, 0) * 60ms); }
.js .in .bars i, .js .bars.in i { transform: scaleY(1); }
.bars-x { display: flex; gap: 4px; font-size: 9px; color: var(--muted); } .bars-x span { flex: 1; text-align: center; }
.meter { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--mint); transform-origin: left; }
.js [data-reveal] .meter i { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .in .meter i { transform: scaleX(1); }

/* ---------- чат-нагадування ---------- */
.chat { display: grid; gap: 8px; padding: 10px; align-content: start; }
.bub { max-width: 88%; padding: 8px 10px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); font-size: 11px; }
.bub.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--mint); color: #fff; }
.bub .t { display: block; margin-top: 3px; font-size: 9px; opacity: .6; text-align: right; }
.bub .acts { display: flex; gap: 5px; margin-top: 6px; } .bub .acts span { flex: 1; text-align: center; padding: 5px; border-radius: 8px; background: var(--surface); color: var(--mint-ink); font-weight: 700; }
.js [data-reveal] .bub { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s, transform .45s; transition-delay: calc(.35s + var(--k, 0) * .55s); }
.js .in .bub { opacity: 1; transform: none; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.chain span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.chain i { color: var(--muted); font-style: normal; }

/* ---------- цифри ---------- */
.pp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pp-num { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pp-num b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; color: var(--mint-ink); font-variant-numeric: tabular-nums; }
.pp-num span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .pp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- що входить у ціну ---------- */
.pp-cmp { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.pp-cmp table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.pp-cmp th, .pp-cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pp-cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.pp-cmp thead th.us { color: #fff; background: var(--mint); }
.pp-cmp td.us { background: color-mix(in srgb, var(--mint) 7%, transparent); font-weight: 600; }
.pp-cmp tr:last-child td { border-bottom: 0; }
.pp-cmp .y, .pp-cmp .n { display: inline-flex; align-items: center; gap: 6px; }
.pp-cmp .y::before, .pp-cmp .n::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.pp-cmp .y::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pp-cmp .n { color: var(--muted); }
.pp-cmp .n::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pp-cmp-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- незабаром ---------- */
.pp-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pp-soon div { padding: 18px; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 45%, var(--surface)); }
.pp-soon h3 { font-size: 16px; margin-bottom: 6px; }
.pp-soon p { color: var(--muted); font-size: 14.5px; }

/* ---------- старт за 10 хвилин ---------- */
.pp-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.pp-start div { position: relative; padding: 22px 18px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pp-start div::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px; background: var(--mint); color: #fff; font-weight: 800; }
.pp-start h3 { font-size: 16px; margin-bottom: 4px; } .pp-start p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .pp-start { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pp-start { grid-template-columns: 1fr; } }

/* ---------- питання ---------- */
.pp-faq { display: grid; gap: 10px; max-width: 860px; }
.pp-faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 20px; transition: border-color .2s; }
.pp-faq details[open] { border-color: color-mix(in srgb, var(--mint) 40%, var(--line)); }
.pp-faq summary { cursor: pointer; list-style: none; padding: 17px 30px 17px 0; position: relative; font-weight: 700; font-size: 16px; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--mint-ink); transition: transform .25s; }
.pp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pp-faq details p { padding-bottom: 18px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .pp-stage .dv, .pp-vis .dv, .bub, .bars i, .meter i, .steps > div { transition: none !important; }
  .js .pp-vis[data-reveal] .dv, .js [data-reveal] .bub, .js [data-reveal] .bars i, .js [data-reveal] .meter i { opacity: 1; transform: none; }
}
.alt-bg { background: var(--surface-2); }
.pp-numsec { padding-block: 56px; }
.sc-pad.two { grid-template-columns: 1fr 1fr; } .sc-pad.two.wide { grid-template-columns: 1.3fr 1fr; }
.sc-pad.flush { padding: 0; align-content: start; }
.grow { flex: 1; min-width: 0; }
.pp-float.br { right: 2%; bottom: 6%; }
.pp-feat .pp-vis > .pp-float:not(.br) { left: 0; bottom: 12%; }
.prod-sw { view-transition-name: prod-sw; }

/* ---------- екрани закладу (Omni POS) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.tiles span { position: relative; padding: 7px 7px 6px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--tc, var(--mint)); font-weight: 700; font-size: 10.5px; line-height: 1.2; min-height: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.tiles span small { color: var(--muted); font-weight: 600; font-size: 9.5px; }
.tiles span.t2 { --tc: #c9a24a; } .tiles span.t3 { --tc: #8a6bc9; } .tiles span.t4 { --tc: #5aa58c; }
.tiles span.stop { opacity: .45; } .tiles span.stop small { color: var(--warn); }
.tiles span i { position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--mint); color: #fff; font-size: 9px; font-style: normal; display: grid; place-items: center; padding: 0 3px; }
.cols2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; padding: 8px; height: calc(100% - 33px); }
.ck { display: grid; gap: 5px; align-content: start; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.ck .ln { display: flex; justify-content: space-between; gap: 6px; } .ck .ln small { display: block; color: var(--muted); font-size: 9px; }
.ck .tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 5px; font-weight: 800; }
.seg { display: flex; gap: 3px; padding: 2px; border-radius: 8px; background: var(--surface); } .seg span { flex: 1; text-align: center; padding: 3px 0; border-radius: 6px; font-size: 9.5px; font-weight: 600; } .seg span.on { background: var(--mint); color: #fff; }
.hall { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; }
.tbl { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 12px; background: var(--surface-2); border: 2px solid transparent; line-height: 1.2; }
.tbl small { display: block; font-weight: 600; font-size: 9.5px; color: var(--muted); }
.tbl.busy { background: color-mix(in srgb, var(--mint) 16%, var(--surface)); border-color: var(--mint); }
.tbl.pay { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 60%, transparent); }
.tbl.res { border: 2px dashed var(--line); }
.tbl.round { border-radius: 50%; }
.kds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; height: calc(100% - 30px); }
.kds .col { display: grid; gap: 6px; align-content: start; } .kds .col > b { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #93a39e; }
.tk { border-radius: 8px; padding: 7px 8px; background: rgba(255, 255, 255, .07); border-top: 3px solid #6b7cc9; font-size: 10px; display: grid; gap: 2px; }
.tk b { font-size: 11px; } .tk em { font-style: normal; color: #f0b25a; }
.tk.cook { border-top-color: #f0b25a; } .tk.done { border-top-color: #4cc38a; opacity: .85; }
.tk .tm { justify-self: end; font-weight: 800; color: #93a39e; }
.js [data-reveal] .tk { opacity: 0; transform: translateY(-10px); transition: opacity .5s, transform .5s; transition-delay: calc(.4s + var(--k, 0) * .25s); }
.js .in .tk { opacity: 1; transform: none; }
.tc { width: 100%; border-collapse: collapse; font-size: 10px; }
.tc th { text-align: left; color: var(--muted); font-weight: 600; padding: 3px 4px; border-bottom: 1px solid var(--line); }
.tc td { padding: 4px; border-bottom: 1px solid var(--line); } .tc td:not(:first-child), .tc th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.hbars { display: grid; gap: 6px; }
.hbars div { display: grid; grid-template-columns: 70px 1fr 34px; gap: 6px; align-items: center; font-size: 10px; }
.hbars div b { text-align: right; font-variant-numeric: tabular-nums; }
.hbars .meter i.w { background: var(--warn); }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] .tk { opacity: 1; transform: none; transition: none; } }
.slots.two { grid-template-columns: 1fr 1fr; }
/* вітрина: пристрої стискаються пропорційно, щоб уміститись у ширину */
.pp-stage .dv { flex: 0 1 auto; min-width: 0; }
.pp-stage .dv-lap { flex-basis: 520px; } .pp-stage .dv-tv { flex-basis: 480px; } .pp-stage .dv-tab { flex-basis: 380px; } .pp-stage .dv-tab.port { flex-basis: 270px; } .pp-stage .dv-ph { flex-basis: 210px; }
.pp-stage .dv-lap, .pp-stage .dv-tv, .pp-stage .dv-tab, .pp-stage .dv-ph { width: auto; }
.pp-stage { gap: 22px; }
.pp-vis .dv-tab:not(.port) { width: 440px; }
@media (max-width: 900px) { .pp-stage .dv.on { flex-basis: min(100%, 520px); } .pp-vis .dv-tab:not(.port) { width: min(100%, 440px); } }
.kds.lt .col > b { color: var(--muted); }
.kds.lt .tk { background: var(--surface-2); color: var(--ink); }
.kds.lt .tk .tm { color: var(--muted); }
.pp-stage .dv.on { flex-shrink: 0; }

/* ---------- «справжній» вигляд застосунку на екранах (27.10, замовник: «реалістичніше») ---------- */
/* пристрої: камера, кнопки, основа ноутбука */
.dv-lap::before { content: ""; position: absolute; top: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2c3230; z-index: 2; }
.dv-lap::after { background: linear-gradient(#e4e8e6, #b7bebb 70%, #9aa3a0); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); }
.dv-tab::before { content: ""; position: absolute; top: 50%; left: 5px; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #2c3230; }
.dv-tab.port::before { top: 5px; left: 50%; margin: 0 0 0 -2px; }
.dv-ph { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), inset 0 0 0 2px #1f2423; }
.dv-ph::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 14%; border-radius: 0 2px 2px 0; background: #1a1d1c; }
.dv-ph > .sc { padding-top: 0; }
/* оболонка застосунку: бокова панель + верх (ноутбук, планшет) */
.sc.ap { display: flex; }
.sc.ap.ap--col { flex-direction: column; }
.ap-rail { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; background: #161b1a; color: #8f9c98; }
.ap-rail .ap-logo { width: 16px; height: 16px; border-radius: 50%; border: 3.5px solid var(--mint-2); margin-bottom: 6px; }
.ap-rail i { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 36px; padding: 4px 0 3px; border-radius: 7px; font-style: normal; }
.ap-rail i svg { width: 12px; height: 12px; }
.ap-rail i em { font-style: normal; font-size: 6.5px; font-weight: 600; letter-spacing: -.01em; }
.ap-rail i.on { background: var(--mint); color: #fff; }
.ap-rail .ap-me { margin-top: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 7px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--mint-2), var(--mint)); }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--paper); }
.ap-top { flex: none; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ap-top b { font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-search { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 9px; min-width: 70px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.ap-search svg { width: 9px; height: 9px; }
.ap-meta { font-size: 9.5px; font-weight: 700; color: var(--mint-ink); background: var(--mint-soft); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ap-bell { display: grid; place-items: center; width: 18px; height: 18px; color: var(--muted); font-style: normal; position: relative; }
.ap-bell svg { width: 11px; height: 11px; }
.ap-bell::after { content: ""; position: absolute; top: 2px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #e5484d; border: 1px solid var(--surface); }
.ap-av { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 7px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--mint-2), var(--mint)); flex: none; }
.ap-body { flex: 1; min-height: 0; overflow: hidden; }
.ap-body > .sc-pad, .ap-body > .cols2, .ap-body > .hall, .ap-body > .kds { height: 100%; }
.sc.dk .ap-main { background: #141816; } .sc.dk .ap-top { background: #1b201e; border-color: rgba(255, 255, 255, .08); color: #e9efed; } .sc.dk .ap-search { background: rgba(255, 255, 255, .07); color: #93a39e; }
/* планшет вертикально: статус-бар, верх, нижні вкладки */
.tb-st, .ph-st { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; height: 16px; font-size: 8px; font-weight: 700; background: var(--surface); color: var(--ink); }
.tb-st span { display: inline-flex; align-items: center; gap: 3px; } .tb-st svg { width: 8px; height: 8px; }
.ap-top--t { height: 28px; }
.ap-top--t .ap-meta { margin-left: auto; }
.ap-tabs { flex: none; display: flex; justify-content: space-around; padding: 5px 4px 6px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.ap-tabs i { display: flex; flex-direction: column; align-items: center; gap: 1px; font-style: normal; }
.ap-tabs i svg { width: 12px; height: 12px; }
.ap-tabs i em { font-style: normal; font-size: 6.5px; font-weight: 600; }
.ap-tabs i.on { color: var(--mint); }
/* телефон: статус-бар, адресний рядок / меню, домашня смужка */
.sc.ph { display: flex; flex-direction: column; }
.ph-st { height: 26px; padding: 0 18px 0 22px; font-size: 9.5px; }
.ph-ic { display: inline-flex; align-items: flex-end; gap: 1.5px; }
.ph-ic i { width: 2.5px; border-radius: 1px; background: var(--ink); } .ph-ic i:nth-child(1) { height: 4px; } .ph-ic i:nth-child(2) { height: 6px; } .ph-ic i:nth-child(3) { height: 8px; }
.ph-ic u { width: 15px; height: 7px; margin-left: 4px; border-radius: 2px; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--ink) 75%, transparent 0) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat; }
.ph-url { flex: none; display: flex; align-items: center; gap: 4px; margin: 2px 10px 4px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 8.5px; white-space: nowrap; overflow: hidden; }
.ph-url svg { width: 8px; height: 8px; flex: none; }
.ph-body { flex: 1; min-height: 0; overflow: hidden; }
.ph-body > .sc-pad { padding-top: 6px; }
.ph-home { flex: none; width: 70px; height: 4px; margin: 4px auto 6px; border-radius: 4px; background: var(--ink); opacity: .85; }
.ap-tabs--ph { padding-bottom: 12px; border-radius: 0 0 27px 27px; }
/* месенджер (нагадування) */
.msg-h { flex: none; display: flex; align-items: center; gap: 7px; padding: 5px 10px 7px; background: var(--surface); border-bottom: 1px solid var(--line); }
.msg-back { font-size: 18px; line-height: 1; color: #2a8fd6; }
.msg-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 11px; color: #fff; background: linear-gradient(135deg, var(--mint-2), var(--mint)); }
.msg-h b { display: block; font-size: 10.5px; } .msg-h small { color: #2a8fd6; font-size: 8.5px; }
.msg-bg { flex: 1; min-height: 0; overflow: hidden; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .45) 0 2px, transparent 3px) 0 0 / 22px 22px, #dbe7dc; }
.msg-bg .bub { background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.msg-bg .bub.me { background: #e2f7cb; color: var(--ink); }
.msg-bg .bub .acts span { background: var(--surface-2); color: #2a8fd6; }
.msg-in { flex: none; display: flex; align-items: center; gap: 6px; margin: 6px 8px 14px; }
.msg-in span { flex: 1; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.msg-in i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2a8fd6; color: #fff; font-style: normal; }
.msg-in svg { width: 10px; height: 10px; }
/* щільніші й живіші дрібниці */
.row { box-shadow: 0 1px 0 rgba(0, 0, 0, .03); }
.av { background: linear-gradient(135deg, var(--mint-2), var(--mint)); box-shadow: 0 0 0 2px var(--surface); }
.av.b { background: linear-gradient(135deg, #8da2f0, #5f73cc); } .av.c { background: linear-gradient(135deg, #e3c06b, #c39a3c); } .av.d { background: linear-gradient(135deg, #7cc4a8, #4b9c7f); }
.btnx { box-shadow: 0 4px 10px -6px var(--mint); }
.sc[hidden] { display: none !important; }
/* мініатюра нового екрана кухні (як у системі, Р4) */
.sc.dk:has(.k2) { background: #f4f1ee; color: var(--ink); }
.k2 { display: grid; grid-template-columns: 1fr 92px; height: 100%; font-size: 9px; }
.k2-main { min-width: 0; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.k2-st { display: flex; gap: 4px; } .k2-st span { padding: 2px 7px; border-radius: 999px; background: #fff; border: 1px solid #e8ded6; font-weight: 600; font-size: 8px; color: #5a4c42; }
.k2-st span.on { background: var(--mint-soft); border-color: var(--mint); color: var(--mint-ink); }
.k2-tk { display: flex; gap: 6px; align-items: flex-start; }
.k2-t { flex: 1; min-width: 0; background: #fff; border: 1px solid #e8ded6; border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; }
.k2-h { display: flex; justify-content: space-between; padding: 4px 6px; font-weight: 700; color: #fff; } .k2-h small { font-variant-numeric: tabular-nums; }
.k2-h.g { background: #2f8a55; } .k2-h.y { background: #d99a00; color: #2a1a00; } .k2-h.r { background: #c0392b; }
.k2-i { padding: 4px 6px; border-bottom: 1px solid #f0e8e2; } .k2-i b { font-size: 9px; } .k2-i small { display: block; color: var(--mint-ink); font-size: 7.5px; }
.k2-i.done { opacity: .4; text-decoration: line-through; } .k2-i.void, .k2-i.void small { color: #b42318; text-decoration: line-through; }
.k2-f { display: flex; gap: 3px; padding: 5px 6px; margin-top: auto; } .k2-f span { flex: 1; text-align: center; padding: 3px; border-radius: 5px; background: #f3ece6; font-weight: 700; font-size: 8px; }
.k2-f span.go { background: var(--mint); color: #fff; }
.k2-side { border-left: 1px solid #e8ded6; background: #fff; padding: 7px 6px; display: flex; flex-direction: column; gap: 3px; }
.k2-side h4 { margin: 2px 0; font-size: 7px; letter-spacing: .05em; text-transform: uppercase; color: #8a7b70; }
.k2-ad { display: flex; justify-content: space-between; padding: 3px 5px; border-radius: 5px; border: 1px solid #e8ded6; font-weight: 600; font-size: 8px; } .k2-ad b { color: var(--mint-ink); }
/* зал на планшеті — столи пропорційні, не на всю висоту */
.ap-body > .hall { height: auto; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.ap-body > .hall .tbl { aspect-ratio: 1.25; font-size: 11px; }
.ap-body > .hall .tbl.round { aspect-ratio: 1.25; border-radius: 999px; }
/* Ноутбук: підставка (::after) ширша за екран на 7 % з кожного боку — на вузькому ноутбук вужчий за колонку, щоб підставка
   не виходила за край і сторінка не зсувалась убік (замовник 27.10: «сдвиг убери») */
@media (max-width: 960px) {
  .pp-stage .dv-lap { flex-basis: 87%; max-width: 520px; }
  .pp-vis .dv-lap { width: min(87%, 520px); margin-inline: auto; }
}
/* Таблиця «Що входить у ціну» (замовник 27.10): типова програма й Omni — порівну, наша колонка не вужча за чужу; усі напрямки */
.pp-cmp table { table-layout: fixed; }
.pp-cmp thead th:first-child { width: 40%; }
