/* Дополнения к стилям старого шаблона: модальное окно, поиск, уведомление о cookie.
   Всё остальное оформление — из templates/template_demotesto/css. */

/* --- Модальное окно «сделать расчет» --- */
.site-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.site-modal[hidden] { display: none; }
.site-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.site-modal-box {
    position: relative; z-index: 2; width: 100%; max-width: 500px; margin: 15px;
    background: #fff; border-radius: 4px; padding: 24px 24px 18px; box-sizing: border-box;
    max-height: 92vh; overflow-y: auto; box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}
.site-modal-close {
    position: absolute; top: 6px; right: 10px; border: 0; background: transparent;
    font-size: 28px; line-height: 1; color: #999; cursor: pointer; padding: 0 4px;
}
.site-modal-close:hover { color: #333; }
.site-modal .cf-control-group { margin-bottom: 12px; }
.site-modal .cf-input { width: 100%; box-sizing: border-box; }
.site-modal h3 { margin: 0 0 6px; color: #333; }
body.modal-open { overflow: hidden; }

/* Ответ после отправки формы */
.site-form-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 3px; font-size: 14px; }
.site-form-note.ok { background: #e8f7e6; color: #2b6b23; }
.site-form-note.error { background: #fdeaea; color: #8a2020; }

/* --- Живой поиск --- */
.mls-results-cont { position: relative; }
.mls-results { background: #fff; }
.mls-results .mls-result-item { display: block; padding: 8px 12px; border-bottom: 1px solid #eee; text-decoration: none; color: #333; }
.mls-results .mls-result-item:hover { background: #f2f8ff; }
.mls-results .mls-result-item b { display: block; font-weight: 600; }
.mls-results .mls-result-item span { display: block; font-size: 12px; color: #777; }
.mls-results .mls-empty { padding: 10px 12px; color: #777; font-size: 13px; }

/* --- Правовые ссылки в подвале (#fz_wrap) --- */
#fz_wrap a { margin-right: 14px; font-size: 12px; }

/* --- Страница результатов поиска --- */
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { margin-bottom: 18px; }
.search-results a { font-size: 17px; }
.search-results p { margin: 4px 0 0; color: #555; }
