/* Раздел «Квартира по плану» — дизайн 7a–7j (хендофф v3, внедрено 21.09.2026).
 * Токены — из app.css (--bg/--surf/--line/--btnline/--fg…/--accent/--acc2/--money/--danger, шрифты, --ease-cd).
 * Модалки и шторки — каркас modal.css (.lk-ov/.lk-modal) + modal-core.js; здесь только их содержимое (.pn-m-*).
 * Свои keyframes с префиксом pn; uShim и uPulse берутся из app.css. */

@keyframes pnRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pnPop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pnShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes pnScan { from { top: -64px; } to { top: 100%; } }
@keyframes pnDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes pnSpring { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

.pn-page { padding: 0 0 64px; color: var(--fg); }
.pn-page *, .pn-page *::before, .pn-page *::after { box-sizing: border-box; }
.pn-shell { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.pn-page h1, .pn-page h2, .pn-page h3, .pn-page p { margin: 0; }
.pn-page a { text-decoration: none; }
.pn-page button { font-family: var(--font-body); }
.pn-hide { display: none !important; }

/* ── Типографика ── */
.pn-kicker { font: 400 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); }
.pn-kicker.is-dim { color: var(--fg4); }
.pn-h1 { font: 400 40px/1.05 var(--font-display); letter-spacing: -.034em; color: var(--fg); text-wrap: pretty; }
.pn-h1.is-big { font-size: 48px; line-height: 1.02; letter-spacing: -.036em; max-width: 620px; }
.pn-h1.is-err { font-size: 36px; line-height: 1.08; letter-spacing: -.032em; max-width: 620px; }
.pn-lead { font: 400 16px/1.5 var(--font-body); color: var(--fg2); max-width: 560px; text-wrap: pretty; }
.pn-head { display: flex; flex-direction: column; gap: 10px; }
.pn-label { font: 500 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--fg4); }
.pn-mono { font: 400 13px/1.4 var(--font-mono); color: var(--fg4); }
.pn-note { font: 400 13px/1.5 var(--font-body); color: var(--fg3); }
.pn-note a, .pn-small a { color: var(--fg3); text-decoration: underline; }
.pn-small { font: 400 12px/1.5 var(--font-body); color: var(--fg4); }

/* ── Кнопки, ссылки, чипы, галочка ── */
.pn-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; padding: 0 20px;
    border: 0; border-radius: 10px; cursor: pointer; background: var(--accent); color: #fff !important;
    font: 600 17px/1 var(--font-body); letter-spacing: -.01em; text-decoration: none !important;
    transition: background .4s var(--ease-cd), transform .2s var(--ease-cd), color .4s var(--ease-cd);
}
.pn-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.pn-cta:active { transform: scale(.98); }
.pn-cta:disabled, .pn-cta.is-off { background: var(--line); color: var(--fg4) !important; cursor: default; transform: none; }
.pn-cta.is-inline { width: auto; padding: 0 22px; height: 52px; font-size: 16px; }
.pn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px;
    border: 1px solid var(--btnline); border-radius: 10px; background: none; cursor: pointer;
    color: var(--fg) !important; font: 500 15px/1 var(--font-body); text-decoration: none !important;
    transition: border-color .3s var(--ease-cd), color .3s var(--ease-cd);
}
.pn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.pn-ghost.is-sm { padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.pn-ghost:disabled { opacity: .6; cursor: default; }
.pn-link { display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: 500 13px/1.3 var(--font-body); color: var(--acc2); white-space: nowrap; }
.pn-link.is-md { font-size: 14px; }
.pn-link.is-lg { font-size: 15px; }
.pn-link:hover { text-decoration: underline; }
.pn-underline { display: inline-block; align-self: flex-start; padding-bottom: 2px; border-bottom: 1px solid var(--btnline); font: 500 15px/1.45 var(--font-body); color: var(--fg); transition: color .3s var(--ease-cd), border-color .3s var(--ease-cd); }
.pn-underline:hover { color: var(--accent); border-color: var(--accent); }
.pn-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-chip {
    padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); cursor: pointer;
    font: 500 14px/1 var(--font-body); letter-spacing: -.01em; color: var(--fg); white-space: nowrap;
    transition: background .3s var(--ease-cd), color .3s var(--ease-cd), border-color .3s var(--ease-cd);
}
.pn-chip:hover { border-color: var(--btnline); }
.pn-chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pn-winsteps .pn-chip { flex: 1; text-align: center; padding: 10px 0; min-width: 44px; }
.pn-box {
    width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0;
    border-radius: 7px; border: 1px solid var(--btnline); background: transparent; color: #fff; cursor: pointer;
    font: 600 13px/1 var(--font-body);
    transition: background .25s var(--ease-cd), border-color .25s var(--ease-cd), transform .25s var(--ease-cd);
}
.pn-box:hover { border-color: var(--fg); }
.pn-box.is-on { background: var(--money); border-color: var(--money); }
.pn-box.is-on:hover { border-color: var(--money); }
.pn-box.is-dim { opacity: .4; cursor: default; }
.pn-box.is-spring { animation: pnSpring .3s var(--ease-cd); }
.pn-checks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font: 400 15px/1.4 var(--font-body); color: var(--fg); }
.pn-checks li { display: flex; gap: 10px; align-items: baseline; }
.pn-checks li::before { content: "✓"; flex: none; font-weight: 600; color: var(--money); }
.pn-checks li.is-no::before { content: "—"; color: var(--fg4); font-weight: 400; }
.pn-checks li.is-no { color: var(--fg3); }
.pn-checks.is-sm { gap: 7px; font-size: 14px; }

