/* skidki.md mobile redesign: m-sheet. Только @media (max-width:900px) — десктоп не трогать */
/* Шторка товара (.msh, строит m-sheet.js) и мобильный вид страницы /p/<id> (блоки .mp-* из product.html). */
@media (max-width:900px){

/* ---------- общие блоки товара: вердикт, цены по сетям, график, кнопка действия ---------- */
.mp-say{display:flex;align-items:flex-end;gap:2px;margin:6px 0 2px}
.mp-say .say{flex:1;min-width:0;border-radius:18px 18px 4px 18px;padding:12px 14px;margin-bottom:22px;font-size:16px;line-height:1.4;font-weight:600;border:1px solid rgba(46,35,29,.08)}
.mp-say .say b{display:block;font-family:var(--serif,'Lora',serif);font-size:19px;line-height:1.25;margin-bottom:2px}
.mp-say .mascot{width:92px;height:92px;flex:none;margin:0}
.mp-say.v-real .say{background:#E6EDD3;color:#3F5A2B}
.mp-say.v-lowest .say{background:#FBE7BD;color:#5C3F00}
.mp-say.v-fake .say{background:#F1E3EC;color:#6E3A5E}
.mp-say.v-wait .say,.mp-say.v-none .say{background:#EFE6D6;color:#2E231D}

.mp-chains h2,.mp-sec{font-family:var(--serif,'Lora',serif);font-size:19px;margin:18px 0 8px}
.mp-box{background:#FFFBF4;border:1px solid #EADCC8;border-radius:16px;padding:2px 12px}
.mp-prow{display:flex;align-items:center;gap:8px;min-height:52px;padding:6px 2px;border-bottom:1px solid #EADCC8;color:#2E231D;text-decoration:none;font-size:16px}
.mp-prow:last-child{border-bottom:0}
a.mp-prow:active{background:#F3EADB}
.mp-prow.cur{font-weight:700}
.mp-plate{display:inline-block;flex:none;border-radius:8px;padding:1px 8px;font-weight:800;font-size:16px;white-space:nowrap;background:var(--cbg,#EFE6D6);color:var(--c,#4A3B31);max-width:42%;overflow:hidden;text-overflow:ellipsis}
.mp-sp{flex:1;min-width:0;color:#6E5F53;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.mp-nm{color:#2E231D;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mp-cheap{font-weight:800;color:#3F5A2B;background:#E6EDD3;border-radius:999px;padding:1px 8px;white-space:nowrap}
.mp-pr{flex:none;display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.mp-pr b{font-family:var(--serif,'Lora',serif);font-size:18px;white-space:nowrap}
.mp-pr s{color:#6E5F53;font-size:16px}
.mp-prow:has(.mp-nm){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"pl pr" "sp pr";column-gap:10px;row-gap:4px;padding:10px 2px}
.mp-prow:has(.mp-nm) .mp-plate{grid-area:pl;justify-self:start;max-width:100%}
.mp-prow:has(.mp-nm) .mp-sp{grid-area:sp}
.mp-prow:has(.mp-nm) .mp-pr{grid-area:pr;align-self:center}
.mp-more{display:flex;align-items:center;min-height:48px;padding:0 4px;font-weight:800;color:#A8321D;text-decoration:none}

.mp-chart{background:#FFFBF4;border:1px solid #EADCC8;border-radius:16px;padding:6px 4px 2px;margin:4px 0 10px}
.mp-chart svg{display:block;width:100%;height:auto}

.mp-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.mp-cta form{margin:0}
.mp-cta .mp-add,.mp-cta .mp-solo,.mp-cta .mp-solo form{flex:1;min-width:0}
.mp-main,.mp-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;border-radius:28px;font:800 18px/1.2 var(--font,'Nunito',sans-serif);text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mp-cta>.mp-main{flex:1;min-width:0}
.mp-main{width:100%;padding:0 18px;border:0;background:#C4442C;color:#fff;box-shadow:0 6px 16px rgba(196,68,44,.22)}
.mp-main:active{background:#A8321D}
.mp-main.in{background:#5F7D45;box-shadow:none}
.mp-main svg,.mp-btn svg{width:24px;height:24px;flex:none}
.mp-btn{width:56px;padding:0;border:2px solid #EADCC8;background:#FFFBF4;color:#C4442C}
.mp-btn.on{border-color:#F3C9BD;background:#FCE3DB}
.mp-solo .mp-btn{width:100%;padding:0 18px;background:#C4442C;border-color:#C4442C;color:#fff}
.mp-solo .mp-btn.on{background:#FFFBF4;border-color:#EADCC8;color:#C4442C}
.mp-msg{flex-basis:100%;margin:0;font-weight:700;font-size:16px;color:#3F5A2B;display:flex;align-items:center;gap:10px}
.mp-msg:empty{display:none}
.mp-msg a{display:inline-flex;align-items:center;min-height:48px;padding:0 4px;color:#A8321D;font-weight:800}
.mp-msg.err{color:#A8321D}

/* ---------- страница /p/<id> на телефоне ---------- */
.prod .img{max-width:280px;width:100%;margin:0 auto}
.prod .stack h1{font-family:var(--serif,'Lora',serif);font-size:24px;line-height:1.2;margin:4px 0}
.prod .answer,.prod .muted.small{font-size:16px}
.prod .cap,.prod .cap span{font-size:16px!important}   /* в шаблоне inline 14px */
.prod .stack>*{order:3}
.prod .stack>:first-child,.prod .stack>h1,.prod .stack>.price,.prod .stack>.cap{order:1}
.prod .stack>.mp-say{order:2}                          /* вердикт сразу под ценой, длинный ответ-абзац ниже */
.prod .deal-note{display:none}                         /* вердикт показывает .mp-say с Корзиночкой */
.prod .row form[action*="/watch/"]{display:none}       /* сердце — в липкой кнопке внизу */
.prod .row .btn{min-height:48px;font-size:16px}
.prod .row{flex-wrap:nowrap;gap:8px}                   /* второстепенное — одной строкой: «Открыть в магазине» · «Поделиться» */
.prod .row>a.btn,.prod .row>.share{flex:1 1 auto;min-width:0}
.prod .row>a.btn,.prod .row>.share>.btn{justify-content:center;padding-left:10px;padding-right:10px;white-space:nowrap}
.prod .row>.share>.btn{width:100%}
.phist .hd{display:block}
.phist .hd h2{font-size:20px;margin:0 0 4px}
.phist .hd .muted.small{font-size:16px}
.pstats{grid-template-columns:1fr 1fr}
.pstats .muted.small{font-size:16px}
.phist.mp-on .legend{display:none}
.tbl table{font-size:16px}.tbl th{font-size:14px}
.wrap>.mp-cta{position:fixed;z-index:19;left:0;right:0;bottom:var(--mp-nav,76px);padding:10px calc(16px + env(safe-area-inset-right,0px)) 10px calc(16px + env(safe-area-inset-left,0px));background:rgba(255,251,244,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid #EADCC8}
.wrap:has(>.mp-cta) .site-foot{margin-bottom:96px}
body:has(.wrap>.mp-cta) .toast{bottom:calc(var(--mp-nav,76px) + 88px)}

/* ---------- шторка ---------- */
html.msh-lock,html.msh-lock body{overflow:hidden;overscroll-behavior:none}
.msh-bd{position:fixed;inset:0;z-index:60;background:rgba(46,35,29,.45);opacity:0;pointer-events:none;transition:opacity .25s}
.msh-bd.open{opacity:1;pointer-events:auto}
.msh{position:fixed;left:0;right:0;bottom:0;z-index:61;max-height:85vh;max-height:85dvh;display:flex;flex-direction:column;background:#FBF3E6;color:#2E231D;border-radius:24px 24px 0 0;box-shadow:0 -6px 24px rgba(46,35,29,.2);transform:translateY(105%);visibility:hidden;transition:transform .3s ease,visibility 0s .3s;font-size:16px}
.msh.open{transform:none;visibility:visible;transition:transform .3s ease}
.msh.drag{transition:none}
.msh-grab{flex:none;touch-action:none;cursor:grab;padding:8px calc(6px + env(safe-area-inset-right,0px)) 6px calc(16px + env(safe-area-inset-left,0px));border-bottom:1px solid transparent}
.msh-handle{width:44px;height:5px;border-radius:3px;background:#D5C3A9;margin:0 auto 6px}
.msh-hd{display:flex;align-items:center;gap:10px;min-height:56px}
.msh-pic{width:56px;height:56px;flex:none;border-radius:12px;background:#fff;border:1px solid #EADCC8;display:grid;place-items:center;overflow:hidden;font-size:30px}
.msh-pic img{width:100%;height:100%;object-fit:contain;padding:4px}
.msh-t{flex:1;min-width:0}
.msh-t b{display:block;font-family:var(--serif,'Lora',serif);font-size:19px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.msh-t small{display:block;font-size:16px;color:#6E5F53;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msh-x{width:48px;height:48px;flex:none;border:0;border-radius:24px;background:none;color:#2E231D;display:grid;place-items:center;cursor:pointer}
.msh-x:active{background:#EADCC8}
.msh-x svg{width:24px;height:24px}
.msh-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px calc(16px + env(safe-area-inset-right,0px)) 16px calc(16px + env(safe-area-inset-left,0px))}
.msh-foot{flex:none;background:#FFFBF4;border-top:1px solid #EADCC8;padding:10px calc(16px + env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px))}
.msh-foot:empty{display:none}
.msh-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:2px 0 4px}
.msh-price .now{font:700 30px/1.1 var(--serif,'Lora',serif)}
.msh-price .now small{font:800 18px var(--font,'Nunito',sans-serif);margin-left:4px}
.msh-price .was{font-size:18px;color:#6E5F53;text-decoration:line-through}
.msh-price .sale{position:static!important;font-size:16px}
.msh-cap{color:#6E5F53;font-size:16px;margin:0 0 4px}
.msh-nohist{margin:0 0 4px;color:#6E5F53;font-size:16px;line-height:1.45}
.msh-links{display:flex;margin:14px 0 0;border:1px solid #EADCC8;border-radius:14px;background:#FFFBF4;overflow:hidden}
.msh-links a{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 10px;color:#A8321D;font-weight:800;font-size:16px;text-decoration:none;text-align:center;line-height:1.2}
.msh-links a+a{border-left:1px solid #EADCC8}
.msh-links a:active{background:#F3EADB}
.msh-load{display:grid;gap:12px;padding:8px 0 24px}
.msh-load i{display:block;height:20px;border-radius:10px;background:linear-gradient(90deg,#EFE6D6 25%,#F7EFE2 50%,#EFE6D6 75%);background-size:300% 100%;animation:msh-sk 1.2s linear infinite}
.msh-load i:nth-child(1){height:84px;border-radius:18px}.msh-load i:nth-child(2){width:70%}.msh-load i:nth-child(3){height:150px;border-radius:16px}
@keyframes msh-sk{from{background-position:100% 0}to{background-position:0 0}}
.msh .mp-cta{position:static}
.msh :focus-visible,.mp-cta :focus-visible,.mp-chains :focus-visible{outline:3px solid #2E231D;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.msh,.msh-bd{transition:none!important}.msh-load i{animation:none}}
}
