/* Kzmap поверх UI Kit (kit.css, своя гамма «kz» — бирюзово-синий #00728F и золотой акцент, задана ниже): маска контак
тов в образце,
   значки соцсетей, столбики по периодам, ссылки-сетки, блок «Сколько организаций …», секторы и рубрики. */

/* Гамма Kzmap (как продукты UI Kit в kit.css: --brand, --brand-ink, --brand-tint, --brand-soft, --brand-on, --accent):
   бирюзово-синий флага Казахстана (#00728F — контраст с белым 5,5:1) и золотой акцент. Значок сайта — config('kzmap.theme'). */
[data-product="kz"], .p-kz { --brand:#00728F; --brand-ink:#005A71; --brand-tint:#DDF1F6; --brand-soft:rgba(0,114,143,0.10); --brand-on:#fff; --brand-hover:#00657F; --accent:#FFD166; --accent-2:#F7C24A; --brand-soft-line:rgba(0,114,143,.35); }

/* ---------- маска контактов: видна форма, цифры и адреса приходят с сервера точками ---------- */
.mask { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--ink-2, #33415C); white-space: nowrap; }
.mask .blur { filter: blur(2.6px); opacity: .75; user-select: none; letter-spacing: .02em; }
.cmore { font-size: 11px; color: var(--muted, #7A8699); margin-left: 4px; }
.contacts-cell { display: flex; flex-direction: column; gap: 3px; }
.contacts-cell .mask svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; opacity: .55; }

/* ---------- значки соцсетей в строке ---------- */
.nets { display: flex; flex-wrap: wrap; gap: 3px; }
.net { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px;
  border-radius: 4px; font: 700 9.5px/1 'JetBrains Mono', monospace; letter-spacing: .02em; color: #fff; background: #64748B; }
.net--vk { background: #0077FF; } .net--telegram { background: #229ED9; } .net--whatsapp { background: #25A244; }
.net--ok { background: #EE8208; } .net--youtube { background: #E62117; } .net--instagram { background: #C13584; }
.net--viber { background: #7360F2; } .net--max { background: #3D2BD8; } .net--facebook { background: #1877F2; }
.net--dzen { background: #111; } .net--tiktok { background: #111; } .net--rutube { background: #14191F; } .net--x { background: #111; }

.who small.addr { max-width: 340px; white-space: normal; }
.cell-sub { display: block; font-size: 12px; color: var(--muted, #7A8699); }
.badge-chain { display: inline-flex; align-items: center; gap: 4px; }
td .tag + .tag { margin-left: 3px; }
.row-closed b { color: var(--muted, #7A8699); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- логотип сети ---------- */
.clogo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line, #E3E8EF); flex: none; }
.clogo--lg { width: 64px; height: 64px; border-radius: 14px; }
.clogo--sm { width: 22px; height: 22px; border-radius: 5px; }

/* ---------- столбики по месяцам ---------- */
/* ---------- открытия и закрытия: три периода по 30 дней ---------- */
.pbars { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; align-items: end; padding-top: 8px; }
.pbars__p { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.pbars__bars { display: flex; gap: 8px; align-items: stretch; justify-content: center; height: 170px; border-bottom: 1px solid var(--line, #E3E8EF); }
.pbars__col { flex: 1; max-width: 56px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pbars__v { font: 600 12px 'JetBrains Mono', monospace; color: var(--ink-soft, #3A4757); white-space: nowrap; line-height: 16px; }
.pbars__b { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--ev-new); }
.pbars__b--closed { background: var(--ev-closed); }
.pbars__b--reopened { background: var(--ev-reopened); }
.pbars__l { font: 500 12px 'JetBrains Mono', monospace; color: var(--muted, #7A8699); text-align: center; }
@media (max-width: 760px) { .pbars { gap: 10px; } .pbars__bars { gap: 4px; } .pbars__v { font-size: 10px; } }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- блок «Сколько …» на странице сети ---------- */
.answer { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; }
.answer h2 { font-size: 22px; margin: 0 0 8px; }
.answer p { margin: 0 0 8px; }
.answer .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }

/* ---------- ссылки-облака: регионы, рубрики ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 24px; }
.linkgrid > a, .linkgrid > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line, #E3E8EF);
  font-size: 14px; color: var(--ink, #0B1B2B); text-decoration: none; }
.linkgrid a:hover { color: var(--brand); }
.linkgrid .n { font: 500 12px 'JetBrains Mono', monospace; color: var(--muted, #7A8699); white-space: nowrap; }
.linkgrid > span { color: var(--muted, #7A8699); }

.auth-card { max-width: 440px; margin: 48px auto; }
.prose-lf h2 { margin-top: 28px; }
.prose-lf p, .prose-lf li { line-height: 1.65; }
.muted { color: var(--muted, #7A8699); }
.pager__list .is-disabled { opacity: .4; pointer-events: none; }
.hero-search { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; max-width: 760px; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr; } }

/* ---------- таблица компаний: колонки по ширине, переносы внутри ячеек ---------- */
.table--co { table-layout: fixed; min-width: 1040px; }
.table--co td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.table--co .who { align-items: flex-start; }
.table--co .who b, .table--co .who small { white-space: normal; overflow-wrap: anywhere; }
.table--co .who small.addr { max-width: none; }
.table--co .tag { white-space: normal; text-align: left; line-height: 1.25; padding-top: 3px; padding-bottom: 3px; }
.table--co col.c-co { width: 29%; } .table--co col.c-cat { width: 15%; } .table--co col.c-city { width: 13%; }
.table--co col.c-ph { width: 14%; } .table--co col.c-web { width: 16%; } .table--co col.c-soc { width: 13%; } .table--co col.c-date { width: 96px; }
.table--co .mask { white-space: normal; overflow-wrap: anywhere; }
.table--co td.ph .mask { white-space: nowrap; }
.contacts-cell .mask svg { display: inline-block; }
.who img.clogo, .who .avatar { margin-top: 1px; }

.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mt-8 { margin-top: 56px; } .mb-8 { margin-bottom: 56px; }
.contacts-cell .mask { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.table--co .mask { white-space: nowrap; }

.who .tag { margin-left: 0; }
.price-tag { font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.buy-cell { white-space: nowrap; text-align: right; }
.table--co { min-width: 900px; }
.table--co col.c-co { width: 30%; } .table--co col.c-city { width: 16%; } .table--co col.c-ph { width: 16%; }
.table--co col.c-web { width: 20%; } .table--co col.c-soc { width: 12%; }
.hero-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-price b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.cartline .tile-ic svg { width: 18px; height: 18px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.order-ok { max-width: 640px; margin: 48px auto; text-align: center; }
.order-ok .tile-ic { margin: 0 auto 16px; }
@media (min-width: 961px) { .pdp__side--sticky { position: sticky; top: 92px; } }
#priceTable td:first-child .check { margin: 0; }
.table .rbar .progress { width: 72px; min-width: 72px; flex: none; }
.table .rbar .num { min-width: 44px; }
.table .rbar { min-width: 0; }
.checkout .form__row { align-items: start; }
@media (max-width: 480px) { .hdr__name { display: none; } .hdr__actions { gap: 8px; } }
@media (max-width: 900px) { .kpis--5 .kpi:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---------- регионы по федеральным округам ---------- */
.fds { column-count: 3; column-gap: 20px; }
@media (max-width: 1100px) { .fds { column-count: 2; } }
@media (max-width: 700px) { .fds { column-count: 1; } }
.fd { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); padding: 16px 18px 6px; }
.fd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.fd__t { font-size: 15.5px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.fd__m { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.fd__list { list-style: none; margin: 0; padding: 0; }
.fd__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.fd__list li:last-child { border-bottom: 0; }
.fd__list a { color: var(--ink); text-decoration: none; }
.fd__list a:hover { color: var(--brand); }
.fd__n { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.fd__p { font-weight: 700; font-size: 13.5px; text-align: right; white-space: nowrap; }

.topbar__links .dot { margin-right: 8px; }
.over__sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 16px 0 4px; padding: 14px 16px; background: var(--paper); font-size: 14px; }
.over__sum b { text-align: right; white-space: nowrap; }
.over__sum .over__old { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.over__sum .over__new { color: var(--brand); font-size: 16px; }

/* ---------- регионы с ценами (главная): название и число организаций слева, цена справа ---------- */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.plist__i { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.plist__nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.plist__nm small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.plist__p { flex: none; font-size: 14.5px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__i:hover .plist__nm { color: var(--brand); }
/* оформление заказа: пометки под позициями — отступ от строк заказа и от итога */
.checkout [data-co-notes]:not(:empty) { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; }
.checkout [data-co-notes] .pricer-hint { margin: 0; }

/* ---------- переключатель «все / сетевые / несетевые» в конфигураторе ---------- */
.segpick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.segpick__l { font-size: 12px; color: var(--muted); }
.segpick__seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.segpick__seg .seg__btn { justify-content: center; padding: 0 6px; font-size: 12px; white-space: nowrap; }
.picklist__row input:disabled ~ .picklist__nm, .picklist__row input:disabled ~ .picklist__v, .picklist__row input:disabled ~ .picklist__p { opacity: .4; }
tr.is-off td { opacity: .4; }

/* Две колонки «таблица + список»: в одну колонку на узком экране */
.cols--split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cols--split-14 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .cols--split, .cols--split-14 { grid-template-columns: minmax(0, 1fr); } }
/* Таблица с прокруткой внутри (app.js scrollBoxes): высота — до низа соседней колонки, полоса прокрутки
   всегда видна, снизу затухание и кнопка «Ещё N …», пока есть что листать */
.scrollbox { position: relative; }
.scrollbox .tablescroll { scrollbar-width: thin; scrollbar-color: rgba(13, 33, 64, 0.28) transparent; }
.scrollbox .tablescroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scrollbox .tablescroll::-webkit-scrollbar-thumb { background: rgba(13, 33, 64, 0.24); }
.scrollbox .tablescroll::-webkit-scrollbar-thumb:hover { background: rgba(13, 33, 64, 0.4); }
.scrollbox .tablescroll::-webkit-scrollbar-track { background: rgba(13, 33, 64, 0.04); }
.scrollbox::after { content: ''; position: absolute; left: 0; right: 10px; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 78%); opacity: 0; transition: opacity .2s; }
.scrollbox.is-more::after { opacity: 1; }
.scrollbox__more { position: absolute; left: 50%; bottom: 12px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(13, 33, 64, 0.1); }
.scrollbox__more:hover { color: var(--ink); border-color: rgba(13, 33, 64, 0.3); }
.scrollbox__more svg { width: 14px; height: 14px; }
.scrollbox__more[hidden] { display: none; }

/* Шапка: восемь разделов (типы — выпадающее меню) — плотнее ссылки, на ноутбуках короче кнопка покупки */
.hdr__link { padding: 9px 10px; }
@container (max-width: 1300px) {
  .hdr__link { padding: 9px 8px; font-size: 14px; }
  .hdr .hide-narrow { display: none !important; }
}
@container (max-width: 1199px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; }
}

/* Рейтинги регионов и городов: на телефоне — место, название, организаций на 100 тысяч и жителей на организацию */
@media (max-width: 700px) { .dens .col-opt { display: none; } .dens .rbar .progress { display: none; } .dens th { white-space: normal; } }

/* «Другие базы и данные на заказ»: баннер над подвалом всех страниц и страница с заявкой */
.custband { margin: 8px 0 56px; }
.custband .cta__t { max-width: 780px; }
.custband__kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; font: 700 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.custband__kicker svg { width: 15px; height: 15px; }
.custband__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.custband__chips a { padding: 6px 11px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; }
.custband__chips a:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.custband__chips a.custband__more { background: none; border-color: transparent; color: var(--accent); padding-left: 4px; }
.topbar__links a.topbar__hl { color: var(--accent); font-weight: 650; }
.topbar__links a.topbar__hl:hover { color: #fff; }

.nichegrid > a { cursor: pointer; }
.nichegrid__nm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.nichegrid__more { display: none; margin-top: 14px; }
.nichegrid__nm svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--brand); opacity: .45; transition: opacity .12s, transform .12s; }
.nichegrid > a:hover .nichegrid__nm svg { opacity: 1; }
.nichegrid > a.is-picked { color: var(--brand); font-weight: 650; }
.nichegrid > a.is-picked .nichegrid__nm svg { opacity: 1; transform: rotate(45deg); }
.nichegrid__empty { margin-top: 12px; padding: 14px 16px; background: var(--paper); font-size: 14px; }
.capgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.capcard { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); }
.capcard b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.capcard p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 8px; }
.freqgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.freqgrid .radio--card { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 980px) { .capgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .capgrid, .checkgrid, .freqgrid { grid-template-columns: 1fr; } .custband { margin-bottom: 36px; }
  .nichegrid.is-collapsed > a:nth-child(n+21) { display: none; }      /* на телефоне — первые 20 рубрик и кнопка «все» */
  .nichegrid.is-collapsed ~ .nichegrid__more { display: inline-flex; }
}

/* ---------- секторы ---------- */
/* выбор типов в конфигураторе: пилюли, можно несколько */
.typepick { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.typepick__hint { color: var(--muted); opacity: .8; }
.typepick__list { display: flex; flex-wrap: wrap; gap: 5px; }
.typepick .pill { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.buybox__sum--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; border-bottom: 0; padding-bottom: 10px; }
/* CTA на цветном фоне (рейтинги, наблюдения): на телефоне кнопки во всю ширину, «В корзину · 1 990 BYN» не вылезает */
@media (max-width: 420px) { .cta__a { width: 100%; } .cta__a .btn { flex: 1 1 100%; white-space: normal; padding-left: 14px; padding-right: 14px; } }
/* корзина и оформление: под территорией позиции — организаций и уникальных e-mail и телефонов */
/* значок позиции «адреса сети» — логотип сети или инициалы (размер — как у значка сектора) */
.cartline__logo { width: 34px; height: 34px; --av: 34px; flex: none; }
.cartline__nums { font-size: 12px; line-height: 1.35; color: var(--ink-soft); margin-top: 2px; font-variant-numeric: tabular-nums; }
/* три числа выборки (partials/buy-nums): организаций, уникальных e-mail и телефонов — полосой из трёх ячеек */
.buynums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line-2); margin-bottom: 4px; }
.buynums > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; }
.buynums > div + div { border-left: 1px solid var(--line-2); }
.buynums b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .15s ease; }
.buynums span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.buynums .nw { white-space: nowrap; font-size: inherit; color: inherit; }
.buynums.is-wait [data-pricer-emails], .buynums.is-wait [data-pricer-phones] { opacity: .35; }
@media (max-width: 420px) { .buynums > div { padding: 9px 8px; } .buynums b { font-size: 16px; } .buynums span { font-size: 11.5px; } }
/* плитки типов: название, число, доля, полоса, цена */
/* 17 секторов: от четырёх до шести плиток в ряд на десктопе, на телефоне — две */
.ttiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ttile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
a.ttile:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(28, 130, 41, 0.12); }
.ttile__nm { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
a.ttile:hover .ttile__nm { color: var(--brand-ink); }
.ttile__n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin-top: auto; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ttile__n small { font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.ttile__bar { display: block; height: 4px; background: var(--brand-tint); }
.ttile__bar i { display: block; height: 100%; background: var(--brand); }
.ttile__f { font-size: 12.5px; color: var(--muted); }
.ttile__p { font-size: 14px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
/* меню «Секторы» в шапке */
.typemenu { min-width: 0; width: 740px; max-width: calc(100vw - 48px); }
/* типы в две колонки — меню вдвое ниже и помещается на экране ноутбука; на совсем низком экране — прокрутка внутри меню */
.typemenu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; }
.typemenu .menu__item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typemenu .menu__item span { min-width: 0; }
.hdr__item > .typemenu { max-height: calc(100vh - 120px); overflow-y: auto; }
.typemenu .menu__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.typemenu .menu__item span { min-width: 0; font-weight: 600; }
.typemenu .menu__item kbd { flex: none; }
.drawer-nav__sub { display: block; padding: 14px 12px 4px; font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer-nav__types { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 6px; }
.drawer-nav__body .drawer-nav__types a { padding: 9px 12px; font-size: 14.5px; font-weight: 550; }
/* тип в строке образца */
.who small.kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.tag--type { background: var(--brand-tint); color: var(--brand-ink); font-weight: 650; }
.kind__more { color: var(--muted); font-size: 12px; }
/* фильтр по типу на страницах наблюдений и рейтингов */
.typefilter { padding: 2px 0 10px; }
.typefilter .pill { height: 32px; padding: 0 12px; font-size: 13px; }
@media (max-width: 760px) {
  .typefilter { gap: 6px; }
  .typefilter .pill { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
  .typefilter .pill .n, .typefilter-note { display: none; }
}
/* KPI в основной колонке страницы (рядом конфигуратор): числа до 7 знаков — мельче, чтобы на ноутбуке не обрезались */
.pdp__main .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdp__main .kpi { padding: clamp(16px, 1.6vw, 22px); }
/* Kzmap: числа крупные (5 600 000) — в колонке рядом с конфигуратором шрифт KPI меньше, а до 1280px — две колонки плиток */
.pdp__main .kpi__n { font-size: clamp(22px, 1.9vw, 28px); }
@media (max-width: 1279px) { .pdp__main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* телефон: кнопки покупки друг под другом — без flex: 1, иначе в колонке они сплющиваются по высоте */
@media (max-width: 480px) { .buybox__actions .btn { flex: none; } }

/* ---------- иконки секторов (resources/views/partials/type-icons.blade.php, #t-<слаг>) ----------
   Гамма «pt» (индиго): значки и ссылки на белом — цветом бренда --brand, на фоне бренда — белым --brand-on. */
.hdr .typemenu .menu__item svg { width: 20px; height: 20px; color: var(--brand); }
.typemenu .menu__item span { flex: 1; }
.typemenu .menu__item kbd { min-width: 56px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.drawer-nav__body .drawer-nav__types a { display: flex; align-items: center; gap: 9px; }
.drawer-nav__types svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.ttile__nm { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 60px; }
.ttiles .ttile__nm svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.ttile__f { line-height: 1.35; }
.typepick .pill svg, .typefilter .pill svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.typepick .pill.is-active svg, .typefilter .pill.is-active svg { color: currentColor; }
.tag--type { gap: 4px; }
.tag--type svg { width: 13px; height: 13px; flex: none; }
.tname { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.tname svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.linkgrid .ln { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.linkgrid .ln svg { width: 17px; height: 17px; flex: none; color: var(--brand); }
.typehead { display: flex; align-items: center; gap: 18px; }
.typehead h1 { margin: 0; min-width: 0; overflow-wrap: break-word; }
/* узкий телефон: «Стройматериалы и хозтовары в Москве» — длинное первое слово, заголовок чуть меньше */
@media (max-width: 360px) { .typehead h1 { font-size: 26px; } }
.ticon-box { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); }
.ticon-box svg { width: 36px; height: 36px; }
@media (max-width: 600px) { .typehead { gap: 12px; } .ticon-box { width: 48px; height: 48px; border-radius: 11px; } .ticon-box svg { width: 28px; height: 28px; } }

/* ---------- наблюдения: одни цвета на всех сайтах, независимо от гаммы продукта ----------
   открылись — зелёный, закрылись — красный, открылись снова — светлый зелёный (столбики, легенда, числа, тренды) */
:root { --ev-new: #16A34A; --ev-new-ink: #15803D; --ev-closed: #E5383B; --ev-closed-ink: #D92D20; --ev-reopened: #86D9AB; --ev-reopened-ink: #2E9D63; }
.ev-new { color: var(--ev-new-ink); } .ev-closed { color: var(--ev-closed-ink); } .ev-reopened { color: var(--ev-reopened-ink); }
.legend-dot--new { background: var(--ev-new); } .legend-dot--closed { background: var(--ev-closed); } .legend-dot--reopened { background: var(--ev-reopened); }
.trend--up { color: var(--ev-new-ink); } .trend--down { color: var(--ev-closed-ink); }
.topbar .ev-new { color: #4ADE80; } .topbar .ev-closed { color: #F87171; }
/* активная (бордовая) пилюля типа: числа событий — на светлой подложке, своими цветами (зелёный / красный читаются) */
.pill.is-active .n { background: #fff; border-radius: 4px; padding: 2px 6px; opacity: 1; line-height: 1.2; }
.pill.is-active .ev-new { color: var(--ev-new-ink); } .pill.is-active .ev-closed { color: var(--ev-closed-ink); }

/* ---------- адаптивность: без горизонтальной прокрутки страницы и таблиц на десктопе ---------- */
/* подписи в таблицах (тип и число точек сети, адрес) переносятся, а не растягивают таблицу */
.table .who b, .table .who small { white-space: normal; }
/* второстепенные столбцы таблиц — только на широком экране (рядом с таблицей стоит конфигуратор) */
@media (max-width: 1199px) { .col-wide { display: none; } }
/* вкладки «новые / закрывшиеся» на узком телефоне */
@media (max-width: 420px) { .tabs { overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tabs__tab { padding: 10px 10px; font-size: 13.5px; } }
/* строки заполненности на странице сети: на телефоне подпись над полосой */
@media (max-width: 480px) { .progress-row { flex-wrap: wrap; row-gap: 4px; } .progress-row > .text-sm { min-width: 100% !important; } .progress-row .num { min-width: 0 !important; } }
/* рядом с конфигуратором на ноутбуке: в столбце «Доля рынка» — только число, без полосы */
@media (max-width: 1199px) { .pdp__main .table .rbar .progress { display: none; } }
/* итог конфигуратора: длинный список регионов и типов переносится, а не обрезается */
.buybox__sum--2 b { white-space: normal; overflow-wrap: anywhere; }
/* узкий телефон: список регионов плотнее, чтобы названия не обрезались до трёх букв */
@media (max-width: 400px) {
  .buybox .picklist__head, .buybox .picklist__row { gap: 6px; padding-left: 4px; padding-right: 4px; }
  .buybox .picklist__p { min-width: 0; }
}
/* кнопки внизу окон: на телефоне — друг под другом во всю ширину */
@media (max-width: 480px) {
  .modal__foot { flex-direction: column-reverse; align-items: stretch; }
  .modal__foot .btn { width: 100%; justify-content: center; white-space: normal; }
}

/* верхняя полоса со статистикой: без прокрутки — числа, которые не помещаются, уходят во второй (скрытый) ряд целиком */
.topbar__stats { flex-wrap: wrap; height: 36px; overflow: hidden; align-content: flex-start; }
.topbar__stat, .topbar__stats > .topbar__stat:last-child { height: 36px; border-right: 0; margin-right: 0; padding-right: 0; }
.topbar__stat + .topbar__stat { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 16px; margin-left: 16px; }
/* бейджи в шапке страницы: длинный бейдж переносится, а не вылезает за экран */
.pagehead .row .badge { max-width: 100%; white-space: normal; }
@media (max-width: 400px) { .segpick__seg .seg__btn { min-width: 0; height: auto; min-height: 28px; padding: 4px; font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: center; } }
@media (max-width: 420px) { .tabs__more { display: none; } }
/* меню «Секторы»: вся база сверху, под ней секторы */
.typemenu .menu__label { padding-top: 6px; }
.typemenu .typemenu__all span { font-weight: 700; }
/* тарифы на странице цен: колонки не шире экрана, длинная надпись на кнопке переносится */
.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier .btn { white-space: normal; text-align: center; justify-content: center; }
.tier__tag { max-width: calc(100% - 48px); white-space: normal; }
/* крупнейшие регионы: длинные названия типов в шапке таблицы — в две строки, без прокрутки */
.table--thwrap th, .table--thwrap th.num { white-space: normal; vertical-align: bottom; line-height: 1.25; }
@media (max-width: 1365px) { .col-xl { display: none; } }

/* Kzmap: длинные подписи. Кнопка над рейтингом сетей — на телефоне короче («Весь Казахстан · 1 990 BYN»). */
.tb-short { display: none; }
@media (max-width: 480px) { .toolbar .tb-long { display: none; } .toolbar .tb-short { display: inline; } }
/* Таблицы рядом с конфигуратором (от 961px): подписи столбцов переносятся; в рейтинге сетей города «За 90 дней» до 1100px скрыт */
@media (min-width: 961px) { .pdp__main .table thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; } }
@media (min-width: 961px) and (max-width: 1099px) { .col-mid { display: none; } }
/* хлебные крошки: длинное название текущей страницы («Ханты-Мансийский автономный округ — Югра») на узком экране — в одну строку с многоточием */
.crumbs .is-current { min-width: 0; max-width: 100%; }
.crumbs .is-current span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- верхняя полоса: «Обновлено» первым слева; разделители короткие (14 px), а не на всю высоту полосы ---------- */
/* промежуток — через column-gap: у первого числа в строке нет отступа, и перенесённые в скрытый ряд числа не шире полосы */
.topbar__stats { column-gap: 32px; }
.topbar__stat + .topbar__stat, .topbar--light .topbar__stat + .topbar__stat { position: relative; border-left: 0; padding-left: 0; margin-left: 0; }
.topbar__stat + .topbar__stat::before { content: ""; position: absolute; left: -16px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255, 255, 255, 0.2); }
.topbar--light .topbar__stat + .topbar__stat::before { background: var(--line); }
.topbar__stats .topbar__upd { color: rgba(255, 255, 255, 0.72); }
.topbar--light .topbar__stats .topbar__upd { color: var(--ink-soft); }
.topbar__upd .dot { margin-right: 8px; }
.topbar__acc { position: relative; border-left: 0 !important; padding-left: 16px !important; }
.topbar__acc::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255, 255, 255, 0.2); }
@media (max-width: 900px) {
  .topbar__stats .topbar__upd { display: none; }
  .topbar__stats .topbar__upd + .topbar__stat::before { display: none; }
}

/* ---------- полоса действий: ссылки разделов — сразу за названием, «В корзину» (и «Выбрано: …») — у правого края ---------- */
.actionbar__in > .stuck-only { order: 2; }
.actionbar__in > .actionbar__title + .stuck-only { margin-left: auto; }
.actionbar:not(.is-stuck) .actionbar__sep { display: none; }

/* ---------- шапка: гостю — «Войти» и «Регистрация» вместо значка аккаунта и ссылок в верхней полосе;
   когда в корзине что-то есть — «Корзина · сумма» (класс has-cart ставит скрипт в partials/header) ---------- */
html:not(.has-cart) [data-hdr-cart], html:not(.has-cart) .drawer-nav__foot--cart { display: none !important; }
.topbar__acc:empty { display: none !important; }
.hdr__cart { gap: 7px; }
.hdr__cart.is-bump { animation: hdr-cart-bump .4s ease; }
@keyframes hdr-cart-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.06); } }
/* с корзиной главная кнопка — корзина, «Регистрация» становится контурной */
html.has-cart .hdr__reg { background: transparent; color: var(--brand-ink, var(--brand)); border-color: var(--brand); }
html.has-cart .hdr__reg:hover { background: var(--brand-tint); }
/* ноутбук с меню в шапке: с корзиной «Регистрация» уходит в «Войти» (там есть ссылка на регистрацию), у корзины — только сумма */
@container (min-width: 1200px) and (max-width: 1440px) { html.has-cart .hdr__reg { display: none; } }
@container (min-width: 1200px) and (max-width: 1300px) { .hdr__cart .hdr__cart-l { display: none; } }

/* ---------- рубрики сектора (partials/cat-table): первые 15, «Показать все N рубрик» без перезагрузки, поиск по всем строкам ----------
   На телефоне без горизонтальной прокрутки: столбец «Сетевых» скрыт, названия переносятся. */
.cattable { overflow: visible; }
.cattable .toolbar { flex-wrap: wrap; gap: 8px 14px; }
.cattable .search { flex: 1 1 220px; max-width: 360px; }
.cattable__t { table-layout: auto; width: 100%; min-width: 0; }
.cattable__t td:first-child { white-space: normal; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.cattable__t td:first-child b { font-weight: 600; }
.cattable__t td.num, .cattable__t th.num { white-space: nowrap; }
.cattable__t .btn { white-space: nowrap; }
.cattable.is-collapsed:not(.is-searching) tr.is-extra { display: none; }
.cattable__more { margin: 14px 0 0; }
.cattable__more svg { width: 14px; height: 14px; transition: transform .15s; }
.cattable:not(.is-collapsed) .cattable__more svg { transform: rotate(180deg); }
.cattable.is-searching .cattable__more { display: none; }
.cattable__empty { margin: 12px 0 0; padding: 12px 14px; background: var(--paper); font-size: 14px; color: var(--muted); }
.cattable__empty[hidden] { display: none; }
.cattable__hs { display: none; }
@media (max-width: 600px) {
  .cattable__ch, .cattable__hl { display: none; }
  .cattable__hs { display: inline; }
  .cattable__t th, .cattable__t td { padding-left: 8px; padding-right: 8px; }
  .cattable__t .btn--xs { padding: 0 8px; }
  .cattable .search { max-width: none; }
}
@media (max-width: 420px) { .cattable__t .btn--xs svg { display: none; } }

/* плитки секторов: число сразу под названием, рубрики занимают остальное — цены выровнены по низу ряда */
.ttile .ttile__n { margin-top: 0; }
.ttile .ttile__f { flex: 1 1 auto; }
.cattable__in { font-size: 12px; color: var(--muted); white-space: nowrap; cursor: help; }

/* Kzmap: цены с валютой BYN («Корзина · 1 990 BYN») — с непустой корзиной «Регистрация» уходит в «Войти» на всех ширинах с меню в шапке */
@container (min-width: 1200px) { html.has-cart .hdr__reg { display: none; } }
/* наблюдения: числа за 90 дней шестизначные со знаком — на самых узких экранах шрифт KPI меньше */
@media (max-width: 360px) { .kpis--5 .kpi__n { font-size: 22px; } }
/* рубрики сектора: название — ссылка на страницу рубрики, видно, что кликается */
.cattable__t td:first-child a { color: var(--brand-ink, var(--brand)); text-decoration: none; }
.cattable__t td:first-child a:hover b { text-decoration: underline; text-underline-offset: 2px; }
/* города региона: первые 40, остальные — «Показать все N населённых пунктов» без перезагрузки (тот же сворачиваемый список, что у рубрик) */
.citylist.is-collapsed .linkgrid > .is-extra { display: none; }
.citylist__more { margin: 14px 0 0; }
.citylist__more svg { width: 14px; height: 14px; transition: transform .15s; }
.citylist:not(.is-collapsed) .citylist__more svg { transform: rotate(180deg); }

/* Kzmap: районы областей — список из двух столбцов (название, организаций) */
.fd__list--2 li { grid-template-columns: minmax(0, 1fr) auto; }
.fd__t a { color: var(--ink); text-decoration: none; }
.fd__t a:hover { color: var(--brand); }

/* ---------- панель покупки (partials/buy.blade.php, public/js/app.js → panel) ----------
   Территория — цепочка «Казахстан › область › город или район» (каждое звено переключает выборку), под ней секторы или рубрика,
   сегмент и список: области (стрелка — города и районы области) или города и районы одной области с поиском. */
.geo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.geo__path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 14.5px; line-height: 1.4; }
.geo__lnk { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-soft-line, rgba(0,114,143,.35)); text-underline-offset: 3px; padding: 0; }
.geo__lnk:hover { text-decoration-color: currentColor; }
.geo__sep { color: var(--muted); }
.geo__cur { font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.geo__drill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-tint); }
.geo__drill:hover { background: var(--brand-soft, var(--brand-tint)); }
.geo__drill svg { width: 13px; height: 13px; }
.geo__drill[hidden] { display: none; }
.rubchip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; background: var(--brand-tint); font-size: 14px; }
.rubchip svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.rubchip b { font-weight: 700; }
.rubchip a { margin-left: auto; font-size: 12.5px; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.panel__list { margin-top: 4px; }
.panel__list[hidden] { display: none; }
.panel__list .picklist__head { grid-template-columns: 20px minmax(0, 1fr) auto auto 28px; padding-right: 18px; }
.panel__list[data-view-regions] .picklist__row--all { width: calc(100% - 46px); }
.picklist__line { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; }
.picklist__drill { width: 28px; height: 32px; display: grid; place-items: center; color: var(--brand-ink); }
.picklist__drill:hover { background: var(--brand-tint); }
.picklist__drill svg { width: 15px; height: 15px; }
.picklist__line.is-partial .picklist__row { background: var(--brand-tint); }
.picklist__line.is-partial .picklist__chk { background: #fff; border-color: var(--brand); }
.picklist__line.is-partial .picklist__chk::after { content: ''; width: 8px; height: 2px; background: var(--brand); }
.picklist__line.is-partial .picklist__chk svg { display: none; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.panel__bar b { font-size: 14px; font-weight: 750; text-align: right; }
.panel__bar svg { width: 14px; height: 14px; }
.panel__parts .picklist__body { max-height: 320px; }
.panel__parts .picklist__body[aria-busy="true"] { opacity: .5; }
.picklist__group { padding: 8px 10px 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.picklist__group[hidden] { display: none; }
.picklist__nm small { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.panel__parts .picklist__row[hidden] { display: none; }
.panel__parts .picklist__row:has(input:checked)[hidden] { display: grid; }
.panel__empty { display: block; padding: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.panel__empty[hidden] { display: none; }
.pricer-hint--warn { background: #FFF4E5; }
@media (max-width: 400px) {
  .panel__list .picklist__head { gap: 6px; padding-left: 4px; }
  .picklist__line { grid-template-columns: minmax(0, 1fr) 24px; }
  .picklist__drill { width: 24px; }
  .panel__list[data-view-regions] .picklist__row--all { width: calc(100% - 42px); }
}
/* KPI «Уникальных e-mail» */
.kpi--email .kpi__n { color: var(--brand-ink); }
/* иерархия под заголовком города и района: «г. Витебск — Витебская область» */
.h1__geo { display: block; margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
/* панель на телефоне: короткие названия областей, чтобы не обрезались */
.nm-s { display: none; }
@media (max-width: 480px) { .panel .nm-f { display: none; } .panel .nm-s { display: inline; } }