/* ── Подсказка «?» ── */
.pn-q { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; vertical-align: -4px; padding: 0; border-radius: 999px; border: 1px solid var(--btnline); background: none; color: var(--fg3); font: 500 12px/1 var(--font-body); cursor: pointer; }
.pn-q:hover, .pn-q.is-open { border-color: var(--fg); color: var(--fg); }
.pn-tip { position: absolute; z-index: 20; display: flex; gap: 12px; align-items: flex-start; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(28, 25, 23, .45); animation: pnPop .2s var(--ease-cd) both; }
.pn-tip strong { display: block; font: 500 15px/1.3 var(--font-body); color: var(--fg); margin-bottom: 3px; }
.pn-tip span { font: 400 14px/1.45 var(--font-body); color: var(--fg2); }

/* ── Полоса-флэш под шапкой (без иконок и автозакрытия) ── */
.pn-bar { background: rgba(226, 84, 42, .09); border-bottom: 1px solid var(--line); animation: pnRise .3s var(--ease-cd) both; }
.pn-bar.is-ok { background: rgba(47, 69, 56, .1); }
.pn-bar .pn-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.pn-bar p { font: 400 15px/1.4 var(--font-body); color: var(--fg); }
.pn-bar-x { width: 32px; height: 32px; flex: none; border: 0; background: none; color: var(--fg3); font: 400 20px/1 var(--font-body); cursor: pointer; }
.pn-bar-x:hover { color: var(--fg); }
.pn-flash { padding: 12px 16px; border-radius: 10px; background: rgba(226, 84, 42, .09); font: 400 14px/1.45 var(--font-body); color: var(--fg); }
.pn-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; background: #2B241E; color: #F6EFE4; font: 400 14px/1.3 var(--font-body); box-shadow: 0 18px 40px -20px rgba(28, 25, 23, .6); animation: pnPop .25s var(--ease-cd) both; max-width: calc(100vw - 32px); }

