/* skidki.md mobile redesign: m-more. Только @media (max-width:900px) — десктоп не трогать */
@media (max-width:900px){
/* ===== общее: заголовки и lead ===== */
[hidden]{display:none!important}

/* ===== /groups: плотный список, липкие чипы, поиск ===== */
body:has(.gtools) .lead{display:none}
body:has(.gtools) .pv-open{padding:12px 14px;margin:10px 0 0}
body:has(.gtools) .pv-open-t{font-size:16px;line-height:1.3}
body:has(.gtools) .pv-open .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:8px -14px;padding:0 14px}
body:has(.gtools) .pv-open .chips .chip{flex:none;min-height:48px;font-size:16px}
body:has(.gtools) .pv-open p.muted{font-size:15px;margin:0!important}
.gtools{position:sticky;top:var(--m-head,63px);z-index:9;background:var(--bg);margin:0 -16px 6px;padding:4px 16px 6px;border-bottom:1px solid var(--line)}
.gsearch{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 14px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.gsearch svg{width:22px;height:22px;flex:none;color:var(--muted)}
.gsearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;color:var(--text);min-height:48px;outline:0}
.gsearch:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(196,68,44,.18)}
.gchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:8px 0 2px}
.gchips::-webkit-scrollbar{display:none}
.gchips .chip{flex:none;min-height:48px;padding:0 16px;font-size:16px}
.sect[id^=gc]{scroll-margin-top:calc(var(--m-head,63px) + 120px)}
.sect[id^=gc]{margin-top:18px}
.sect[id^=gc] .hd h2{font-size:20px}
.sect .ggrid[data-an-list=groups]{display:grid;overflow:visible;margin:0;padding:0;grid-template-columns:1fr;gap:8px}
.sect .ggrid[data-an-list=groups]>.gtile{width:auto}
.ggrid[data-an-list=groups] .gtile{grid-template-columns:56px minmax(0,1fr);gap:12px;padding:10px 12px;min-height:72px;border-radius:16px}
.ggrid[data-an-list=groups] .gtile .th{width:56px;height:56px;border-radius:12px}
.ggrid[data-an-list=groups] .gtile .t{font-size:17px;line-height:1.25}
.ggrid[data-an-list=groups] .gtile .s{font-size:15px;line-height:1.35;color:var(--muted)}
.ggrid[data-an-list=groups] .gtile .s+.s{font-size:14px}
.ggrid[data-an-list=groups] .gtile .s b{color:var(--text)}
.ggrid[data-an-list=groups] .gtile .s .was{font-size:14px}

