/* v5.9.161 – Gifts page: filters in a left sidebar, cards with the heart on top and an “Order” button.
   Page width stays as before (owner). Phones: the sidebar opens as a sheet, the bar with “Filters” stays at the top. */
.m3gf{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start;margin-top:26px}
.m3gf-side{position:sticky;top:calc(var(--m3s-sticky,72px) + 14px);max-height:calc(100vh - var(--m3s-sticky,72px) - 28px);overflow:auto;scrollbar-width:thin;padding-right:4px;font-size:14px}
.m3gf-sh,.m3gf-sf,.m3gf-bd,.m3gf-open{display:none}
.m3gf-q{display:flex;align-items:center;gap:8px;height:42px;padding:0 12px;border:1px solid #CFD3D8;border-radius:10px;background:#fff;margin-bottom:14px}
.m3gf-q:focus-within{border-color:#FF4300;box-shadow:0 0 0 3px rgba(255,67,0,.12)}
.m3gf-q svg{width:16px;height:16px;flex:none;fill:none;stroke:#6B7280;stroke-width:2;stroke-linecap:round}
.m3gf-q input{border:0;outline:0;flex:1;min-width:0;font:inherit;font-size:14px;background:none}
.m3gf-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-bottom:12px;border-bottom:1px solid #E6E8EB}
.m3gf-top b{font-size:14px}
.m3gf-top .lnk{border:0;background:none;padding:0;font:inherit;font-size:13px;color:#6B7280;text-decoration:underline;cursor:pointer}
.m3gf-grp{border-bottom:1px solid #E6E8EB;padding:12px 0}
.m3gf-grp>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14px;cursor:pointer;color:#14171A}
.m3gf-grp>summary::-webkit-details-marker{display:none}
.m3gf-grp>summary:after{content:"–";color:#9AA1A9;font-weight:400;font-size:18px;line-height:1}
.m3gf-grp:not([open])>summary:after{content:"+"}
.m3gf-os{display:grid;gap:7px;margin-top:10px}
.m3gf-o{display:flex;align-items:center;gap:9px;cursor:pointer;color:#2B3036;line-height:1.3}
.m3gf-o input{width:16px;height:16px;margin:0;flex:none;accent-color:#14171A}
.m3gf-o .lb{flex:1;min-width:0}
.m3gf-o .n{min-width:24px;text-align:center;padding:1px 6px;border-radius:6px;background:#EEF1F5;color:#3B4A63;font-size:11.5px;font-weight:600}
.m3gf-o.is-off{opacity:.4}
/* right column: heading, offer, toolbar, grid */
.m3gf-main{min-width:0}
.m3gf-main>.m3gf-h{margin:0 0 12px;font:800 clamp(18px,1.5vw,22px)/1.2 Archivo,sans-serif;color:#14171A}
.m3gf-bar{position:sticky;top:var(--m3s-sticky,72px);z-index:20;display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin:0 0 16px;padding:10px 14px;border:1px solid #E6E8EB;border-radius:14px;background:#fff;box-shadow:0 6px 16px -14px rgba(20,23,26,.4)}
.m3gf-cnt{font-size:15px;color:#14171A}.m3gf-cnt b{font:800 18px Archivo,sans-serif}
.m3gf-chips{display:flex;flex-wrap:wrap;gap:6px}
.m3gf-chips button{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:0;border-radius:999px;background:#EEF1F5;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.m3gf-chips button span{font-size:10px;color:#6B7280}
.m3gf-sort{margin-left:auto;display:flex;align-items:center;gap:8px;color:#6B7280;font-size:13.5px}
.m3gf-sort select{height:38px;border:1px solid #CFD3D8;border-radius:10px;padding:0 10px;font:inherit;font-size:13.5px;font-weight:600;color:#14171A;background:#fff;cursor:pointer}
.m3gf-view{display:flex;gap:4px;padding:3px;border:1px solid #E6E8EB;border-radius:12px}
.m3gf-view button{width:38px;height:32px;border:0;border-radius:9px;background:none;display:grid;place-items:center;cursor:pointer;color:#3B4A63}
.m3gf-view button.on{background:#FF4300;color:#fff}
.m3gf-view svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* cards */
.m3gf .m3gf-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:16px!important}
.m3gf .m3vt-it[hidden]{display:none!important}
.m3gf .m3vt-it{position:relative;display:flex;flex-direction:column;border:1px solid #E6E8EB;border-radius:16px;padding:12px;background:#fff;transition:box-shadow .2s}
.m3gf .m3vt-it:hover{box-shadow:0 12px 26px -16px rgba(20,23,26,.35)}
.m3gf .m3vt-items .m3vt-it .tx{flex:1;display:flex;flex-direction:column;padding:10px 2px 0!important}
.m3gf .m3vt-it .tx>b{font-size:14.5px;font-weight:600;line-height:1.3}
.m3gf-sz{align-self:flex-start;display:inline-block;margin:8px 0 0;padding:2px 7px;border-radius:6px;background:#EEF1F5;color:#3B4A63;font-size:11.5px;font-weight:600;line-height:1.4}
.m3gf .m3vt-items .m3vt-stats{margin-top:auto;padding-top:12px;gap:14px}
.m3gf .m3vt-stats .sv{position:absolute;top:10px;right:10px;margin:0!important;padding:6px!important;border-radius:50%!important}
.m3gf .m3vt-stats .ad{width:auto!important;height:36px!important;padding:0 14px!important;margin:0 0 0 auto!important;display:inline-flex!important;align-items:center;gap:6px;border:0!important;border-radius:10px!important;background:#FFD66B!important;font-size:13.5px;font-weight:700;color:#14171A}
.m3gf .m3vt-stats .ad:hover{background:#FFC93C!important}
.m3gf .m3vt-stats .ad svg{color:#14171A!important}
/* list view */
.m3gf .m3gf-grid.is-list{grid-template-columns:1fr!important}
.m3gf .m3gf-grid.is-list .m3vt-it{flex-direction:row;gap:18px;align-items:stretch}
.m3gf .m3gf-grid.is-list .m3vt-it .im{flex:0 0 150px}
.m3gf .m3gf-grid.is-list .m3vt-it .tx{padding-top:30px!important}
.m3gf .m3gf-grid.is-list .m3vt-it .tx>b{font-size:16px}
@media (max-width:900px){
  .m3gf{grid-template-columns:1fr;margin-top:16px}
  .m3gf-bar{top:var(--m3s-sticky,60px);flex-wrap:nowrap;border-radius:0;border-width:0 0 1px;margin:0 -16px 14px;padding:8px 16px;box-shadow:0 8px 10px -10px rgba(20,23,26,.25)}
  .m3gf-bar .m3gf-chips,.m3gf-sort .lbl,.m3gf-view{display:none}
  .m3gf-cnt{white-space:nowrap;font-size:13px}.m3gf-cnt b{font-size:15px}
  .m3gf-sort select{max-width:44vw}
  .m3gf-open{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border:1px solid #111;border-radius:10px;background:#fff;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap}
  .m3gf-open svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
  .m3gf-open .n{min-width:18px;height:18px;border-radius:9px;background:#FF4300;color:#fff;font-size:11px;display:grid;place-items:center}
  .m3gf-open .n[hidden]{display:none}
  .m3gf-side{position:fixed;z-index:1001;left:0;top:0;bottom:0;width:min(360px,88vw);max-height:none;padding:0;background:#fff;display:flex;flex-direction:column;transform:translateX(-105%);transition:transform .25s ease;box-shadow:0 0 40px rgba(0,0,0,.25)}
  html.m3gf-lock .m3gf-side{transform:none}
  html.m3gf-lock{overflow:hidden}
  .m3gf-sh{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #E6E8EB;font-size:16px}
  .m3gf-sh .x{border:0;background:none;font-size:18px;cursor:pointer;padding:4px}
  .m3gf-sb{flex:1;overflow:auto;padding:14px 18px}
  .m3gf-sf{display:flex;gap:10px;padding:12px 18px;border-top:1px solid #E6E8EB}
  .m3gf-sf button{flex:1;height:46px;border:1px solid #111;border-radius:10px;background:#fff;font:inherit;font-weight:700;cursor:pointer}
  .m3gf-sf .ok{background:#111;color:#fff}
  html.m3gf-lock .m3gf-bd{display:block;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.35)}
  .m3gf .m3gf-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .m3gf .m3vt-it{padding:8px}
  .m3gf .m3vt-stats .ad .m3gf-ot{display:none}
  .m3gf .m3vt-stats .ad{padding:0 10px!important}
}

/* v5.9.164 – wider content on the Gifts page (owner), large view (3 per row), quick view, smooth movement */
:root{--vtw:calc(100vw - 2 * clamp(16px,8.5vw,230px))}
.m3gf .m3gf-grid.is-big{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
.m3gf .m3gf-grid.is-big .m3vt-it .tx>b{font-size:16.5px}
.m3gf .m3gf-grid{transition:opacity .3s ease}
.m3gf .m3gf-grid.is-fade{opacity:0}
.m3gf .m3vt-it{transition:box-shadow .45s cubic-bezier(.22,.61,.36,1),transform .45s cubic-bezier(.22,.61,.36,1),border-color .45s}
.m3gf .m3vt-it:hover{transform:translateY(-3px);box-shadow:0 18px 34px -22px rgba(20,23,26,.4);border-color:#DADFE4}
.m3gf .m3vt-items .m3vt-it .im{position:relative;overflow:hidden;border-radius:14px}
.m3gf .m3vt-items .m3vt-it .im img{transition:transform .7s cubic-bezier(.22,.61,.36,1)!important;cursor:zoom-in}
.m3gf .m3vt-it:hover .im img{transform:scale(1.035)}
.m3gf .m3vt-stats .ad,.m3gf-view button,.m3gf-chips button,.m3gf-o,.m3gf-sort select,.m3gf-q{transition:background-color .35s ease,color .35s ease,border-color .35s ease,box-shadow .35s ease,opacity .35s ease}
.m3gf-qvb{position:absolute;right:10px;bottom:10px;z-index:3;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid rgba(20,23,26,.08);border-radius:999px;background:#fff;color:#14171A;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px -6px rgba(20,23,26,.35);opacity:0;transform:translateY(8px);transition:opacity .45s cubic-bezier(.22,.61,.36,1),transform .45s cubic-bezier(.22,.61,.36,1),color .3s,border-color .3s}
.m3gf-qvb svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.m3gf-qvb:hover{color:#FF4300;border-color:rgba(255,67,0,.35)}
.m3gf .m3vt-it:hover .m3gf-qvb{opacity:1;transform:none}
@media (hover:none){.m3gf-qvb{opacity:1;transform:none;padding:0;width:34px;justify-content:center}.m3gf-qvb span{display:none}}
.m3gf-qv{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(14,16,19,.6);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);visibility:hidden;opacity:0;transition:opacity .4s cubic-bezier(.22,.61,.36,1),visibility 0s .4s}
.m3gf-qv.on{visibility:visible;opacity:1;transition:opacity .4s cubic-bezier(.22,.61,.36,1)}
html.m3gf-qvlock{overflow:hidden}
.m3gf-qv .in{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);width:min(1080px,100%);max-height:calc(100vh - 48px);background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.5);transform:translateY(14px) scale(.98);transition:transform .45s cubic-bezier(.22,.61,.36,1)}
.m3gf-qv.on .in{transform:none}
.m3gf-qv .ph{position:relative;display:flex;flex-direction:column;background:#F4F5F7;min-height:0}
.m3gf-qv .ph>img{flex:1;min-height:0;width:100%;max-height:calc(100vh - 140px);object-fit:contain;display:block;transition:opacity .3s ease}
.m3gf-qv .ph>img.sw{opacity:0}
.m3gf-qv .th{display:flex;gap:8px;padding:10px 12px;overflow-x:auto;scrollbar-width:thin}
.m3gf-qv .th:empty{display:none}
.m3gf-qv .th img{width:58px;height:58px;flex:none;object-fit:cover;border-radius:9px;border:2px solid transparent;cursor:pointer;opacity:.7;transition:opacity .3s,border-color .3s}
.m3gf-qv .th img.on,.m3gf-qv .th img:hover{opacity:1;border-color:#FF4300}
.m3gf-qv .tx{padding:30px 28px 24px;display:flex;flex-direction:column;gap:12px;overflow:auto}
.m3gf-qv .st{align-self:flex-start;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:#F3F4F6;color:#14733C}
.m3gf-qv h3{margin:0;font:800 26px/1.15 Archivo,sans-serif;letter-spacing:-.02em;color:#14171A}
.m3gf-qv .sz{align-self:flex-start;font-size:13px;font-weight:600;color:#3B4A63;background:#EEF1F5;border-radius:7px;padding:3px 9px}
.m3gf-qv p{margin:0;color:#4B5563;font-size:14.5px;line-height:1.55}
.m3gf-qv .bt{margin-top:auto;display:flex;flex-wrap:wrap;gap:10px;padding-top:10px}
.m3gf-qv .bt .o,.m3gf-qv .bt .pg{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 20px;border-radius:12px;font:inherit;font-weight:700;font-size:14.5px;text-decoration:none!important;cursor:pointer;transition:transform .35s ease,background-color .35s ease}
.m3gf-qv .bt .o{border:0;background:#FFD66B;color:#14171A}.m3gf-qv .bt .o:hover{background:#FFC93C}
.m3gf-qv .bt .o svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.m3gf-qv .bt .pg{border:1.5px solid #14171A;color:#14171A!important;background:#fff}
.m3gf-qv .bt .o:hover,.m3gf-qv .bt .pg:hover{transform:translateY(-1px)}
.m3gf-qv .x,.m3gf-qv .nv{position:absolute;z-index:2;width:42px;height:42px;border-radius:50%;border:0;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.18);cursor:pointer;font-size:18px;color:#14171A;transition:transform .35s ease}
.m3gf-qv .x{top:12px;right:12px}.m3gf-qv .nv.p{left:12px;top:45%}.m3gf-qv .nv.n{left:calc(55.5% - 54px);top:45%}
.m3gf-qv .x:hover,.m3gf-qv .nv:hover{transform:scale(1.06)}
@media (prefers-reduced-motion:reduce){.m3gf .m3vt-it,.m3gf .m3vt-it .im img,.m3gf-qv,.m3gf-qv .in{transition:none!important}.m3gf .m3vt-it:hover,.m3gf .m3vt-it:hover .im img{transform:none}}
@media (max-width:900px){.m3gf .m3gf-grid.is-big{grid-template-columns:1fr!important}}
@media (max-width:760px){.m3gf-qv{padding:0;align-items:flex-end}.m3gf-qv .in{grid-template-columns:1fr;border-radius:20px 20px 0 0;max-height:92vh;overflow:auto}.m3gf-qv .ph>img{max-height:50vh}.m3gf-qv .tx{padding:18px}.m3gf-qv h3{font-size:20px}.m3gf-qv .nv{display:none}}
/* v5.9.165 – no white gap between “Мелочь, а запомнится надолго” and the footer (owner) */
main.m3vt:not(.m3vt-single){padding-bottom:0!important}
main.m3vt:not(.m3vt-single)>.m3vt-about:last-child{margin-bottom:0}
/* v5.9.166 – normal view: at most 6 gifts per row (owner); fewer on smaller screens */
.m3gf .m3gf-grid:not(.is-big):not(.is-list){grid-template-columns:repeat(6,minmax(0,1fr))!important}
@media (max-width:1900px){.m3gf .m3gf-grid:not(.is-big):not(.is-list){grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media (max-width:1600px){.m3gf .m3gf-grid:not(.is-big):not(.is-list){grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:1250px){.m3gf .m3gf-grid:not(.is-big):not(.is-list){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:900px){.m3gf .m3gf-grid:not(.is-big):not(.is-list){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* v5.9.175 – quick view arrows sit on the photo and change its photos */
.m3gf-qv .nv[hidden]{display:none!important}
@media (max-width:760px){.m3gf-qv .nv{display:block;top:22vh}.m3gf-qv .nv.n{left:auto;right:12px}.m3gf-qv .nv[hidden]{display:none!important}}
