/* Выбор города в шапке (вставляет плагин klenCityHosts).
   Под телефонами одна строка: «📍 город ▾ улица». Ширины в шапке впритык (контейнер 1280):
   строке можно занять до 228 px на экранах от 1366 и до 196 px на 1280, поэтому уже 1366
   улица прячется, а полный адрес показывается первой строкой в списке городов. */

/* font-size у контейнеров обязателен: иначе строка берет высоту от шрифта шапки (17 px) */
.city-switch { position: relative; font-size: 12px; line-height: 1.1; }
.city-switch__dd > summary { list-style: none; cursor: pointer; }
.city-switch__dd > summary::-webkit-details-marker { display: none; }
.city-switch__btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 1px 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    white-space: nowrap;
    border-radius: 4px;
}
.city-switch__btn:hover { color: var(--color-primary-light); }
.city-switch__btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.city-switch__pin { width: 12px; height: 12px; flex-shrink: 0; }
/* подчеркивание текстом, а не рамкой: рамка увеличивает блок, и город съезжает вверх относительно улицы */
.city-switch__name { text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.city-switch__chev { width: 9px; height: 9px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.city-switch__dd[open] .city-switch__chev { transform: rotate(180deg); }

.city-switch__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1200;
    width: 19rem;
    padding: 0.9rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: left;
    white-space: normal;
}
.city-switch__here {
    display: none;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    padding: 0 0.55rem 0.65rem;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-muted);
    text-decoration: none;
}
.city-switch__here .city-switch__pin { width: 14px; height: 14px; margin-top: 1px; color: var(--color-primary); }
.city-switch__here:hover { color: var(--color-primary); }
.city-switch__title {
    margin: 0 0 0.45rem;
    padding: 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a8a29e;
}
.city-switch__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.city-switch__list .city-switch__main { grid-column: 1 / -1; }
.city-switch__list a,
.city-switch__list .is-current > span {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
    text-decoration: none;
}
.city-switch__list a:hover { background: rgba(20, 83, 45, 0.06); color: var(--color-primary); }
.city-switch__list .is-current > span { background: rgba(20, 83, 45, 0.08); color: var(--color-primary); font-weight: 700; }
.city-switch__list small { margin-left: 0.3rem; font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); }
.city-switch__note {
    margin: 0.7rem 0 0;
    padding: 0.7rem 0.55rem 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--color-text-muted);
}
.city-switch__note a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.city-switch__note a:hover { text-decoration: underline; }

/* Шапка: город и улица одной строкой, список выравнивается по правому краю строки */
.header-contact .city-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    font-size: 11.5px;
    line-height: 1.1;
    white-space: nowrap;
}
/* город и улица на одной высоте: обе части - flex по центру (по базовой линии нельзя,
   у кнопки она берется от иконки, и улица уезжает на 4 px вниз) */
.header-contact .city-line .city-switch { position: static; display: flex; align-items: center; font-size: 11.5px; }
.header-contact .city-line .city-switch__btn { font-size: 11.5px; }
.header-contact .city-line .header-address { display: flex; align-items: center; max-width: none; margin: 0; font-size: 11.5px; line-height: 1.1; }
.header-contact .city-line .header-address__link { font-size: 11.5px; line-height: 1.1; white-space: nowrap; }
@media (max-width: 1365px) {
    .header-contact .city-line .header-address { display: none; }
    .header-contact .city-switch__here { display: flex; }
}

/* Мобильное меню: блок выбора города вверху панели */
.nav-mobile__city {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-card);
}
.nav-mobile__city .city-switch__btn { display: flex; font-size: 0.95rem; gap: 0.4rem; white-space: normal; }
.nav-mobile__city .city-switch__label { font-weight: 500; color: var(--color-text-muted); }
.nav-mobile__city .city-switch__pin { width: 16px; height: 16px; }
.nav-mobile__city .city-switch__chev { width: 11px; height: 11px; margin-left: auto; }
.nav-mobile__city .city-switch__panel {
    position: static;
    width: auto;
    margin-top: 0.6rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
}
.nav-mobile__city .city-switch__list a,
.nav-mobile__city .city-switch__list .is-current > span { font-size: 0.95rem; padding: 0.55rem 0.6rem; border: 0; }
.nav-mobile__city .city-switch__note { padding-left: 0.6rem; padding-right: 0.6rem; }