/* ===== /g/<id>: цены по сетям строками ===== */
.ghd{display:block!important}
.ghd h1{margin:0 0 6px}
.ghd .lead{font-size:15px;color:var(--muted)}
.m-dup{display:none}
.ghd .answer{font-size:16px;line-height:1.45;font-weight:700;color:var(--save-ink);background:var(--save-soft);border-radius:14px;padding:10px 14px;margin:6px 0 8px;max-width:none;font-size:15px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.gact{position:fixed!important;left:0;right:0;bottom:calc(66px + env(safe-area-inset-bottom,0px));z-index:15;display:flex!important;flex-wrap:nowrap!important;gap:8px!important;padding:10px 16px;background:color-mix(in srgb,var(--bg) 94%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line)}
.gact form{flex:1;min-width:0;display:flex}
.gact>a.btn,.gact form .btn{flex:1;width:100%;min-height:52px;font-size:17px;border-radius:16px;justify-content:center}
.gact .btn,.gact [class*=share] .btn{min-height:52px}
.gact .share{flex:none;position:relative}
.gact .share-btn{font-size:0;gap:0;width:52px;min-width:52px;padding:0;justify-content:center}
.gact .share-btn svg{width:24px;height:24px}
.gact .share-menu{top:auto;bottom:calc(100% + 8px);right:0;left:auto}
.gact .btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.cmp{grid-template-columns:1fr;gap:8px;margin-top:10px!important}
.cmp .c{display:grid;grid-template-columns:64px minmax(0,1fr) auto;grid-template-areas:"th head unit" "th n unit" "th small unit";column-gap:12px;row-gap:2px;align-items:center;padding:10px 12px;border-radius:16px;border-width:1px}
.cmp .c>div:first-child{grid-area:head;gap:8px;justify-content:flex-start!important;flex-wrap:wrap}
.cmp .c .th{grid-area:th;width:64px;height:64px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.cmp .c .th img{max-height:58px;max-width:58px}
.cmp .c .unit{grid-area:unit;text-align:right;font-size:22px;line-height:1.15;white-space:nowrap;font-family:var(--serif,inherit)}
.cmp .c .unit small{display:block;font-size:14px;color:var(--muted);font-family:var(--font)}
.cmp .c .unit .was{display:inline-block;font-size:14px}
.cmp .c .unit .sale{display:none}
.cmp .c .n{grid-area:n;text-decoration:none;font-size:15px;color:var(--text);line-height:1.3;-webkit-line-clamp:2}
.cmp .c .muted{grid-area:small;font-size:14px!important}
.cmp .c:not(:has(.th)){grid-template-columns:auto minmax(0,1fr);grid-template-areas:"head n";column-gap:10px;padding:8px 14px;min-height:56px}
.cmp .c .na{grid-area:n;padding:0;text-align:left;font-size:16px}
.cmp .c.best{order:-1;background:var(--save-soft);border:2px solid var(--save)}
.cmp .c.best .unit{color:var(--save-ink)}
.cmp .c .bestlbl{font-size:13px;letter-spacing:0;text-transform:none;background:var(--save);color:#fff;border-radius:999px;padding:2px 10px}
.cmp .c .msave{grid-area:small;display:none}
.cmp .c.best .msave{display:block;font-weight:800;font-size:15px;color:var(--save-ink)}
.cmp .c.best .muted{display:none}
body:has(.gact) .plinks{font-size:15px;line-height:1.6}
body:has(.gact) .plinks a{display:inline-block;min-height:32px;padding:4px 2px}
/* график: подписи читаемые, ось не обрезана */
body:has(.gact) svg.chart{overflow:visible}
body:has(.gact) .chart .lbl{font-size:41px}
body:has(.gact) .chart circle{r:7}
body:has(.gact) .legend{gap:8px 16px;font-size:15px;margin-top:12px}
body:has(.gact) .sect .items{display:grid;gap:8px}
body:has(.gact) .sect .item{min-height:72px}
body:has(.gact) .wrap{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
body:has(.gact) .site-foot{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}

/* ===== /account: профиль ===== */
.acc-hello{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.acc-hello .mascot{width:64px;height:64px;flex:none}
.acc-hello b{font:700 22px/1.25 var(--serif,inherit);color:var(--text)}
.acc-lead{margin:0 0 12px;word-break:break-word;color:var(--muted)}
.acc-lang{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 14px;margin:0 0 12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;font-weight:800}
.acc-lang .lang-sw a,.acc-lang .lang-sw b{min-height:44px;min-width:56px;display:inline-flex;align-items:center;justify-content:center;font-size:16px}
body:has(.acc-hello) .plus-acc{margin:0 0 12px}
body:has(.acc-hello) .plusbox{background:var(--save-soft);color:var(--text);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:none}
body:has(.acc-hello) .plusbox::before{display:none}
body:has(.acc-hello) .plusbox h2{color:var(--text);font-size:20px}
body:has(.acc-hello) .plusbox h2 b{color:var(--save-ink)}
body:has(.acc-hello) .plusbox p{color:var(--text);font-size:16px;line-height:1.45;margin:0 0 12px}
body:has(.acc-hello) .plusbox .btn{min-height:52px;width:100%;justify-content:center;font-size:17px;border-radius:16px}
body:has(.acc-hello) .hub{padding:0;margin:0 0 12px;overflow:hidden;border-radius:20px}
body:has(.acc-hello) .hub-row{min-height:64px;padding:10px 16px;gap:14px;font-size:17px;border-radius:0}
body:has(.acc-hello) .hub-row+.hub-row{border-top:1px solid var(--line)}
body:has(.acc-hello) .hub-row>svg:first-child{width:26px;height:26px}
body:has(.acc-hello) .hub-row b{font-size:17px}
body:has(.acc-hello) .hub-row small{font-size:14px;white-space:normal}
body:has(.acc-hello) .hub-row em{font-size:15px;min-height:48px;display:inline-flex;align-items:center}
body:has(.acc-hello) .hub-row:active{background:var(--soft)}
.acc-x,.acc-out-d{display:none}
.acc-fold>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:8px 16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;font-weight:800;font-size:17px;cursor:pointer;list-style:none}
.acc-fold>summary::-webkit-details-marker{display:none}
.acc-fold>summary::after{content:"+";font-size:24px;color:var(--muted)}
.acc-fold[open]>summary::after{content:"\2212"}
.acc-fold[open]>summary{margin-bottom:12px}
.acc-out{margin:16px 0 8px}
.acc-out .btn{width:100%;min-height:52px;justify-content:center;font-size:17px;border-radius:16px}
.acc-stitch{margin:4px -16px 14px;height:12px}
body:has(.acc-hello) .two{gap:12px}
body:has(.acc-hello) .two .card{padding:16px;border-radius:20px}
body:has(.acc-hello) .two .btn{min-height:48px}
body:has(.acc-hello) .two input,body:has(.acc-hello) .two select{min-height:48px;font-size:16px}
body:has(.acc-hello) .two .btn.sm,body:has(.acc-hello) .members .btn.sm{min-height:48px;padding:0 14px;font-size:15px}

/* ===== /favorites: те же строки-карточки ===== */
.fav-grid{grid-template-columns:1fr;gap:10px}
.fav-grid>.stack{background:var(--surface);border:1px solid rgba(234,220,200,.75);border-radius:16px;padding:8px;gap:2px}
.fav-grid .pcard{display:grid;grid-template-columns:84px minmax(0,1fr);box-shadow:none;border:0;background:transparent;border-radius:0;overflow:visible}
.fav-grid .pcard .img{aspect-ratio:auto;width:84px;height:84px;border-radius:12px;border:1px solid var(--line);align-self:start}
.fav-grid .pcard .img img{width:100%;height:100%;object-fit:contain;padding:4px}
.fav-grid .pcard .body{padding:0 60px 0 12px;gap:4px;min-width:0}
.fav-grid .pcard .pname{font-size:16px;-webkit-line-clamp:2}
.fav-grid .pcard .now{font-size:20px}
.fav-grid .pcard .sale{left:6px;top:6px;font-size:12px;padding:3px 7px}
.fav-grid .pcard form{position:absolute;right:4px;top:4px}
.fav-grid .pcard .heart{min-width:48px;min-height:48px}
.fav-grid .pcard .cap{font-size:14px;gap:2px 8px}
.fav-grid .pcard .cap span:first-child:not(:last-child){display:none}
.fav-grid .small{font-size:15px!important;padding:2px 6px 6px!important}
form[action$="/alerts"].card.row{gap:10px}
form[action$="/alerts"].card.row .field{width:100%!important;flex:1 1 100%!important}
form[action$="/alerts"].card.row input,form[action$="/alerts"].card.row select,form[action$="/alerts"].card.row .btn{min-height:48px;font-size:16px}
form[action$="/alerts"].card.row .btn{width:100%;justify-content:center}
.pv-note{font-size:15px}
body:has(.fav-grid,form[action$="/alerts"]) .lead{display:none}
body:has(form[action$="/alerts"]) .empty{padding:16px}
body:has(form[action$="/alerts"]) .empty .mascot{width:88px;height:88px}
body:has(form[action$="/alerts"]) .empty .btn{min-height:52px;font-size:16px}

/* ===== /menu, /recipes, план меню: зоны касания и читаемость ===== */
body:has(.rgrid) .chip,body:has(.rgrid) .chips .chip{min-height:48px;padding:0 16px;font-size:16px}
body:has(.rgrid) .muted.small{font-size:15px;line-height:1.45}
body:has(.rgrid) .lead{font-size:16px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body:has(.rgrid) .btn,body:has(.rgrid) .card .field input,body:has(.rgrid) .card .field select{min-height:48px;font-size:16px}
body:has(.rgrid) .search input{min-height:52px;font-size:16px}
}