/* ── Карточка-контейнер ── */
.pn-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); }
.pn-card strong { font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-card p { font: 400 14px/1.5 var(--font-body); color: var(--fg2); }
.pn-cards-col { display: flex; flex-direction: column; gap: 12px; }

/* ── План (картинка) ── */
.pn-planimg { position: relative; border-radius: 10px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.pn-planimg > div { padding: 14px; }
.pn-planimg img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.pn-planimg.is-btn { cursor: zoom-in; }
.pn-planimg-open { display: none; position: absolute; right: 10px; bottom: 10px; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: #17150F; font: 500 14px/1 var(--font-body); cursor: pointer; }
.pn-read-sub-m { display: none; }
.pn-page-pad { height: 0; }
.pn-scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pn-scan::before { content: ""; position: absolute; left: 0; right: 0; height: 64px; background: linear-gradient(180deg, rgba(226, 84, 42, 0), rgba(226, 84, 42, .16), rgba(226, 84, 42, 0)); animation: pnScan 3s cubic-bezier(.4, .1, .6, .9) infinite; }

/* ── Лайтбокс «план целиком» ── */
.pn-lb { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; background: #221C17; overflow: auto; touch-action: pan-x pan-y pinch-zoom; animation: pnFade .2s var(--ease-cd) both; }
.pn-lb img { display: block; max-width: 100%; max-height: 100%; margin: auto; }
.pn-lb-x { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(246, 239, 228, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #F6EFE4; font: 400 22px/1 var(--font-body); cursor: pointer; }
.pn-lb-cap { position: fixed; left: 16px; bottom: 18px; font: 400 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 239, 228, .72); }

/* ════════════════ 7f · Вход /plan ════════════════ */
.pn-entry .pn-shell { padding-top: 36px; }
.pn-entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.pn-entry-main { display: flex; flex-direction: column; gap: 20px; }
.pn-entry-main > .pn-head { gap: 12px; animation: pnRise .5s var(--ease-cd) both; }
.pn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; animation: pnRise .5s var(--ease-cd) .1s both; }
.pn-pair > div { position: relative; aspect-ratio: 4 / 3; background: var(--surf); overflow: hidden; }
.pn-pair svg, .pn-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-pair-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .9); font: 400 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #655E55; }
.pn-pair-dot { position: absolute; width: 20px; height: 20px; border-radius: 999px; background: #2B241E; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(28, 25, 23, .35); transform: translate(-50%, -50%); }
.pn-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 31, 25, 0) 56%, rgba(38, 31, 25, .84) 100%); }
.pn-pair-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pn-pair-cap b { font: 500 14px/1 var(--font-body); color: #F6EFE4; }
.pn-pair-cap span { font: 400 16px/1 var(--font-mono); letter-spacing: -.02em; color: #F6EFE4; }
.pn-form { display: flex; flex-direction: column; gap: 12px; animation: pnRise .5s var(--ease-cd) .2s both; }

.pn-drop { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surf); border: 1px dashed var(--btnline); cursor: pointer; transition: border-color .3s var(--ease-cd), background .3s var(--ease-cd); }
.pn-drop:hover { border-color: var(--fg); }
/* Поле остаётся в потоке фокуса (не display:none): required на скрытом контроле молча отменяет отправку */
.pn-drop input { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pn-drop > div { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 32px; }
.pn-drop[data-state="empty"] .pn-drop-empty, .pn-drop[data-state="over"] .pn-drop-over, .pn-drop[data-state="picked"] .pn-drop-picked,
.pn-drop[data-state="error"] .pn-drop-err, .pn-drop[data-state="limit"] .pn-drop-limit { display: flex; }
.pn-drop-empty strong { font: 400 22px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
.pn-drop-empty span { font: 400 14px/1.5 var(--font-body); color: var(--fg3); max-width: 400px; }
.pn-drop-empty em { font: 400 12px/1.4 var(--font-mono); font-style: normal; color: var(--fg4); }
.pn-drop[data-state="over"] { border: 2px solid var(--accent); background: rgba(226, 84, 42, .05); }
.pn-drop-over { font: 500 14px/1 var(--font-body); color: var(--accent); }
.pn-drop[data-state="picked"] { border: 1px solid var(--line); cursor: default; }
.pn-drop-picked { padding: 0 !important; background: var(--surf); }
.pn-drop-picked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pn-drop-clear { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(38, 31, 25, .78); color: #F6EFE4; font: 400 18px/1 var(--font-body); cursor: pointer; }
.pn-drop-file { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(38, 31, 25, .74); color: #F6EFE4; font: 400 11px/1 var(--font-mono); letter-spacing: .1em; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-drop[data-state="error"] { border: 2px solid var(--danger); animation: pnShake .3s var(--ease-cd); }
.pn-drop-err strong { font: 400 22px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
.pn-drop-err span { font: 400 15px/1.5 var(--font-body); color: var(--fg2); max-width: 420px; }
.pn-drop-err button { margin-top: 4px; padding: 13px 20px; border: 1px solid var(--btnline); border-radius: 10px; background: none; color: var(--fg); font: 600 15px/1 var(--font-body); cursor: pointer; }
.pn-drop-err button:hover { border-color: var(--accent); color: var(--accent); }
.pn-drop[data-state="limit"] { opacity: .5; cursor: default; }
.pn-drop-limit span { font: 400 20px/1.3 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
.pn-samples { display: flex; gap: 10px; }
.pn-samples > div { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pn-samples figure { margin: 0; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--surf); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pn-samples svg { height: 78%; width: auto; }
.pn-samples span { display: flex; align-items: center; gap: 6px; font: 400 12px/1.3 var(--font-body); color: var(--money); }
.pn-samples span b { font-weight: 600; }
.pn-samples span.is-no { color: var(--fg3); }
.pn-which { display: none; align-self: flex-start; padding: 4px 0; border: 0; background: none; font: 500 15px/1 var(--font-body); color: var(--acc2); cursor: pointer; }
.pn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pn-prev { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); animation: pnPop .3s var(--ease-cd) both; transition: border-color .3s var(--ease-cd); }
.pn-prev:hover { border-color: var(--accent); }
.pn-prev-pic { width: 76px; height: 56px; flex: none; border-radius: 6px; overflow: hidden; background: #EDE6DC; display: flex; align-items: center; justify-content: center; }
.pn-prev-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-prev-pic svg { height: 70%; }
.pn-prev-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pn-prev-copy b { font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-prev-copy span { font: 400 13px/1.3 var(--font-mono); color: var(--money); }
.pn-prev-copy span.is-dim { color: var(--fg4); }
.pn-prev-go { font: 500 14px/1 var(--font-body); color: var(--acc2); white-space: nowrap; }

.pn-entry-side { display: flex; flex-direction: column; gap: 24px; padding-top: 6px; }
.pn-steps { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.pn-steps .pn-label { padding-bottom: 8px; }
.pn-step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.pn-steps-gap { width: 1px; height: 12px; background: var(--line); margin-left: 14px; }
.pn-step i { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--fg); color: var(--bg); font: 400 12px/1 var(--font-mono); font-style: normal; }
.pn-step i.is-pay { background: var(--accent); color: #fff; }
.pn-step i.is-last { background: none; border: 1px solid var(--btnline); color: var(--fg); }
.pn-step-copy { display: flex; flex-direction: column; gap: 2px; }
.pn-step b { font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-step b .is-inline { display: none; }
.pn-step-copy > span { font: 400 13px/1.45 var(--font-body); color: var(--fg4); }
.pn-step-copy > span.is-money { color: var(--money); }
.pn-step-copy > span.is-mid { color: var(--fg3); }

.pn-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 40px 0 18px; }
.pn-gallery-head h2 { font: 400 30px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--fg); }
.pn-gallery-head span { font: 400 13px/1.4 var(--font-body); color: var(--fg4); padding-bottom: 6px; }
.pn-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pn-gallery a { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surf); overflow: hidden; }
.pn-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease-cd); }
.pn-gallery a:hover img { transform: scale(1.04); }
.pn-gallery .pn-scrim { background: linear-gradient(180deg, rgba(38, 31, 25, 0) 52%, rgba(38, 31, 25, .86) 100%); }
.pn-gallery-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 1px; }
.pn-gallery-cap b { font: 500 13px/1.3 var(--font-body); color: #F6EFE4; }
.pn-gallery-cap span { font: 400 11px/1.3 var(--font-mono); color: rgba(246, 239, 228, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-gallery-cap i { font-style: normal; }
.pn-wide { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

.pn-faq { display: grid; grid-template-columns: 300px 1fr; gap: 44px; padding: 40px 0; }
.pn-faq-head { display: flex; flex-direction: column; gap: 10px; }
.pn-faq-head h3 { font: 400 28px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--fg); }
.pn-faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pn-faq details { border-bottom: 1px solid var(--line); }
.pn-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font: 500 16px/1.3 var(--font-body); color: var(--fg); }
.pn-faq summary::-webkit-details-marker { display: none; }
.pn-faq summary::after { content: "+"; font: 400 20px/1 var(--font-body); color: var(--fg4); transition: transform .3s var(--ease-cd); }
.pn-faq details[open] summary::after { transform: rotate(45deg); }
.pn-faq details p { padding: 0 0 16px; font: 400 15px/1.55 var(--font-body); color: var(--fg2); max-width: 560px; }
.pn-foot { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.pn-foot span:first-child { font: 400 13px/1.4 var(--font-body); color: var(--fg3); }
.pn-foot span:last-child { font: 400 12px/1 var(--font-mono); color: var(--fg4); }

/* ════════════════ 7g · Читаем план · ошибки ════════════════ */
.pn-read .pn-shell { padding-top: 28px; }
.pn-read-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.pn-read-main { display: flex; flex-direction: column; gap: 14px; }
.pn-read-side { display: flex; flex-direction: column; gap: 20px; padding-top: 58px; }
.pn-read-side.is-err { padding-top: 58px; }
.pn-stages { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pn-stage { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: .55; transition: opacity .4s var(--ease-cd); }
.pn-stage.is-now { opacity: 1; }
.pn-stage i { width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--money); }
.pn-stage.is-now i { background: var(--accent); animation: pnDot 2s ease-out infinite; }
.pn-stage.is-todo i { background: none; border: 1px solid var(--btnline); }
.pn-stage b { flex: 1; font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-stage span { font: 400 12px/1 var(--font-mono); color: var(--fg4); }
.pn-skels { display: flex; flex-direction: column; gap: 8px; }
.pn-skel { position: relative; height: 56px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); overflow: hidden; }
.pn-skel::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); animation: uShim 1.6s cubic-bezier(.33, .68, .4, 1) infinite; }
.pn-skel:nth-child(2)::before { animation-delay: .2s; }
.pn-skel:nth-child(3)::before { animation-delay: .4s; }
.pn-read-actions { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.pn-read-actions > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pn-retry-form { display: contents; }
.pn-fit { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }

/* ════════════════ 7a / 7b · Проверьте, что прочитали ════════════════ */
.pn-check .pn-shell { padding-top: 28px; }
.pn-check-grid { display: grid; grid-template-columns: 392px minmax(0, 1fr); gap: 36px; align-items: start; }
.pn-check-left { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.pn-check-head { grid-column: 2; grid-row: 1; }
.pn-check-main { grid-column: 2; grid-row: 2; }
.pn-check-left .pn-planimg > div { padding: 14px; }
.pn-check-left-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-check-main { display: flex; flex-direction: column; gap: 20px; }
.pn-count { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); }
.pn-count b { font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-count span { font: 400 13px/1.4 var(--font-body); color: var(--fg3); text-align: right; max-width: 280px; }
.pn-count span[hidden] { display: none; }
.pn-rows { display: flex; flex-direction: column; gap: 8px; }
.pn-row { display: flex; flex-direction: column; gap: 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: transparent; animation: pnRise .4s var(--ease-cd) both; animation-delay: var(--d, 0s); transition: background .3s var(--ease-cd), border-color .3s var(--ease-cd), opacity .3s var(--ease-cd); }
.pn-row.is-on { background: var(--surf); }
.pn-row.is-skip { opacity: .62; }
.pn-row.is-open { gap: 16px; padding: 16px; background: var(--surf); border-color: var(--fg); opacity: 1; }
.pn-row.is-shake { animation: pnShake .3s var(--ease-cd); }
.pn-row-main { display: flex; align-items: flex-start; gap: 14px; }
.pn-row-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pn-row-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pn-row-title { font: 500 16px/1.3 var(--font-body); letter-spacing: -.01em; color: var(--fg); }
.pn-row-plan { font: 400 13px/1.3 var(--font-body); color: var(--fg4); }
.pn-row-edited { display: inline-flex; align-items: center; gap: 5px; font: 400 12px/1 var(--font-body); color: var(--money); }
.pn-row-edited::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--money); }
.pn-row-meta { font: 400 13px/1.4 var(--font-mono); color: var(--fg3); }
.pn-row-sub { font: 400 13px/1.4 var(--font-body); color: var(--fg4); }
.pn-row-right { display: flex; align-items: center; gap: 14px; flex: none; }
.pn-row-price { font: 400 15px/1 var(--font-mono); color: var(--fg); white-space: nowrap; }
.pn-row-price.is-off { color: var(--fg4); }
.pn-row-add { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed var(--btnline); border-radius: 10px; background: none; cursor: pointer; font: 500 15px/1 var(--font-body); color: var(--fg); transition: border-color .3s var(--ease-cd), color .3s var(--ease-cd); }
.pn-row-add i { font: 400 18px/1 var(--font-display); font-style: normal; color: var(--accent); }
.pn-row-add:hover { border-color: var(--accent); color: var(--accent); }

.pn-edit { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pn-edit-sec { display: flex; flex-direction: column; gap: 8px; }
.pn-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pn-dims { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.pn-dims label { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; cursor: text; }
.pn-dims label + label { border-left: 1px solid var(--line); }
.pn-dims span { font: 400 10px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg4); }
.pn-dims input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; outline: none; font: 400 17px/1.3 var(--font-mono); color: var(--fg); }
.pn-dims input::placeholder { color: var(--fg4); }
.pn-dims.is-bad { border-color: var(--danger); }
.pn-edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pn-edit-foot span { font: 400 13px/1.4 var(--font-body); color: var(--fg4); }
.pn-edit-foot .pn-ghost { padding: 12px 22px; font-weight: 600; }
.pn-edit-on { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); }
.pn-edit-on b { flex: 1; font: 400 15px/1.3 var(--font-body); color: var(--fg); }
.pn-edit-on span { font: 400 15px/1 var(--font-mono); color: var(--fg); }
.pn-edit-on.is-dim b, .pn-edit-on.is-dim span { color: var(--fg4); }
.pn-m-edit { display: flex; flex-direction: column; gap: 16px; }
.pn-m-edit .pn-dims { background: var(--surf); }
.pn-m-edit .pn-edit-grid { gap: 10px; }
.pn-m-edit .pn-cta { height: 52px; border-radius: 12px; }

.pn-paycard { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }
.pn-paycard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pn-paycard-head > div { display: flex; flex-direction: column; gap: 4px; }
.pn-paycard-head .pn-label { letter-spacing: .1em; font-size: 11px; }
.pn-sum { font: 400 40px/1 var(--font-display); letter-spacing: -.035em; color: var(--money); }
.pn-paycard-note { font: 400 13px/1.4 var(--font-body); color: var(--fg3); text-align: right; padding-bottom: 4px; }
.pn-paycard-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pn-paycard-foot .pn-note { max-width: 420px; line-height: 1.45; }
.pn-paycard-foot .pn-link { font-size: 14px; }
.pn-stick { display: none; }
.pn-check-back { align-self: flex-start; }

/* модалка оплаты (7c) */
.pn-m { display: flex; flex-direction: column; gap: 16px; }
.pn-m-head { display: flex; flex-direction: column; gap: 4px; padding-right: 40px; }
.pn-m-title { font: 400 24px/1.2 var(--font-display); letter-spacing: -.025em; color: var(--fg); }
.pn-m-sub { font: 400 14px/1.4 var(--font-body); color: var(--fg3); }
.pn-m-sum { display: flex; align-items: baseline; gap: 12px; padding: 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); }
.pn-m-math { font: 400 14px/1.3 var(--font-mono); color: var(--fg3); }
.pn-m p { font: 400 14px/1.5 var(--font-body); color: var(--fg2); }
.pn-m-mail { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surf); }
.pn-m-mail span { font: 400 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg4); }
.pn-m-mail input { border: 0; background: none; outline: none; padding: 0; font: 400 16px/1.3 var(--font-body); color: var(--fg); width: 100%; }
.pn-m-mail input::placeholder { color: var(--fg4); }
.pn-send { position: relative; overflow: hidden; }
.pn-send.is-sending { background: #C9451F; color: rgba(255, 255, 255, .75) !important; cursor: default; transform: none; }
.pn-send.is-sending::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); animation: uShim 1.8s cubic-bezier(.33, .68, .4, 1) infinite; }
.pn-m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-m-badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; font: 500 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--fg4); white-space: nowrap; }
.pn-m-share { display: flex; gap: 10px; }
.pn-m-url { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); font: 400 14px/1.3 var(--font-mono); color: var(--fg3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-m-share .pn-cta { width: auto; height: auto; padding: 14px 20px; font-size: 15px; }
.pn-m-which { display: flex; flex-direction: column; gap: 14px; }
.pn-m-which-row { display: flex; gap: 12px; align-items: flex-start; }
.pn-m-which-row figure { width: 104px; flex: none; margin: 0; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.pn-m-which-row svg { height: 80%; }
.pn-m-which-row div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pn-m-which-row b { display: flex; align-items: center; gap: 7px; font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-m-which-row b i { font-style: normal; font-weight: 600; color: var(--money); }
.pn-m-which-row.is-no b { color: var(--fg3); }
.pn-m-which-row.is-no b i { color: var(--fg4); font-weight: 400; }
.pn-m-which-row span { font: 400 13px/1.45 var(--font-body); color: var(--fg3); }
.lk-modal .pn-cta { height: 56px; }
.lk-modal .pn-ghost.is-wide { width: 100%; height: 52px; border-radius: 12px; font-weight: 600; font-size: 17px; }

/* ════════════════ 7d / 7e · Рисуем комнаты · Квартира готова ════════════════ */
.pn-work .pn-shell { padding-top: 28px; }
.pn-work-body { display: flex; flex-direction: column; gap: 22px; }
.pn-work-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.pn-work-head .pn-lead { max-width: 620px; }
.pn-totals { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; padding-bottom: 4px; }
.pn-totals .pn-label { letter-spacing: .1em; font-size: 11px; }
.pn-totals-row { display: flex; align-items: baseline; gap: 10px; }
.pn-totals-row span { font: 400 15px/1 var(--font-mono); color: var(--fg3); }
.pn-totals-row b { font: 400 32px/1 var(--font-display); font-weight: 400; letter-spacing: -.035em; color: var(--money); }
.pn-totals small { font: 400 13px/1.3 var(--font-body); color: var(--fg4); }
.pn-progress { height: 4px; border-radius: 999px; background: rgba(23, 21, 15, .1); overflow: hidden; }
.pn-progress i { display: block; height: 100%; border-radius: 999px; background: var(--money); transition: width .5s var(--ease-cd); }
.pn-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pn-room { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); animation: pnRise .4s var(--ease-cd) both; animation-delay: var(--d, 0s); transition: transform .15s var(--ease-cd); }
.pn-room:hover { transform: translateY(-2px); }
.pn-room.is-plan { background: transparent; }
.pn-frame { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #EDE6DC; display: block; }
.pn-frame.is-fresh { animation: pnFade .4s var(--ease-cd) both; }
.pn-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-frame.is-contain { background: var(--surf); border: 1px solid var(--line); }
.pn-frame.is-contain img { object-fit: contain; padding: 8px; }
.pn-frame-shim { position: absolute; inset: 0; overflow: hidden; }
.pn-frame-shim::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); animation: uShim 1.6s cubic-bezier(.33, .68, .4, 1) infinite; }
.pn-frame-fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pn-dots-badge { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(38, 31, 25, .78); color: #F6EFE4; font: 400 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pn-dots-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #F0794A; animation: pnDot 2s ease-out infinite; }
.pn-room-copy { display: flex; flex-direction: column; gap: 3px; }
.pn-room-title { font: 500 16px/1.3 var(--font-body); letter-spacing: -.01em; color: var(--fg); }
.pn-room-meta { font: 400 12px/1.3 var(--font-mono); color: var(--fg4); }
.pn-room-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 22px; flex-wrap: wrap; }
.pn-room-label { font: 400 13px/1.3 var(--font-body); color: var(--fg3); }
.pn-room-label.is-queued { color: var(--fg4); }
.pn-room-label.is-done { font-family: var(--font-mono); color: var(--money); }
.pn-room-link { font: 500 13px/1 var(--font-body); color: var(--acc2); white-space: nowrap; }
.pn-room-plan-btn { padding: 0; border: 0; background: none; font: 500 13px/1 var(--font-body); color: var(--acc2); cursor: pointer; white-space: nowrap; }
.pn-partial { font: 400 15px/1.5 var(--font-body); color: var(--fg2); }
.pn-partial a { color: var(--acc2); }
.pn-failbox { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 32px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); max-width: 620px; }
.pn-failbox p { font: 400 16px/1.5 var(--font-body); color: var(--fg2); }
.pn-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

