/* Общие стили: демо уборки, анимации, мобильная панель заказа. Цвета каждая страница задаёт через --pl-* */
.pl { --r: var(--pl-radius, 18px); color: var(--pl-fg); }
.pl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pl-card); border: 1px solid var(--pl-line); margin-bottom: 14px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pl-tabs button { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.pl-tabs button[aria-selected="true"] { background: var(--pl-accent); color: var(--pl-on-accent); }
.pl-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.pl-grid > * { min-width: 0; } /* иначе холст 1600px растягивает колонку на телефоне */
@media (max-width: 860px) { .pl-grid { grid-template-columns: 1fr; } }
.pl-stage-wrap { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: var(--r); padding: 12px; overflow: hidden; }
.pl-stage { position: relative; transition: transform .9s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 55%; }
.pl-stage.is3d { transform: perspective(1100px) rotateX(44deg) rotateZ(-10deg) scale(.9); animation: pl-sway 7s ease-in-out .9s infinite alternate; }
@keyframes pl-sway { to { transform: perspective(1100px) rotateX(36deg) rotateZ(-3deg) scale(.92); } }
.pl canvas { display: block; width: 100%; aspect-ratio: 4/3; height: auto; border-radius: calc(var(--r) - 6px); background: var(--pl-plane); touch-action: manipulation; }
.pl-badge { position: absolute; top: 12px; right: 12px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--pl-accent); color: var(--pl-on-accent); opacity: 0; transform: scale(.6) translateY(-6px); transition: opacity .4s, transform .6s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.pl-badge.on { opacity: 1; transform: none; }
.pl-hint { margin: 10px 2px 0; font-size: 14px; line-height: 1.45; color: var(--pl-muted); min-height: 2.9em; }
.pl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pl-tool { font: inherit; font-size: 14px; font-weight: 600; color: inherit; background: transparent; border: 1px solid var(--pl-line); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: transform .15s, border-color .2s; }
.pl-tool:hover { border-color: var(--pl-accent); }
.pl-tool:active { transform: scale(.96); }
.pl-tool.primary { background: var(--pl-accent); color: var(--pl-on-accent); border-color: transparent; }
.pl-tool:focus-within, .pl-tool:focus-visible { outline: 2px solid var(--pl-accent); outline-offset: 2px; }
.pl-tool[aria-pressed="true"] { border-color: var(--pl-accent); color: var(--pl-accent); }
.pl-form { background: var(--pl-card); border: 1px solid var(--pl-line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pl-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--pl-muted); flex: 1; min-width: 0; }
.pl-f select, .pl-f input { font: inherit; font-size: 16px; color: var(--pl-fg); background: var(--pl-input, transparent); border: 1px solid var(--pl-line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.pl-f select:focus, .pl-f input:focus { outline: 2px solid var(--pl-accent); outline-offset: 1px; }
.pl-f option { color: #111; }
.pl-row { display: flex; gap: 10px; }
.pl-checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pl-checks label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.pl-checks input { width: 20px; height: 20px; accent-color: var(--pl-accent); flex: none; }
.pl-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--pl-accent); cursor: pointer; text-align: left; }
.pl-res { border-top: 1px dashed var(--pl-line); padding-top: 12px; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--pl-muted); }
.pl-lines div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.pl-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.pl-total b { font-size: clamp(28px, 6vw, 40px); color: var(--pl-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-note { font-size: 12px; line-height: 1.45; color: var(--pl-muted); margin: 8px 0 0; }
.pl-cta { display: block; text-align: center; background: var(--pl-accent); color: var(--pl-on-accent); font-weight: 700; padding: 16px; border-radius: 12px; text-decoration: none; transition: transform .2s, filter .2s; }
.pl-cta:hover { filter: brightness(1.08); }
.pl-cta:active { transform: scale(.97); }
.pl-alt { display: flex; gap: 10px; }
.pl-alt a { flex: 1; text-align: center; padding: 12px 6px; border: 1px solid var(--pl-line); border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.pl [hidden] { display: none !important; }

/* до/после: два слоя + range поверх */
.ba { position: relative; overflow: hidden; --pos: 50%; aspect-ratio: 4/3; border-radius: var(--pl-radius, 18px); }
.ba > .ph, .ba > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba > :nth-child(2) { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 2; }
.ba .knob { position: absolute; top: 50%; left: var(--pos); z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }
.ba .tag { position: absolute; bottom: 12px; z-index: 1; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }
.ba input:focus-visible ~ .knob { outline: 3px solid var(--pl-accent); outline-offset: 3px; }

/* место под фото работы: замени .ph на <img src="..." alt="..."> */
.ph { position: relative; overflow: hidden; background: var(--ph-bg, linear-gradient(135deg, #cfdedb, #eef4f3)); }
.ph::before { content: attr(data-ph); position: absolute; left: 12px; top: 44px; right: 12px; font-size: 12px; font-weight: 600; color: rgba(0,0,0,.55); }
.ph::after { content: "📷 фото работы"; position: absolute; right: 12px; top: 10px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; }
.ph.dirty { filter: sepia(.5) saturate(.6) brightness(.78) contrast(.9); }

/* появление при скролле */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .12s; } .js [data-reveal="3"] { transition-delay: .24s; } .js [data-reveal="4"] { transition-delay: .36s; }

/* мобильная панель заказа (для рекламы: заказ в одно касание) */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bar-bg, rgba(255,255,255,.9)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--pl-line); }
.mbar a { flex: 1; text-align: center; padding: 13px 6px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--pl-fg); border: 1px solid var(--pl-line); }
.mbar a.main { flex: 1.5; background: var(--pl-accent); color: var(--pl-on-accent); border-color: transparent; }
@media (max-width: 760px) { .mbar { display: flex; } body { padding-bottom: 84px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* вид уборки: карточки-радиокнопки */
.pl-svc { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pl-svc legend { font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 12px; padding: 0; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pl-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px; border-radius: var(--r); background: var(--pl-card); border: 1.5px solid var(--pl-line); cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; }
.pl-card:hover { transform: translateY(-2px); }
.pl-card input { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; margin: 0; accent-color: var(--pl-accent); }
.pl-card:has(input:checked) { border-color: var(--pl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pl-accent) 22%, transparent); }
.pl-card:has(input:focus-visible) { outline: 2px solid var(--pl-accent); outline-offset: 2px; }
.pl-ico { width: 64px; height: 64px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.pl-card:has(input:checked) .pl-ico { transform: scale(1.12) rotate(-6deg); }
.pl-card b { font-size: 15.5px; line-height: 1.25; }
.pl-card small { font-size: 13px; line-height: 1.35; color: var(--pl-muted); }
.pl-card em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--pl-accent); margin-top: auto; padding-top: 4px; }
@media (max-width: 520px) {
  .pl-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pl-card { padding: 14px 8px 12px; }
  .pl-card b { font-size: 13.5px; } .pl-card small { display: none; }
  .pl-ico { width: 48px; height: 48px; }
}
.pl-sub { font-size: 13px; color: var(--pl-muted); margin: 4px 0 -4px; font-weight: 600; }
