/* БЛОКРЕЙН — выбор города (шапка сайта + окно). Подключается на всех страницах. */
.bkh-city-pill{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:0;border-radius:10px;background:#f2f4f5;color:#14151c;font:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap;max-width:220px;transition:background .15s}
.bkh-city-pill:hover{background:#e6e9ec}
.bkh-city-pill span{overflow:hidden;text-overflow:ellipsis}
.bkh-city-pill svg{width:16px;height:16px;flex:none}
.bkh-city-pill .bkh-pin{color:#db3e33}
.bkh-city-pill .bkh-chev{width:14px;height:14px;opacity:.7}

.bkh-geo{position:absolute;z-index:100000;width:290px;max-width:calc(100vw - 32px);background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(20,21,28,.18);padding:18px;color:#14151c;font-size:14px;line-height:1.45}
.bkh-geo[hidden],.bkh-modal[hidden]{display:none!important}
.bkh-geo::before{content:"";position:absolute;top:-6px;left:var(--bkh-arrow,26px);width:12px;height:12px;background:#fff;transform:rotate(45deg)}
.bkh-geo .bkh-geo-q{margin:0 0 4px;font-weight:700;font-size:16px}
.bkh-geo .bkh-geo-s{margin:0 0 14px;color:#666a76;font-size:13px}
.bkh-geo-row{display:flex;gap:8px}
.bkh-cbtn{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 14px;border-radius:10px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;border:1px solid transparent;flex:1;line-height:1.2}
.bkh-cbtn-red{background:#db3e33;color:#fff}
.bkh-cbtn-red:hover{background:#c2342a}
.bkh-cbtn-line{background:#fff;border-color:#e3e6ea;color:#14151c}
.bkh-cbtn-line:hover{border-color:#14151c}

.bkh-modal{position:fixed;inset:0;z-index:100001;background:rgba(20,21,28,.5);display:flex;align-items:center;justify-content:center;padding:16px;color:#14151c}
.bkh-modal-box{background:#fff;border-radius:20px;width:100%;max-width:560px;max-height:86vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(20,21,28,.3)}
.bkh-modal-hd{padding:22px 22px 12px;display:flex;justify-content:space-between;align-items:center}
.bkh-modal-hd b{font-size:20px;font-weight:700}
.bkh-modal-x{width:36px;height:36px;border-radius:50%;border:0;background:#f2f4f5;font-size:22px;line-height:1;cursor:pointer;color:#14151c;padding:0}
.bkh-modal-search{margin:0 22px!important;display:flex!important;align-items:center;gap:8px;height:48px;border-radius:12px;background:#f2f4f5;padding:0 14px}
.bkh-modal-search svg{width:18px;height:18px;flex:none;color:#666a76}
.bkh-modal .bkh-modal-search input{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font:inherit;font-size:16px;width:100%;height:46px!important;padding:0!important;margin:0!important;min-height:0!important;color:#14151c}
.bkh-modal-geo{margin:12px 22px 0;display:inline-flex;align-self:flex-start;align-items:center;gap:6px;color:#db3e33;font:inherit;font-weight:600;font-size:14px;border:0;background:none;cursor:pointer;padding:4px 0}
.bkh-modal-geo svg{width:16px;height:16px}
.bkh-modal-list{overflow:auto;padding:10px 12px 18px;display:grid;grid-template-columns:1fr 1fr;gap:2px;min-height:80px}
.bkh-modal-list button{text-align:left;padding:10px 12px;border-radius:10px;display:flex;justify-content:space-between;align-items:baseline;gap:8px;font:inherit;font-size:15px;border:0;background:none;cursor:pointer;color:#14151c;line-height:1.3}
.bkh-modal-list button:hover,.bkh-modal-list button:focus-visible{background:#f2f4f5}
.bkh-modal-list button small{color:#666a76;font-size:12px;white-space:nowrap}
.bkh-modal-list button small.is-region{display:block;white-space:normal}
.bkh-modal-list button.is-cur{color:#db3e33;font-weight:600}
.bkh-modal-list .bkh-modal-sep{grid-column:1/-1;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#666a76;padding:12px 12px 4px}
.bkh-modal-list .bkh-modal-none{grid-column:1/-1;color:#666a76;font-size:14px;padding:12px}
.bkh-modal-foot{padding:14px 22px;border-top:1px solid #e3e6ea;font-size:13px;color:#666a76;line-height:1.45}
@media (max-width:640px){
	.bkh-modal{align-items:flex-end;padding:0}
	.bkh-modal-box{max-width:none;border-radius:20px 20px 0 0;max-height:90vh;padding-bottom:env(safe-area-inset-bottom,0px)}
	.bkh-modal-list{grid-template-columns:1fr}
	.bkh-geo{position:fixed;left:16px!important;right:16px;top:auto!important;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:auto;max-width:none}
	.bkh-geo::before{display:none}
	.bkh-city-pill{height:36px;padding:0 10px;font-size:13px;max-width:170px}
}
body.bkh-lock{overflow:hidden}

/* ---- Шапка сайта: место для кнопки «Добавить компанию» --------------------
   Строка шапки Impreza зажата в 1200px, а логотип + город + меню + иконки +
   «Войти» + «Добавить компанию» занимают 1210–1270px: кнопка не помещалась,
   особенно при длинном названии города. Растягиваем строку шапки на всю ширину
   экрана. У темы есть и свой переключатель ширины строки в конструкторе шапки —
   если его включить, это правило просто ничего не изменит. */
@media (min-width:1025px){
	.l-header .l-subheader-h{max-width:none;padding-left:28px;padding-right:28px}
}
/* На узких ноутбуках (1025–1300px) даже полной ширины не хватает — прячем
   корзину и избранное, как тема уже делает это на планшетах (≤1024px). */
@media (min-width:1025px) and (max-width:1300px){
	.l-header .w-cart,
	.l-header .w-favs-counter{display:none!important}
}
/* Страховка от длинных названий: «Петропавловск-Камчатский» не распирает шапку.
   Только для десктопной шапки — мобильные размеры выше не трогаем. */
@media (min-width:1025px){
	.bkh-city-pill{max-width:190px}
}
@media (min-width:1025px) and (max-width:1400px){
	.bkh-city-pill{max-width:150px}
}
