:root{--bg:#f4f6f9;--card:#fff;--line:#e6e9ef;--txt:#111826;--mut:#6b7787;--acc:#229ED9;
    --acc-soft:#e8f4fb;--radius:16px;--shadow-lg:0 8px 24px rgba(16,24,40,.10);
    --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    --acc2:#e8f6fd;--chip:#eef1f5;--chan:#7c5cff;--chat:#2bab6e;--red:#e0533d;--gold:#e6a800;
    --shadow:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.05)}
  [data-theme=dark]{--bg:#0f1720;--card:#17212b;--line:#243040;--txt:#e7edf3;--mut:#8fa3b5;
    --acc:#3390ec;--acc2:#12283b;--chip:#1d2836;--chan:#9b83ff;--chat:#3ec988;--red:#e2604c;--gold:#f0b73a;--shadow:0 1px 2px rgba(0,0,0,.4)}
  *{box-sizing:border-box}
  body{
    margin:0;overflow-x:clip;background:var(--bg);color:var(--txt);
    /* Inter — современный шрифт для интерфейсов: у него крупнее строчные
       буквы и чётче различаются похожие знаки (1/l/I, 0/O), что важно для
       адресов каналов. Системный шрифт остаётся запасным: если Inter не
       загрузится, вид не поплывёт. */
    font:15px/1.55 "Inter","Inter var",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    font-feature-settings:"cv02","cv03","cv04","ss01";   /* однозначные 1 и l */
  }
  a{color:inherit;text-decoration:none}
  .wrap{max-width:1240px;margin:0 auto;padding:0 16px}
  header.top{position:sticky;top:0;z-index:30;background:var(--card);border-bottom:1px solid var(--line)}
  .bar{display:flex;align-items:center;gap:10px;padding:10px 0}
  .bar .burger{margin-left:auto}
  .logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:16px;white-space:nowrap}
  .logo .dot{width:30px;height:30px;border-radius:9px;background:var(--acc);display:grid;place-items:center;color:#fff;font-size:16px}
  .navlinks{display:flex;gap:2px;margin-left:4px}
  .navlinks a{padding:8px 11px;border-radius:9px;font-size:14px;color:var(--mut);font-weight:600;white-space:nowrap}
  .navlinks a:hover{background:var(--chip);color:var(--txt)}
  .search{flex:1;position:relative;transition:flex-grow .2s}
  .search input{width:100%;padding:11px 14px 11px 40px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--txt);font:inherit;transition:box-shadow .18s,border-color .18s,background .18s}
  .search input:focus{outline:none;border-color:var(--acc);background:var(--card);box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 16%,transparent)}
  .search.focused{flex-grow:3}
  /* Иконка по центру поля, а не на фиксированном отступе: высота поля разная
     на телефоне и на широком экране, и от top:11px иконка съезжала вверх. */
  .search svg,.search .sico{position:absolute;left:13px;top:50%;transform:translateY(-50%);
    opacity:.5;pointer-events:none;transition:opacity .18s}
  .search input:focus + svg,.search.focused svg{opacity:.9}
  .tbtn{border:1px solid var(--line);background:var(--bg);color:var(--txt);height:40px;min-width:40px;padding:0 10px;border-radius:10px;cursor:pointer;font-size:15px}
  .burger{display:inline-grid;place-items:center}
  .tbtn.on{background:var(--acc);border-color:var(--acc);color:#fff}
  .ad{margin:14px 0}
  .layout{display:grid;grid-template-columns:1fr;gap:18px;margin:10px 0 40px}
  /* без min-width:0 колонка grid не сжимается уже содержимого — длинный ряд
     чипсов растягивал ВСЮ страницу и каталог уезжал вправо на телефоне */
  .layout>main,.layout>.side{min-width:0}
  /* ---------- дизайн-система CatLokal ---------- */
  h1{font-size:clamp(27px,5.2vw,40px);font-weight:800;letter-spacing:-.02em;line-height:1.1;text-wrap:balance}
  h2.sect{margin:26px 0 14px;font-size:clamp(19px,2.6vw,23px);font-weight:700;letter-spacing:-.01em;
    color:var(--txt);text-transform:none}
  .secthead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:26px 0 14px}
  .secthead h2{margin:0;font-size:clamp(19px,2.6vw,23px);font-weight:700;letter-spacing:-.01em}
  .secthead .mut{font-size:13px}
  .num{font-family:var(--mono);font-variant-numeric:tabular-nums}
  /* логотип */
  .logo{display:flex;align-items:center;text-decoration:none}
  .logo .logoimg{height:44px;width:auto;display:block}
  /* первый экран: поиск + выбор страны и города */
  .hero{margin:4px 0 8px}
  .hero p{margin:12px 0 0;font-size:clamp(15px,2vw,17px);color:var(--mut);max-width:560px}
  .findbar{margin-top:20px;background:var(--card);border:1px solid var(--line);border-radius:18px;
    box-shadow:var(--shadow-lg);padding:16px;display:block}
  .findbar .fsearch{display:flex;align-items:center;gap:12px;height:56px;padding:0 16px;
    border-radius:14px;background:var(--bg);border:1px solid var(--line)}
  .findbar .fsearch svg{flex:none;color:var(--mut)}
  .findbar .fsearch input{border:0;background:transparent;outline:none;font-size:16px;color:var(--txt);width:100%;padding:0}
  .findsel{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:12px}
  .findsel select{height:52px;padding:0 14px;border-radius:14px;background:var(--card);
    border:1px solid var(--line);font:inherit;font-size:16px;color:var(--txt);width:100%}
  .findsel select:focus{outline:none;border-color:var(--acc)}
  /* плитки: страна / тип / площадка / рубрика */
  .tiles{display:grid;gap:12px}
  .tiles.c-country{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
  .tiles.c-type{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
  .tiles.c-plat{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
  .tiles.c-cat{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))}
  .tile{display:flex;align-items:center;gap:13px;background:var(--card);border:1px solid var(--line);
    border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;color:var(--txt);
    transition:transform .12s,border-color .12s,box-shadow .12s}
  .tile:hover{transform:translateY(-2px);border-color:var(--acc);box-shadow:var(--shadow-lg)}
  /* min-width:0 обязателен: без него nowrap-название задаёт минимальную ширину
     плитки и распирает сетку — страница уезжает вбок на узких экранах */
  .tile{min-width:0}
  .tile .tname{flex:1;min-width:0;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tile.vert .row{min-width:0}
  .tile .tnum{font-family:var(--mono);font-size:14px;color:var(--mut);flex:none;font-variant-numeric:tabular-nums}
  .tile .ico{display:inline-flex;align-items:center;justify-content:center;flex:none;
    width:46px;height:46px;border-radius:13px;background:var(--acc-soft);color:var(--acc)}
  .tile .ico.solid{color:#fff}
  .tile.small .ico{width:38px;height:38px;border-radius:11px}
  .tile.small .tname{font-size:14px;white-space:normal;line-height:1.2}
  .tile .subs{display:block;margin-top:3px;font-size:11.5px;font-weight:500;color:var(--mut);
    line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tile.on{border-color:var(--acc);background:var(--acc-soft)}
  /* «ничего не найдено» и 404 — не тупик, а развилка */
  /* шапка карточки: крупный аватар и ключевые факты рядом */
  .dava{width:104px;height:104px;border-radius:24px;font-size:42px}
  .dhead{gap:18px;align-items:center}
  .dtitle .h{font-size:clamp(22px,3.4vw,30px);font-weight:800;letter-spacing:-.02em;line-height:1.15}
  .dtitle .u{font-size:14.5px;margin-top:4px}
  .facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:18px 0 4px}
  .fact{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px 14px;
    display:flex;flex-direction:column;gap:2px;min-width:0}
  .fact b{font-size:18px;font-weight:800;letter-spacing:-.01em;overflow:hidden;
    text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
  .fact span{font-size:12px;color:var(--mut);text-transform:lowercase}
  /* подсказка шага — компактная, чтобы карточки начинались выше */
  .hero.bottom{margin:34px 0 8px;padding-top:22px;border-top:1px solid var(--line)}
  /* подвал: бренд слева, дальше разделы, рубрики и информация столбиками */
  footer.site{border-top:1px solid var(--line);margin-top:36px;padding:26px 0 30px}
  .fcols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:26px}
  .fcol{display:flex;flex-direction:column;gap:9px;min-width:0}
  .fcol h4{margin:0 0 2px;font-size:12px;font-weight:700;letter-spacing:.06em;
    text-transform:uppercase;color:var(--mut)}
  .fcol a{color:var(--txt);font-size:14px;text-decoration:none}
  .fcol a:hover{color:var(--acc)}
  /* кнопка — не обычная ссылка колонки: при наведении текст оставался
     акцентным на акцентном фоне и пропадал */
  .fcol a.btn{color:#fff}
  .fcol a.btn.pri:hover{color:#fff;background:#1b87ba;border-color:#1b87ba}
  .fbrand{align-items:flex-start}
  .fbrand .flogo{height:36px;width:auto;max-width:100%;display:block;margin:0 0 6px}
  .fabout{margin:0;font-size:13.5px;color:var(--mut);line-height:1.5;max-width:320px}
  .fadd{align-self:flex-start;margin-top:4px;padding:11px 18px;font-size:14px}
  .fcopy{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);
    font-size:12.5px;color:var(--mut);line-height:1.6}
  @media(max-width:860px){ .fcols{grid-template-columns:1fr 1fr;gap:22px} .fbrand{grid-column:1/-1} }
  @media(max-width:520px){ .fcols{grid-template-columns:1fr} }
  .addform{max-width:720px}
  .fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
  .fgrid .f2{grid-column:1/-1}
  .fgrid label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:600;color:var(--txt)}
  .fgrid input,.fgrid select,.fgrid textarea{font:inherit;font-size:16px;font-weight:400;color:var(--txt);
    background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 14px;width:100%}
  .fgrid input:focus,.fgrid select:focus,.fgrid textarea:focus{outline:none;border-color:var(--acc)}
  .fgrid .hint{font-weight:400;color:var(--mut)}
  .qbox{background:var(--acc-soft);border-radius:12px;padding:12px 14px}
  .qbox b{font-size:16px}
  .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
  .okbox{background:color-mix(in srgb,#2bab6e 12%,transparent);color:#1c7a4d;border-radius:12px;padding:14px 16px;margin:12px 0}
  .errbox{background:color-mix(in srgb,var(--red) 12%,transparent);color:#b23a26;border-radius:12px;padding:12px 14px;margin:12px 0;font-weight:600}
  .fcopy{margin-top:10px;font-size:12.5px;color:var(--mut);line-height:1.5}
  .addlink{font-weight:700;color:var(--acc)}
  @media(max-width:640px){.fgrid{grid-template-columns:1fr}}
  .seo{margin:6px 0 10px;max-width:760px;color:#41505f;font-size:15px;line-height:1.65}
  .seo h2{font-size:17px;font-weight:700;color:var(--txt);margin:22px 0 8px}
  .seo p{margin:0 0 10px} .seo ul{margin:0 0 10px;padding-left:20px} .seo li{margin:0 0 6px}
  .seo a{color:var(--acc);font-weight:600}
  .seo b{color:var(--txt)}
  .hero.bottom h1{font-size:clamp(20px,3vw,27px)}
  .dwsearch{display:flex;align-items:center;gap:10px;margin:2px 6px 12px;padding:0 13px;height:46px;
    background:var(--bg);border:1px solid var(--line);border-radius:13px;color:var(--mut)}
  .dwsearch.focused{border-color:var(--acc)}
  .codrop{border-bottom:1px solid var(--line)}
  .codrop:last-of-type{border-bottom:0}
  .codrop>summary{display:grid;grid-template-columns:24px 1fr auto 16px;align-items:center;gap:10px;
    min-height:48px;padding:10px 12px;cursor:pointer;font-size:15px;font-weight:600;
    border-radius:12px;list-style:none}
  .codrop>summary::-webkit-details-marker{display:none}
  .codrop>summary::after{content:'';width:11px;height:11px;justify-self:end;
    border-right:1.9px solid var(--mut);border-bottom:1.9px solid var(--mut);border-radius:2px;
    transform:rotate(45deg) translate(-3px,-3px);transition:transform .15s}
  .codrop[open]>summary::after{transform:rotate(225deg) translate(-2px,-2px)}
  .codrop>summary:hover{background:var(--chip)}
  .codrop .conm{display:contents}
  .codrop .conm .flag{width:24px;height:16px;border-radius:3px;justify-self:center}
  .codrop>summary .n{color:var(--mut);font-weight:500;font-size:13px;font-variant-numeric:tabular-nums}
  .cityitem.sub{font-size:14.5px;min-height:44px;border-bottom:0;padding-left:12px}
  .mico{display:inline-flex;width:22px;height:22px;color:var(--acc);flex:none;margin-right:8px}
  .mico svg{width:22px;height:22px}
  .dwsearch input{border:0;background:transparent;outline:none;font:inherit;font-size:16px;
    color:var(--txt);width:100%;padding:0}
  .ccbar{position:fixed;left:12px;right:12px;bottom:12px;z-index:70;background:var(--card);
    border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);
    padding:14px 16px calc(14px + env(safe-area-inset-bottom));display:flex;gap:12px;
    align-items:center;flex-wrap:wrap;max-width:760px;margin:0 auto}
  .ccbar{align-items:flex-start;flex-wrap:wrap}
  .cctext{flex:1 1 300px;min-width:0}
  .cctext b{font-size:15px;color:var(--txt)}
  .ccbar p{margin:6px 0 8px;font-size:13.5px;color:var(--mut);line-height:1.45}
  .cctext p b{font-size:13.5px;color:var(--txt)}
  .ccopt{display:inline-flex;align-items:center;gap:7px;margin-right:14px;font-size:13.5px;
    color:var(--txt);cursor:pointer}
  .ccopt input{width:17px;height:17px;accent-color:var(--acc)}
  .ccbtns{display:flex;gap:8px;flex-wrap:wrap;flex:none}
  .ccbar button{border:1px solid var(--line);background:var(--card);color:var(--txt);
    border-radius:12px;height:42px;padding:0 16px;font:inherit;font-weight:700;cursor:pointer}
  .ccbar button.pri{background:var(--acc);color:#fff;border-color:var(--acc)}
  .ccbar a{color:var(--acc);font-weight:600}
  .ccbar button{border:0;background:var(--acc);color:#fff;border-radius:12px;height:42px;
    padding:0 22px;font:inherit;font-weight:700;cursor:pointer;flex:none}
  a.more{display:block;text-align:center;text-decoration:none}
  .stephint{margin:10px 0 0;padding:9px 13px;background:var(--acc-soft);color:#1b7fb0;
    border-radius:11px;font-size:13.5px;font-weight:600;display:inline-block}
  .nf,.nf404{background:var(--card);border:1px solid var(--line);border-radius:18px;
    box-shadow:var(--shadow);padding:20px;margin:12px 0 18px}
  .nf:empty{display:none}
  .nf404 h1{margin:0 0 8px} .nf404 p{margin:0 0 12px}
  .nfhint{margin:0 0 12px;color:var(--mut);font-size:14.5px}
  .tile .flag{width:30px;height:20px;border-radius:4px;box-shadow:0 0 0 1px rgba(16,24,40,.08);flex:none}
  .tile.vert{flex-direction:column;align-items:stretch;gap:12px}
  .tile.vert .row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .tile.vert .tname{font-size:15px;font-weight:700;flex:0 1 auto}
  .tile .pico{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;
    border-radius:13px;flex:none}
  .tile .pico svg{width:26px;height:26px}
  /* карточка ресурса — по дизайн-системе CatLokal */
  .card{border-radius:18px;padding:18px;gap:12px;box-shadow:var(--shadow)}
  .card:hover{box-shadow:var(--shadow-lg);border-color:var(--acc)}
  .chead{gap:12px;align-items:flex-start}
  .ava{width:48px;height:48px;border-radius:12px;font-size:20px;font-weight:700}
  .nm{font-size:16px;font-weight:700;line-height:1.25;white-space:normal;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .un{font-size:13px;color:var(--mut);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .desc{font-size:14px;color:#41505f;line-height:1.4;-webkit-line-clamp:3}
  .badges{gap:6px}
  .b{padding:4px 9px;border-radius:8px;background:var(--bg);color:var(--mut);font-size:12px;font-weight:600}
  .b.mem b,.b .num{color:var(--txt);font-family:var(--mono)}
  .b.promo{background:var(--acc-soft);color:#1b7fb0}
  .open{border-radius:12px;font-weight:700;font-size:14px;padding:12px}
  /* чипы фильтров */
  .tchip,.pchip,.citychip{border-radius:12px;padding:9px 14px;font-size:14px;font-weight:600;
    background:var(--card);border:1px solid var(--line);color:var(--txt);min-height:40px}
  .tchip.on,.pchip.on,.citychip.on{background:var(--acc);border-color:var(--acc);color:#fff}
  .tchip:hover,.pchip:hover,.citychip:hover{border-color:var(--acc)}
  /* кнопки и переключатели */
  .seg,.viewsw{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:4px;gap:2px}
  .seg button,.viewsw button{border-radius:10px;font-weight:600;font-size:14px;padding:8px 14px;min-height:38px}
  .seg button.on,.viewsw button.on{background:var(--acc);color:#fff}
  .ctlbtn{border-radius:12px;height:46px;padding:0 15px;font-size:14px;box-shadow:var(--shadow)}
  .btn{border-radius:14px;padding:13px 20px;font-weight:700;font-size:15px}
  .btn.pri{box-shadow:0 8px 24px rgba(34,158,217,.28)}
  /* шапка */
  header.top{background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
  .search input{border-radius:14px;height:46px;font-size:15px}
  .tbtn{border-radius:12px;height:44px;min-width:44px}
  /* хлебные крошки и заголовки разделов */
  .crumbs{font-size:13px;color:var(--mut);margin:0 0 12px}
  .backlink{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;padding:8px 14px;
    background:var(--card);border:1px solid var(--line);border-radius:12px;font-size:14px;
    font-weight:600;color:var(--txt);box-shadow:var(--shadow);min-height:40px}
  .backlink:hover{border-color:var(--acc);color:var(--acc)}
  .detail{border-radius:18px}
  .reccard{border-radius:14px}
  .cityitem{border-radius:10px;min-height:44px;display:flex;align-items:center}
  .card,.chead,.reccard,.detail{min-width:0}
  .side{padding:0}
  .side h4{margin:8px 10px;color:var(--mut);font-size:12px;text-transform:uppercase;letter-spacing:.4px}
  .cityitem{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:14px}
  .cityitem:hover{background:var(--chip)} .cityitem.on{background:var(--acc);color:#fff}
  .cityitem .n{color:var(--mut)} .cityitem.on .n{color:#eaf5ff}
  .citybox summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px}
  .citybox summary::-webkit-details-marker{display:none}
  .citybox summary h4{margin:8px 10px}
  .citybox summary::after{content:'▾';margin-left:auto;margin-right:10px;color:var(--mut);transition:transform .15s}
  .citybox[open] summary::after{transform:rotate(180deg)}
  .cursel{color:var(--acc);font-size:13px;font-weight:600}
  .cityhero{position:relative;border-radius:14px;overflow:hidden;margin:4px 0 10px;max-height:200px}
  .cityhero img{width:100%;height:200px;object-fit:cover;display:block}
  .cityhero span{position:absolute;left:14px;bottom:10px;color:#fff;font-size:24px;font-weight:800;text-shadow:0 2px 8px rgba(0,0,0,.6)}
  .catdesc{color:var(--mut);margin:0 0 10px;font-size:14px}
  .citychips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 8px}
  .citychip{display:inline-flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:7px 13px;font-size:14px;font-weight:600}
  .citychip:hover{border-color:var(--acc);color:var(--acc)}
  .citychip span{color:var(--mut);font-weight:500;font-size:12px}
  /* компактная строка-счётчик под шапкой */
  footer.site .stats{margin:18px 0 0}
  .stats{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:24px 0 8px;padding:8px 14px;background:var(--card);border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--mut);justify-content:center}
  .stats .stat{display:inline-flex;gap:5px;align-items:baseline;background:none;border:0;padding:0;box-shadow:none}
  .stats .stat b{font-size:14px;color:var(--txt)} .stats .stat span{font-size:13px;color:var(--mut)}
  .stats .sep{opacity:.4}
  .stat b{display:block;font-size:20px} .stat span{color:var(--mut);font-size:12.5px}
  h1{font-size:23px;margin:6px 0} .mut{color:var(--mut);margin:0 0 6px}
  h2.city{margin:22px 0 8px;font-size:19px} h2.city .n{color:var(--mut);font-size:13.5px;font-weight:500}
  h2.topic,.topic{margin:18px 0 8px;font-size:14px;color:var(--mut);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
  .topic .n{background:var(--chip);color:var(--mut);border-radius:20px;padding:2px 8px;font-size:12px;
    font-weight:600;margin-left:6px;letter-spacing:0;font-variant-numeric:tabular-nums;text-transform:none}
  .topic .cnt{display:inline-block;background:var(--chip);color:var(--mut);border-radius:7px;
    padding:1px 7px;margin-left:7px;font-size:12px;font-weight:600;text-transform:none;letter-spacing:0}
  .crumbs{color:var(--mut);font-size:13px;margin:2px 0 10px} .crumbs a{color:var(--acc)}
  .page{max-width:820px} .page h1{font-size:26px;margin:6px 0 14px}
  .pagebody{font-size:16px;line-height:1.7} .pagebody h2{font-size:20px;margin:22px 0 8px} .pagebody h3{font-size:17px;margin:18px 0 6px}
  .pagebody p{margin:0 0 12px} .pagebody ul,.pagebody ol{margin:0 0 12px 22px} .pagebody a{color:var(--acc)} .pagebody img{max-width:100%;border-radius:10px}
  .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:13px}
  .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:15px;box-shadow:var(--shadow);position:relative;transition:transform .12s,border-color .12s}
  .card:hover{transform:translateY(-2px);border-color:var(--acc)}
  .chead{display:flex;gap:11px;align-items:center}
  .ava{width:50px;height:50px;border-radius:13px;object-fit:cover;flex:none;background:var(--acc2)}
  .ava.ph{display:grid;place-items:center;color:#fff;font-weight:700;font-size:19px;background:var(--acc)}
  .nm{font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .un{color:var(--mut);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .badges{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 7px}
  /* длинные названия разделов не должны распирать строку бейджей на узких экранах */
  .b{font-size:11.5px;padding:3px 8px;border-radius:7px;font-weight:600;max-width:100%;overflow-wrap:anywhere}
  .b.type-chan{background:color-mix(in srgb,var(--chan) 16%,transparent);color:var(--chan)}
  .b.type-chat{background:color-mix(in srgb,var(--chat) 16%,transparent);color:var(--chat)}
  .b.type-bot{background:color-mix(in srgb,var(--gold) 18%,transparent);color:var(--gold)}
  .b.type-ext{background:color-mix(in srgb,#1877f2 16%,transparent);color:#1877f2}
  .topicbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:2px 0 14px}
  .topicbar .tlabel{color:var(--mut);font-size:12.5px;font-weight:600;margin-right:2px}
  .tchip{background:var(--chip);color:var(--txt);border:1px solid transparent;border-radius:20px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer}
  .tchip:hover{border-color:var(--acc)} .tchip.on{background:var(--acc);color:#fff}
  .tchip span{opacity:.65;font-weight:500;margin-left:3px}
  .seg .n{opacity:.7;font-weight:500;font-size:11px;margin-left:2px}
  /* ---- бренд внешних площадок: фавиконка бренда в месте аватара ---- */
  .brandtile{display:grid;place-items:center;overflow:hidden}
  .brandtile .bico{width:60%;height:60%;display:block}
  /* ---- фильтр по площадкам (чипсы) ---- */
  .platbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:4px 0 14px}
  /* группа выбора площадки живёт внутри строки управления, рядом с типом */
  .platgrp{display:inline-flex;gap:7px;align-items:center;flex:none}
  .cdiv{width:1px;align-self:stretch;min-height:26px;background:var(--line);flex:none;margin:0 3px}
  .pchip{display:inline-flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--line);
    border-radius:20px;padding:6px 13px;font-size:13.5px;font-weight:600;white-space:nowrap}
  .pchip:hover{border-color:var(--acc)} .pchip span{opacity:.6;font-weight:500}
  .pchip.on span{opacity:.85}
  .pfav{width:18px;height:18px;border-radius:5px;flex:none;display:inline-grid;place-items:center;
    vertical-align:-4px;margin-right:6px}
  .pfav .bico{width:74%;height:74%;display:block}
  .cityitem .pfav{margin-right:2px}
  /* ---- шапка страницы площадки ---- */
  .plathead{display:flex;gap:14px;align-items:center;margin:4px 0 10px}
  .plathead h1{margin:0;font-size:22px} .plathead .mut{margin:2px 0 0}
  .platico{position:relative;width:54px;height:54px;border-radius:14px;display:grid;place-items:center;flex:none;overflow:hidden}
  .platico .bico{width:60%;height:60%;display:block}
  /* ---- мобильные: бургер, выдвижное меню фильтров, затемнение ---- */
  /* кнопка выбора площадки в строке управления (справа) */
  .ctlbtn{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--card);
    color:var(--txt);height:38px;padding:0 13px;border-radius:10px;font:inherit;font-weight:600;font-size:13.5px;
    cursor:pointer;white-space:nowrap;flex:none}
  .ctlbtn:hover{border-color:var(--acc)}
  .ctlbtn b{background:var(--acc);color:#fff;border-radius:9px;padding:1px 7px;font-size:11.5px}
  .ctlbtn .pfav{margin-right:0}
  .cspacer{flex:1 1 auto;min-width:8px}
  /* выдвижные панели: тематика — слева, города и страны — справа */
  .drawer{position:fixed;top:0;bottom:0;width:min(330px,86vw);background:var(--card);
    z-index:60;transition:transform .22s ease;display:flex;flex-direction:column;overscroll-behavior:contain}
  .drawer.left{left:0;border-right:1px solid var(--line);transform:translateX(-101%)}
  .drawer.right{right:0;border-left:1px solid var(--line);transform:translateX(101%)}
  .drawer.on{transform:none;box-shadow:-12px 0 48px rgba(16,24,40,.22)}
  /* меню справа — шире и заметнее, крупные строки под палец */
  .drawer.right{width:min(400px,92vw)}
  .drawer .dwhead{padding:16px 18px;font-size:17px;font-weight:800}
  .drawer .dwhead button{width:40px;height:40px;border-radius:11px;font-size:18px}
  .drawer .dwbody{padding:12px 12px calc(24px + env(safe-area-inset-bottom))}
  .drawer h4{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
    color:var(--mut);margin:14px 6px 8px}
  /* Один каркас для всех пунктов меню: иконка — название — счётчик.
     Раньше у стран флаг был внутри summary, у рубрик иконка перед текстом,
     а у «Все страны» иконки не было — колонки не совпадали. */
  .drawer .cityitem{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:10px;
    min-height:48px;padding:10px 12px;font-size:15px;border-radius:12px;
    border-bottom:1px solid var(--line)}
  .drawer .cityitem .n{justify-self:end;color:var(--mut);font-weight:500;font-size:13px;
    font-variant-numeric:tabular-nums}
  .drawer .cityitem .mico,.drawer .cityitem .flag,.drawer .cityitem .pfav{grid-column:1;justify-self:center;margin:0}
  .drawer .cityitem.sub{grid-template-columns:24px 1fr auto}
  .drawer .cityitem:last-child{border-bottom:0}
  .drawer .cityitem.on{background:var(--acc-soft);color:var(--acc);font-weight:700}
  .drawer .dwnav a{padding:11px 14px;border-radius:11px;font-size:15px;min-height:44px;display:flex;align-items:center}
  /* сохранённая локация */
  .locchip{display:inline-flex;align-items:center;gap:6px;background:var(--acc-soft);color:var(--acc);
    border-radius:12px;padding:0 6px 0 12px;height:38px;font-size:13.5px;font-weight:700;flex:none}
  .locchip button{border:0;background:transparent;color:inherit;cursor:pointer;font-size:15px;
    width:28px;height:28px;border-radius:8px}
  .locchip button:hover{background:rgba(34,158,217,.15)}
  .locsave{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;color:var(--mut);
    background:var(--card);border:1px solid var(--line);border-radius:12px;height:38px;padding:0 12px;
    cursor:pointer;flex:none;white-space:nowrap}
  .locsave input{width:17px;height:17px;accent-color:var(--acc)}
  /* лист выбора площадки: снизу на телефоне, окошком по центру на десктопе */
  .sheet{position:fixed;inset:0;z-index:62;display:none;place-items:center;padding:16px}
  .sheet.on{display:grid}
  .sheetbox{background:var(--card);border:1px solid var(--line);border-radius:14px;width:100%;max-width:420px;
    max-height:80vh;overflow:auto;box-shadow:0 10px 40px rgba(0,0,0,.28)}
  .sheetbody{padding:8px}
  .plrow{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;cursor:pointer;font-weight:600;font-size:14.5px}
  .plrow:hover{background:var(--chip)} .plrow.on{background:var(--acc);color:#fff}
  .plrow .n{margin-left:auto;opacity:.7;font-weight:500;font-size:13px}
  .dwhead{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);font-weight:800;flex:none}
  .dwhead button{margin-left:auto;border:0;background:var(--chip);color:var(--txt);width:34px;height:34px;border-radius:9px;font-size:17px;cursor:pointer}
  .dwbody{overflow:auto;padding:8px 8px calc(20px + env(safe-area-inset-bottom));flex:1;-webkit-overflow-scrolling:touch}
  .dwnav{display:flex;flex-wrap:wrap;gap:6px;padding:8px 6px 10px;border-bottom:1px solid var(--line);margin-bottom:6px}
  .dwnav a{padding:9px 13px;border-radius:9px;background:var(--chip);font-size:14px;font-weight:600}
  .scrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:55;opacity:0;pointer-events:none;transition:opacity .22s}
  .scrim.on{opacity:1;pointer-events:auto}
  body.noscroll{overflow:hidden}
  .b.mem{background:var(--acc2);color:var(--acc)} .b.city{background:var(--chip);color:var(--mut)}
  .b.land{background:color-mix(in srgb,var(--acc) 12%,transparent);color:var(--acc)}
  .b.promo{background:color-mix(in srgb,var(--gold) 20%,transparent);color:var(--gold)}
  .desc{color:var(--mut);font-size:13px;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .cfoot{display:flex;align-items:center;gap:8px;margin-top:11px}
  .open{flex:1;text-align:center;padding:9px;border-radius:9px;background:var(--acc);color:#fff;font-weight:600;font-size:13.5px}
  .admbtns{display:flex;gap:6px} .iconbtn{border:1px solid var(--line);background:var(--bg);border-radius:8px;cursor:pointer;width:34px;height:34px;font-size:14px}
  .iconbtn.del:hover{border-color:var(--red);color:var(--red)}
  .more{display:block;margin:22px auto 40px;padding:11px 24px;border:1px solid var(--line);background:var(--card);color:var(--txt);border-radius:10px;cursor:pointer;font:inherit;font-weight:600}
  .empty{text-align:center;color:var(--mut);padding:50px 0;line-height:1.7}
  .detail{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow);margin-bottom:14px}
  .dhead{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
  .dava{width:76px;height:76px;border-radius:18px;object-fit:cover;background:var(--acc2)}
  .dava.ph{display:grid;place-items:center;color:#fff;font-weight:700;font-size:30px;background:var(--acc)}
  .dtitle .h{font-size:22px;font-weight:800;margin:0} .dtitle .u{color:var(--mut)}
  .dgrid{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0;min-width:0} .ddesc{margin:8px 0 0;white-space:pre-wrap}
  .dact{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
  .btn{padding:11px 20px;border-radius:10px;font-weight:600;border:1px solid var(--line);background:var(--card);color:var(--txt);cursor:pointer;font:inherit}
  .btn.pri{background:var(--acc);border-color:var(--acc);color:#fff} .btn.del{color:var(--red);border-color:var(--red)}
  .back{color:var(--acc);cursor:pointer;display:inline-block;margin:4px 0 12px}
  .modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;place-items:center;z-index:50;padding:16px}
  .modal.on{display:grid}
  .mbox{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px;max-width:520px;width:100%;max-height:90vh;overflow:auto}
  .mbox label{display:block;font-weight:600;margin:12px 0 5px;font-size:14px}
  .mbox input,.mbox textarea,.mbox select{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--txt);font:inherit}
  .mbox textarea{min-height:70px;resize:vertical}
  footer{border-top:1px solid var(--line);color:var(--mut);font-size:13px;padding:20px 0;margin-top:20px}
  /* сегментированный переключатель Все/Чаты/Каналы + вид сетка/список */
  .controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
  .seg{display:inline-flex;background:var(--chip);border-radius:10px;padding:3px;gap:2px}
  .seg button{border:0;background:none;color:var(--mut);font:inherit;font-weight:600;font-size:13.5px;padding:7px 14px;border-radius:8px;cursor:pointer}
  .seg button.on{background:var(--card);color:var(--txt);box-shadow:var(--shadow)}
  .catsel{margin-left:auto;display:flex;gap:8px;align-items:center}
  .catsel select{padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--txt);font:inherit;font-size:13.5px}
  .viewsw{display:inline-flex;background:var(--chip);border-radius:10px;padding:3px;gap:2px}
  .viewsw button{border:0;background:none;color:var(--mut);width:34px;height:32px;border-radius:8px;cursor:pointer;font-size:15px}
  .viewsw button.on{background:var(--card);color:var(--txt);box-shadow:var(--shadow)}
  /* список (вид «строкой») */
  .grid.list{grid-template-columns:1fr;gap:8px}
  .grid.list .card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:10px 13px}
  .grid.list .chead{display:contents}
  .grid.list .badges{margin:0;justify-self:start}
  .grid.list .desc{display:none}
  .grid.list .cfoot{margin:0}
  .grid.list .open{padding:8px 14px}
  /* рекомендации / похожие — компактный горизонтальный список, визуально иной */
  .reclist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;margin:6px 0 8px}
  .reccard{display:flex;gap:10px;align-items:center;background:color-mix(in srgb,var(--acc) 5%,var(--card));border:1px dashed var(--line);border-radius:11px;padding:9px 11px}
  .reccard:hover{border-color:var(--acc)}
  .recava{width:40px;height:40px;border-radius:10px;object-fit:cover;background:var(--acc2);flex:none}
  .recava.ph{display:grid;place-items:center;color:#fff;font-weight:700;background:var(--acc)}
  .recnm{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .recmeta{color:var(--mut);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* карточка-страница канала выделяется */
  .detail.feature{border:1px solid color-mix(in srgb,var(--acc) 35%,var(--line));box-shadow:0 3px 16px color-mix(in srgb,var(--acc) 14%,transparent);border-top:3px solid var(--acc)}
  .admonly{margin:10px 0 0;font-size:13px;color:var(--mut);background:color-mix(in srgb,var(--gold) 12%,transparent);padding:7px 10px;border-radius:8px}
  /* страна-плитки на главной */
  .countrytiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:8px 0 20px}
  /* плитка: флаг + название слева, счётчик — отдельной колонкой справа.
     Раньше счётчик шёл строкой под названием и на широком экране «расползался». */
  .ctile{flex-direction:row;align-items:center;gap:12px}
  .ctile .ctxt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
  .ctile .cnum{margin-left:auto;flex:none;background:var(--chip);color:var(--mut);
    border-radius:8px;padding:3px 9px;font-size:12.5px;font-weight:600;line-height:1.3;text-align:center}
  .ctile:hover .cnum{background:var(--acc2);color:var(--acc)}
  .flag{width:34px;height:23px;border-radius:4px;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
  .flag.noflag{display:grid;place-items:center;background:var(--acc);color:#fff;font-weight:700;font-size:13px}
  .cityitem .flag,.plrow .flag{width:22px;height:15px;border-radius:3px}
  /* поиск и выбор страны/города над плитками */
  .findbar{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;
    box-shadow:var(--shadow);margin:6px 0 16px;display:flex;gap:9px;flex-wrap:wrap;align-items:center}
  .findbar .fsearch{flex:1 1 240px;position:relative;min-width:0}
  .findbar input,.findbar select{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:10px;
    background:var(--bg);color:var(--txt);font:inherit;font-size:15px}
  .findbar input:focus,.findbar select:focus{outline:none;border-color:var(--acc)}
  .findbar .fsel{flex:1 1 160px;min-width:0}
  /* ======================= АДАПТИВ ======================= */
  /* Планшеты и всё ниже: боковая колонка уезжает в выдвижное меню */
  @media(max-width:860px){
    .layout{gap:0;margin:12px 0 32px}
    .navlinks{display:none}
    .grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:11px}
    .reclist{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
    .countrytiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
    /* горизонтальная прокрутка вместо переносов — экономит высоту экрана */
    .controls{position:sticky;top:60px;z-index:20;background:var(--bg);padding:8px 0;margin:0 0 10px;
      gap:8px;flex-wrap:nowrap;overflow:auto;scrollbar-width:none}
    .controls::-webkit-scrollbar{display:none}
    .seg{flex:none} .viewsw{flex:none;margin-left:auto}
    .topicbar,.platbar{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;
      scroll-padding-left:12px;
      scroll-snap-type:x proximity;padding-bottom:4px;-webkit-overflow-scrolling:touch}
    .topicbar::-webkit-scrollbar,.platbar::-webkit-scrollbar{display:none}
    .tchip,.pchip,.citychip{flex:none;scroll-snap-align:start}
    .tlabel{flex:none}
  }
  /* Телефоны: шапка в две строки, поиск на всю ширину */
  @media(max-width:640px){
    .wrap{padding:0 12px}
    .findbar{padding:10px;gap:8px} .findbar input,.findbar select{font-size:16px}
    .flag{width:30px;height:20px}
    /* Шапка в две строки: [лого ……… ☰] и поиск во всю ширину.
       Так название не обрезается, а тап-цели остаются крупными. */
    .bar{flex-wrap:wrap;gap:8px;padding:8px 0}
    .logo{flex:1 1 auto;min-width:0}
    .logo .logoimg{height:34px}
    .search{order:5;flex:0 0 100%;min-width:0}
    .search input{padding:11px 14px 11px 38px;font-size:16px}   /* 16px — iOS не зумит при фокусе */
    .search.focused{flex-grow:0}
    .tbtn{height:38px;min-width:38px}
    #adminTools{display:flex;gap:6px;order:6;flex:0 0 100%;flex-wrap:wrap}
    #adminTools select{flex:1}
    .controls{top:auto;position:static}
    h1{font-size:20px} .plathead h1{font-size:19px}
    .plathead{gap:11px} .platico{width:46px;height:46px;border-radius:12px}
    h2.city{font-size:17px} .page h1{font-size:22px} .pagebody{font-size:15.5px}
    .grid{grid-template-columns:1fr;gap:10px}
    .reclist{grid-template-columns:1fr}
    .countrytiles{grid-template-columns:repeat(2,1fr)}
    .ctile{padding:13px} .ctile b{font-size:15px} .ctile span{font-size:12px}
    .cityhero img{height:130px} .cityhero span{font-size:19px;left:12px}
    .card{padding:13px;border-radius:12px}
    .ava{width:46px;height:46px;border-radius:12px}
    .desc{-webkit-line-clamp:3;font-size:13px}
    .open{padding:12px;font-size:14px}                          /* крупная тап-цель */
    footer.site .stats{margin:18px 0 0}
  .stats{margin:14px 0 8px;padding:8px 10px;gap:4px 12px;font-size:12.5px}
    .stats .stat b{font-size:13.5px}
    /* список: две строки вместо трёх колонок */
    .grid.list .card{grid-template-columns:auto 1fr;gap:10px;padding:11px}
    .grid.list .chead{display:contents}
    .grid.list .badges{grid-column:1/-1;margin:2px 0 0}
    .grid.list .cfoot{grid-column:1/-1;margin-top:8px}
    .detail{padding:16px;border-radius:14px}
    .dhead{gap:14px} .dava{width:78px;height:78px;border-radius:20px;font-size:32px}
    .facts{grid-template-columns:repeat(2,1fr);gap:8px} .fact{padding:10px 12px} .fact b{font-size:16px}
    .dava.brandtile .bfall{font-size:24px}
    .dtitle{min-width:0;flex:1} .dtitle .h{font-size:19px;overflow-wrap:anywhere}
    .dact{gap:8px} .dact .btn{flex:1 1 100%;text-align:center;padding:13px}
    .dgrid{gap:7px;margin:12px 0}
    /* модалка — «шторкой» снизу, удобнее большим пальцем */
    .modal{padding:0;place-items:end}
    .mbox{max-width:none;border-radius:16px 16px 0 0;max-height:88vh;
      padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
    .mbox input,.mbox textarea,.mbox select{font-size:16px;padding:11px}
    footer{padding:16px 0;line-height:2}
    .ad{margin:10px 0}
  }
  /* Совсем узкие (≤380px) и мелкие детали */
  @media(max-width:380px){
    .countrytiles{grid-template-columns:1fr}
    .seg button{padding:7px 11px;font-size:13px}
    .b{font-size:11px;padding:3px 7px}
  }
  /* Телефон в альбомной ориентации — шапка не должна съедать экран */
  @media(max-height:480px) and (orientation:landscape){
    header.top{position:static}
    .controls{position:static}
  }
  /* Тач-устройства: убираем hover-эффекты, они «залипают» после тапа */
  @media(hover:none){
    .card:hover{transform:none;border-color:var(--line)}
    .ctile:hover{transform:none;border-color:var(--line)}
    *{-webkit-tap-highlight-color:rgba(34,158,217,.15)}
  }
  @media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------------- панель выбора города: три части (страна · поиск · города) */
#citySheet .sheetbox{max-width:720px}
.citysearch{display:flex;align-items:center;gap:10px;margin:12px 14px 8px;padding:0 14px;height:48px;
  background:var(--bg);border:1px solid var(--line);border-radius:13px;color:var(--mut)}
.citysearch input{border:0;background:transparent;outline:none;font:inherit;font-size:16px;
  color:var(--txt);width:100%;padding:0}
.citysearch:focus-within{border-color:var(--acc)}
.citylist{max-height:62vh;overflow:auto;padding:0 10px 12px;-webkit-overflow-scrolling:touch}
.cgroup{margin:6px 0 10px}
.cghead{display:flex;align-items:center;gap:9px;padding:9px 8px 7px;font-size:12px;font-weight:700;
  letter-spacing:.05em;text-transform:uppercase;color:var(--mut);position:sticky;top:0;z-index:1;
  background:var(--card);border-bottom:1px solid var(--line)}
.cghead .flag{width:22px;height:15px;border-radius:3px;flex:none}
.cghead .cgall{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:600;color:var(--acc)}
/* города — сеткой в несколько колонок, а не сплошным текстом */
.cgroup .crows{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px;margin-top:6px}
.crow{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;min-height:44px;
  padding:9px 12px;border-radius:11px;font-size:15px;color:var(--txt);text-decoration:none}
.crow:hover{background:var(--acc-soft);color:var(--acc)}
.crow .n{color:var(--mut);font-size:13px;font-variant-numeric:tabular-nums}
.cempty{margin:16px 14px;color:var(--mut);font-size:14px}

/* поиск по списку в выдвижном меню */
.menufilter{display:flex;align-items:center;gap:9px;margin:2px 6px 8px;padding:0 12px;height:46px;
  background:var(--bg);border:1px solid var(--line);border-radius:12px;color:var(--mut)}
.menufilter:focus-within{border-color:var(--acc)}
.menufilter input{border:0;background:transparent;outline:none;font:inherit;font-size:16px;
  color:var(--txt);width:100%;padding:0}
.menufilter button{border:0;background:transparent;color:var(--mut);cursor:pointer;padding:0;
  display:flex;align-items:center}
.mfempty{margin:0 12px 10px;color:var(--mut);font-size:14px}
.pickrow{margin:10px 0 2px}
@media(max-width:640px){ .cgroup .crows{grid-template-columns:1fr} }


/* поиск в шапке: иконка внутри поля, на телефоне — второй строкой во всю ширину */
.search{position:relative;flex:1 1 260px;min-width:0}
.search .sico{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--mut);pointer-events:none}
.search input{width:100%;padding:11px 14px 11px 38px;font-size:15px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:860px){
  .bar{flex-wrap:wrap}
  .search{order:5;flex:0 0 100%;margin-top:2px}
  .search input{font-size:16px}
}

/* «Показать ещё» в процессе загрузки */
a.more.loading{opacity:.6;pointer-events:none}

/* текущий выбор в панели городов */
.citycur{display:flex;align-items:center;gap:8px;margin:0 14px 4px;padding:9px 12px;
  background:var(--acc-soft);color:#1b7fb0;border-radius:11px;font-size:13.5px}
.citycur b{color:var(--txt)}
.citycur a{margin-left:auto;color:var(--acc);font-weight:600}

/* окно добавления сообщества */
#addSheet .sheetbox{max-width:720px}
.addbody{max-height:72vh;overflow:auto;padding:4px 16px 18px;-webkit-overflow-scrolling:touch}
.addbody .fgrid{margin-top:6px}

/* подзаголовок-слоган под H1 */
.hero .lead{margin:6px 0 10px;font-size:16px;color:var(--mut);line-height:1.5}


/* ---------------------------------------------- панель фильтров раздела
   Рядов три, рубрик бывает два десятка. Собираем их в один блок и не даём
   разрастаться: рубрики свёрнуты до одной строки, разворот по кнопке. */
.filters{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:12px 14px;margin:12px 0 18px;display:flex;
  flex-direction:column;gap:8px}
/* внутри панели ряды прозрачные: фон даёт только сама панель */
.filters .topicbar,.filters .platbar,.filters .pickrow{background:transparent;border:0;box-shadow:none}
.filters .pickrow{margin:0 0 2px}
.filters .topicbar,.filters .platbar{margin:0;gap:7px;align-items:center}
.filters .tlabel{flex:0 0 68px;font-size:12px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--mut)}

/* свёрнутый ряд: одна строка, остальное скрыто до нажатия «ещё» */
.topicbar.collapsible{position:relative;max-height:38px;overflow:hidden;padding-right:76px}
.topicbar.collapsible.open{max-height:none;padding-right:0}
.chipmore{position:absolute;right:0;top:0;height:34px;padding:0 12px;border:1px dashed var(--line);
  background:var(--card);color:var(--acc);border-radius:999px;font:inherit;font-size:13px;
  font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.chipmore span{color:var(--mut);font-weight:500}
.chipmore:hover{border-color:var(--acc)}
.topicbar.collapsible.open .chipmore{position:static;margin-left:4px}

@media(max-width:640px){
  .filters{padding:10px 12px;gap:10px;border-radius:14px}
  /* Подпись ряда — ОТДЕЛЬНОЙ СТРОКОЙ над чипами. Раньше она была липкой и
     накладывалась на них при прокрутке: «ФОРМАТ:» перекрывал слово «Чаты». */
  .filters .topicbar,.filters .platbar{display:block;overflow:visible;padding:0}
  .filters .tlabel{display:block;position:static;background:none;margin:0 0 6px;
    padding:0;font-size:11px;letter-spacing:.06em}
  .filters .chiprow{display:flex;flex-wrap:wrap;gap:6px}
  .filters .tchip,.filters .pchip{flex:0 0 auto}
  /* Рубрики раскрыты сразу: выбирать из свёрнутой строки на телефоне неудобно */
  .topicbar.collapsible{max-height:none;padding-right:0}
  .chipmore{display:none}
}


/* строка сохранённого города на главной */
.locline{display:flex;align-items:center;gap:8px;margin:14px 0 4px;padding:10px 14px;
  background:var(--acc-soft);color:#1b7fb0;border-radius:12px;font-size:14px;flex-wrap:wrap}
.locline b{color:var(--txt)}
.locline a{margin-left:auto;color:var(--acc);font-weight:600}

/* значок штата: буквенный код на цветной подложке */
.stflag{border-radius:4px;flex:none}

/* страница 404: сразу понятно, что случилось */
.nf404{text-align:center;padding:26px 16px 8px}
.nf-code{font-size:72px;font-weight:800;line-height:1;color:var(--acc);opacity:.22;letter-spacing:-2px}
.nf404 h1{margin:6px 0 10px;font-size:26px}
.nf-lead{margin:0 auto 8px;max-width:520px;font-size:16px;color:var(--txt)}
.nf404 .mut{margin:0 auto;max-width:520px}
.nf-btns{margin-top:16px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media(max-width:520px){ .nf-code{font-size:56px} .nf404 h1{font-size:22px} }


/* «Показать все города» рядом с выбранным городом */
.ctlbtn.ghost{background:transparent;border-style:solid;color:var(--acc);font-weight:600}
.ctlbtn.ghost:hover{background:var(--acc-soft)}

/* флаги штатов и провинций: файлом, с ровной рамкой */
.stflag{width:26px;height:18px;border-radius:4px;object-fit:cover;flex:none;
  box-shadow:0 0 0 1px rgba(0,0,0,.08) inset;background:var(--bg)}
.tiles .stflag{margin-right:2px}

/* блок создания своего раздела в парсере */
.mysrc{margin:10px 0;padding:10px 12px;border:1px dashed var(--line);border-radius:12px;background:var(--bg)}
.mysrc summary{cursor:pointer;font-weight:600;color:var(--acc)}
.mysrc[open] summary{margin-bottom:8px}

/* на широком экране подпись остаётся слева, чипы — справа от неё */
@media(min-width:641px){
  .filters .chiprow{display:flex;flex-wrap:wrap;gap:7px;align-items:center;flex:1;min-width:0}
  .filters .topicbar,.filters .platbar{display:flex;align-items:flex-start}
}

/* ---------------------------------------------- поиск: кнопка и подсказки */
.schbtn{display:none}
.qhints{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;
  background:var(--card);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 14px 34px rgba(16,24,40,.14);overflow:hidden;max-height:60vh;overflow-y:auto}
.qhint{display:flex;align-items:baseline;gap:8px;padding:10px 13px;color:var(--txt);
  border-bottom:1px solid var(--line);text-decoration:none}
.qhint:last-child{border-bottom:0}
.qhint:hover,.qhint:focus{background:var(--acc-soft);outline:none}
.qh-n{font-weight:600}
.qh-s{margin-left:auto;font-size:12.5px;color:var(--mut);white-space:nowrap}

@media(max-width:860px){
  /* Поле поиска прячем за кнопку: в шапке телефона место дороже. */
  .schbtn{display:inline-flex}
  .search{display:none}
  body.search-open .search{display:block;order:5;flex:0 0 100%;margin-top:6px}
}

/* Локация — справа: слева ряды фильтров, и кнопка города там терялась
   между ними. Справа она на виду и не мешает выбирать формат и рубрику. */
.pickrow{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:0 0 4px}
.filters .pickrow{order:-1}
@media(max-width:640px){
  .pickrow{justify-content:flex-start}   /* на телефоне строка и так одна */
}


/* --------------------------------------------- баннер cookie на телефоне
   Занимал 326 из 740 пикселей — почти половину экрана, и кнопки уезжали
   вниз. Делаем компактнее: текст короче, кнопки в ряд и во всю ширину,
   чтобы попасть пальцем было легко. */
@media(max-width:640px){
  .ccbar{left:8px;right:8px;bottom:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));
    border-radius:14px;gap:8px;max-height:70vh;overflow-y:auto}
  .ccbar p{font-size:12.5px;line-height:1.4;margin:4px 0 6px}
  .cctext b{font-size:14px}
  .ccopt{margin-right:12px;font-size:13px}
  .ccbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .ccbar button{width:100%;min-height:44px;font-size:13.5px;padding:0 8px}
  .ccbar button.pri{grid-column:1 / -1}   /* «Принять всё» — во всю ширину */
}

/* индикатор индексации в панели: состояние видно сразу, без чтения подписи */
.seobox{margin:12px 0;padding:12px 14px;border-radius:12px;border:1px solid}
.seobox.closed{background:#fff6e5;border-color:#f0c675;color:#6b4c00}
.seobox.open{background:#e9f7ef;border-color:#8fd3ab;color:#14532d}
.seobox .hint{color:inherit;opacity:.85}
.seobox code{background:rgba(0,0,0,.06);padding:1px 5px;border-radius:4px}

/* кнопка «Разместить рекламу» для посетителей */
.sellad{display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px 16px;
  border:1px dashed var(--line);border-radius:14px;background:var(--card);
  color:var(--txt);transition:border-color .16s,background .16s}
.sellad:hover{border-color:var(--acc);background:var(--acc-soft)}
.sellad-i{font-size:22px;line-height:1}
.sellad b{display:block;font-size:15px}
.sellad small{display:block;color:var(--mut);font-size:13px;margin-top:2px}


/* --------------------------------------------- поиск: единый вид везде */
.search{position:relative}
.search svg,.search .sico{
  position:absolute;left:13px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;opacity:.55;pointer-events:none;
}
.search input{padding-left:40px}
@media(max-width:860px){
  .search input{height:46px;padding-left:42px;font-size:16px}
  .search svg,.search .sico{left:14px}
}

/* -------------------------------------------- реакции и «поделиться» */
.reactbar{display:flex;align-items:center;gap:6px;padding:8px 0 2px;flex-wrap:wrap}
.reactbar.wide{gap:8px;padding:14px 0 2px;border-top:1px solid var(--line);margin-top:12px}
.rbtn{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 10px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);color:var(--mut);font:inherit;font-size:14px;
  cursor:pointer;line-height:1.2;transition:border-color .14s,background .14s,transform .1s;
}
.rbtn:hover{border-color:var(--acc);background:var(--acc-soft)}
.rbtn:active{transform:scale(.94)}
.rbtn.on{border-color:var(--acc);background:var(--acc-soft);color:var(--acc);font-weight:600}
.rbtn .rn{font-size:12.5px;font-variant-numeric:tabular-nums;opacity:.85}
.rbtn.share{margin-left:auto;color:var(--acc)}
.rbtn.share svg{width:15px;height:15px}
.reactbar.wide .rbtn{padding:8px 14px;font-size:15px}
@media(max-width:520px){
  .sh-t{display:none}            /* на телефоне только иконка: место дороже */
  .rbtn{padding:6px 11px}
}
/* всплывающее меню «поделиться» */
.sharemenu{
  position:absolute;z-index:70;background:var(--card);border:1px solid var(--line);
  border-radius:12px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:6px;min-width:186px;
}
.sharemenu a,.sharemenu button{
  display:flex;align-items:center;gap:9px;width:100%;padding:9px 11px;
  border:0;background:none;color:var(--txt);font:inherit;font-size:14px;
  border-radius:8px;cursor:pointer;text-align:left;text-decoration:none;
}
.sharemenu a:hover,.sharemenu button:hover{background:var(--chip)}

/* сеть каталогов: ссылки на соседние сайты */
.network{margin:20px 0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.net-t{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin-bottom:9px}
.net-list{display:flex;gap:10px;flex-wrap:wrap}
.netsite{display:block;flex:1 1 200px;padding:11px 13px;border:1px solid var(--line);
  border-radius:11px;color:var(--txt);text-decoration:none;transition:border-color .14s,background .14s}
.netsite:hover{border-color:var(--acc);background:var(--acc-soft)}
.netsite b{display:block;font-size:15px}
.netsite small{display:block;color:var(--mut);font-size:13px;margin-top:2px}

/* ------------------------------------ массовые операции в листинге (админ) */
.admbtns{display:flex;align-items:center;gap:5px}
.selbox{display:inline-flex;align-items:center;cursor:pointer;padding:2px}
.selbox input{width:17px;height:17px;accent-color:var(--acc);cursor:pointer}
.card.picked,.cardsm.picked{border-color:var(--acc);box-shadow:0 0 0 2px var(--acc-soft) inset}

.bulkbar{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:80;
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center;
  padding:11px 15px;border-radius:14px;background:var(--card);
  border:1px solid var(--line);box-shadow:0 14px 38px rgba(16,24,40,.22);
  max-width:calc(100vw - 24px);
}
.bulkbar .bb-n{font-size:14px;color:var(--mut);white-space:nowrap}
.bulkbar .bb-n b{color:var(--txt);font-size:15px}
.bulkbar .btn{margin:0;padding:7px 13px;font-size:14px}
.bulkbar .btn.del{color:var(--red);border-color:var(--red)}
.bulkbar .btn.ghost{background:transparent;color:var(--mut)}

.bulkedit{position:fixed;inset:0;z-index:90;background:rgba(16,24,40,.45);
  display:flex;align-items:center;justify-content:center;padding:16px}
.be-in{background:var(--card);border-radius:16px;padding:20px;max-width:560px;width:100%;
  box-shadow:0 24px 60px rgba(16,24,40,.3)}
.be-in .row{display:flex;gap:11px;flex-wrap:wrap;margin-top:10px}
.be-in .row>div{flex:1 1 150px}
.be-in label{display:block;font-size:12.5px;color:var(--mut);margin-bottom:4px}
.be-in input{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:9px;
  background:var(--bg);color:var(--txt);font:inherit}
@media(max-width:560px){
  .bulkbar{left:8px;right:8px;transform:none;bottom:10px}
  .bulkbar .btn{flex:1 1 auto}
}

/* вариант фильтра, которого нет в текущем разрезе: приглушён, но кликабелен */
.tchip.zero,.pchip.zero{opacity:.45}
.tchip.zero:hover,.pchip.zero:hover{opacity:.8}

/* ------------------------------- предложение города и полоска выбранного */
.locask{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin:0 0 14px;padding:11px 14px;
  background:var(--acc-soft);border:1px solid var(--line);border-radius:12px;
  font-size:14.5px;
}
.locask .la-t{flex:1;min-width:180px}
.locask button{
  padding:7px 13px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);color:var(--txt);font:inherit;font-size:14px;cursor:pointer;
}
.locask .la-yes{background:var(--acc);border-color:var(--acc);color:#fff;font-weight:600}
.locask .la-x{border:0;background:none;color:var(--mut);font-size:20px;padding:2px 8px;line-height:1}
.locask button:hover{filter:brightness(.97)}

.locline{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin:0 0 12px;padding:9px 13px;border-radius:11px;
  background:var(--chip);font-size:14px;color:var(--mut);
}
.locline b{color:var(--txt)}
.locline .loc-a{color:var(--acc);text-decoration:none;font-size:13.5px}
.locline .loc-a:hover{text-decoration:underline}
.locline .loc-x{margin-left:auto;border:0;background:none;color:var(--mut);
  font-size:19px;line-height:1;padding:0 4px;cursor:pointer}
@media(max-width:520px){
  .locask{padding:10px 12px;gap:7px}
  .locask .la-t{flex:1 1 100%}
  .locask button{flex:1}
  .locask .la-x{flex:0 0 auto}
}


/* замер времени в подвале панели */
.pnltime{position:fixed;right:8px;bottom:6px;z-index:5;font-size:11px;color:var(--mut);
  opacity:.55;pointer-events:none;font-variant-numeric:tabular-nums}

/* ---------------------------------------- полоса администратора на сайте */
.adminbar{
  background:#131a26;color:#e6ebf2;font-size:13.5px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:sticky;top:0;z-index:120;
}
.ab-in{display:flex;align-items:center;gap:14px;padding:7px 0;flex-wrap:wrap}
.ab-you{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ab-you b{font-weight:600}
.ab-role{opacity:.6;font-size:12px;padding:1px 7px;border:1px solid rgba(255,255,255,.2);border-radius:999px}
.ab-nav{display:flex;gap:12px;flex-wrap:wrap}
.ab-nav a{color:#8fd0ff;text-decoration:none}
.ab-nav a:hover{text-decoration:underline}
.ab-hint{margin-left:auto;opacity:.5;font-size:12.5px;white-space:nowrap}
.ab-out{color:#ff9a9a;text-decoration:none}
.ab-out:hover{text-decoration:underline}
/* шапка сайта уезжает ниже полосы, иначе они накладываются */
.adminbar ~ header.top{top:38px}
@media(max-width:760px){
  .ab-hint{display:none}
  .ab-in{gap:10px;padding:6px 0}
  .ab-nav{order:3;flex:1 1 100%;gap:14px}
  .adminbar ~ header.top{top:auto;position:static}
}

/* кнопка выбора города в шапке */
.citypick{display:inline-flex;align-items:center;gap:6px;padding:0 13px;max-width:190px}
.citypick .cp-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14.5px}
.citypick.on{background:var(--acc-soft);border-color:var(--acc);color:var(--acc)}
.citypick.on svg{color:var(--acc)}
@media(max-width:640px){
  .citypick{max-width:132px;padding:0 10px}
  .citypick .cp-t{font-size:13.5px}
}
@media(max-width:400px){
  .citypick .cp-t{display:none}     /* совсем узко — только значок */
  .citypick{padding:0 11px}
}


/* ВАЖНО: правило display у класса перебивает атрибут hidden — браузер
   показывает элемент, даже если в разметке стоит hidden. Из-за этого панель
   массовых действий и окно правки висели на экране всегда, и закрыть их было
   нельзя. Явно возвращаем скрытие. */
[hidden]{display:none !important}
.bulkbar[hidden],.bulkedit[hidden],.qhints[hidden],#ccOpts[hidden]{display:none !important}

/* Панель массовых действий: скрытие классом — страховка на случай, если
   атрибут hidden перебьёт какое-нибудь правило display. */
.bulkbar.bb-off{display:none !important}
.bb-x{border:0;background:none;color:var(--mut);font-size:22px;line-height:1;
  padding:0 6px;cursor:pointer;margin-left:2px}
.bb-x:hover{color:var(--txt)}


/* ==================== cookie: компактная плашка (итог) ====================
   Правил накопилось пять штук в разных местах, и они спорили друг с другом:
   отсюда и коралловый фон вместо белого, и пустота в полэкрана от
   max-height:70vh при flex-direction:column.

   Здесь один связный блок, перекрывающий всё предыдущее. Ключевое:
   • фон и текст берём из переменных карточки, а не акцента — иначе на
     цветной теме надпись сливается с подложкой;
   • высота по содержимому, без max-height;
   • кнопки в один ряд внизу.                                              */
.ccbar{
  position:fixed !important;
  left:auto !important; right:16px !important; bottom:16px !important;
  width:min(340px, calc(100vw - 32px)) !important;
  max-width:none !important; max-height:none !important;
  display:block !important; overflow:visible !important;
  padding:14px 16px !important;
  background:var(--card) !important;
  color:var(--txt) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:0 10px 30px rgba(16,24,40,.18) !important;
  font-size:14px;
  z-index:75;
}
.ccbar .cctext{color:var(--txt)}
.ccbar .cctext b{display:block;font-size:15px;margin-bottom:4px}
.ccbar .cctext p{
  margin:0;color:var(--mut);font-size:13px;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.ccbar.open .cctext p{-webkit-line-clamp:unset;overflow:visible}
.ccbar .cctext p a{color:var(--acc)}
.ccmore{
  display:inline-block;margin:8px 0 0;background:none;border:0;padding:0;
  color:var(--acc);font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;
}
#ccOpts{display:flex;gap:14px;margin:9px 0 0;flex-wrap:wrap}
#ccOpts .ccopt{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--txt);margin:0}
.ccbar .ccbtns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.ccbar .ccbtns button{
  flex:1 1 auto;min-width:96px;height:38px;padding:0 14px;margin:0;
  border:1px solid var(--line);border-radius:10px;
  background:var(--card);color:var(--txt);font:inherit;font-size:14px;cursor:pointer;
}
.ccbar .ccbtns button.pri{background:var(--acc);border-color:var(--acc);color:#fff;font-weight:600}
.ccbar .ccbtns button#ccNone{flex:0 1 auto;color:var(--mut);border-color:transparent}
.ccbar .ccbtns button:hover{filter:brightness(.97)}

@media(max-width:560px){
  .ccbar{
    left:10px !important; right:10px !important; bottom:10px !important;
    width:auto !important; padding:13px 15px !important;
  }
  .ccbar .ccbtns button{height:40px;font-size:14.5px}
}


/* ============ полоса администратора: компактная, по центру (итог) ==========
   Была во всю ширину с подсказкой справа — занимала строку экрана и тянула
   взгляд. Теперь узкая плашка по центру: кто вошёл и куда идти, без лишнего. */
.adminbar{
  background:transparent !important;
  border:0 !important;
  position:static !important;
  padding:10px 0 0 !important;
}
.adminbar .ab-in{
  display:inline-flex !important;
  align-items:center;gap:12px;flex-wrap:wrap;
  margin:0 auto;padding:6px 14px;
  width:auto !important;max-width:100%;
  background:#131a26;color:#e6ebf2;
  border-radius:999px;
  font-size:13px;
  box-shadow:0 3px 12px rgba(16,24,40,.16);
}
/* обёртка центрирует плашку */
.adminbar{text-align:center}
.adminbar .ab-you{gap:5px;font-size:13px}
.adminbar .ab-role{font-size:11px;padding:0 6px;opacity:.55}
.adminbar .ab-nav{gap:11px}
.adminbar .ab-nav a{color:#8fd0ff;font-size:13px}
.adminbar .ab-hint{display:none !important}   /* подсказка не нужна каждый раз */
.adminbar .ab-out{color:#ff9a9a;font-size:13px}
.adminbar ~ header.top{top:0}

@media(max-width:640px){
  .adminbar{padding:8px 0 0 !important}
  .adminbar .ab-in{gap:9px;padding:6px 12px;font-size:12.5px;border-radius:14px}
  .adminbar .ab-nav{gap:9px}
  .adminbar .ab-nav a,.adminbar .ab-out,.adminbar .ab-you{font-size:12.5px}
}

/* ============ карточка сообщества: компактнее и связнее ==================
   Была шириной во весь экран, с дублями (подписчики и город показывались
   и плитками, и метками) и с мёртвыми плитками, из которых некуда идти. */
.detail.feature{max-width:860px;margin:0 auto}
.detail .dhead{gap:16px;align-items:center}
/* Аватар крупнее, чем в листинге: на своей странице он главный элемент */
.detail .dhead .ava{width:84px;height:84px;border-radius:18px;flex:0 0 84px}
.detail .h{font-size:24px;line-height:1.25;margin:0 0 2px}
.detail .u{color:var(--mut);font-size:14.5px}

/* Плитки свойств: подписчики · формат · площадка · тематика · город.
   Все кликабельные, ведут в свой раздел. */
.detail .facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));
  gap:9px;margin:16px 0 4px;
}
.detail .fact{
  display:block;padding:10px 13px;border:1px solid var(--line);border-radius:12px;
  background:var(--card);text-decoration:none;color:var(--txt);
  transition:border-color .14s,background .14s;
}
.detail .fact b{display:block;font-size:16px;line-height:1.25}
.detail .fact span{display:block;color:var(--mut);font-size:12.5px;margin-top:2px}
.detail .fact.lnk:hover{border-color:var(--acc);background:var(--acc-soft)}
.detail .fact.lnk:hover b{color:var(--acc)}

.detail .ddesc{margin:16px 0 0;font-size:15px;line-height:1.6}
.detail .dact{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.detail .dact .btn{margin:0}

@media(max-width:640px){
  .detail .dhead .ava{width:64px;height:64px;flex:0 0 64px;border-radius:15px}
  .detail .h{font-size:20px}
  .detail .facts{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:7px}
  .detail .fact{padding:9px 11px}
  .detail .fact b{font-size:15px}
  .detail .dact .btn{flex:1 1 auto}
}

/* ============ нативные карточки своих проектов ==========================
   Выглядят как обычные записи каталога — в этом смысл нативности. Но
   пометка «Реклама» обязательна: без неё читатель не отличит рекламу от
   выдачи, а это и обман, и нарушение правил в ЕС. */
.reccard.promo,.card.promo{
  border-color:var(--acc);
  background:linear-gradient(180deg,var(--acc-soft),transparent 60%),var(--card);
}
.promotag{
  display:inline-block;vertical-align:middle;
  margin-left:6px;padding:1px 7px;
  background:var(--acc);color:#fff;
  border-radius:999px;font-size:10.5px;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;
}
.card.promo .promotag{margin-left:auto;align-self:flex-start}
.promoava{display:flex;align-items:center;justify-content:center;color:#fff}
.promoava svg{width:20px;height:20px}
.card.promo .promoava{width:44px;height:44px;border-radius:11px}



/* разделитель в счётчике: отделяет охват от состава */
.stat-sep{color:var(--line);font-size:18px;line-height:1;align-self:center;margin:0 2px}
@media(max-width:560px){ .stat-sep{display:none} }

/* Площадка отделена лёгким отступом, но БЕЗ пунктира и заливки: на цветной
   плитке значок сливался с фоном, и она выбивалась из ряда. */
.detail .fact.platfact{margin-left:8px}
@media(max-width:1020px){ .detail .fact.platfact{margin-left:0} }

/* ============ карточка в две колонки ====================================
   Слева сама запись, справа — та же тема в соседних городах. На широком
   экране карточка занимала всю ширину, а справа оставалась пустота. */
.detailwrap{max-width:1180px;margin:0 auto}
.detailwrap.two{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.detailwrap.two .detail.feature{max-width:none;margin:0}
.detaside{position:sticky;top:76px}
.detaside .secthead{margin-bottom:10px}
.detaside .secthead h2{font-size:16px}
.reclist.col{display:flex;flex-direction:column;gap:8px}
.reclist.col .reccard{width:100%}
.nearcities{margin-top:16px}
.nearcities h2.topic{font-size:14px;color:var(--mut);font-weight:600;margin:0 0 8px}
.nearcities .citychips{display:flex;flex-wrap:wrap;gap:6px}
.nearcities .citychip{font-size:13px;padding:5px 10px}

/* иконки в плитках свойств */
.detail .fact{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:12px 10px}
.detail .fico{display:flex;align-items:center;justify-content:center;height:28px;margin-bottom:3px;color:var(--acc)}
.detail .fico svg{width:26px;height:26px}
.detail .fact b{font-size:15px}
.detail .fact.platfact .fico svg{width:24px;height:24px}

@media(max-width:1020px){
  .detailwrap.two{grid-template-columns:1fr}
  .detaside{position:static}
  .reclist.col{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
}
@media(max-width:640px){
  .detail .fact{padding:10px 8px}
  .detail .fico{height:24px}
  .detail .fico svg{width:22px;height:22px}
  .detail .fact b{font-size:14px}
}


/* ============ плитки свойств: ровные и с видимыми значками ==============
   Значки были одного бледного цвета и тонкими — на светлом фоне почти не
   читались. Теперь у каждого свойства свой цвет, а линии толще. */
.detail .facts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(116px,1fr));
  gap:10px;align-items:stretch;
}
.detail .fact{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  text-align:center;gap:1px;padding:14px 10px 12px;
  min-height:104px;box-sizing:border-box;          /* одинаковая высота в ряду */
}
.detail .fico{
  display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;margin-bottom:6px;
}
.detail .fico svg{
  width:28px;height:28px;
  stroke-width:1.9;                                 /* толще: тонкие линии не читались */
  fill:none;stroke:currentColor;
}
/* у площадок значки заливкой, обводка им не нужна */
.detail .fico.pico svg{stroke:none;fill:currentColor;width:26px;height:26px}
.detail .fact b{font-size:15px;line-height:1.25}
.detail .fact span{font-size:12.5px;color:var(--mut);margin-top:1px}
.detail .fact.lnk:hover{border-color:var(--acc);background:var(--acc-soft)}
.detail .fact.lnk:hover b{color:var(--acc)}

@media(max-width:640px){
  .detail .facts{grid-template-columns:repeat(auto-fit,minmax(98px,1fr));gap:7px}
  .detail .fact{min-height:92px;padding:11px 7px 10px}
  .detail .fico{width:28px;height:28px;margin-bottom:4px}
  .detail .fico svg{width:24px;height:24px}
  .detail .fact b{font-size:14px}
  .detail .fact span{font-size:11.5px}
}

/* ============ карточка: всё в одном экране =============================
   Плитки были крупными и в две колонки — на телефоне занимали два экрана,
   и до описания с кнопкой приходилось листать. Теперь компактный ряд,
   а аватар крупнее: он и есть «лицо» сообщества. */
.detail .dhead{
  display:flex;align-items:center;gap:14px;margin-bottom:14px;
}
.detail .dhead .ava{
  width:96px;height:96px;flex:0 0 96px;
  border-radius:24px;                       /* как значок приложения */
  box-shadow:0 2px 10px rgba(16,24,40,.12);
}
.detail .dtitle{min-width:0}
.detail .h{font-size:22px;line-height:1.2;margin:0 0 3px}
.detail .u{font-size:14px;color:var(--mut)}

/* Плитки — компактной лентой, а не сеткой во весь экран */
.detail .facts{
  display:flex;flex-wrap:wrap;gap:7px;
  margin:0 0 14px;
}
.detail .fact{
  flex:0 0 auto;
  display:inline-flex;flex-direction:row;align-items:center;gap:7px;
  min-height:0;padding:7px 12px;
  border-radius:999px;                      /* таблетки: занимают место по тексту */
  text-align:left;
}
.detail .fico{
  width:20px;height:20px;margin:0;flex:0 0 20px;
}
.detail .fico svg{width:19px;height:19px;stroke-width:2}
.detail .fico.pico svg{width:18px;height:18px}
.detail .fact b{font-size:14px;line-height:1.2}
/* подпись мелкая и рядом, а не под значением */
.detail .fact span{font-size:12px;margin:0 0 0 2px;opacity:.75}
.detail .fact.platfact{margin-left:0}

.detail .ddesc{margin:0 0 14px;font-size:14.5px;line-height:1.55}
.detail .dact{margin-top:0}

@media(max-width:640px){
  .detail .dhead{gap:12px;margin-bottom:12px}
  .detail .dhead .ava{width:76px;height:76px;flex:0 0 76px;border-radius:19px}
  .detail .h{font-size:19px}
  .detail .facts{gap:6px;margin-bottom:12px}
  .detail .fact{padding:6px 10px;gap:6px}
  .detail .fact b{font-size:13.5px}
  .detail .fact span{font-size:11.5px}
  .detail .fico{width:18px;height:18px;flex:0 0 18px}
  .detail .fico svg{width:17px;height:17px}
  .detail .ddesc{font-size:14px}
}

/* ============ иконка поиска в шапке: по центру =========================
   На телефоне поле выше, чем на широком экране, и иконка съезжала вверх. */
.search{position:relative;display:flex;align-items:center}
.search svg,.search .sico{
  position:absolute;left:13px;top:50%;transform:translateY(-50%);
  width:19px;height:19px;margin:0;pointer-events:none;opacity:.5;
}
.search input{padding-left:42px}
@media(max-width:860px){
  .search input{height:48px;padding-left:44px;font-size:16px}
  .search svg,.search .sico{left:15px;width:20px;height:20px}
}
/* кнопка-лупа в шапке — тоже по центру своей кнопки */
.tbtn.schbtn{display:none;align-items:center;justify-content:center}
@media(max-width:860px){ .tbtn.schbtn{display:inline-flex} }
.tbtn svg{display:block}

/* ---------------------------------------- блок «Новое в каталоге» */
.freshblk{margin:0 0 22px}
.freshblk .secthead{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.freshblk .secthead h2{margin:0}
.freshblk .secthead .hint{margin-left:auto;font-size:13px}
.reclist.fresh{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:9px;
}
.reclist.fresh .reccard{width:100%}
@media(max-width:560px){
  .reclist.fresh{grid-template-columns:1fr;gap:7px}
  .freshblk{margin-bottom:18px}
}

/* ============ карточка: колонка вровень, города — полосой ===============
   Правая колонка уезжала вниз на два экрана (в ней были и похожие, и все
   города страны), а слева от неё зияла пустота. Теперь колонка ограничена
   высотой карточки, а города идут широкой строкой под ней. */
.detailwrap.two{align-items:start}
.detaside{
  position:sticky;top:76px;
  max-height:calc(100vh - 96px);
  overflow-y:auto;
  overscroll-behavior:contain;              /* прокрутка колонки не тянет страницу */
  padding-right:2px;
}
.detaside::-webkit-scrollbar{width:6px}
.detaside::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}

/* Города широкой полосой: в строку их влезает втрое больше, чем в колонку */
.nearcities.wide{
  margin:16px 0 0;padding:14px 16px;
  border:1px solid var(--line);border-radius:14px;background:var(--card);
}
.nearcities.wide h2.topic{
  font-size:13px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--mut);font-weight:700;margin:0 0 10px;
}
.nearcities.wide .citychips{display:flex;flex-wrap:wrap;gap:7px}
.nearcities.wide .citychip{
  font-size:13.5px;padding:6px 12px;border-radius:999px;
  border:1px solid var(--line);background:var(--bg);
}
.nearcities.wide .citychip:hover{border-color:var(--acc);color:var(--acc)}

@media(max-width:1020px){
  .detaside{position:static;max-height:none;overflow:visible}
}

/* блоки внутри правой колонки идут через отступ, промо — последним */
.detaside .secthead{margin:14px 0 8px}
.detaside .secthead:first-child{margin-top:0}
.detaside .reclist.promo-col{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}

/* ============ «Ещё» — широкой сеткой под карточкой ======================
   Колонка справа держит 4 карточки (примерно высота самой карточки), всё
   остальное идёт сюда: в ширину помещается втрое больше, и слева больше
   не остаётся пустого места. */
.morewide{margin:18px 0 0}
.morewide .secthead{margin-bottom:10px}
.reclist.grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:9px;
}
.reclist.grid .reccard{width:100%}
.reclist.grid.promo-row{margin-top:14px}
@media(max-width:560px){
  .reclist.grid{grid-template-columns:1fr;gap:7px}
}

/* кнопка добавления в боковом меню */
.dwadd{display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;margin:0 0 12px;padding:11px 14px;font-size:15px}
.dwadd svg{width:18px;height:18px}

/* скрытая карточка: видна админу, но заметно приглушена */
.card.is-hidden,.cardsm.is-hidden{opacity:.5;border-style:dashed}
.card.is-hidden::after{
  content:'скрыто от посетителей';
  display:block;margin-top:6px;font-size:12px;color:var(--mut);font-style:italic;
}
.iconbtn.hide{font-size:15px;line-height:1}

/* ============ мобильный поиск: иконка, а не полоса ======================
   Поле занимало всю ширину под шапкой — на маленьком экране это целая
   строка ради того, чем пользуются не в каждый заход. Теперь за кнопкой:
   нажал лупу — поле раскрылось поверх шапки. */
@media(max-width:860px){
  .search{
    position:absolute !important;
    left:0;right:0;top:0;bottom:0;
    z-index:30;margin:0 !important;
    opacity:0;pointer-events:none;
    transition:opacity .16s;
    display:flex !important;align-items:center;
    background:var(--card);padding:0 8px;
  }
  body.search-open .search{opacity:1;pointer-events:auto}
  body.search-open .logo,
  body.search-open .tbtn:not(.schbtn),
  body.search-open .cselect{visibility:hidden}
  .search input{height:42px;font-size:16px}
  /* крестик закрытия поля */
  .search .schclose{
    position:absolute;right:14px;top:50%;transform:translateY(-50%);
    border:0;background:none;color:var(--mut);font-size:22px;line-height:1;
    padding:2px 6px;cursor:pointer;
  }
  .tbtn.schbtn{display:inline-flex}
  body.search-open .tbtn.schbtn{visibility:hidden}
  /* шапка становится опорой для наложенного поля */
  header.top .bar{position:relative}
}
@media(min-width:861px){
  .search .schclose{display:none}
}

/* кнопка возврата внизу — рядом с концом содержимого */
.backbottom{margin:22px 0 4px}
.backbottom .backlink{display:inline-flex}

/* ============ якорная навигация по блокам ==============================
   Заголовки блоков сами по себе ничего не дают: до нужного всё равно
   прокручивать. Полоса ссылок сверху решает это одним нажатием и заодно
   показывает, что вообще есть на странице. */
.anchors{
  display:flex;flex-wrap:wrap;gap:7px;
  margin:0 0 16px;padding:2px 0;
}
.anch{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 13px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);color:var(--txt);text-decoration:none;
  font-size:14px;white-space:nowrap;
}
.anch span{color:var(--mut);font-size:12.5px}
.anch:hover{border-color:var(--acc);color:var(--acc)}
.anch:hover span{color:var(--acc)}

/* заголовок блока не прячется под шапкой при переходе по якорю */
.secthead[id]{scroll-margin-top:78px}

@media(max-width:560px){
  .anchors{
    flex-wrap:nowrap;overflow-x:auto;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    margin-inline:calc(var(--pad, 14px) * -1);padding-inline:var(--pad, 14px);
  }
  .anchors::-webkit-scrollbar{display:none}
  .anch{font-size:13.5px;padding:6px 11px}
}

/* ============ кнопка «Открыть в …»: значок площадки и её цвет ==========
   Плитка «площадка» убрана — теперь всё сообщает кнопка. */
.btn.btn-plat{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  color:#fff;
}
.btn.btn-plat .bico{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;flex:0 0 20px;
}
.btn.btn-plat .bico svg{width:20px;height:20px;fill:#fff}
.btn.btn-plat:hover{filter:brightness(1.06)}

/* ============ плитки свойств: компактнее ==============================
   Освободилось место после убранной плитки площадки — ужимаем остальные,
   чтобы четыре свойства помещались в два ряда даже на узком экране. */
.detail .facts{gap:6px}
.detail .fact{padding:6px 11px;gap:6px}
.detail .fact b{font-size:13.5px}
.detail .fact span{font-size:11.5px;opacity:.7}
.detail .fico{width:18px;height:18px;flex:0 0 18px}
.detail .fico svg{width:17px;height:17px}
@media(max-width:640px){
  .detail .fact{padding:6px 10px}
  .detail .fact b{font-size:13px}
  .detail .fact span{font-size:11px}
}

/* ============ перелистывание карточек =================================
   Человек редко смотрит одну запись: стрелки ведут к соседним в том же
   разделе, чтобы не возвращаться в список и не искать, где остановился. */
.cardnav{
  display:flex;align-items:stretch;gap:8px;margin:0 0 14px;
}
.cnav-btn{
  display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;
  padding:9px 13px;border:1px solid var(--line);border-radius:12px;
  background:var(--card);color:var(--txt);text-decoration:none;
  font-size:14px;
}
.cnav-btn.next{justify-content:flex-end;text-align:right}
.cnav-btn:hover{border-color:var(--acc);color:var(--acc)}
.cnav-btn.off{opacity:.3;flex:0 0 44px;justify-content:center;pointer-events:none}
.cnav-t{display:flex;flex-direction:column;min-width:0}
.cnav-t small{color:var(--mut);font-size:11.5px;line-height:1.3}
.cnav-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cnav-pos{
  display:flex;align-items:center;padding:0 10px;
  color:var(--mut);font-size:12.5px;white-space:nowrap;
}
@media(max-width:560px){
  .cardnav{gap:6px}
  .cnav-btn{padding:8px 10px;font-size:13px}
  .cnav-pos{display:none}      /* на узком экране счётчик съедает место */
  .cnav-t small{font-size:11px}
}

/* ============ плашка уровня полезности =================================
   Отвечает на вопрос «стоит ли сюда идти» до перехода. Ставится не всем:
   только очень хорошим и явно заброшенным, иначе отметки обесценятся. */
.b.qb{font-weight:600;border:1px solid transparent}
.b.qb-top{background:rgba(15,157,107,.14);color:#0f9d6b;border-color:rgba(15,157,107,.3)}
.b.qb-good{background:rgba(51,144,236,.12);color:#2b7fd0}
.b.qb-bad{background:rgba(201,138,0,.12);color:#a06f00}
.b.qb-top::before{content:'✓ '}
.b.qb-bad::before{content:'⏸ '}

/* плашка уровня на странице карточки — крупнее, чем в списке */
.detail .fact.qbig{border-width:1px;font-weight:600}
.detail .fact.qb-top{background:rgba(15,157,107,.10);border-color:rgba(15,157,107,.35)}
.detail .fact.qb-top b{color:#0f9d6b}
.detail .fact.qb-good{background:rgba(51,144,236,.09);border-color:rgba(51,144,236,.3)}
.detail .fact.qb-bad{background:rgba(201,138,0,.10);border-color:rgba(201,138,0,.32)}
.detail .fact.qb-bad b{color:#a06f00}

/* Реклама помечается отдельно от «Промо»: человек имеет право знать,
   за что заплачено, а за что — наш выбор. */
.b.promo.isad{background:rgba(201,138,0,.14);color:#a06f00;font-weight:600}

/* ============ карточка: свойства одной строкой ==========================
   Подписи под значениями убраны: и так видно, что «18.3K» — это люди, а
   «Берлин» — город. Освободившееся место отдано описанию. */
.detail .facts{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}
.detail .fact{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px;border:1px solid var(--line);border-radius:999px;
  background:var(--card);font-size:13.5px;white-space:nowrap;
}
.detail .fact b{font-weight:600;font-size:13.5px}
.detail .fact .fico{width:17px;height:17px;flex:0 0 17px;display:inline-flex}
.detail .fact .fico svg{width:17px;height:17px}
.detail .fact.lnk:hover{border-color:var(--acc)}
.detail .fact.lnk:hover b{color:var(--acc)}

/* «Поделиться» — рядом с открытием канала, а не внизу среди оценок */
.btn.share-btn{display:inline-flex;align-items:center;gap:7px}
.btn.share-btn svg{width:16px;height:16px}

/* ============ фильтры окошком ==========================================
   Раньше ряды лежали открытыми и занимали треть экрана до первой карточки.
   Теперь строка с кнопкой: видно, что выбрано, а раскрывается по нажатию. */
.filters.fbox{
  margin:0 0 14px;padding:0;border:1px solid var(--line);
  border-radius:14px;background:var(--card);overflow:hidden;
}
.fsum{
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;cursor:pointer;list-style:none;user-select:none;
}
.fsum::-webkit-details-marker{display:none}
.fsum-i{display:inline-flex;color:var(--mut)}
.fsum-i svg{width:17px;height:17px}
.fsum-t{font-weight:600;font-size:14.5px}
.fsum-v{color:var(--mut);font-size:13.5px;flex:1;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsum-n{
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:var(--acc);color:#fff;font-size:12px;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;
}
.fsum-x{color:var(--mut);transition:transform .15s}
.filters.fbox[open] .fsum-x{transform:rotate(180deg)}
.fsum:hover{background:var(--bg)}
.fbody{padding:2px 14px 12px;border-top:1px solid var(--line)}

/* На телефоне панель выезжает снизу — как привыкли в приложениях:
   на маленьком экране раскрытый список фильтров съедает всё место. */
@media(max-width:640px){
  .filters.fbox[open]{
    position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;
    margin:0;border-radius:18px 18px 0 0;max-height:78vh;overflow:auto;
    box-shadow:0 -12px 40px rgba(0,0,0,.28);
  }
  .filters.fbox[open] .fsum{
    position:sticky;top:0;z-index:1;background:var(--card);
    border-bottom:1px solid var(--line);
  }
  .filters.fbox[open]::backdrop{background:rgba(0,0,0,.4)}
  .filters.fbox[open] .fbody{padding-bottom:26px}
  .fsum-v{display:none}          /* на узком экране не помещается */
}

/* ============ панель «наши ресурсы» ====================================
   Три ссылки в ряд и картинка справа. Раньше панель стояла узкой колонкой
   в карточке — кнопки лепились в столбик и терялись среди рекомендаций.

   Полосой под содержимым её видно, а три задачи разведены: канал читают,
   ботом ищут, в чат приходят с вопросом. */
.ownbar{
  position:relative;overflow:hidden;
  margin:20px 0;padding:14px 16px;
  border:1px solid var(--line);border-radius:18px;
  background:linear-gradient(135deg,var(--card),var(--bg));
}
.ownbar-h{
  font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--acc);font-weight:700;margin:0 0 11px;
}
.ownbar-row{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  /* Место под кота справа — только там, где он помещается. */
  padding-right:0;
}
.ownb{
  display:flex;align-items:center;gap:11px;min-width:0;
  padding:11px 13px;border:1px solid var(--line);border-radius:14px;
  background:var(--bg);color:var(--txt);text-decoration:none;
}
.ownb:hover{border-color:var(--acc);background:var(--card)}
.ownb-i{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;flex:0 0 42px;border-radius:50%;
  background:var(--acc);color:#fff;
}
.ownb-i svg{width:22px;height:22px;fill:#fff;stroke:#fff}
.ownb-t{display:flex;flex-direction:column;min-width:0;flex:1}
.ownb-t b{font-size:14.5px;font-weight:700;line-height:1.25;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ownb-t small{font-size:12.5px;color:var(--mut);line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ownb-x{color:var(--acc);font-size:20px;line-height:1;flex:0 0 auto}

.ownbar-cat{
  position:absolute;right:-6px;bottom:-8px;
  height:132px;width:auto;pointer-events:none;
  opacity:.95;
}

/* Широкий экран: освобождаем место под кота, чтобы он не налезал на текст */
@media(min-width:1100px){
  .ownbar-row{padding-right:210px}
}
/* Средний: кот мельче, две колонки */
@media(max-width:1099px) and (min-width:721px){
  .ownbar-row{grid-template-columns:repeat(2,1fr);padding-right:150px}
  .ownbar-cat{height:104px}
}
/* Телефон: кота убираем — он съедает место у кнопок */
@media(max-width:720px){
  .ownbar{padding:12px 13px;border-radius:16px}
  .ownbar-row{grid-template-columns:1fr;gap:8px;padding-right:0}
  .ownbar-cat{display:none}
  .ownb{padding:10px 12px}
  .ownb-i{width:38px;height:38px;flex:0 0 38px}
  .ownb-i svg{width:19px;height:19px}
  .ownb-t b{font-size:14px}
  .ownb-t small{font-size:12px}
}

/* Подборки «Топ» на сайте: нумерованный список со ссылками наружу.
   Намеренно проще карточек — подборку читают подряд, а не сканируют. */
.topslist{margin:14px 0;padding-left:26px;line-height:1.7}
.topslist li{margin:0 0 10px}
.topslist a{font-weight:600;color:var(--acc);text-decoration:none}
.topslist a:hover{text-decoration:underline}
.topslist .tmeta{color:var(--mut);font-size:13px}
.topslist .tdesc{color:var(--mut);font-size:13.5px;line-height:1.5}

/* Метка версии панели: видно, подхватился ли новый файл после обновления */
.pver{font-size:11.5px;color:var(--mut);opacity:.7;margin-right:8px;white-space:nowrap}

/* ============ шапка: логотип крупнее, поиск скромнее ===================
   Логотип — лицо сайта, по нему узнают и возвращаются. Поиском пользуются
   реже, чем кажется: большинство приходит из поисковика сразу на нужную
   страницу и дальше ходит по разделам. */
.logo .logoimg{height:52px}
.search{flex:0 1 min(560px, 46%)}
@media(max-width:1100px){
  .logo .logoimg{height:46px}
  .search{flex:0 1 min(420px, 42%)}
}
@media(max-width:720px){
  .logo .logoimg{height:40px}
}

/* Шапка: выравниваем ряд кнопок справа.
   Порядок: логотип · поиск · [Тема/Город] · поиск-иконка · меню.
   Кнопки одной высоты и с одинаковыми промежутками — иначе ряд выглядит
   собранным наспех. */
header.top .wrap{display:flex;align-items:center;gap:10px}
header.top .tbtn{
  height:44px;display:inline-flex;align-items:center;gap:8px;
  padding:0 14px;border-radius:12px;white-space:nowrap;flex:0 0 auto;
}
header.top .tbtn.burger,
header.top .tbtn.schbtn{width:44px;padding:0;justify-content:center}
header.top .citypick .cp-t{font-size:14.5px;font-weight:600}
@media(max-width:720px){
  header.top .wrap{gap:7px}
  header.top .tbtn{height:40px;padding:0 11px}
  header.top .tbtn.burger,
  header.top .tbtn.schbtn{width:40px}
  header.top .citypick .cp-t{display:none}   /* на узком — только значок */
}

/* Поиск прижат вправо, к меню.
   Раньше он растягивался на всю свободную ширину и «плавал» посередине —
   логотип слева, меню справа, поиск где-то между. Теперь логотип отжимает
   всё вправо, и поиск с меню стоят рядом, как единая группа. */
header.top .logo{margin-right:auto}
header.top .search{flex:0 0 auto;width:min(420px, 38vw)}
@media(max-width:900px){
  header.top .search{width:min(300px, 44vw)}
}
@media(max-width:620px){
  /* На телефоне поле сжимается до значка и раскрывается по нажатию —
     иначе логотипу не остаётся места. */
  header.top .search{width:auto;flex:0 0 auto}
  header.top .search input{width:42px;padding-right:0;transition:width .18s}
  header.top .search:focus-within input{width:min(220px,52vw);padding-right:34px}
}

/* Предупреждение внизу страницы: отступы такие же, как у соседних блоков,
   иначе рамка «прилипает» к тексту и выглядит недоделанной. */
.risknote{margin:26px 0 18px;padding:14px 16px;border-radius:14px;line-height:1.55}
.risknote b{display:inline-block;margin-bottom:3px}
@media(max-width:640px){
  .risknote{margin:20px 0 14px;padding:12px 13px;font-size:13.5px}
}

/* ============ отступы и читаемость =====================================
   Блок «Тип» стоял впритык к следующему разделу — глаз не отделял одно от
   другого. Даём воздух. */
.tiles.c-type{margin-bottom:26px}
.tiles.c-plat{margin-bottom:26px}

/* Направления под заголовком раздела: подсказка, что внутри. */
.secsubs{
  margin:-6px 0 12px;color:var(--mut);
  font-size:13.5px;line-height:1.5;
}

/* Плитки: текст не обрезаем — каждое слово должно читаться.
   Раньше длинные названия («Антидетект и прокси») уходили в многоточие,
   и человек гадал, что за раздел. */
.tile .tname{
  white-space:normal;overflow:visible;text-overflow:clip;
  line-height:1.3;word-break:normal;overflow-wrap:anywhere;
}
.tiles.c-cat .tile{min-height:64px;align-items:flex-start}
.tiles{grid-template-columns:repeat(auto-fill,minmax(215px,1fr))}

/* Выезжающее меню: пункты в одну строку каждый, ничего не режется */
.drawer .dwbody a,
.drawer .dwbody .conm{white-space:normal;overflow:visible;text-overflow:clip}

/* Шапка: логотип отжимает всё вправо, поиск и меню — рядом */
header.top .wrap{display:flex;align-items:center;gap:10px}
header.top .logo{margin-right:auto;flex:0 0 auto}
header.top .search{flex:0 0 auto;width:min(400px,34vw);margin-left:auto}
header.top .burger{flex:0 0 auto;margin-left:0}
@media(max-width:900px){ header.top .search{width:min(280px,42vw)} }
@media(max-width:600px){
  header.top .search{width:auto}
  header.top .search input{width:44px;transition:width .18s}
  header.top .search:focus-within input{width:min(210px,54vw)}
}


/* ============ шапка: поиск вплотную к меню ============================
   Раньше у поиска стоял margin-left:auto — он отжимал поиск от логотипа,
   но между поиском и меню всё равно оставалась щель. Теперь растяжку даём
   логотипу: он уезжает влево, а поиск и меню становятся единой группой
   у правого края. */
header.top .logo{margin-right:auto}
header.top .search{flex:0 0 auto;width:min(400px,34vw);margin-left:0}
header.top .search + .tbtn{margin-left:8px}
@media(max-width:900px){ header.top .search{width:min(280px,40vw)} }
@media(max-width:620px){
  header.top .search{width:auto}
  header.top .search input{width:44px;transition:width .18s}
  header.top .search:focus-within input{width:min(210px,50vw)}
}

/* Отступ между плитками формата и рубриками: раньше блоки слипались
   и читались как один. */
.tiles + .secthead{margin-top:22px}
.tiles.c-type + .secthead{margin-top:26px}

/* Направления под названием рубрики: тонкой строкой, чтобы не спорить
   с заголовком, но давать понять, что внутри. */
.secthead .secsubs{
  display:block;width:100%;order:9;
  margin-top:3px;font-size:12.5px;color:var(--mut);line-height:1.45;
}

/* Кнопка поиска только на телефоне: там поле сжато до значка. */
.only-mobile{display:none}
@media(max-width:620px){
  .only-mobile{display:inline-flex}
  header.top .search{width:auto}
  header.top .search input{width:0;padding:0;border:0;opacity:0;transition:.18s}
  header.top .search.open input,
  header.top .search:focus-within input{
    width:min(230px,54vw);padding:0 34px 0 14px;border-width:1px;opacity:1;
  }
}