/* ── Тёмная тема: литералы, которых нет в токенах ── */
[data-theme="dark"] .pn-frame, [data-theme="dark"] .pn-prev-pic { background: #4A4038; }
[data-theme="dark"] .pn-planimg-open { background: rgba(43, 36, 30, .94); color: #F6EFE4; }
[data-theme="dark"] .pn-progress { background: rgba(246, 239, 228, .12); }
[data-theme="dark"] .pn-skel::before, [data-theme="dark"] .pn-frame-shim::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }

/* ── Телефон (390) ── */
@media (max-width: 720px) {
    .pn-shell { padding-left: 16px; padding-right: 16px; }
    .pn-page { padding-bottom: 40px; }
    .pn-h1 { font-size: 30px; line-height: 1.08; letter-spacing: -.03em; }
    .pn-h1.is-big { font-size: 32px; line-height: 1.05; letter-spacing: -.032em; }
    .pn-h1.is-err { font-size: 27px; line-height: 1.1; }
    .pn-lead { font-size: 15px; }
    .pn-kicker { font-size: 10px; }
    .pn-cta { height: 52px; border-radius: 12px; }
    .pn-cta.is-inline { width: 100%; }
    .pn-bar .pn-shell { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
    .pn-bar .pn-shell.is-row { flex-direction: row; align-items: flex-start; }
    .pn-bar p { font-size: 14px; }

    .pn-entry .pn-shell { padding-top: 18px; }
    .pn-entry-grid { grid-template-columns: 1fr; gap: 20px; }
    .pn-entry-main { gap: 14px; }
    .pn-entry-main > .pn-head { gap: 8px; }
    .pn-pair > div { aspect-ratio: 1 / 1; }
    .pn-pair-tag { display: none; }
    .pn-pair-cap b { display: none; }
    .pn-pair-cap span { font-size: 12px; }
    .pn-drop > div { padding: 20px; gap: 10px; }
    .pn-drop-empty strong { font-size: 20px; }
    .pn-drop-empty em { display: none; }
    .pn-drop-err strong { font-size: 19px; }
    .pn-drop-err span { font-size: 14px; }
    .pn-drop-clear { width: 44px; height: 44px; top: 10px; right: 10px; }
    .pn-samples { display: none; }
    .pn-which { display: inline-block; }
    .pn-prev { gap: 12px; }
    .pn-prev-pic { width: 64px; height: 48px; }
    .pn-prev-copy b { font-size: 14px; }
    .pn-prev-copy span { font-size: 12px; }
    .pn-entry-side { gap: 20px; padding-top: 8px; }
    .pn-step { padding: 8px 0; align-items: center; gap: 12px; }
    .pn-step i { width: 26px; height: 26px; font-size: 11px; }
    .pn-steps-gap { display: none; }
    .pn-step-copy > span { display: none; }
    .pn-step b .is-inline { display: inline; color: var(--money); }
    .pn-gallery-head { padding: 24px 0 12px; }
    .pn-gallery-head h2 { font-size: 24px; }
    .pn-gallery-head span { display: none; }
    .pn-gallery { display: flex; gap: 10px; background: none; border: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
    .pn-gallery::-webkit-scrollbar { display: none; }
    .pn-gallery a { flex: none; width: 200px; border-radius: 8px; scroll-snap-align: start; }
    .pn-gallery-cap i { display: none; }
    .pn-wide { padding: 0 16px; }
    .pn-faq { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 20px; }
    .pn-faq-head h3 { font-size: 24px; }
    .pn-foot { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 16px; }

    .pn-read .pn-shell, .pn-check .pn-shell, .pn-work .pn-shell { padding-top: 18px; }
    .pn-read-grid { grid-template-columns: 1fr; gap: 14px; }
    .pn-read-side { padding-top: 0; gap: 14px; }
    .pn-read-side .pn-lead { display: none; }
    .pn-read-sub-m { display: block; }
    .pn-planimg-open { display: block; }
    .pn-read-skels { display: none; }
    .pn-planimg > div { padding: 12px; }
    .pn-read-actions > div { flex-direction: column; align-items: stretch; }
    .pn-read-actions .pn-underline { align-self: center; border: 0; color: var(--acc2); padding: 6px 0; }
    .pn-fit { padding: 14px; }

    .pn-check-grid { grid-template-columns: 1fr; gap: 14px; }
    .pn-check-left, .pn-check-head, .pn-check-main { grid-column: 1; grid-row: auto; }
    .pn-check-left { position: static; order: 1; }
    .pn-check-left .pn-kicker, .pn-check-left-foot { display: none; }
    .pn-check-left .pn-planimg { height: 180px; }
    .pn-check-left .pn-planimg > div { height: 100%; padding: 10px; }
    .pn-check-left .pn-planimg img { height: 100%; }
    .pn-check-head { order: 0; }
    .pn-check-main { order: 2; gap: 14px; }
    .pn-count { padding: 11px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
    .pn-count span { text-align: left; max-width: none; }
    .pn-row-main { gap: 12px; }
    .pn-row-line { gap: 8px; }
    .pn-row-plan { display: none; }
    .pn-row-right { flex-direction: column; align-items: flex-end; gap: 6px; }
    .pn-edit-grid { grid-template-columns: 1fr 1fr; }
    .pn-paycard { padding: 18px 16px; gap: 12px; }
    .pn-paycard-head { align-items: baseline; }
    .pn-paycard-note { display: none; }
    .pn-sum { font-size: 32px; }
    .pn-paycard .pn-cta, .pn-paycard .pn-paycard-note-desk { display: none; }
    .pn-paycard-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pn-check-back { margin-bottom: 8px; }
    .pn-check .pn-page-pad { height: 96px; }
    .pn-stick { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -16px 30px -20px rgba(28, 25, 23, .35); }
    .pn-stick span { font: 400 12px/1.3 var(--font-body); color: var(--fg4); text-align: center; }
    .pn-m-title { font-size: 22px; }
    .pn-m-sum { padding: 14px; gap: 10px; }
    .pn-m-sum .pn-sum { font-size: 34px; }
    .pn-m-math { font-size: 13px; }
    .pn-m-foot { justify-content: center; text-align: center; }
    .pn-m-badge { display: none; }
    .pn-m-share { flex-direction: column; }
    .pn-m-share .pn-cta { width: 100%; }

    .pn-work-body { gap: 16px; }
    .pn-work-head { grid-template-columns: 1fr; gap: 12px; }
    .pn-totals { align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line); gap: 4px; }
    .pn-totals-row { flex-direction: row-reverse; justify-content: flex-end; }
    .pn-totals-row b { font-size: 28px; }
    .pn-totals-row span { font-size: 14px; }
    .pn-cards { grid-template-columns: 1fr; gap: 12px; }
    .pn-room:hover { transform: none; }
    .pn-room.is-plan { display: none; }
    .pn-room-copy { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
    .pn-room-link { font-size: 14px; padding: 6px 0; }
    .pn-failbox { padding: 20px 16px; gap: 14px; max-width: none; }
    .pn-failbox p { font-size: 15px; }
    .pn-failbox .pn-actions { flex-direction: column; align-items: stretch; width: 100%; }
    .pn-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .pn-actions .pn-ghost { height: 52px; border-radius: 12px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pn-page *, .pn-page *::before, .pn-page *::after, .pn-lb, .pn-tip, .pn-toast { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Оплата «сначала одна комната» и «Добавить остальные» (22.09) ── */
.pn-trial { align-self: flex-start; font-size: 14px; text-align: left; line-height: 1.4; }
.pn-m-scope { display: flex; flex-direction: column; gap: 8px; }
.pn-m-sum .pn-sum { white-space: nowrap; }
.pn-m-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surf); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.pn-m-opt.is-on { border-color: var(--fg); background: var(--bg); }
.pn-m-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pn-m-opt::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--btnline); background: var(--bg); transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.pn-m-opt.is-on::before { border-color: var(--fg); background: var(--fg); box-shadow: inset 0 0 0 3px var(--bg); }
.pn-m-opt > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pn-m-opt b { font: 500 15px/1.3 var(--font-body); color: var(--fg); }
.pn-m-opt small { font: 400 13px/1.35 var(--font-body); color: var(--fg3); }
.pn-m-opt em { font: 400 18px/1 var(--font-mono); font-style: normal; color: var(--money); white-space: nowrap; }
.pn-m-room { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.pn-m-room span { font: 400 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--fg4); }
.pn-m-room select { width: 100%; border: 0; background: transparent; outline: none; padding: 0; font: 400 16px/1.3 var(--font-body); color: var(--fg); }
.pn-rest { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 22px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }
.pn-rest-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 320px; }
.pn-rest-copy .pn-label { letter-spacing: .1em; font-size: 11px; }
.pn-rest-copy b { font: 500 16px/1.35 var(--font-body); color: var(--fg); }
.pn-rest-form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 720px) {
    .pn-rest { padding: 16px; }
    .pn-rest-form, .pn-rest-form .pn-cta { width: 100%; }
}

/* ── Опрос по цене на экране оплаченного заказа (23.09): контейнер и чипы — из poll.css, здесь только кнопки-варианты ── */
.pn-poll .pp-opt { background: transparent; color: var(--fg); }
.pn-poll .pp-opt.is-on { border-color: #E2542A; background: rgba(226, 84, 42, .08); }
.pn-poll .pp-opt:disabled { cursor: default; }
.pn-poll .pn-poll-more { margin-top: 10px; }
.pn-poll .lk-poll-actions { margin-top: 8px; }
.pn-poll .lk-poll-text { width: 100%; box-sizing: border-box; }

/* Бесплатная первая комната (24.09): карточка над списком на экране проверки — кадр слева, состояние и «Открыть» справа */
.pn-free { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }
.pn-free .pn-frame { width: 100%; }
.pn-free-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pn-free-tag { font: 500 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--money); }
.pn-free-title { font: 500 17px/1.3 var(--font-body); letter-spacing: -.01em; color: var(--fg); }
.pn-free-state { font: 400 14px/1.45 var(--font-body); color: var(--fg3); }
.pn-free[data-state="done"] .pn-free-state { font: 400 13px/1.45 var(--font-mono); color: var(--money); }
.pn-free[data-state="failed"] .pn-free-state { color: var(--fg2); }
.pn-free .pn-cta.is-inline { align-self: flex-start; margin-top: 6px; height: 46px; font-size: 15px; }
.pn-free .pn-cta.is-inline[hidden] { display: none; }
.pn-free-hint { font: 400 12px/1.45 var(--font-body); color: var(--fg4); }
.pn-row.is-free { border-color: var(--money); }
.pn-box.is-free { display: inline-flex; align-items: center; justify-content: center; cursor: default; pointer-events: none; }
.pn-row-price.is-free { font: 400 13px/1.3 var(--font-body); color: var(--money); white-space: normal; text-align: right; }
@media (max-width: 720px) {
    .pn-free { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
    .pn-free .pn-cta.is-inline { width: 100%; }
    .pn-row-price.is-free { font-size: 12px; }
}

/* hidden на кнопке-ссылке проигрывает своему display (24.09): без этого «сначала одна комната» торчала при бесплатной первой */
.pn-trial[hidden] { display: none; }
