/*
 * 27.11.2026: блок «Где купить» (template-parts/block-dealers-map.php, js/tri-where.js).
 * Стиль сайта: Ubuntu, чёрный #151515, красный #E30611, серый фон #F6F6F9, линии #E8E8F0,
 * фильтры-«таблетки» как на «Сертификатах», метки карты — знак TRI, как на «Контактах».
 */
.tri-where{padding:80px 0;font-family:Manrope,sans-serif;color:#151515}
.tri-where p{margin:0}
.tri-where__head{margin-bottom:32px}
.tri-where__title{margin:0;font-size:28px;line-height:34px;font-weight:700;color:#151515}
.tri-where__lead{margin-top:8px!important;font-size:16px;line-height:24px;color:#6E6E7A}
.tri-where__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* фильтры */
.tri-where__filters{display:flex;flex-direction:column;gap:12px}
.tri-where__row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tri-where__countries,.tri-where__dirs{display:flex;flex-wrap:wrap;gap:8px}
.tri-where__chip{display:inline-flex;align-items:center;height:36px;margin:0;padding:0 14px;border:1px solid #E8E8F0;border-radius:18px;background:#fff;font-family:Manrope,sans-serif;font-size:14px;line-height:20px;font-weight:400;color:#151515;white-space:nowrap;cursor:pointer}
.tri-where__chip:hover{border-color:#151515}
.tri-where__chip.is-on{background:#151515;border-color:#151515;color:#fff}
.tri-where__chip:disabled{color:#A6A7B3;border-color:#F0F0F5;cursor:default}
.tri-where__city{position:relative}
.tri-where__city-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;height:36px;min-width:220px;padding:0 14px;border:1px solid #D3D4DD;border-radius:18px;background:#fff;font-family:Manrope,sans-serif;font-size:14px;color:#151515;cursor:pointer}
.tri-where__city-btn::before{content:"";flex:none;width:16px;height:16px;margin-right:-4px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E30611' stroke-width='1.8'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E") no-repeat center}
.tri-where__city-btn span{flex:1;text-align:left}
.tri-where__city-btn::after{content:"";width:12px;height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23151515' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;transition:transform .15s}
.tri-where__city-btn[aria-expanded=true]::after{transform:rotate(180deg)}
.tri-where__city-btn:hover,.tri-where__city-btn[aria-expanded=true]{border-color:#151515}
.tri-where__geo{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 12px;border:1px solid #D3D4DD;border-radius:18px;background:#fff;font-family:Manrope,sans-serif;font-size:14px;color:#151515;text-decoration:none!important;cursor:pointer}
.tri-where__geo::before{content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23151515'/%3E%3Cpath d='M12 2v3.5M12 18.5V22M2 12h3.5M18.5 12H22'/%3E%3C/svg%3E") no-repeat center}
.tri-where__geo:hover{border-color:#151515;color:#151515}
.tri-where__geo:disabled{cursor:default;border-color:#E8E8F0}
.tri-where__count{margin:24px 0 12px!important;font-size:14px;line-height:20px;color:#6E6E7A;min-height:20px}

/* список + карта */
.tri-where__body{display:grid;grid-template-columns:400px minmax(0,1fr);gap:24px;height:clamp(560px,calc(100vh - 140px),860px)} /* 27.11: карта — главная, блок почти на весь экран */
.tri-where__list{display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:2px 8px 2px 2px;scrollbar-width:thin}
.tri-where__map-wrap{position:relative;border-radius:16px;overflow:hidden;background:#F6F6F9}
.tri-where__map{position:absolute;inset:0}
.tri-where__toggle{display:none}

/* карточка TRI */
.tri-wt{flex:none;padding:20px;border-radius:12px;background:#151515;color:#fff}
.tri-wt__t{font-size:16px;line-height:22px;font-weight:700;color:#fff}
.tri-wt__s{margin-top:6px!important;font-size:14px;line-height:20px;color:#C9CAD3}
.tri-wt__acts{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:16px}
.tri-wt__ph{font-size:16px;line-height:20px;font-weight:700;color:#fff!important;text-decoration:none!important;white-space:nowrap}
.tri-wt__ph:hover{color:#FF8A90!important}
.tri-where__btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border:0;border-radius:12px;background:#E30611;color:#fff;font-family:Manrope,sans-serif;font-size:16px;line-height:20px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s}
.tri-where__btn:hover{background:#C70510}
.tri-where__btn:disabled{background:#D3D4DD;cursor:default}
.tri-where__reset{align-self:flex-start;height:36px;padding:0;border:0;background:none;font-family:Manrope,sans-serif;font-size:14px;color:#151515;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* карточка партнёра */
.tri-wc{flex:none;padding:16px 18px;border:1px solid #E8E8F0;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .15s}
.tri-wc:hover{border-color:#B9BAC6}
.tri-wc.is-sel{border-color:#151515;box-shadow:inset 0 0 0 1px #151515}
.tri-wc:focus-visible{outline:2px solid #151515;outline-offset:2px}
.tri-wc__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tri-wc__name{margin:0;font-family:Manrope,sans-serif;font-size:16px;line-height:22px;font-weight:700;color:#151515}
.tri-wc__pro{flex:none;margin-top:2px;padding:2px 8px;border-radius:6px;background:#151515;color:#fff;font-size:11px;line-height:16px;font-weight:700;white-space:nowrap}
.tri-wc__meta{margin-top:2px!important;font-size:12px;line-height:16px;color:#6E6E7A}
.tri-wc__addr{margin-top:6px!important;font-size:14px;line-height:20px;color:#151515}
.tri-wc__dirs{margin-top:4px!important;font-size:12px;line-height:16px;color:#6E6E7A}
.tri-wc__acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.tri-wc__a{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border:1px solid #E8E8F0;border-radius:10px;background:#fff;font-size:14px;line-height:20px;font-weight:400;color:#151515!important;text-decoration:none!important;white-space:nowrap}
.tri-wc__a svg{width:16px;height:16px;flex:none}
.tri-wc__a span{color:inherit!important}
.tri-wc__a:hover{border-color:#151515}
.tri-wc__a--ph{background:#151515;border-color:#151515;color:#fff!important;font-weight:700}
.tri-wc__a--ph:hover{background:#E30611;border-color:#E30611}
.tri-wc__a--ic{width:36px;padding:0;justify-content:center}

/* кластер на карте */
.tri-where__cl{width:40px;height:40px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:#151515;color:#fff;font-family:Manrope,sans-serif;font-size:14px;font-weight:700;line-height:36px;text-align:center;box-shadow:0 2px 8px rgba(21,21,21,.25)}

@media (max-width:992px){
  .tri-where{padding:48px 0}
  .tri-where__head{margin-bottom:24px}
  .tri-where__title{font-size:24px;line-height:30px}
  .tri-where__city-btn{width:100%}
  .tri-cp__panel{left:0;right:0;width:auto}
  .tri-where__city{flex:1 1 100%}
  .tri-where__countries,.tri-where__dirs{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:0 16px;scrollbar-width:none}
  .tri-where__countries::-webkit-scrollbar,.tri-where__dirs::-webkit-scrollbar{display:none}
  .tri-where__body{display:block;height:auto}
  .tri-where__list{overflow:visible;padding:0}
  .tri-where__map-wrap{display:none;height:70vh}
  .tri-where.is-map .tri-where__list{display:none}
  .tri-where.is-map .tri-where__map-wrap{display:block}
  .tri-where.is-in .tri-where__toggle{opacity:1;pointer-events:auto}
  .tri-where__toggle{display:flex;align-items:center;justify-content:center;position:fixed;left:50%;bottom:16px;z-index:50;transform:translateX(-50%);opacity:0;pointer-events:none;transition:opacity .2s;margin:0;height:44px;padding:0 20px;border:0;border-radius:22px;background:#151515;color:#fff;font-family:Manrope,sans-serif;font-size:15px;font-weight:700;box-shadow:0 4px 16px rgba(21,21,21,.25);cursor:pointer}
}
/* окно заявки */
html.tri-dh-lock{overflow:hidden}
.tri-dh-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(21,21,21,.5);font-family:Manrope,sans-serif;color:#151515}
.tri-dh-modal[hidden]{display:none}
.tri-dh-modal__card{position:relative;width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow:auto;box-sizing:border-box;padding:32px;border-radius:16px;background:#fff;box-shadow:0 8px 32px rgba(21,21,21,.16)}
.tri-dh-modal__x{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:10px;background:none;font-size:28px;line-height:40px;color:#6E6E7A;cursor:pointer}
.tri-dh-modal__x:hover{background:#F6F6F9;color:#151515}
.tri-dh-modal__title{margin:0 40px 8px 0;font-size:24px;line-height:30px;font-weight:700}
.tri-dh-modal__sub{margin:0 0 20px;font-size:14px;line-height:20px;color:#6E6E7A}
.tri-dh-form[hidden],.tri-dh-done[hidden]{display:none}
.tri-dh-f{display:block;margin-bottom:12px}
.tri-dh-f span{display:block;margin-bottom:6px;font-size:12px;line-height:16px;color:#6E6E7A}
.tri-dh-f input{display:block;width:100%;box-sizing:border-box;height:48px;padding:0 14px;border:1px solid #D3D4DD;border-radius:10px;background:#fff;font-family:Manrope,sans-serif;font-size:16px;color:#151515}
.tri-dh-f input:focus{outline:0;border-color:#151515}
.tri-dh-f input::placeholder{color:#A6A7B3}
.tri-dh-agree{display:flex;gap:10px;align-items:flex-start;margin:16px 0 20px;font-size:12px;line-height:16px;color:#6E6E7A;cursor:pointer}
.tri-dh-agree input{flex:none;width:18px;height:18px;margin:0;accent-color:#151515}
.tri-dh-agree a{color:#151515!important;text-decoration:underline!important}
.tri-dh-form__send,.tri-dh-done .tri-where__btn{width:100%}

@media (max-width:767px){
  .tri-dh-modal{align-items:flex-end;padding:0}
  .tri-dh-modal__card{max-width:none;max-height:92vh;border-radius:16px 16px 0 0;padding:24px 20px}
}

/* ===== 27.11.2026: «Где купить» на карточке продукта ===== */
.tri-wbuy{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin:12px 0 0;padding:12px 14px;border:1px solid #E8E8F0;border-radius:12px;background:#fff;font-family:Manrope,sans-serif;text-align:left;color:#151515;cursor:pointer;transition:border-color .15s}
.tri-wbuy:hover{border-color:#151515}
.tri-wbuy:focus-visible{outline:2px solid #151515;outline-offset:2px}
.tri-wbuy__ic{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#F6F6F9;color:#E30611}
.tri-wbuy__ic svg,.tri-wbuy__go svg{width:20px;height:20px}
.tri-wbuy__t{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.tri-wbuy__t b{font-size:16px;line-height:20px;font-weight:700;color:#151515!important}
.tri-wbuy__t span{font-size:14px;line-height:18px;color:#6E6E7A!important}
.tri-wbuy__go{flex:none;color:#151515}

.tri-wb{position:fixed;inset:0;z-index:9990;display:flex;justify-content:flex-end;background:rgba(21,21,21,.4);font-family:Manrope,sans-serif;color:#151515}
.tri-wb[hidden]{display:none}
.tri-wb__panel{position:relative;display:flex;flex-direction:column;width:100%;max-width:480px;height:100%;box-sizing:border-box;background:#fff;overflow-y:auto;padding:24px 24px 32px;animation:triWbIn .2s ease-out}
@keyframes triWbIn{from{transform:translateX(24px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tri-wb__panel{animation:none}}
.tri-wb p{margin:0}
.tri-wb__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.tri-wb__head .tri-dh-modal__x{position:static;flex:none}
.tri-wb__title{font-size:24px;line-height:30px;font-weight:700}
.tri-wb__prod{margin-top:4px!important;font-size:14px;line-height:20px;color:#6E6E7A}
.tri-wb__city{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #E8E8F0}
.tri-wb__city .tri-where__city-btn{min-width:200px}
.tri-wb__city .tri-where__geo{height:auto;padding:0;border:0;border-radius:0;text-align:left;font-size:13px;color:#151515}
.tri-wb__city .tri-where__geo:hover{color:#E30611}
.tri-wb__body{display:flex;flex-direction:column;gap:12px}
.tri-wb__count{font-size:14px;line-height:20px;color:#6E6E7A}
.tri-wb__hint{font-size:16px;line-height:24px;color:#151515}
.tri-wb__note{font-size:12px;line-height:16px;color:#6E6E7A}
.tri-wb__sum{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tri-wb__all{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid #151515;border-radius:10px;font-size:14px;line-height:20px;font-weight:700;color:#151515!important;text-decoration:none!important}
.tri-wb__all svg{width:16px;height:16px}
.tri-wb__all span{color:inherit!important}
.tri-wb__all:hover{background:#151515;color:#fff!important}
.tri-wb .tri-wt{margin-top:8px}
.tri-wc--flat{cursor:default}
.tri-wc--flat:hover{border-color:#E8E8F0}
@media (max-width:767px){
  .tri-wb{align-items:flex-end}
  .tri-wb__panel{max-width:none;height:auto;max-height:92vh;border-radius:16px 16px 0 0;padding:20px 16px 28px}
  .tri-wb__city .tri-where__city-btn{min-width:0;width:100%}
  .tri-wb__citysel{flex:1 1 100%}
}

/* ===== 27.11.2026: выбор города (js/tri-city.js) — «Популярные», поиск, все по алфавиту ===== */
.tri-cp{position:relative}
.tri-cp__panel{position:absolute;left:0;top:calc(100% + 6px);z-index:30;width:340px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:10px;border-radius:12px;background:#fff;box-shadow:0 8px 32px rgba(21,21,21,.16);font-family:Manrope,sans-serif}
.tri-cp__panel[hidden]{display:none}
.tri-cp__q{display:block;width:100%;box-sizing:border-box;height:40px;margin:0 0 6px;padding:0 12px;border:1px solid #D3D4DD;border-radius:10px;font-family:Manrope,sans-serif;font-size:15px;color:#151515;background:#fff}
.tri-cp__q:focus{outline:0;border-color:#151515}
.tri-cp__q::placeholder{color:#A6A7B3}
.tri-cp__res{max-height:340px;overflow-y:auto;scrollbar-width:thin}
.tri-cp__h{margin:10px 4px 6px!important;font-size:12px;line-height:16px;color:#6E6E7A}
.tri-cp__pop{display:flex;flex-wrap:wrap;gap:6px;padding:0 2px 4px}
.tri-cp__chip{display:inline-flex;align-items:center;gap:6px;height:32px;margin:0;padding:0 12px;border:1px solid #E8E8F0;border-radius:16px;background:#fff;font-family:Manrope,sans-serif;font-size:14px;color:#151515;cursor:pointer}
.tri-cp__chip i{font-style:normal;color:#6E6E7A;font-size:12px}
.tri-cp__chip:hover,.tri-cp__chip:focus{border-color:#151515;outline:0}
.tri-cp__chip.is-on{background:#151515;border-color:#151515;color:#fff}
.tri-cp__chip.is-on i{color:#C9CAD3}
.tri-cp__row{display:flex;justify-content:space-between;gap:16px;width:100%;margin:0;padding:8px 10px;border:0;border-radius:8px;background:none;font-family:Manrope,sans-serif;font-size:14px;line-height:20px;color:#151515;text-align:left;cursor:pointer}
.tri-cp__row i{font-style:normal;color:#6E6E7A}
.tri-cp__row:hover,.tri-cp__row:focus{background:#F6F6F9;outline:0}
.tri-cp__row.is-on{font-weight:700}
.tri-cp__row--all{margin-bottom:2px}
.tri-cp__none{padding:8px 6px 4px}
.tri-cp__none p{margin:0 0 6px!important;font-size:14px;line-height:20px;color:#151515}
.tri-cp__none p+p{color:#6E6E7A}
.tri-cp__none .tri-where__btn{margin-top:6px;height:40px;font-size:15px}

/* ===== 27.11.2026: всплывашка над меткой карты ===== */
.tri-bl{font-family:Manrope,sans-serif;color:#151515;padding:2px 2px 4px;min-width:220px}
.tri-bl p{margin:0}
.tri-bl__n{font-size:15px;line-height:20px;font-weight:700;padding-right:16px}
.tri-bl__n .tri-wc__pro{display:inline-block;vertical-align:1px;margin-left:4px}
.tri-bl__a{margin-top:4px!important;font-size:13px;line-height:18px;color:#151515}
.tri-bl__d{margin-top:2px!important;font-size:12px;line-height:16px;color:#6E6E7A}
.tri-bl__ph{display:inline-flex;align-items:center;height:32px;margin-top:10px;padding:0 12px;border-radius:8px;background:#151515;color:#fff!important;font-size:14px;font-weight:700;text-decoration:none!important}
.tri-bl__ph:hover{background:#E30611}
.tri-bl__l{display:flex;gap:14px;margin-top:10px!important;font-size:13px}
.tri-bl__l a{color:#151515!important;text-decoration:underline!important;text-underline-offset:3px}
.tri-bl__l a:hover{color:#E30611!important}

/* сброс фильтров (29.11) */
.tri-where__row--dirs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tri-where__row--dirs .tri-where__dirs{flex:0 1 auto;width:auto}
.tri-where__reset{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 12px;border:0;border-radius:18px;background:none;font-family:Manrope,sans-serif;font-size:14px;font-weight:700;color:#151515!important;text-decoration:none!important;cursor:pointer;white-space:nowrap}
.tri-where__reset::before{content:"";width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") no-repeat center}
.tri-where__reset:hover{background:#F6F6F9}
.tri-where__reset[hidden]{display:none}
/* всплывашка над меткой: кнопки с иконками, без подчёркнутых ссылок (29.11) */
.tri-bl__acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tri-bl__b{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid #E8E8F0;border-radius:8px;background:#fff;font-size:13px;font-weight:400;color:#151515!important;text-decoration:none!important;white-space:nowrap}
.tri-bl__b svg{width:15px;height:15px;flex:none}
.tri-bl__b:hover{border-color:#151515}
.tri-bl__b--ph{background:#151515;border-color:#151515;color:#fff!important;font-weight:700}
.tri-bl__b--ph:hover{background:#E30611;border-color:#E30611}
.tri-bl__b--ic{width:32px;padding:0;justify-content:center}

/* 29.11 — вариант А, выбран Катей (https://claude.ai/artifact/2DF8oB8KWz8VLSPVvLMgS5).
   Иерархия: название 18 → адрес 15 чёрным → направления 13 серым → действия.
   Телефон — одна кнопка с номером: белая, тонкая чёрная рамка, красная трубка. Сайт, маршрут, почта — значки 36×36 без слов.
   TRICOL PRO — как метка на фото продукта (чёрная со знаком TRI). Выбранный партнёр — красная рамка. */
.tri-cp span,.tri-cp i,.tri-where__city-btn span,.tri-where__geo,.tri-bl__b span,.tri-wc__a span{color:inherit!important}
.tri-where__city-btn.is-set{border-color:#151515;font-weight:700}
.tri-cp.has-clear .tri-where__city-btn{padding-right:40px}
.tri-cp.has-clear .tri-where__city-btn::after{display:none}
.tri-cp__clear{position:absolute;right:6px;top:50%;width:26px;height:26px;margin-top:-13px;padding:0;border:0;border-radius:13px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2.4'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") no-repeat center;cursor:pointer}
.tri-cp__clear:hover{background-color:#F6F6F9}
.tri-cp__clear[hidden]{display:none}
.tri-cp__row{color:#151515!important}
.tri-cp__h{color:#151515!important;font-weight:700}

.tri-wc{padding:18px 20px}
.tri-wc:hover{border-color:#B9BAC6}
.tri-wc.is-sel{border-color:#E30611;box-shadow:inset 0 0 0 1px #E30611}
.tri-wc__name{font-size:18px!important;line-height:24px!important}
.tri-wc__addr{margin-top:6px!important;font-size:15px!important;line-height:22px!important;color:#151515}
.tri-wc__meta,.tri-wc__dirs{font-size:13px!important;line-height:18px!important}
.tri-wc__acts{gap:8px;margin-top:14px}
.tri-wc__pro,.tri-bl .tri-wc__pro{display:inline-flex;align-items:center;gap:5px;height:22px;margin:0;padding:0 8px 0 6px;border-radius:6px;background:#151515;color:#fff;box-shadow:none;font-size:11px;line-height:22px;font-weight:700;white-space:nowrap}
.tri-wc__pro::before{content:"";width:12px;height:12px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath fill='%23E30611' fill-rule='evenodd' d='M15.851 11.841c2.218-.948 3.77-3.129 3.77-5.668C19.62 2.763 16.822 0 13.372 0c-3.45 0-6.248 2.764-6.248 6.173 0 2.504 1.509 4.659 3.676 5.628L13.314 7.5l2.537 4.341zm-1.946 5.697h5.275l-2.737-4.684a6.271 6.271 0 013.703-1.2c3.45 0 6.248 2.764 6.248 6.173 0 3.41-2.797 6.173-6.248 6.173-3.45 0-6.248-2.764-6.248-6.173 0-.097.002-.193.007-.289zm-3.792-4.562l-2.665 4.562h5.042c.004.096.006.192.006.289C12.496 21.237 9.7 24 6.248 24 2.798 24 0 21.236 0 17.827c0-3.41 2.797-6.173 6.248-6.173a6.27 6.27 0 013.865 1.322z'/%3E%3C/svg%3E") no-repeat center/contain}
.tri-wc__a,.tri-bl__b{height:36px;border:1px solid #D3D4DD;border-radius:10px;background:#fff;color:#151515!important}
.tri-wc__a:hover,.tri-bl__b:hover{border-color:#151515}
.tri-wc__a--ic,.tri-bl__b--ic{width:36px;padding:0;justify-content:center}
.tri-wc__a--ic svg,.tri-bl__b--ic svg{width:17px;height:17px}
.tri-wc__a--ph,.tri-bl__b--ph{padding:0 14px 0 12px;gap:8px;background:#fff!important;border-color:#151515!important;color:#151515!important;font-size:14px;font-weight:700}
.tri-wc__a--ph svg,.tri-bl__b--ph svg{width:16px;height:16px;color:#E30611}
.tri-wc__a--ph:hover,.tri-bl__b--ph:hover{border-color:#E30611!important}

/* всплывашка над меткой — та же карточка, скругление 16 как у всплывающего на сайте */
.tri-bl{min-width:260px;max-width:320px;padding:6px 4px 4px}
.tri-bl__n{font-size:18px!important;line-height:24px!important;font-weight:700;padding-right:20px}
.tri-bl__pro{margin-top:8px!important}
.tri-bl__a{margin-top:6px!important;font-size:15px!important;line-height:22px!important}
.tri-bl__d{margin-top:4px!important;font-size:13px!important;line-height:18px!important}
.tri-bl__acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tri-bl__b{display:inline-flex;align-items:center;text-decoration:none!important}
.tri-where [class*="-balloon__layout"],.tri-where [class*="-balloon"][class$="-balloon"]{border-radius:16px}
.tri-where [class*="-balloon__content"]{padding:14px 16px!important}
.tri-where [class*="-balloon"][class$="-balloon"]{box-shadow:0 8px 32px rgba(21,21,21,.16)!important;overflow:visible}
.tri-where [class*="-balloon__layout"]{overflow:hidden}
@media (max-width:767px){
  .tri-wc{padding:16px}
  .tri-wc__acts{gap:6px;flex-wrap:nowrap}
  .tri-wc__a--ph{flex:1 1 auto;min-width:0;justify-content:center;padding:0 10px}
  .tri-wc__a--ph span{overflow:hidden;text-overflow:ellipsis}
  .tri-wc__a--ic{flex:none}
  .tri-wc__name{font-size:17px!important;line-height:22px!important}
}

/* фильтр «Только дилеры TRICOL PRO» — отдельно от направлений, со знаком как на метке PRO */
.tri-where__chip--pro{display:inline-flex;align-items:center;gap:6px;margin-left:8px!important}
.tri-where__chip--pro::before{content:"";width:13px;height:13px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath fill='%23E30611' fill-rule='evenodd' d='M15.851 11.841c2.218-.948 3.77-3.129 3.77-5.668C19.62 2.763 16.822 0 13.372 0c-3.45 0-6.248 2.764-6.248 6.173 0 2.504 1.509 4.659 3.676 5.628L13.314 7.5l2.537 4.341zm-1.946 5.697h5.275l-2.737-4.684a6.271 6.271 0 013.703-1.2c3.45 0 6.248 2.764 6.248 6.173 0 3.41-2.797 6.173-6.248 6.173-3.45 0-6.248-2.764-6.248-6.173 0-.097.002-.193.007-.289zm-3.792-4.562l-2.665 4.562h5.042c.004.096.006.192.006.289C12.496 21.237 9.7 24 6.248 24 2.798 24 0 21.236 0 17.827c0-3.41 2.797-6.173 6.248-6.173a6.27 6.27 0 013.865 1.322z'/%3E%3C/svg%3E") no-repeat center/contain}
.tri-where__countries[hidden]{display:none!important}
@media (max-width:767px){.tri-where__chip--pro{margin-left:0!important}}

/* 30.11 (Катя, вариант 2): «Только дилеры TRICOL PRO» — переключатель справа в строке города; направления — отдельным рядом */
.tri-where__pro{margin-left:auto}
.tri-where__pro:empty{display:none}
.tri-where__sw{display:inline-flex;align-items:center;gap:10px;height:36px;padding:0;border:0;background:none;font-family:Manrope,sans-serif;font-size:14px;color:#151515;cursor:pointer;white-space:nowrap}
.tri-where__tg{position:relative;flex:none;width:36px;height:20px;border-radius:10px;background:#D3D4DD;transition:background .15s}
.tri-where__tg::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.tri-where__sw.is-on .tri-where__tg{background:#E30611}
.tri-where__sw.is-on .tri-where__tg::after{left:18px}
.tri-where__sw span{color:inherit}
.tri-where__sw:hover .tri-where__tg{background:#B9BAC6}
.tri-where__sw.is-on:hover .tri-where__tg{background:#C40510}
.tri-where__sw:focus-visible{outline:2px solid #151515;outline-offset:3px;border-radius:4px}
@media (max-width:767px){.tri-where__pro{margin-left:0;width:100%}}
@media (prefers-reduced-motion:reduce){.tri-where__tg,.tri-where__tg::after{transition:none}}

/* ===== 01.12.2026 вечер: строка над картой (сколько партнёров, «Сбросить фильтры», «Карта / Список») ===== */
.tri-where__bar{display:flex;align-items:center;gap:16px;margin:24px 0 12px;min-height:36px}
.tri-where__bar .tri-where__count{margin:0!important}
.tri-where__view{display:none}
@media (max-width:992px){
  /* телефон: компактные фильтры — город на всю ширину; ниже «Определить мой город» подписью и TRICOL PRO маленьким переключателем; направления в две строки, без прокрутки вбок */
  .tri-where__filters{gap:10px}
  .tri-where__row{gap:8px 12px}
  .tri-where__row{column-gap:8px}
  .tri-where__geo{height:auto;padding:4px 0;border:0;border-radius:0;background:none;font-size:12px;white-space:nowrap;line-height:18px;color:#151515;text-decoration:underline!important;text-decoration-color:#D3D4DD!important;text-underline-offset:3px}
  .tri-where__geo::before{width:14px;height:14px}
  .tri-where__pro{margin-left:auto!important;width:auto!important}
  .tri-where .tri-where__sw{height:28px;gap:6px;font-size:12px!important}
  .tri-where__sw-x{display:none}
  .tri-where__tg{width:30px;height:18px;border-radius:9px}
  .tri-where__tg::after{width:14px;height:14px}
  .tri-where__sw.is-on .tri-where__tg::after{left:14px}
  .tri-where__countries,.tri-where__dirs{flex-wrap:wrap;overflow:visible;margin:0;padding:0;gap:6px}
  .tri-where__chip{height:32px;padding:0 12px;font-size:13px}
  /* строка «N партнёров · Сбросить · Карта / Список» прилипает под шапкой, пока листаешь блок */
  .tri-where__bar{position:sticky;top:64px;z-index:6;gap:8px;margin:12px 0 8px;padding:8px 0;background:#fff}
  .tri-where__bar .tri-where__count{font-size:13px;line-height:18px;min-height:0;white-space:nowrap}
  .tri-where__reset-x{display:none}
  .tri-where__bar .tri-where__reset{height:28px;padding:0 4px;font-size:13px;font-weight:400;gap:4px}
  .tri-where__bar .tri-where__reset::before{width:10px;height:10px}
  .tri-where__view{display:inline-flex;flex:none;margin-left:auto;padding:2px;border-radius:10px;background:#F6F6F9}
  .tri-where__view button{height:32px;padding:0 12px;border:0;border-radius:8px;background:none;font-family:Manrope,sans-serif;font-size:13px;font-weight:700;color:#151515;cursor:pointer}
  .tri-where__view button[aria-pressed="true"]{background:#151515;color:#fff}
  .tri-where__toggle{display:none!important}
  .tri-where__map-wrap{height:60vh}
}
.tri-where__reset .tri-where__reset-x{color:inherit!important;font:inherit!important}
