/* ============================================================
   SMART25 — Site CSS
   Общие стили: модалка выбора города, селектор в шапке,
   карточки филиалов в футере.
   ============================================================ */

/* ---------- Селектор города в шапке ---------- */
.city-selector,
[data-city-button] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--color-border, #E5E5EA);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink, #1A1A1F);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.city-selector:hover,
[data-city-button]:hover {
    border-color: var(--color-ink, #1A1A1F);
    background: #fafafa;
}
.city-selector::before,
[data-city-button]::before {
    content: '📍';
    font-size: 14px;
}
.city-selector::after,
[data-city-button]::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

/* ---------- Модалка выбора города ---------- */
html.city-modal-open {
    overflow: hidden;
}

.city-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.city-modal[hidden] {
    display: none;
}
.city-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 21, 30, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.city-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, .25);
    animation: cityModalIn .22s ease-out;
}
@keyframes cityModalIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.city-modal__title {
    font-family: var(--font-head, 'Unbounded', sans-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 18px;
    color: var(--color-ink, #1A1A1F);
    text-align: center;
}
.city-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f3f5;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-ink, #1A1A1F);
    transition: background .15s;
}
.city-modal__close:hover {
    background: #e5e5ea;
}
.city-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.city-modal__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: #f7f7f9;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: var(--color-ink, #1A1A1F);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.city-modal__option:hover {
    background: #eef0f3;
}
.city-modal__option.is-active {
    border-color: var(--color-accent, #8CC63F);
    background: #fff;
}
.city-modal__check {
    opacity: 0;
    font-weight: 700;
    color: var(--color-accent, #8CC63F);
}
.city-modal__option.is-active .city-modal__check {
    opacity: 1;
}

/* ---------- Список филиалов в футере ---------- */
.city-branches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.city-branch {
    background: rgba(255, 255, 255, .04);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
}
.city-branch__addr {
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    margin-bottom: 4px;
}
.city-branch__phone {
    display: inline-block;
    color: var(--color-accent, #8CC63F);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 4px;
}
.city-branch__phone:hover {
    text-decoration: underline;
}
.city-branch__hours {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}
