/* ТАШЛА-Vоронка: мобильная версия / приложение (mobile-v1).
   Подключается после основного CSS. Телефон и планшет в портретной ориентации (до 899 px): компоновка как в приложении.
   Откат: убрать ссылки на mobile-v1.css, mobile-v1.js и dark-v1.css из index.html. */

/* ---------- общие элементы (все ширины) ---------- */
.tvm-only-app{display:none}
.tvm-appstrip,.tvm-head,.tvm-nav,.tvm-feedad,.tvm-feedad-note,.tvm-dots,.tvm-slotno,.tvm-rail-head,.tvm-drawer-wrap{display:none}
.tvm-appbtn-wrap{position:relative;display:inline-block}
.tvm-appbtn-wrap>button svg{width:18px;height:18px;flex:0 0 auto}
.tvm-pop{position:absolute;z-index:2147483000;top:calc(100% + 6px);right:0;min-width:230px;background:#fff;color:#18231d;border:1px solid #d5ded6;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.22);padding:6px;display:grid;gap:4px}
.tvm-pop button,.tvm-pop a{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;font-weight:700;font-size:14px;text-align:left;cursor:pointer;text-decoration:none}
.tvm-pop button:hover,.tvm-pop a:hover{background:#eef7f5}
.tvm-pop small{display:block;font-weight:400;color:#68756d;font-size:12px}
.tvm-modal-wrap{position:fixed;inset:0;z-index:2147483200;background:rgba(6,14,16,.62);display:flex;align-items:flex-end;justify-content:center;padding:12px;box-sizing:border-box}
.tvm-modal{background:#fff;color:#18231d;width:100%;max-width:460px;border-radius:20px;padding:18px 18px 20px;box-sizing:border-box;box-shadow:0 20px 60px rgba(0,0,0,.35);max-height:calc(100vh - 24px);overflow:auto}
.tvm-modal h3{margin:0 0 8px;font-size:19px}
.tvm-modal ol{margin:8px 0;padding-left:22px;line-height:1.55}
.tvm-modal li{margin:6px 0}
.tvm-modal .tvm-x{float:right;border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:inherit}
.tvm-modal .tvm-ic{display:inline-flex;vertical-align:-4px;width:20px;height:20px}
.tvm-modal .tvm-note{font-size:13px;color:#68756d;margin-top:10px}
.tvm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:12px 16px;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;background:linear-gradient(135deg,#16a39b,#0b7f79);color:#fff}
.tvm-offline{position:fixed;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 8px);z-index:2147483300;background:#b42318;color:#fff;border-radius:12px;padding:10px 14px;font-weight:700;font-size:14px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.tvm-theme-foot{border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;margin:0 8px;opacity:.85}
html[data-tv-standalone="1"] .tvm-appstrip,html[data-tv-standalone="1"] .installAppBtn,html[data-tv-standalone="1"] .tvm-appbtn,html[data-tv-standalone="1"] .tvm-appbtn-wrap{display:none!important}

/* ---------- приложение: телефон и планшет-портрет ---------- */
@media (max-width:899px){
  :root{--tv-top-h:calc((100vw - 92px) / 2);--tvm-bg:#f4f7f4;--tvm-card:#fff;--tvm-line:#dfe8e3;--tvm-ink:#18231d;--tvm-muted:#68756d;--tvm-accent:#0b918b;--tvm-nav:#ffffffee;--tvm-top-h:calc((100vw - 92px) / 2)}
  :root[data-tv-theme="dark"]{--tvm-bg:#0e1517;--tvm-card:#172226;--tvm-line:#26363b;--tvm-ink:#e6efed;--tvm-muted:#9fb0ad;--tvm-accent:#2ec4b6;--tvm-nav:#0f1719f2}
  body{overflow-x:clip}
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;background:var(--tvm-bg)}
  :root:root body .tvm-only-app{display:revert}

  /* шапка: логотип слева, «Войти»/кабинет и меню справа */
  :root:root body header{position:sticky;top:0;z-index:1000;padding-top:env(safe-area-inset-top,0px)}
  :root:root body header .wrap.header{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px!important;min-height:0!important;flex-wrap:nowrap!important}
  :root:root body header .wrap.header .location{display:none!important}
  :root:root body header .brand{min-width:0;flex:1 1 auto;display:grid!important;gap:1px;text-align:left!important;justify-items:start!important}
  :root:root body header .brand{overflow:hidden}
  :root:root body header .brandLine{justify-content:flex-start!important;font-size:var(--tvm-brand,clamp(17px,5.2vw,23px))!important;gap:6px!important;white-space:nowrap;max-width:100%}
  :root:root body header .brandLine .brandRu{flex:0 0 auto;width:1.6em!important;height:1.35em!important;font-size:.6em!important;border-radius:.3em!important}
  :root:root body header .brandLine svg{width:1.4em!important;height:auto!important;flex:0 0 auto}
  :root:root body header .brandSubtitle{display:block!important;font-size:clamp(10px,2.9vw,12px)!important;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62vw}
  :root:root body header .headActions{display:none!important}
  :root:root body .tvm-head{display:flex;align-items:center;gap:4px;flex:0 0 auto}
  :root:root body .tvm-head button{border:0;background:none;color:var(--tvm-ink);display:grid;justify-items:center;gap:2px;padding:4px 6px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;min-width:44px;min-height:44px}
  :root:root body .tvm-head svg{width:26px;height:26px}
  :root:root body .tvm-head .tvm-av{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--tvm-accent);color:#fff;font-size:14px;font-weight:800}

  :root:root body .tvm-appstrip{display:flex;align-items:center;gap:10px;margin:8px 12px 0;padding:8px 8px 8px 12px;border-radius:14px;background:var(--tvm-card);border:1px solid var(--tvm-line);color:var(--tvm-ink)}
  :root:root body .tvm-appstrip img{width:30px;height:30px;border-radius:8px;flex:0 0 auto}
  :root:root body .tvm-appstrip span{flex:1 1 auto;min-width:0;font-size:13px;line-height:1.25}
  :root:root body .tvm-appstrip span b{display:block;font-size:14px}
  :root:root body .tvm-appstrip .tvm-appgo{flex:0 0 auto;border:0;border-radius:10px;padding:9px 12px;font:inherit;font-weight:800;font-size:13px;background:linear-gradient(135deg,#16b3aa,#0b8f89);color:#fff;cursor:pointer;text-decoration:none}
  :root:root body .tvm-appstrip .tvm-appx{flex:0 0 auto;border:0;background:none;color:var(--tvm-muted);font-size:22px;line-height:1;padding:4px 6px;cursor:pointer}
  /* главная: порядок блоков как в приложении */
  :root:root body main.wrap:has(.districtNewsHome){display:flex!important;flex-direction:column;gap:14px;width:calc(100% - 24px)!important;max-width:none!important;margin:10px auto 0!important;padding:0!important;min-height:0!important}
  :root:root body main.wrap:has(.districtNewsHome) .homeColumns,:root:root body main.wrap:has(.districtNewsHome) .homeColumns>.searchShell.homeSearchFull{display:contents!important}
  :root:root body main.wrap:has(.districtNewsHome)>.topPromoWrap{order:1}
  :root:root body main.wrap:has(.districtNewsHome) .searchRow.searchRowMain{order:2}
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid{order:3}
  :root:root body main.wrap:has(.districtNewsHome)>.districtNewsHome{order:4}
  :root:root body main.wrap:has(.districtNewsHome) .homeFeedColumn{order:5}
  :root:root body main.wrap:has(.districtNewsHome) .searchSubmitAd{order:6}
  :root:root body main.wrap:has(.districtNewsHome) .homeRightColumn{order:7}
  :root:root body main.wrap:has(.districtNewsHome)>.tvm-rail-head.left{order:8}
  :root:root body main.wrap:has(.districtNewsHome)>.desktopAdRail.left{order:9}
  :root:root body main.wrap:has(.districtNewsHome)>.tvm-rail-head.right{order:10}
  :root:root body main.wrap:has(.districtNewsHome)>.desktopAdRail.right{order:11}
  :root:root body main.wrap:has(.districtNewsHome)>*:not(.topPromoWrap):not(.quickGrid):not(.districtNewsHome):not(.homeColumns):not(.desktopAdRail):not(.tvm-rail-head){order:5}
  :root:root body main.wrap:has(.districtNewsHome) .siteSearchTitle{display:none!important}

  /* верхняя карусель: одно место на экран, перелистывание стрелками, свайпом и точками */
  :root:root body .topPromoWrap{width:100%!important;margin:0!important}
  :root:root body .topBannerCarousel{position:relative;display:block!important;border-radius:0;overflow:visible!important;padding-bottom:18px!important}
  :root:root body .topBannerCarousel .topBannerViewport{border-radius:16px;overflow:hidden}
  :root:root body .topBannerCarousel .topBannerViewport{width:100%}
  :root:root body .topBannerCarousel .topAdGrid{gap:0!important}
  :root:root body .topBannerCarousel .bottomAdCard{height:var(--tvm-top-h)!important;border-radius:16px!important;margin:0!important}
  :root:root body .topBannerCarousel .bottomAdCard img{object-fit:cover!important}
  :root:root body .topBannerCarousel>.carouselArrow{position:absolute!important;top:calc(50% - 9px);transform:translateY(-50%);z-index:3;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;border-radius:50%!important;background:rgba(8,20,24,.55)!important;color:#fff!important;border:0!important;display:grid!important;place-items:center}
  :root:root body .topBannerCarousel>.carouselArrow:first-child{left:8px}
  :root:root body .topBannerCarousel>.carouselArrow:nth-of-type(2){right:8px}
  :root:root body .topBannerCarousel>.carouselArrow:disabled{opacity:.3!important}
  :root:root body .topBannerCarousel .topBannerCounter{display:none!important}
  :root:root body .tvm-dots{display:flex;position:absolute;left:0;right:0;bottom:2px;display:flex;justify-content:center;gap:7px;z-index:3;pointer-events:none}
  :root:root body .tvm-dots i{width:7px;height:7px;border-radius:50%;background:var(--tvm-line)}
  :root:root body .tvm-dots i.on{background:#2ec4b6;width:9px;height:9px;margin-top:-1px}
  :root:root body .tvm-slotno{display:block;position:absolute;left:10px;top:8px;z-index:3;background:rgba(8,20,24,.6);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;pointer-events:none}

  @media (min-width:600px){ :root{--tvm-top-h:calc((100vw - 34px) / 4);--tv-top-h:calc((100vw - 34px) / 4)} }
  /* поиск: строка + категории */
  :root:root body main.wrap:has(.districtNewsHome) .searchRow.searchRowMain{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(112px,36%)!important;gap:8px!important;position:relative;margin:0!important}
  :root:root body main.wrap:has(.districtNewsHome) .searchRow.searchRowMain input{grid-column:auto!important;width:100%!important;height:48px!important;border-radius:12px!important;padding-left:42px!important;font-size:15px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232ec4b6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:13px 50%!important;min-width:0}
  :root:root body main.wrap:has(.districtNewsHome) .searchRow.searchRowMain select{grid-column:auto!important;width:100%!important;height:48px!important;border-radius:12px!important;font-size:13px!important;min-width:0;padding:0 8px!important}
  :root:root body main.wrap:has(.districtNewsHome) .searchRow.searchRowMain>button{position:absolute!important;left:0;top:0;width:42px!important;min-width:0!important;height:48px!important;padding:0!important;opacity:0;z-index:2}

  /* кнопки категорий: компактно, в один ряд */
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;position:relative;margin:0!important;width:100%!important}
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid>.vsetiQuickLink{display:none!important}
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid .quickCategorySlot{position:static!important;min-width:0}
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid .quick{height:44px!important;min-height:44px!important;width:100%!important;padding:0 2px!important;font-size:clamp(8.5px,2.4vw,12px)!important;letter-spacing:-.02em!important;border-radius:11px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:3px!important;white-space:nowrap;overflow:hidden}
  @media (max-width:400px){ :root:root body main.wrap:has(.districtNewsHome)>.quickGrid .quick svg{display:none!important} }
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid .quick svg{width:13px!important;height:13px!important;flex:0 0 auto;position:static!important;margin:0!important}
  :root:root body main.wrap:has(.districtNewsHome)>.quickGrid .quickSubcategoriesInline{position:absolute!important;left:0;right:0;top:calc(100% + 6px);z-index:40;max-height:60vh;overflow:auto;border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.28)}

  /* новости района: 4 карточки в ряд */
  :root:root body .districtNewsHome{margin:0!important}
  :root:root body .districtNewsHead h2{font-size:19px!important}
  :root:root body .districtNewsGrid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  :root:root body .districtNewsCard{min-width:0;border-radius:14px!important;overflow:hidden;display:grid!important;grid-template-columns:1fr;align-content:start;padding:0!important}
  :root:root body .districtNewsCard .districtNewsImage{width:auto!important;height:auto!important;min-height:0!important;display:flex!important;justify-content:center;padding:10px 0 4px!important;background:none!important;overflow:visible!important}
  :root:root body .districtNewsCard .districtNewsImage img{width:44px!important;height:44px!important;border-radius:50%;object-fit:cover}
  :root:root body .districtNewsCard .newsOrgFallback{width:auto!important;height:auto!important;min-height:0!important;background:none!important;display:grid!important;place-items:center;margin:0!important;position:static!important;transform:none!important}
  :root:root body .districtNewsCard .newsOrgFallback span{width:44px!important;height:44px!important;font-size:12.5px!important}
  :root:root body .districtNewsCard .districtNewsText{padding:4px 8px 10px!important;display:grid;gap:3px;min-width:0}
  :root:root body .districtNewsCard .districtNewsMeta a{font-size:11.5px!important;line-height:1.25;display:block;overflow-wrap:anywhere;font-weight:700}
  :root:root body .districtNewsCard h3{font-size:11px!important;line-height:1.3!important;margin:0!important;font-weight:500!important;opacity:.85;overflow-wrap:anywhere}
  :root:root body .districtNewsCard p{display:none!important}
  :root:root body .districtNewsCard .districtNewsMore{font-size:11px!important;overflow-wrap:anywhere}
  @media (max-width:479px){
    :root:root body .districtNewsGrid{grid-template-columns:1fr 1fr!important}
    :root:root body .districtNewsCard{grid-template-columns:auto minmax(0,1fr);align-items:center}
    :root:root body .districtNewsCard .districtNewsImage{padding:10px 0 10px 10px!important}
    :root:root body .districtNewsCard .districtNewsText{padding:8px 10px 8px 8px!important}
  }

  /* лента: фото слева, текст справа */
  :root:root body .homeFeedColumn .contentGrid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  :root:root body .adCard{position:relative;display:grid!important;grid-template-columns:clamp(118px,38vw,170px) minmax(0,1fr)!important;grid-template-areas:"img main" "img end";column-gap:12px!important;row-gap:4px!important;padding:10px!important;border-radius:16px!important;align-items:start;cursor:pointer}
  :root:root body .adCard>img,:root:root body .adCard>.noPhoto{grid-area:img;grid-column:1!important;grid-row:1 / span 2!important;width:100%!important;height:clamp(96px,30vw,132px)!important;object-fit:cover;border-radius:12px!important;margin:0!important}
  :root:root body .adCard>.adMain{grid-area:main;grid-column:2!important;grid-row:1!important;display:grid!important;gap:3px;min-width:0;padding:0!important}
  :root:root body .adCard>.adEnd{grid-area:end;grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:2px;padding:0!important;min-width:0}
  :root:root body .adCard .adTitle,:root:root body .adCard .adPostAuthor{font-size:15px!important;line-height:1.25;overflow:hidden;text-overflow:ellipsis}
  :root:root body .adCard .adDescription{margin:0!important;font-size:13.5px!important;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  :root:root body .adCard.simplePostCard .adDescription{font-weight:700;text-transform:none}
  :root:root body .adCard .adMain>span{font-size:12px!important;opacity:.8}
  :root:root body .adCard .adPhotoCount{position:absolute!important;left:18px;bottom:18px;z-index:2;background:rgba(0,0,0,.62)!important;color:#fff!important;border-radius:8px!important;padding:2px 7px!important;font-size:12px!important;font-weight:700}
  :root:root body .adCard .adPhotoCount::before{content:"📷 "}
  :root:root body .adCard .adEnd strong{font-size:19px!important;color:var(--tvm-accent)!important;font-weight:800}
  :root:root body .adCard .adEnd small{font-size:12px!important;opacity:.8}
  :root:root body .adCard .adEnd small::before{content:"🕓 "}
  :root:root body .adCard .adContinue,:root:root body .adCard .adEnd button{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;padding:0!important;border:0!important;margin:-1px!important}
  @media (min-width:600px){ :root:root body .homeFeedColumn .adsPanel{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;align-items:start} :root:root body .homeFeedColumn .adsPanel>:not(.adCard){grid-column:1 / -1} }

  :root:root body .socialLinks{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))!important;gap:8px!important}
  :root:root body .socialLinks>.socialLinksCaption{grid-column:1 / -1!important;font-size:17px!important;font-weight:700}
  :root:root body .homeFeedColumn,:root:root body .homeRightColumn{width:100%!important;max-width:100%!important}
  :root:root body .tvm-sysshare{border:1px solid var(--tvm-line);background:var(--tvm-card);color:var(--tvm-ink);border-radius:10px;font:inherit;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;cursor:pointer}
  :root:root body .tvm-sysshare svg{width:18px;height:18px}
  /* реклама в ленте */
  :root:root body .tvm-feedad{position:relative;display:block;border-radius:16px;overflow:hidden;border:1px solid var(--tvm-line);background:var(--tvm-card);text-decoration:none;color:inherit}
  :root:root body .tvm-feedad img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover}
  :root:root body .tvm-feedad .tvm-feedad-tag{position:absolute;left:10px;top:10px;background:rgba(8,20,24,.66);color:#fff;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
  :root:root body .tvm-feedad-note{display:block;font-size:12px;color:var(--tvm-muted);margin:4px 2px 0}

  /* большая кнопка «Подать объявление» */
  :root:root body main.wrap:has(.districtNewsHome) .searchSubmitAd{width:100%!important;height:56px!important;border-radius:16px!important;font-size:18px!important;margin:0!important;background:linear-gradient(135deg,#16b3aa,#0b8f89)!important;color:#fff!important;box-shadow:0 10px 26px rgba(11,145,139,.28)}

  /* боковые рекламные места: лента с перелистыванием, номера сохраняются */
  :root:root body main.wrap>.tvm-rail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 -6px}
  :root:root body .tvm-rail-head b{font-size:15px}
  :root:root body .tvm-rail-head span{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--tvm-muted)}
  :root:root body .tvm-rail-head button{width:34px;height:34px;border-radius:50%;border:1px solid var(--tvm-line);background:var(--tvm-card);color:var(--tvm-ink);font-size:16px;cursor:pointer}
  :root:root body main.wrap .desktopAdRail{position:static!important;display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;gap:8px!important;margin:0!important;width:100%!important;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch;top:auto!important;left:auto!important;right:auto!important}
  :root:root body main.wrap .desktopAdRail::-webkit-scrollbar{display:none}
  :root:root body main.wrap .desktopAdRail .desktopSideAd{flex:0 0 calc(50% - 4px)!important;scroll-snap-align:start;aspect-ratio:2/1!important;min-width:0}

  /* нижняя панель */
  :root:root body .tvm-nav{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:1500;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;background:var(--tvm-nav);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--tvm-line);padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px))}
  :root:root body .tvm-nav button{border:0;background:none;color:var(--tvm-muted);display:grid;justify-items:center;gap:3px;font:inherit;font-size:10.5px;font-weight:600;padding:4px 0;cursor:pointer;min-height:48px;white-space:nowrap;-webkit-tap-highlight-color:transparent}
  :root:root body .tvm-nav button svg{width:25px;height:25px}
  :root:root body .tvm-nav button.on{color:var(--tvm-accent)}
  :root:root body .tvm-nav button.tvm-plus span.tvm-plusbg{width:58px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#1fb3a8,#c9b25f);color:#fff;margin-top:-14px;box-shadow:0 8px 20px rgba(11,145,139,.35)}
  :root:root body .tvm-nav button.tvm-plus svg{width:26px;height:26px}
  :root:root body .feedbackWidget .feedbackLauncher{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}

  /* меню */
  :root:root body .tvm-drawer-wrap{display:flex;position:fixed;inset:0;z-index:2147483100;background:rgba(4,10,12,.55);display:flex;justify-content:flex-end}
  :root:root body .tvm-drawer{width:min(86vw,360px);height:100%;background:var(--tvm-card);color:var(--tvm-ink);overflow:auto;padding:calc(env(safe-area-inset-top,0px) + 14px) 14px calc(env(safe-area-inset-bottom,0px) + 20px);box-sizing:border-box;display:flex;flex-direction:column;gap:4px;box-shadow:-20px 0 50px rgba(0,0,0,.3)}
  :root:root body .tvm-drawer h4{margin:12px 6px 4px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--tvm-muted)}
  :root:root body .tvm-drawer button,:root:root body .tvm-drawer a{display:flex;align-items:center;gap:12px;width:100%;padding:12px 10px;border:0;border-radius:12px;background:none;color:inherit;font:inherit;font-size:15px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box}
  :root:root body .tvm-drawer button:active,:root:root body .tvm-drawer a:active{background:rgba(46,196,182,.12)}
  :root:root body .tvm-drawer .tvm-dhead{display:flex;justify-content:space-between;align-items:center;padding:0 4px 6px;border-bottom:1px solid var(--tvm-line)}
  :root:root body .tvm-drawer .tvm-dhead b{font-size:17px}
  :root:root body .tvm-drawer .tvm-dhead button{width:auto;padding:6px 10px;font-size:26px}
  :root:root body .tvm-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:12px;background:rgba(127,127,127,.12);margin:0 4px}
  :root:root body .tvm-seg button{justify-content:center;padding:9px 4px!important;font-size:13px!important}
  :root:root body .tvm-seg button.on{background:var(--tvm-accent)!important;color:#fff!important}

  /* личный кабинет */
  :root:root body .userCabinetTop{display:grid!important;grid-template-columns:auto 1fr;gap:10px 12px!important;align-items:center;padding-top:env(safe-area-inset-top,0px)}
  :root:root body .userCabinetTop h1{font-size:21px!important;margin:0!important}
  :root:root body .userCabinetTop p{margin:2px 0 0!important;font-size:13px!important;overflow-wrap:anywhere}
  :root:root body .userCabinetActions{grid-column:1 / -1;display:grid!important;grid-template-columns:1fr auto;gap:8px!important}
  :root:root body .userCabinetActions button{min-height:44px;border-radius:12px!important;padding:0 14px!important}
  :root:root body .userCabinetNav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  :root:root body .userCabinetNav button{display:grid!important;gap:3px;text-align:left!important;align-content:start;padding:12px!important;border-radius:14px!important;border:1px solid var(--tvm-line)!important;background:var(--tvm-card)!important;color:var(--tvm-ink)!important;min-height:78px}
  :root:root body .userCabinetNav button b{font-size:14px!important;line-height:1.25}
  :root:root body .userCabinetNav button small{font-size:11.5px!important;color:var(--tvm-muted)!important}
  :root:root body .cabHead{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px 12px!important;align-items:center;padding-top:env(safe-area-inset-top,0px)}
  :root:root body .cabHead h1{font-size:21px!important;margin:0!important}
  :root:root body .cabHead p{margin:2px 0 0!important;font-size:12.5px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  :root:root body .cabHead .adminHeadActions{grid-column:1 / -1;display:flex!important;flex-wrap:wrap;gap:8px!important;justify-content:flex-start!important;position:static!important}
  :root:root body .cabHead .adminHeadActions button{min-height:42px;border-radius:12px!important}
  /* кабинет владельца: боковое меню — горизонтальная лента вкладок */
  :root:root body aside.adminSidebar{position:sticky!important;top:0;z-index:50;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:8px!important;padding-top:calc(env(safe-area-inset-top,0px) + 8px)!important;border-radius:0!important;scrollbar-width:none}
  :root:root body aside.adminSidebar::-webkit-scrollbar{display:none}
  :root:root body aside.adminSidebar>*{flex:0 0 auto!important;white-space:nowrap!important;width:auto!important;margin:0!important}
  :root:root body aside.adminSidebar button{min-height:40px;padding:0 12px!important;border-radius:10px!important;font-size:13px!important}
  :root:root body .adminWorkspace{display:block!important;grid-template-columns:none!important}
  :root:root body .adminWorkspace>*:not(aside){width:100%!important;max-width:100%!important;min-width:0!important}
  :root:root body aside.adminSidebar .adminSidebarTitle{display:none!important}
  /* прочие страницы: поля без горизонтальной прокрутки */
  :root:root body main.wrap{max-width:100%!important;box-sizing:border-box}
  :root:root body .modal,:root:root body .tvad,:root:root body .tvom-modal{max-width:calc(100vw - 16px)!important}
  :root:root body input,:root:root body select,:root:root body textarea{font-size:16px}
  :root:root body footer.safetyFooter{padding-bottom:10px}
}

/* ---------- тёмная тема: элементы, добавленные нашими скриптами ---------- */
:root[data-tv-theme="dark"] .tvm-pop,:root[data-tv-theme="dark"] .tvm-modal{background:#172226;color:#e6efed;border-color:#26363b}
:root[data-tv-theme="dark"] .tvm-pop button:hover,:root[data-tv-theme="dark"] .tvm-pop a:hover{background:#1f2e33}
:root[data-tv-theme="dark"] .tvm-pop small,:root[data-tv-theme="dark"] .tvm-modal .tvm-note{color:#9fb0ad}
:root[data-tv-theme="dark"] #tv-requisites{color:#9fb0ad!important}
:root[data-tv-theme="dark"] #tv-requisites a{color:#5fd3c6!important}
:root[data-tv-theme="dark"] .tvad{background:#172226!important;color:#e6efed!important}
:root[data-tv-theme="dark"] .tvad-card,:root[data-tv-theme="dark"] .tvad-place{border-color:#26363b!important}
:root[data-tv-theme="dark"] .tvad-place.busy{background:#111a1d!important}
:root[data-tv-theme="dark"] .tvad button.tvad-b,:root[data-tv-theme="dark"] .tvad input,:root[data-tv-theme="dark"] .tvad select,:root[data-tv-theme="dark"] .tvad textarea{background:#0f1719!important;color:#e6efed!important;border-color:#2f4247!important}
:root[data-tv-theme="dark"] .tvad button.tvad-p{background:linear-gradient(135deg,#1f9138,#116d29)!important;color:#fff!important}
:root[data-tv-theme="dark"] .tvad-muted{color:#9fb0ad!important}
:root[data-tv-theme="dark"] .tvad-tabs button{background:#1f2e33!important;border-color:#2f4247!important;color:#e6efed!important}
:root[data-tv-theme="dark"] .tvad-tabs button.on{background:#176f2b!important}
:root[data-tv-theme="dark"] .tvad th,:root[data-tv-theme="dark"] .tvad td{border-color:#26363b!important}

/* b12: окна (подача объявления, заявка, просмотр) поверх нижнего меню; кнопки внизу окна всегда видны */
:root:root body:has(.overlay) .tvm-nav{display:none!important}
:root:root body .overlay{z-index:2000!important}
@media (max-width:900px){
  :root:root body .overlay{padding:8px!important;padding-top:calc(env(safe-area-inset-top,0px) + 8px)!important;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;align-items:start!important;overflow:hidden}
  :root:root body .overlay>.modal{max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  :root:root body .overlay>.modal>.modalFoot{position:sticky;bottom:0;z-index:5;background:inherit;padding-bottom:12px!important;box-shadow:0 -8px 16px rgba(0,0,0,.06)}
  :root:root body .overlay>.modal>.modalFoot button{min-height:48px;font-size:16px}
}

/* Ташла-Воронка: мобильная компоновка по видео от 18.10.2026.
   Дополнение к mobile-b16.css. Все изменения только до 899px. */
@media(max-width:899px){
 html:root:root body header .wrap.header{gap:6px!important;padding:8px 10px!important}
 html:root:root body header .brand{min-width:0!important;overflow:visible!important}
 html:root:root body header .brandLine{display:grid!important;grid-template-columns:26px minmax(0,1fr) auto;gap:4px!important;width:100%;min-width:0;align-items:center}
 html:root:root body header .brandLine .qualityShield{display:block;width:26px!important;height:26px!important;max-width:none!important;pointer-events:none;-webkit-user-drag:none}
 html:root:root body header .brandLine>b{min-width:0!important;font-size:clamp(11px,3.7vw,18px)!important;line-height:1.2!important;letter-spacing:0!important;white-space:nowrap;transform:none!important;text-shadow:none;-webkit-text-stroke:0}
 html:root:root body header .brandLine .brandRu{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;height:22px!important;min-width:24px!important;padding:0 3px!important;font-size:10px!important;line-height:1!important;letter-spacing:0!important;flex:none!important;transform:none!important;margin:0!important;border-radius:6px!important}
 html:root:root body header .brandSubtitle{max-width:100%!important;font-size:10px!important}
 html:root:root body main.wrap:has(>.homeColumns){display:flex!important;flex-direction:column;gap:14px;width:calc(100% - 24px)!important;max-width:none!important;margin:10px auto 0!important;padding:0!important;min-height:0!important}
 html:root:root body main.wrap:has(>.homeColumns)>.tashlaCover{order:-1;margin:0}
 html:root:root body main.wrap:has(>.homeColumns)>.topPromoWrap{order:1}
 html:root:root body main.wrap:has(>.homeColumns)>.bizHome{order:2;margin:0}
 html:root:root body main.wrap:has(>.homeColumns)>.quickGrid{order:3}
 html:root:root body main.wrap:has(>.homeColumns)>.homeColumns{order:4}
 html:root:root body main.wrap:has(>.homeColumns)>.tvm-rail-head.left{order:5}
 html:root:root body main.wrap:has(>.homeColumns)>.desktopAdRail.left{order:6}
 html:root:root body main.wrap:has(>.homeColumns)>.tvm-rail-head.right{order:7}
 html:root:root body main.wrap:has(>.homeColumns)>.desktopAdRail.right{order:8}
 /* Фото целиком, высота из пропорций карточки вместо 48/64px. */
 html:root:root body main.wrap .topBannerCarousel .bottomAdCard{position:relative;display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:2/1!important;padding:0!important}
 html:root:root body main.wrap .topBannerCarousel .bottomAdCard>img{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;background:var(--tvm-card)}
 html:root:root body main.wrap .topBannerCarousel .bannerSlotPlaceholder{position:absolute;inset:0;align-items:center;justify-content:center;text-align:center;padding:20px}
 html:root:root body main.wrap .topBannerCarousel .bannerSlotPlaceholder strong{font-size:clamp(14px,3.5vw,18px)}
 html:root:root body main.wrap .topBannerCarousel .bannerSlotPlaceholder small{font-size:12px}
 html:root:root body main.wrap .desktopAdRail .desktopSideAd{position:relative;flex:0 0 100%!important;height:auto!important;min-height:0!important;aspect-ratio:2/1!important;scroll-snap-align:start}
 html:root:root body main.wrap .desktopAdRail .desktopSideAd.filled>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;background:var(--tvm-card)}
 html:root:root body main.wrap .desktopAdRail .desktopSideAd b{font-size:16px!important}
 html:root:root body main.wrap .desktopAdRail .desktopSideAd small{font-size:12px!important}
 /* Четыре компактных витрины. Подробности остаются в полноэкранном просмотре. */
 html:root:root body #tv-biz-home .bzh-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
 html:root:root body #tv-biz-home .bzc{position:relative;border-radius:12px;min-width:0}
 html:root:root body #tv-biz-home .bzc-img{aspect-ratio:1/1}
 html:root:root body #tv-biz-home .bzc-ph{font-size:clamp(9px,2.6vw,13px);padding:5px;line-height:1.2}
 html:root:root body #tv-biz-home .bzc-body{padding:5px;gap:0;flex:0 0 auto}
 html:root:root body #tv-biz-home .bzc-body>p,html:root:root body #tv-biz-home .bzc-body>h3,html:root:root body #tv-biz-home .bzc-body>time{display:none}
 html:root:root body #tv-biz-home .bzc-name{font-size:10px;justify-content:center;line-height:1.25}
 html:root:root body #tv-biz-home .bzc-name img{display:none}
 html:root:root body #tv-biz-home .bzc-name span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center}
 html:root:root body #tv-biz-home .bzc-go{font-size:10px;min-height:28px;padding:4px 2px;border:0;margin:0;line-height:1.2}
 html:root:root body #tv-biz-home .bzc:focus-visible{outline:2px solid var(--tvm-accent);outline-offset:2px}
 html:root:root body #bzm-wrap{padding:0!important;align-items:stretch!important}
 html:root:root body #bzm-wrap .bzm{width:100%!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 html:root:root body #bzm-wrap .bzm-head{position:sticky;top:0;z-index:2;background:var(--bz-bg)}
 html:root:root body #tv-biz-page{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 html:root:root body:has(#bzm-wrap,#tv-biz-page,.tvm-biz-preview) .tvm-nav{display:none!important}
 /* Шесть кнопок в одном ряду, включая «Всегда в сети». */
 html:root:root body main.wrap>.quickGrid.communityQuick{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;width:100%!important;margin:0!important;position:relative}
 html:root:root body main.wrap>.quickGrid.communityQuick .quickCategorySlot{position:static!important;min-width:0}
 html:root:root body main.wrap>.quickGrid.communityQuick .quick,html:root:root body main.wrap>.quickGrid.communityQuick>.vsetiQuickLink{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;min-width:0!important;width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;padding:4px 2px!important;border:1px solid var(--tvm-line)!important;border-radius:10px!important;font-size:clamp(8px,2.25vw,12px)!important;font-weight:700!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:normal;text-decoration:none!important;letter-spacing:0!important;background:var(--tvm-card)!important;color:var(--tvm-ink)!important;box-shadow:none!important}
 html:root:root body main.wrap>.quickGrid.communityQuick .quick svg,html:root:root body main.wrap>.quickGrid.communityQuick>.vsetiQuickLink svg{display:none!important}
 html:root:root body main.wrap>.quickGrid.communityQuick .quick.active{background:var(--tvm-accent)!important;color:white!important;outline:0;box-shadow:inset 0 0 0 2px var(--tvm-accent)!important}
 html:root:root body main.wrap>.quickGrid.communityQuick .quickSubcategoriesInline{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 6px)!important;width:100%!important;max-width:100%!important;max-height:50dvh;overflow:auto;z-index:40}
 /* Ровные карточки действий и читаемые группы сервисов. */
 html:root:root body .homeRightColumn .joinGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html:root:root body .homeRightColumn .joinCard{min-width:0;min-height:96px!important;padding:12px!important;border:1px solid var(--tvm-line)!important;border-radius:14px!important;background:var(--tvm-card)!important;color:var(--tvm-ink)!important;text-align:left!important;animation:none!important;box-shadow:none!important}
 html:root:root body .homeRightColumn .joinCard>b{font-size:13px!important;line-height:1.3;overflow-wrap:anywhere}
 html:root:root body .homeRightColumn .joinCard>span{font-size:11px!important;line-height:1.35;margin-top:6px!important;color:var(--tvm-muted)!important}
 html:root:root body .homeRightColumn .benefitHub{gap:8px!important}
 html:root:root body .homeRightColumn .compactGroupHead{min-height:60px!important;padding:12px!important;border-radius:14px!important;border-color:var(--tvm-line)!important;background:var(--tvm-card)!important;color:var(--tvm-ink)!important;gap:10px}
 html:root:root body .homeRightColumn .compactGroupHead>span{min-width:0;flex:1}
 html:root:root body .homeRightColumn .compactGroupHead b{font-size:14px!important;line-height:1.3}
 html:root:root body .homeRightColumn .compactGroupHead small{font-size:11px!important;line-height:1.35;color:var(--tvm-muted)!important;margin-top:3px}
 html:root:root body .homeRightColumn .compactGroupHead>strong{font-size:20px!important;color:var(--tvm-accent)!important;flex:0 0 20px;text-align:center}
 html:root:root body .homeRightColumn .compactLinks{grid-template-columns:minmax(0,1fr)!important;gap:6px!important;padding:6px 0}
 /* Все шесть социальных значков в одной строке. Семантика групп сохранена. */
 html:root:root body main.wrap .homeRightColumn{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;align-items:flex-start!important;min-width:0!important}
 html:root:root body main.wrap .homeRightColumn>*{flex:0 0 100%;min-width:0;max-width:100%}
 html:root:root body main.wrap .homeRightColumn>.socialLinks{flex:0 0 auto!important}
 html:root:root body .homeRightColumn .socialLinks.shareLinks,html:root:root body .homeRightColumn .socialLinks.searchServiceLinks{display:inline-flex!important;width:auto!important;max-width:100%;flex-wrap:nowrap!important;gap:4px!important;vertical-align:middle;align-items:center!important;margin:10px 6px 10px 0!important}
 html:root:root body .homeRightColumn .socialLinks>.socialLinksCaption{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
 html:root:root body .homeRightColumn .socialLinks .socialLink,html:root:root body .homeRightColumn .socialLinks .tvm-sysshare{flex:0 0 clamp(34px,9vw,40px)!important;width:clamp(34px,9vw,40px)!important;height:clamp(34px,9vw,40px)!important;min-height:0!important;padding:0!important;border-radius:50%!important;position:relative;display:inline-flex!important;align-items:center;justify-content:center}
 html:root:root body .homeRightColumn .socialLinks .socialLink>span:last-child,html:root:root body .homeRightColumn .socialLinks .tvm-sysshare>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
 .tvm-biz-preview{position:fixed;inset:0;z-index:2147483200;background:var(--tvm-card);color:var(--tvm-ink);overflow:auto;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));box-sizing:border-box}
 .tvm-biz-preview>button{display:block;margin-left:auto;min-height:44px;border:1px solid var(--tvm-line);border-radius:12px;background:var(--tvm-card);color:inherit;padding:8px 14px}
 .tvm-biz-preview img{display:block;width:100%;max-height:65dvh;object-fit:contain;margin:16px auto}
}
@media(min-width:600px) and (max-width:899px){html:root:root body main.wrap .desktopAdRail .desktopSideAd{flex-basis:calc(50% - 4px)!important}}

@media(max-width:899px){
 html:root:root body .tvm-nav{align-items:stretch!important}
 html:root:root body .tvm-nav button{min-width:0!important;font-size:10px!important;line-height:1.15!important;white-space:normal!important;grid-template-rows:28px 24px;align-content:end}
 html:root:root body .tvm-nav button>span:not(.tvm-plusbg){max-width:100%;align-self:center;white-space:normal!important}
}
