
/* шапка как в личных сообщениях: две отдельные закруглённые «таблетки» */
header{height:46px;padding:0 12px;gap:8px;background:transparent}
.hpill{display:flex;align-items:center;height:34px;border-radius:17px;background:var(--surface2);box-sizing:border-box;flex-shrink:0}
.hpill-l{flex:1 1 0;min-width:0;max-width:420px;padding:0 5px;gap:3px}
.hpill-r{margin-left:auto;padding:0 4px;gap:1px}
.hpill .logo{gap:0;padding:0}
.hpill .logo span{display:none}
.hpill .logo img{width:24px;height:24px;border-radius:50%;display:block}
.hpill .swrap{flex:1 1 0;min-width:0;max-width:none}
.hpill .swrap input{height:34px;font-size:13px;background:transparent;border-radius:0 17px 17px 0}
.hpill .swrap input:focus{background:transparent}
.hpill-r .ibtn{width:28px;height:28px;border:none;border-radius:50%;background:transparent}
.hpill-r .ibtn svg{width:16px;height:16px}
.hpill-r .ibtn:hover{background:var(--border)}
.hpill-r .user-chip{border:none;background:transparent;height:28px;box-sizing:border-box;padding:0 8px 0 3px;border-radius:14px;font-size:12.5px}
.hpill-r .user-chip .user-ava{width:22px;height:22px;font-size:11px}
.hpill-r .user-chip:hover{background:var(--border)}
@media(max-width:700px){
  header{padding:0 8px;gap:6px}
  .hpill-l{max-width:none}
  .hpill-r .ibtn{width:28px;height:28px}
}
body.search-full .hpill-l,body.search-full .hpill-r{background:transparent}
body.search-full .hpill .swrap input{border-radius:10px;height:38px;background:var(--surface2)}
/* телефон: верхняя шапка - те же плашки, что и нижняя панель (фон, рамка, скругление 22px, тень) */
@media(max-width:640px){
header{height:66px;padding:8px 10px;gap:8px;align-items:stretch}
.hpill{height:50px;border-radius:20px;border:none;box-shadow:0 6px 24px rgba(0,0,0,.4)}
.hpill-l{padding:0 8px 0 12px;gap:8px}
.hpill .logo img{width:28px;height:28px}
.hpill .swrap input{height:50px;font-size:14px;padding:0 12px 0 34px;border-radius:0 20px 20px 0}
.hpill .swrap>svg{left:6px;width:18px;height:18px}
.hpill-r{padding:0 8px;gap:4px}
.hpill-r .ibtn{width:34px;height:34px}
.hpill-r .ibtn svg{width:18px;height:18px}
/* после тапа на телефоне кнопки в шапке не остаются «нажатыми» и без цветной подсветки/обводки */
.hpill-r .ibtn:focus,.hpill-r .ibtn:focus-visible,.hpill-r .ibtn:active{outline:none!important;box-shadow:none!important;border-color:transparent}
/* кнопка темы: никаких рамок, колец и цветных подсветок ни в каком состоянии */
html body #themeToggleBtn,html body #themeToggleBtn:hover,html body #themeToggleBtn:focus,html body #themeToggleBtn:focus-visible,html body #themeToggleBtn:active{outline:none!important;outline-color:transparent!important;box-shadow:none!important;border:none!important;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;touch-action:manipulation;-webkit-user-select:none;user-select:none}
html body #themeToggleBtn::-moz-focus-inner{border:0}
html body #themeToggleBtn:focus,html body #themeToggleBtn:active{background:transparent!important}
@media(hover:hover){html body #themeToggleBtn:hover{background:var(--border)!important}}
@media(hover:none){html body #themeToggleBtn:hover{background:transparent!important}}
@media(hover:none){html .hpill-r .ibtn:hover,html[data-chat-theme] .hpill-r .ibtn:hover,html[data-chat-theme] .ibtn:hover{background:transparent}}
.hpill-r .user-chip{height:34px;padding:0 10px 0 4px;border-radius:17px;font-size:13px}
.hpill-r .user-chip .user-ava{width:26px;height:26px;font-size:12px}
body.search-full .hpill{border-color:transparent;box-shadow:none}
#postViewModal{top:var(--hdr-h,66px)}
}
/* без анимации при наведении: кнопки «Добавить трек», «Мой QR», «Сканировать QR» в настройках */
.set-sec .track-add-btn,.set-sec .prof-view-pub-btn,.set-sec .track-add-btn:active,.set-sec .prof-view-pub-btn:active{transition:none!important;animation:none!important;transform:none!important}
.set-sec .track-add-btn:hover,.set-sec .prof-view-pub-btn:hover{transform:none!important;opacity:1!important;box-shadow:none!important}
.set-sec .track-add-btn:hover{border-color:var(--border2)!important;color:var(--text2)!important}
/* текст в кнопках не двигается при наведении/нажатии/фокусе (раньше :hover сбрасывал боковые отступы до 2px) */
.set-sec .track-add-btn,.set-sec .track-add-btn:hover,.set-sec .track-add-btn:active,.set-sec .track-add-btn:focus,.set-sec .track-add-btn:focus-visible,
.set-sec .prof-view-pub-btn,.set-sec .prof-view-pub-btn:hover,.set-sec .prof-view-pub-btn:active,.set-sec .prof-view-pub-btn:focus,.set-sec .prof-view-pub-btn:focus-visible{padding-left:16px!important;padding-right:16px!important;justify-content:flex-start!important;text-indent:0!important;letter-spacing:normal!important;gap:12px!important;outline:none}
.set-sec .track-add-btn svg,.set-sec .prof-view-pub-btn svg{transform:none!important;transition:none!important}
/* кнопка «вниз» по центру над полем ввода ИИ-чата (как в ChatGPT) */
.ai-tobottom{position:absolute;left:50%;bottom:100%;margin:0 0 10px -17px;width:34px;height:34px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--text);border:1px solid var(--border2);box-shadow:0 2px 10px rgba(0,0,0,.14);cursor:pointer;opacity:0;transform:translateY(6px) scale(.9);pointer-events:none!important;transition:opacity .18s ease,transform .18s ease,background .15s ease}
.ai-tobottom.show{opacity:1;transform:none;pointer-events:auto!important}
.ai-tobottom:hover{background:var(--surface2)}
.ai-tobottom:active{transform:scale(.94)}
.ai-tobottom svg{width:17px;height:17px}
.ai-card:has(#aiWelcomeScreen) .ai-tobottom{display:none}
/* текст интерфейса (кнопки, меню «Ответить/Переслать/Копировать…», подписи) не выделяется и не попадает в копирование вместе с сообщением */
button,summary,[role=button],[role=menuitem],.rx-ov,.rx-ov *,.rx-menu,.rx-menu *,.rx-pop,.rx-pop *,.mv-menu-ov,.mv-menu-ov *,.mv-b,
.dm-fwd-btn,.dm-reply-btn,.dm-msg-time,.share-btn,.pm-cmt-replybtn,.tf-bar-btn,.set-tab,.st-h{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button *,.dm-fwd-btn *,.dm-reply-btn *{-webkit-user-select:none;user-select:none}
.rx-clone .dm-msg,.rx-clone .dm-msg *{-webkit-user-select:none!important;user-select:none!important}
/* страница Plus: отступ снизу и между заголовком и функциями при активной подписке */
.plus-page{padding-bottom:56px}
.plus-gap{height:22px}
/* чат на телефоне: шапка и поле ввода - те же плавающие панели, что верхняя и нижняя панель главной (фон, скругление 20px, тень) */
@media(max-width:640px){
  body .dm-top .dm-chat-head{padding:8px 10px 0;gap:8px}
  body .dm-head-pill{height:50px;border-radius:20px;box-shadow:0 6px 24px rgba(0,0,0,.4)}
  body .dm-chat-head .dm-head-right{height:50px;padding:0 8px;gap:4px;border-radius:20px;box-shadow:0 6px 24px rgba(0,0,0,.4)}
  body .dm-top #dmBackBtn{height:50px!important;border-radius:20px 0 0 20px!important}
  body .dm-chat-head .dm-menu-btn{width:34px;height:34px}
  body .dm-chat-head .dm-menu-btn:hover{background:var(--border)}
  body #dmInputRow.dm-input-row{margin:0 10px calc(10px + env(safe-area-inset-bottom,0px));padding:0 6px;min-height:54px;align-items:center;gap:6px;background:var(--surface2)!important;border-radius:20px;box-shadow:0 6px 24px rgba(0,0,0,.4)!important}
  body #dmInputRow .dm-btn-pair{background:transparent;padding:0}
  body #dmInputRow .dm-input{background:transparent!important;padding:9px 6px!important;border-radius:0!important}
  body #dmInputRow .dm-input:focus{background:transparent!important}
}
/* окно акций по наведению на ПК - чуть меньше */
@media(hover:hover) and (min-width:1025px){.mkt-pop{width:360px;border-radius:16px}.mkt-pop .mkt-plot{height:160px}.mkt-pop .mkt-card{padding:13px 13px 11px}}
/* ПОГОДА - Lowsoft Weather Service (Nothing: точечные иконки, круг и таблетки; Samsung: большая температура, почасовая шкала, осадки) */
#tab-weather .wx{max-width:760px;margin:0 auto;padding-bottom:30px;display:flex;flex-direction:column;gap:12px;font-family:'Geologica',sans-serif;color:var(--text)}
.wx-bar{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wx-brand{display:flex;align-items:center;gap:9px;font-family:'Geologica',sans-serif;font-size:11.5px;font-weight:600;color:var(--text2);min-width:0}
.wx-brand svg{width:22px;height:auto;color:var(--text);flex-shrink:0}
.wx-btns{display:flex;gap:6px;flex-shrink:0}
.wx-btn{width:36px;height:36px;border-radius:50%;border:none;background:var(--surface2);color:var(--text2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:color .15s}
.wx-btn:hover,.wx-btn.on{color:var(--text)}
.wx-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wx-btn.spin svg{animation:wxSpin .8s linear infinite}
@keyframes wxSpin{to{transform:rotate(360deg)}}
.wx-search{display:none}
.wx-search.show{display:block}
.wx-sbox{display:flex;align-items:center;gap:8px;height:44px;padding:0 6px 0 16px;border-radius:22px;background:var(--surface2)}
.wx-sbox input{flex:1;min-width:0;height:100%;border:none!important;outline:none;background:none;color:var(--text);font-family:'Geologica',sans-serif;font-size:14px;font-weight:600;box-shadow:none!important}
.wx-sbox input::placeholder{color:var(--text3);font-weight:500}
.wx-res{display:none;margin-top:6px;border-radius:18px;background:var(--surface2);overflow:hidden}
.wx-res.show{display:block}
.wx-ri{display:flex;flex-direction:column;gap:1px;padding:10px 16px;cursor:pointer;transition:background .12s}
.wx-ri:hover{background:var(--surface2)}
.wx-ri b{font-size:13.5px;font-weight:700}
.wx-ri span{font-size:12px;font-weight:500;color:var(--text3)}
.wx-empty{padding:14px 16px;font-size:12.5px;color:var(--text3);text-align:center}

.wx-hero{position:relative;overflow:hidden;border-radius:28px;padding:22px 22px 18px;background-color:var(--bg,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 9%,transparent)}
.wx-hero{background-image:radial-gradient(circle at 30% 30%,var(--cb-c) 0,transparent 38%),radial-gradient(circle at 70% 70%,var(--cb-c) 0,transparent 42%),radial-gradient(circle at 50% 20%,var(--cb-c2) 0,transparent 36%);background-size:220% 220%;background-repeat:no-repeat;animation:cbAurora 16s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.wx-hero{animation:none}}
.wx-hero>*{position:relative}
.wx-hero[data-sky=day]{--wx-tint:#f2b24a}
.wx-hero[data-sky=dusk]{--wx-tint:#d9709a}
.wx-hero[data-sky=night]{--wx-tint:#6b6bd8}
.wx-hero[data-sky=cloud]{--wx-tint:#8e9ab2}
.wx-hero[data-sky=rain]{--wx-tint:#4f86d6}
.wx-hero[data-sky=snow]{--wx-tint:#8fd0ea}
.wx-hero[data-sky=fog]{--wx-tint:#a3a39c}
.wx-hero[data-sky=storm]{--wx-tint:#8159d8}
.wx-loc{display:flex;align-items:center;gap:9px;font-size:clamp(22px,5.4vw,30px);font-weight:700;letter-spacing:-.02em;line-height:1.15}
.wx-loc svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wx-loc span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wx-loc-sub{margin:4px 0 0 29px;font-family:'Geologica',sans-serif;font-size:11px;font-weight:400;color:var(--text2)}
.wx-main{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:22px}
.wx-main-l{min-width:0}
.wx-temp{display:flex;align-items:flex-start;font-size:clamp(92px,24vw,136px);font-weight:400;line-height:.86;letter-spacing:-.06em}
.wx-temp sup{font-size:.4em;line-height:1;font-weight:400;letter-spacing:0;margin-left:.03em}
.wx-cond{margin-top:16px;font-size:clamp(18px,4.6vw,24px);font-weight:600;letter-spacing:-.01em}
.wx-hl,.wx-feel{margin-top:5px;font-size:13.5px;font-weight:500;color:var(--text2)}
.wx-ico{flex-shrink:0;width:clamp(112px,31vw,172px);color:var(--text);align-self:center}
.wx-ico svg{display:block;width:100%;height:auto}
.wx-sum{margin-top:20px;font-size:13.5px;font-weight:500;line-height:1.5}
.wx-alert{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.wx-al{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 13px 6px 10px;border-radius:999px;background:color-mix(in srgb,var(--text) 10%,transparent);font-family:'Geologica',sans-serif;font-size:11.5px;font-weight:600;color:var(--text);line-height:1.3}
.wx-al svg{width:14px;height:14px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wx-al small{font-size:11px;font-weight:400;color:var(--text2)}
.wx-dots circle{transform-box:fill-box;transform-origin:center}
.wx-dots.in circle{animation:wxIn .5s both}
.wx-dots.pulse circle{animation:wxPulse 1.3s ease-in-out infinite}
@keyframes wxIn{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
@keyframes wxPulse{0%,100%{opacity:.15}50%{opacity:1}}

.wx-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wx-circle{aspect-ratio:1/1;border-radius:50%;background:var(--accent);color:var(--accent-inv);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.wx-circle .l{font-family:'Geologica',sans-serif;font-size:10.5px;font-weight:600;opacity:.65}
.wx-circle .v{font-size:clamp(40px,11vw,58px);font-weight:400;letter-spacing:-.05em;line-height:1.05;margin-top:4px}
.wx-circle .s{margin-top:6px;font-family:'Geologica',sans-serif;font-size:11.5px;font-weight:400;opacity:.7}
.wx-pills{display:flex;flex-direction:column;gap:12px}
.wx-pill{flex:1;border-radius:999px;background:var(--surface2);padding:0 20px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.wx-pill .l{font-family:'Geologica',sans-serif;font-size:11px;font-weight:600;color:var(--text2);display:flex;gap:10px;align-items:baseline;white-space:nowrap}
.wx-pill .l b{font-size:15px;font-weight:600;color:var(--text)}
.wx-pill .w{margin-top:3px;font-family:'Geologica',sans-serif;font-size:12.5px;font-weight:400;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wx-mini{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wx-mp{border-radius:22px;background:var(--surface2);padding:13px 16px;min-width:0}
.wx-mp .l{font-family:'Geologica',sans-serif;font-size:10.5px;font-weight:600;color:var(--text2)}
.wx-mp .v{margin-top:5px;font-size:19px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.wx-mp .v small{font-size:12px;font-weight:500;color:var(--text2);margin-left:3px}
.wx-mp .s{margin-top:2px;font-size:12px;font-weight:500;color:var(--text3)}

.wx-card{background:var(--surface2);border-radius:24px;padding:16px 0 14px;overflow:hidden}
.wx-ch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px 12px}
.wx-ct{font-family:'Geologica',sans-serif;font-size:11.5px;font-weight:600;color:var(--text2)}
.wx-seg{display:flex;background:color-mix(in srgb,var(--text) 8%,transparent);border-radius:14px;padding:2px}
.wx-seg button{border:none;background:none;font-family:'Geologica',sans-serif;font-size:11px;font-weight:600;color:var(--text3);padding:4px 11px;border-radius:12px;cursor:pointer}
.wx-seg button.on{background:var(--surface);color:var(--text)}
.wx-hscroll{overflow-x:auto;padding:0 12px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.wx-hscroll::-webkit-scrollbar{display:none}
.wx-hrow{display:flex;width:max-content}
.wx-hc{width:64px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:7px}
.wx-hc .t{font-family:'Geologica',sans-serif;font-size:11.5px;font-weight:400;color:var(--text2);white-space:nowrap}
.wx-hc .ic{width:32px;height:26px;display:flex;align-items:center;justify-content:center;color:var(--text)}
.wx-hc .ic svg{width:100%;height:100%}
.wx-hc .tm{font-size:15px;font-weight:600;white-space:nowrap;min-height:20px}
.wx-hc.ev .t,.wx-hc.ev .tm{color:var(--text)}
.wx-hc.ev .tm{font-size:12.5px}
.wx-hc.now .t{color:var(--text);font-weight:600}
.wx-hc svg.g{width:64px;height:50px;display:block;overflow:visible}
.wx-hc svg.g path{fill:none;stroke:var(--text3);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wx-hc svg.g circle{fill:var(--text)}
.wx-hc .pp{height:16px;display:flex;align-items:center;gap:4px;font-family:'Geologica',sans-serif;font-size:11.5px;color:var(--text2)}
.wx-pc{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:0 18px;height:170px}
.wx-pcol{display:flex;flex-direction:column;align-items:center;min-width:0;font-family:'Geologica',sans-serif}
.wx-pcol .t{font-size:11.5px;color:var(--text2)}
.wx-pcol .bw{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;margin-top:8px}
.wx-pcol .b{width:68%;max-width:46px;border-radius:14px 14px 0 0;background-image:radial-gradient(circle,var(--text) 38%,transparent 43%);background-size:7px 7px;opacity:.9}
.wx-pcol .v{margin-top:8px;font-size:12px;font-weight:600}
.wx-day{display:grid;grid-template-columns:70px 34px 46px 1fr;align-items:center;gap:10px;padding:11px 18px}
.wx-day .n{font-size:14px;font-weight:600;line-height:1.2}
.wx-day .n small{display:block;margin-top:1px;font-family:'Geologica',sans-serif;font-size:10.5px;font-weight:400;color:var(--text3)}
.wx-day .ic{width:34px;height:26px;color:var(--text)}
.wx-day .ic svg{width:100%;height:100%}
.wx-day .p{display:flex;align-items:center;gap:4px;font-family:'Geologica',sans-serif;font-size:11.5px;color:var(--text2)}
.wx-day .r{display:flex;align-items:center;gap:9px;font-size:13.5px;font-weight:600;min-width:0}
.wx-day .r i{font-style:normal;color:var(--text2);font-weight:500;min-width:30px}
.wx-day .r i:last-child{text-align:right;color:var(--text);font-weight:600}
.wx-day .tr{position:relative;flex:1;height:6px;border-radius:3px;background:color-mix(in srgb,var(--text) 12%,transparent);min-width:30px}
.wx-day .tr b{position:absolute;top:0;bottom:0;border-radius:3px;background:var(--text)}
.wx-state{padding:70px 20px;text-align:center;font-family:'Geologica',sans-serif;font-size:12.5px;color:var(--text3);display:flex;flex-direction:column;align-items:center;gap:18px}
.wx-state .wx-dots{width:120px;color:var(--text)}
.wx-state button{height:36px;padding:0 18px;border-radius:18px;border:none;background:var(--surface2);color:var(--text);font-family:'Geologica',sans-serif;font-size:13px;font-weight:600;cursor:pointer}
.wx-foot{text-align:center;font-family:'Geologica',sans-serif;font-size:10.5px;color:var(--text3);line-height:1.7}
.wx-foot a{color:var(--text2);text-decoration:underline}
@media(min-width:700px){ #tab-weather .wx{max-width:620px}.wx-temp{font-size:104px}.wx-ico{width:132px}.wx-cond{font-size:20px;margin-top:12px}.wx-loc{font-size:26px}.wx-tiles{grid-template-columns:190px 1fr}.wx-circle .v{font-size:46px}.wx-pill{padding:0 22px}.wx-pcol .b{max-width:34px}}
/* ── внутренний браузер (стиль Telegram, в цветах сайта) ── */
.lb-back{position:fixed;inset:0;z-index:100100;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-family:'Geologica',sans-serif}
.lb-back.show{display:flex}
.lb-sheet{position:relative;display:flex;flex-direction:column;width:min(1000px,94vw);height:min(90vh,920px);background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.45);animation:lbIn .24s cubic-bezier(.2,.8,.2,1)}
@keyframes lbIn{from{opacity:0;transform:translateY(32px) scale(.98)}to{opacity:1;transform:none}}
.lb-bar{display:flex;align-items:center;gap:4px;padding:8px 8px 8px 6px;background:var(--surface);flex-shrink:0}
.lb-btn{width:40px;height:40px;flex-shrink:0;border:none;border-radius:50%;background:transparent;color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s}
.lb-btn:hover,.lb-btn:active{background:var(--surface2)}
.lb-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lb-ttl{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding:0 4px}
.lb-t{font-size:15px;font-weight:700;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-u{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:500;line-height:1.2;color:var(--text2);overflow:hidden;white-space:nowrap}
.lb-u svg{width:11px;height:11px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lb-u span{overflow:hidden;text-overflow:ellipsis}
.lb-prog{position:relative;height:2px;flex-shrink:0;background:var(--border)}
.lb-prog i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--accent);transition:width .35s ease,opacity .3s ease}
.lb-body{position:relative;flex:1;min-height:0;background:#fff}
.lb-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.lb-card{position:absolute;inset:0;overflow-y:auto;background:var(--bg);display:none;flex-direction:column;align-items:center;padding:28px 20px 32px}
.lb-card.show{display:flex}
.lb-card-in{width:100%;max-width:520px;margin:auto 0}
.lb-card-img{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:16px;margin-bottom:16px;background:var(--surface2)}
.lb-card-site{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text2)}
.lb-card-title{margin-top:6px;font-size:21px;font-weight:700;line-height:1.25;word-break:break-word}
.lb-card-desc{margin-top:10px;font-size:14.5px;font-weight:400;line-height:1.5;color:var(--text2);word-break:break-word}
.lb-card-note{margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--border);font-size:13px;line-height:1.45;color:var(--text2)}
.lb-card-act{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.lb-card-act button{height:46px;border:none;border-radius:999px;font-family:'Geologica',sans-serif;font-size:15px;font-weight:700;cursor:pointer;transition:opacity .15s}
.lb-card-act button:hover{opacity:.85}
.lb-card-act .p{background:var(--accent);color:#fff}
.lb-card-act .s{background:var(--surface2);color:var(--text)}
.lb-menu{position:absolute;top:54px;right:8px;z-index:3;min-width:220px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,.35);display:none}
.lb-menu.show{display:block;animation:lbIn .15s ease}
.lb-mi{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:none;border-radius:10px;background:transparent;color:var(--text);font-family:'Geologica',sans-serif;font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.lb-mi:hover,.lb-mi:active{background:var(--surface2)}
.lb-mi svg{width:18px;height:18px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.lb-back{align-items:flex-end;background:rgba(0,0,0,.35)}.lb-sheet{width:100%;height:100%;height:100dvh;border:none;border-radius:0}.lb-bar{padding-top:calc(8px + env(safe-area-inset-top,0px))}}
@media(prefers-reduced-motion:reduce){.lb-sheet,.lb-menu.show{animation:none}}
.lb-mi[hidden]{display:none}
/* виджет погоды в правой колонке главной (только ПК) */
.wx-wg{display:none;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px 14px;font-family:'Geologica',sans-serif;color:var(--text)}
.wx-wg.on{display:block}
.wx-wg-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wx-wg-l{min-width:0}
.wx-wg-loc{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--text2)}
.wx-wg-loc svg{width:14px;height:14px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wx-wg-loc span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wx-wg-t{margin-top:6px;font-size:52px;font-weight:400;letter-spacing:-.05em;line-height:.95}
.wx-wg-c{margin-top:8px;font-size:14px;font-weight:600}
.wx-wg-hl{margin-top:3px;font-size:12.5px;font-weight:500;color:var(--text2)}
.wx-wg-ico{flex-shrink:0;width:64px;color:var(--text)}
.wx-wg-ico svg{display:block;width:100%;height:auto}
.wx-wg-hrs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}
.wx-wg-h{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.wx-wg-h .t{font-size:11.5px;font-weight:500;color:var(--text2)}
.wx-wg-h .i{width:24px;height:20px;color:var(--text)}
.wx-wg-h .i svg{display:block;width:100%;height:100%}
.wx-wg-h .d{font-size:13.5px;font-weight:600}
.wx-wg-btn{display:block;width:100%;margin-top:14px;height:36px;border:none;border-radius:999px;background:var(--surface2);color:var(--text);font-family:'Geologica',sans-serif;font-size:13.5px;font-weight:700;cursor:pointer;transition:opacity .15s}
.wx-wg-btn:hover{opacity:.8}
@media(max-width:1024px){.wx-wg,.wx-wg.on{display:none!important}}
@media(max-width:380px){.wx-hero{padding:18px 16px 16px}.wx-day{grid-template-columns:62px 30px 40px 1fr;gap:7px;padding:10px 14px}.wx-pill{padding:0 16px}}
@media(prefers-reduced-motion:reduce){.wx-dots circle{animation:none!important}.wx-btn.spin svg{animation:none}}

