/* regional plugin — виджет города */
.reg-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    user-select: none;
}
.reg-city:hover { background: rgba(0,0,0,0.05); }
.reg-city__name { font-weight: 600; }
.reg-city__caret { font-size: 10px; color: #888; }
.reg-address {
    display: none;
    font-size: 11px;
    color: #777;
    margin-left: 10px;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 1100px) {
    .reg-address { display: inline-block; }
}

.reg-modal { position: fixed; inset: 0; z-index: 99999; }
.reg-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.reg-modal__window {
    position: relative;
    margin: 8vh auto 0;
    width: min(560px, 92vw);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.3);
    padding: 18px 20px;
}
.reg-modal__head { display: flex; justify-content: space-between; align-items: center; }
.reg-modal__title { font-size: 18px; font-weight: 700; }
.reg-modal__close { border: 0; background: none; font-size: 16px; cursor: pointer; color: #888; }
.reg-modal__search { margin: 12px 0; }
.reg-modal__search input {
    width: 100%; box-sizing: border-box;
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px;
}
.reg-modal__body { max-height: 55vh; overflow: auto; }
.reg-modal__group-title { font-size: 12px; color: #999; margin: 12px 0 6px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.reg-cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 12px; }
.reg-city-item { padding: 4px 6px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.reg-city-item:hover { background: #f0f4f8; color: #c00; }
.reg-city-item--current { font-weight: 700; }
.reg-empty { color: #999; padding: 12px 4px; }

/* плавающая кнопка города (блог — своя шапка) */
.reg-city--float { position: fixed; top: 10px; left: 10px; z-index: 9999; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); padding: 6px 10px; border-radius: 6px; cursor: pointer; }

/* адрес выдачи рядом с городом в шапке */

/* плашка города в блоге */
.reg-blog-plate {
    display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
    font-size: 13px; color: #555; padding: 9px 16px;
    background: #f7f7f8; border-bottom: 1px solid #e5e5e5;
    position: relative; z-index: 40;
}
.reg-blog-plate__city { font-weight: 700; color: #111; }
.reg-blog-plate__city { font-weight: 700; color: #111; }
@media (max-width: 1280px) { }
@media (max-width: 1100px) { }
@media (max-width: 900px)  { }


/* Вторая строка шапки: адрес выдачи + телефон (переносит JS) */
.reg-header-row {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 26px; width: 100%; flex-basis: 100%;
    padding: 10px 0 4px; border-top: 1px solid #ededed; margin-top: 10px;
    flex-wrap: wrap;
}
.reg-header-row .site-header__contacts { margin-left: 0; }
.reg-header-address {
    display: flex; flex-direction: column; gap: 1px;
    margin: 0; padding: 4px 12px;
    border-left: 3px solid #c8202f; border-radius: 3px;
    background: #fdf4f5; line-height: 1.35;
    max-width: 460px;
}
.reg-header-address__label {
    font-size: 9px; letter-spacing: .07em; text-transform: uppercase;
    color: #c8202f; font-weight: 700;
}
.reg-header-address__text {
    font-size: 13px; color: #222; font-weight: 600;
}
.reg-header-address__schedule {
    font-size: 11px; color: #666;
}
@media (max-width: 900px) {
    .reg-header-row { display: none !important; }
}

/* перелинковка городов в подвале */
.reg-cities { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.reg-cities__item { display: inline-block; }
.reg-cities__link { font-size: 13px; color: inherit; text-decoration: none; opacity: .85; }
.reg-cities__link:hover { opacity: 1; text-decoration: underline; }
.reg-cities__more {
    font-size: 12px; color: #c8202f; background: none; border: 0;
    padding: 0; cursor: pointer; text-decoration: underline;
}
.reg-cities__hidden { margin-top: 6px; }

/* график работы региона в блоке выдачи */
.reg-header-address__schedule {
    display: block; font-size: 11px; color: #666; margin-top: 2px;
}
.reg-header-address { flex-wrap: wrap; }

/* переключатель городов в блоге */
.reg-blog-cities { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; margin-left: auto; }
.reg-blog-cities__item { padding: 2px 9px; border: 1px solid #d6d6d6; border-radius: 12px; background: #fff; }
.reg-blog-cities__item { font-size: 13px; color: inherit; text-decoration: none; opacity: .8; }
.reg-blog-cities__item:hover { opacity: 1; text-decoration: underline; }
.reg-blog-cities__item--current { font-weight: 700; opacity: 1; }
