/* Оформление сайта «Юг-Недвижимость»: светлое, спокойное, в духе современных площадок объявлений.
 * Всё под классом body.ug-skin, поэтому отключается одной галочкой в настройках плагина.
 * Цвета: синий / красный / белый (как в логотипе).
 */
body.ug-skin {
	--ug-ink: #14213d;
	--ug-muted: #5b6785;
	--ug-navy: #1b3a8c;
	--ug-blue: #1d63e0;
	--ug-blue-dark: #174fb5;
	--ug-blue-soft: #e8f0fe;
	--ug-red: #d92d3a;
	--ug-bg: #f5f7fb;
	--ug-line: #e3e8f0;
	--ug-radius: 12px;
	--ug-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-family: var(--ug-font);
	color: var(--ug-ink);
}
body.ug-skin h1, body.ug-skin h2, body.ug-skin h3, body.ug-skin h4, body.ug-skin h5,
body.ug-skin input, body.ug-skin select, body.ug-skin button, body.ug-skin textarea {
	font-family: var(--ug-font);
}
body.ug-skin h1, body.ug-skin h2, body.ug-skin h3, body.ug-skin h4 { color: var(--ug-ink); letter-spacing: 0; }

/* ---------- Шапка ---------- */
body.ug-skin .mh-top-header { background: #fff; border-bottom: 1px solid var(--ug-line); color: var(--ug-muted); font-size: 13px; }
body.ug-skin .mh-top-header a, body.ug-skin .mh-top-header__element { color: var(--ug-muted); }
body.ug-skin .mh-top-header a:hover { color: var(--ug-blue); }
body.ug-skin .mh-header, body.ug-skin #mega_main_menu { background: #fff; box-shadow: none; }
body.ug-skin .mh-header { border-bottom: 1px solid var(--ug-line); }
body.ug-skin #mega_main_menu.primary_style-flat > .menu_holder > .menu_inner > span.nav_logo { padding-top: 6px; padding-bottom: 6px; }
body.ug-skin #mega_main_menu .mmm_fullwidth_container { background: #fff; }
body.ug-skin #mega_main_menu .link_text, body.ug-skin #mega_main_menu li > a, body.ug-skin #mega_main_menu li > .item_link {
	font-family: var(--ug-font);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ug-ink);
}
body.ug-skin #mega_main_menu li:hover > a .link_text, body.ug-skin #mega_main_menu li > a:hover .link_text,
body.ug-skin #mega_main_menu li.current-menu-item > a .link_text, body.ug-skin #mega_main_menu li.current_page_item > a .link_text { color: var(--ug-blue); }
body.ug-skin #mega_main_menu li:hover > a, body.ug-skin #mega_main_menu li > a:hover { background: transparent; }
body.ug-skin #mega_main_menu li .item_link:after, body.ug-skin #mega_main_menu li > a:after { display: none; }
/* ---------- Кнопки и акценты темы (был голубой #29aae3) ---------- */
body.ug-skin .mdl-button--primary, body.ug-skin .mdl-button--primary-ghost, body.ug-skin .mdl-button.mdl-button--raised {
	border-radius: 8px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
body.ug-skin .mdl-button--primary.mdl-button--raised, body.ug-skin .mdl-button.mdl-button--primary:not(.mdl-button--primary-ghost) {
	background-color: var(--ug-blue);
	border-color: var(--ug-blue);
	color: #fff;
}
body.ug-skin .mdl-button--primary.mdl-button--raised:hover, body.ug-skin .mdl-button.mdl-button--primary:not(.mdl-button--primary-ghost):hover { background-color: var(--ug-blue-dark); border-color: var(--ug-blue-dark); }
body.ug-skin .mdl-button--primary-ghost { color: var(--ug-blue); border-color: var(--ug-blue); background: #fff; }
body.ug-skin .mdl-button--primary-ghost:hover { background: var(--ug-blue-soft); }
:where(body.ug-skin) a { color: var(--ug-blue); }
body.ug-skin .mh-estate-vertical .mdl-button { color: var(--ug-blue) !important; border-color: var(--ug-blue) !important; border-radius: 8px; font-weight: 600; text-transform: none; letter-spacing: 0; }
body.ug-skin .mh-estate-vertical .mdl-button:hover { background: var(--ug-blue-soft) !important; }
body.ug-skin .mh-thumbnail__featured { background: var(--ug-red); }

/* ---------- Главная: первый экран ---------- */
body.ug-skin-home .rev_slider_estate_placeholder,
body.ug-skin-home .mh-slider__extra-content .mh-search-classic > div:first-child { display: none !important; }
body.ug-skin-home .mh-slider__extra-content { margin-top: 0 !important; padding-top: 0 !important; }
body.ug-skin-home #post-5 { margin-top: 0; }

.ug-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: 28px;
	overflow: hidden;
	background: linear-gradient(135deg, #0e2159 0%, #1b3a8c 48%, #1d63e0 100%);
	color: #fff;
}
.ug-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ug-hero__in { position: relative; max-width: 1140px; margin: 0 auto; padding: 56px 20px 118px; }
body.ug-skin .ug-hero h1 { margin: 0 0 12px; max-width: 900px; font-size: 40px; text-wrap: balance; line-height: 1.15; font-weight: 700; color: #fff; text-transform: none; }
.ug-hero__sub { margin: 0 0 26px; max-width: 640px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .86); }

.ug-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; max-width: 860px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(8, 20, 60, .28); }
.ug-search__f { position: relative; flex: 1 1 170px; min-width: 150px; }
.ug-search__f > span { position: absolute; left: 14px; top: 7px; font-size: 11px; line-height: 1; color: var(--ug-muted); pointer-events: none; }
.ug-search select, .ug-search input {
	width: 100%; height: 52px; box-sizing: border-box; padding: 18px 14px 0; border: 1px solid transparent; border-radius: 10px;
	background: var(--ug-bg); color: var(--ug-ink); font-size: 15px; line-height: 1.2; text-align: left; -webkit-appearance: none; appearance: none;
}
.ug-search select { background-image: linear-gradient(45deg, transparent 50%, #5b6785 50%), linear-gradient(135deg, #5b6785 50%, transparent 50%); background-position: calc(100% - 20px) 24px, calc(100% - 15px) 24px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.ug-search select:hover, .ug-search input:hover { border-color: #c9d3e6; }
.ug-search select:focus-visible, .ug-search input:focus-visible, .ug-search button:focus-visible, .ug-chips a:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 1px; }
.ug-search button { flex: 0 0 auto; min-width: 130px; height: 52px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--ug-blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.ug-search button:hover { background: var(--ug-blue-dark); }

.ug-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ug-chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.ug-chips a:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.ug-chips a.ug-chip--hot { background: var(--ug-red); border-color: var(--ug-red); }
.ug-chips a.ug-chip--hot:hover { background: #bd2230; }

.ug-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 28px 0 0; padding: 0; list-style: none; }
.ug-stats li { font-size: 14px; color: rgba(255, 255, 255, .8); }
.ug-stats b { display: block; font-size: 24px; line-height: 1.1; font-weight: 700; color: #fff; }

/* ---------- Карточки объектов (список) ---------- */
body.ug-skin .mh-estate-vertical {
	background: #fff !important;
	border: 1px solid var(--ug-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: none;
	transition: box-shadow .2s ease, transform .2s ease;
}
body.ug-skin .mh-estate-vertical:hover { box-shadow: 0 10px 28px rgba(20, 33, 61, .14); transform: translateY(-2px); }
body.ug-skin .mh-estate-vertical .mh-caption { top: 10px; right: 10px; left: auto !important; }
body.ug-skin .mh-estate-vertical .mh-caption__inner { padding: 4px 10px; border-radius: 8px; background: rgba(20, 33, 61, .82) !important; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
body.ug-skin .mh-estate-vertical__content { padding: 14px 16px 16px; }
body.ug-skin .mh-estate-vertical__heading { margin: 0 0 4px; font-size: 16px; line-height: 1.35; font-weight: 600; }
body.ug-skin .mh-estate-vertical__heading a { color: var(--ug-ink); }
body.ug-skin .mh-estate-vertical__heading a:hover { color: var(--ug-blue); }
body.ug-skin .mh-estate-vertical__subheading { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--ug-muted); font-style: normal; }
body.ug-skin .mh-estate-vertical__subheading i { color: var(--ug-muted); }
body.ug-skin .mh-estate-vertical__primary, body.ug-skin .mh-estate-vertical__primary div { color: var(--ug-ink); font-size: 22px; line-height: 1.2; font-weight: 700; }
body.ug-skin .mh-estate-vertical__more-info { font-size: 13px; color: var(--ug-muted); }
body.ug-skin .mh-estate-vertical__more-info strong { font-weight: 600; color: var(--ug-ink); }
body.ug-skin .swiper-pagination-bullet-active { background: #fff; }

/* Устройство карточки: фото, текст, низ (дата, «Сравнить», «Подробнее»).
 * Высоту текста тема задаёт скриптом, из-за нового шрифта она не совпадала и низ карточки наезжал на текст.
 * Теперь карточка растягивается сама, а цена всегда стоит первой, поэтому не «прыгает». */
body.ug-skin .mh-properties .mh-property { display: flex; }
body.ug-skin .mh-properties .mh-estate-vertical { display: flex; flex-direction: column; width: 100%; }
body.ug-skin .mh-estate-vertical .swiper-container { flex: 0 0 auto; width: 100%; }
body.ug-skin .mh-estate-vertical__content { display: flex; flex-direction: column; flex: 1 1 auto; height: auto !important; }
body.ug-skin .mh-estate-vertical__bottom { flex: 0 0 auto; }
body.ug-skin .mh-estate-vertical__primary { display: flex; flex-direction: column; order: -1; margin: 0 0 8px; }
body.ug-skin .mh-estate-vertical__primary > div:not(.ug-old) { order: 1; }
body.ug-skin .mh-estate-vertical__primary > .ug-old { order: 2; margin: 2px 0 0; }
body.ug-skin .ug-old { color: var(--ug-muted); }
body.ug-skin .ug-old .ug-off { background: var(--ug-red); }
body.ug-skin .ug-old del { text-decoration-color: var(--ug-red); }
body.ug-skin .ug-chips a, body.ug-skin .ug-chips a:hover { color: #fff; }

/* ---------- Заголовки разделов на главной ---------- */
body.ug-skin .mh-heading { font-weight: 700; letter-spacing: 0; text-transform: none; }

/* ---------- Главная: разделы (отзывы, новости, партнёры) ---------- */
body.ug-skin-home #post-5 > .vc_row { background-image: none !important; }
body.ug-skin-home #post-5 > .vc_row:nth-child(odd) { background-color: var(--ug-bg) !important; }
body.ug-skin-home #post-5 .vc_column-inner { padding-top: 44px; padding-bottom: 36px; }
body.ug-skin-home .mh-heading-wrapper { height: auto; margin: 0 0 18px; padding: 0; text-align: left; }
body.ug-skin-home .mh-heading { margin: 0; padding: 0; font-size: 28px; line-height: 1.2; text-align: left; text-transform: none !important; }
body.ug-skin-home .mh-heading--bottom-separator:after, body.ug-skin-home .mh-heading--bottom-separator:before { display: none !important; }
body.ug-skin-home .mh-heading-wrapper .mh-heading--bottom-separator { padding-bottom: 0; border: 0; }

/* Отзывы: карточки, которые листаются пальцем или стрелками (вместо одного большого слайда) */
body.ug-skin-home .mh-testimonials--standard .owl-stage-outer { overflow: visible; }
body.ug-skin-home .mh-testimonials--standard .owl-stage {
	display: flex !important; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	transform: none !important; width: auto !important; padding: 4px 2px 16px; scrollbar-width: thin; scrollbar-color: #c3cde0 transparent;
}
body.ug-skin-home .mh-testimonials--standard .owl-item { float: none; flex: 0 0 calc((100% - 32px) / 3); width: auto !important; margin: 0 !important; scroll-snap-align: start; }
body.ug-skin-home .mh-testimonials--standard .owl-item.cloned, body.ug-skin-home .mh-testimonials--standard .owl-dots, body.ug-skin-home .mh-testimonials--standard .owl-nav { display: none !important; }
body.ug-skin-home .mh-testimonials--standard .item, body.ug-skin-home .mh-testimonials--standard .mh-testimonial { height: 100%; }
body.ug-skin-home .mh-testimonial__inner { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 22px; background: #fff; border: 1px solid var(--ug-line); border-radius: 14px; text-align: left; }
body.ug-skin-home .mh-testimonial__text, body.ug-skin-home .mh-testimonial__text * { text-align: left !important; }
body.ug-skin-home .mh-testimonial__author { text-transform: none; }
body.ug-skin-home .mh-testimonial__text { height: auto !important; flex: 1 1 auto; margin: 0; padding: 0; border: 0; background: none; text-align: left; font-size: 15px; line-height: 1.6; color: var(--ug-ink); font-style: normal; }
body.ug-skin-home .mh-testimonial__text:before { content: "\201C"; display: block; margin-bottom: 4px; font: 700 52px/0.8 Georgia, serif; color: var(--ug-blue); }
body.ug-skin-home .mh-testimonial__text p { margin: 0; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
body.ug-skin-home .mh-testimonial__photo { display: none; }
body.ug-skin-home .mh-testimonial__photo:has(img) { display: block; margin-top: 14px; }
body.ug-skin-home .mh-testimonial__author-info { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ug-line); text-align: left; }
body.ug-skin-home .mh-testimonial__author { margin: 0; font-size: 15px; font-weight: 700; color: var(--ug-ink); text-align: left; }
.ug-slider-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ug-slider-nav a { color: var(--ug-blue); font-weight: 600; text-decoration: none; }
.ug-slider-nav a:hover { text-decoration: underline; }
.ug-slider-nav button { width: 40px; height: 40px; margin-left: 8px; border: 1px solid var(--ug-line); border-radius: 50%; background: #fff; color: var(--ug-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.ug-slider-nav button:hover { border-color: var(--ug-blue); color: var(--ug-blue); }
.ug-slider-nav button:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 1px; }

/* Партнёры: ровная строка логотипов вместо карусели */
body.ug-skin-home .mh-clients .owl-stage-outer { overflow: visible; }
body.ug-skin-home .mh-clients .owl-stage { display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: 14px; transform: none !important; width: auto !important; }
body.ug-skin-home .mh-clients .owl-item { float: none; flex: 0 0 calc((100% - 56px) / 5); width: auto !important; margin: 0 !important; }
body.ug-skin-home .mh-clients .owl-item.cloned, body.ug-skin-home .mh-clients .owl-dots, body.ug-skin-home .mh-clients .owl-nav { display: none !important; }
body.ug-skin-home .mh-clients .owl-item .item { display: flex; align-items: center; justify-content: center; height: 88px; box-sizing: border-box; padding: 14px 18px; background: #fff; border: 1px solid var(--ug-line); border-radius: 12px; }
body.ug-skin-home .mh-clients .owl-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
body.ug-skin-home .mh-clients .owl-item img { width: auto !important; max-width: 100%; max-height: 56px; margin: 0 auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
body.ug-skin-home .mh-clients .owl-item:hover img { filter: none; opacity: 1; }

@media (max-width: 1000px) {
	body.ug-skin-home .mh-testimonials--standard .owl-item { flex-basis: calc((100% - 16px) / 2); }
	body.ug-skin-home .mh-clients .owl-item { flex-basis: calc((100% - 28px) / 3); }
}
@media (max-width: 640px) {
	body.ug-skin-home .mh-testimonials--standard .owl-item { flex-basis: 86%; }
	body.ug-skin-home .mh-clients .owl-item { flex-basis: calc((100% - 14px) / 2); }
	body.ug-skin-home .mh-heading { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	body.ug-skin-home .mh-testimonials--standard .owl-stage { scroll-behavior: auto; }
}

/* ---------- Главная: порядок блоков (задаётся CSS, чтобы не трогать страницу в WPBakery) ---------- */
body.ug-skin-home #post-5 { display: flex; flex-direction: column; }
body.ug-skin-home #post-5 > .vc_row { order: 10; }
body.ug-skin-home #post-5 > .ug-hero { order: 0; }
body.ug-skin-home #post-5 > .ug-tiles { order: 1; }
body.ug-skin-home #post-5 > .ug-newhead { order: 2; }
body.ug-skin-home #post-5 > .vc_row:has(#myhome-listing-grid) { order: 3; }
body.ug-skin-home #post-5 > .ug-all { order: 4; }
body.ug-skin-home #post-5 > .ug-how { order: 5; }
body.ug-skin-home #post-5 > .ug-lead { order: 6; }
body.ug-skin-home #post-5 > .ug-mort { order: 7; }
body.ug-skin-home #post-5 > .ug-agent { order: 8; }
body.ug-skin-home #post-5 > .vc_row:has(.mh-testimonials--standard) { order: 9; }

/* Список на главной: шесть объектов в три колонки, остальное по кнопке «Смотреть все» */
body.ug-skin-home .ug-newhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
body.ug-skin-home .ug-newhead h2 { margin: 0 !important; }
body.ug-skin-home .ug-newhead a { font-weight: 600; text-decoration: none; }
body.ug-skin-home #post-5 > .vc_row:has(#myhome-listing-grid) { padding: 0; background: none !important; }
body.ug-skin-home .mh-slider__extra-content { padding: 0 !important; }


body.ug-skin-home .mh-slider__extra-content .mh-properties .mh-property:nth-child(n+7) { display: none; }
body.ug-skin-home .mh-slider__extra-content .mh-filters, body.ug-skin-home .mh-slider__extra-content .mh-search__results-wrapper, body.ug-skin-home .mh-slider__extra-content .mh-search__more { display: none !important; }

/* ---------- Общие элементы новых блоков ---------- */
.ug-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ug-blue); border-radius: 10px; background: var(--ug-blue); color: #fff; font: 700 16px/1 var(--ug-font); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s; }
.ug-btn:hover { background: var(--ug-blue-dark); border-color: var(--ug-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29, 99, 224, .28); }
.ug-btn:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.ug-btn--red { background: var(--ug-red); border-color: var(--ug-red); }
.ug-btn--red:hover { background: #bd2230; border-color: #bd2230; box-shadow: 0 6px 16px rgba(217, 45, 58, .28); }
.ug-btn--ghost { background: #fff; color: var(--ug-blue); }
.ug-btn--ghost:hover { background: var(--ug-blue-soft); color: var(--ug-blue-dark); }
.ug-skin section[class^="ug-"] h2, .ug-skin .ug-newhead h2 { margin: 0 0 18px; font: 700 28px/1.2 var(--ug-font); text-transform: none; color: var(--ug-ink); }
.ug-ico { display: block; }

/* «Что вы ищете?» */
.ug-tiles { padding: 8px 0 34px; }
.ug-tiles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ug-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; border: 1px solid var(--ug-line); border-radius: 16px; background: #fff; color: var(--ug-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ug-tile:hover { border-color: var(--ug-blue); box-shadow: 0 10px 26px rgba(29, 99, 224, .14); transform: translateY(-3px); color: var(--ug-ink); }
.ug-tile:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.ug-tile__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 14px; background: var(--ug-blue-soft); color: var(--ug-blue); transition: background-color .2s, color .2s; }
.ug-tile:hover .ug-tile__ico { background: var(--ug-blue); color: #fff; }
.ug-tile__t { font-size: 20px; font-weight: 700; }
.ug-tile__m { font-size: 14px; line-height: 1.4; color: var(--ug-muted); }
.ug-tile__go { position: absolute; right: 18px; top: 20px; color: var(--ug-blue); font-size: 20px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.ug-tile:hover .ug-tile__go { opacity: 1; transform: none; }

.ug-all { margin: 16px 0 40px; text-align: center; }

/* «Как мы работаем» */
.ug-how { padding: 6px 0 44px; }
.ug-how__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ug-how__list li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--ug-bg); }
.ug-how__i { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 8px; border-radius: 50%; background: #fff; color: var(--ug-blue); box-shadow: 0 2px 8px rgba(20, 33, 61, .08); }
.ug-how__list b { font-size: 17px; line-height: 1.3; color: var(--ug-ink); }
.ug-how__list li > span:last-child { font-size: 14px; line-height: 1.5; color: var(--ug-muted); }

/* Заявка */
.ug-lead, .ug-mort, .ug-agent { width: 100vw; margin-left: calc(50% - 50vw); padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
.ug-lead { padding-top: 48px; padding-bottom: 48px; background: linear-gradient(135deg, #0e2159, #1b3a8c); color: #fff; }
.ug-lead__in, .ug-mort__in, .ug-agent__in { max-width: 1110px; margin: 0 auto; }
.ug-lead__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.ug-skin section.ug-lead h2 { color: #fff; }
.ug-lead__txt p { margin: 0 0 14px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.ug-lead__txt ul { margin: 0; padding: 0; list-style: none; }
.ug-lead__txt li { position: relative; padding: 4px 0 4px 26px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.ug-lead__txt li:before { content: ""; position: absolute; left: 2px; top: 10px; width: 12px; height: 7px; border-left: 2px solid #7fb0ff; border-bottom: 2px solid #7fb0ff; transform: rotate(-45deg); }
.ug-lead__form { padding: 22px; border-radius: 16px; background: #fff; color: var(--ug-ink); box-shadow: 0 14px 36px rgba(5, 14, 50, .35); }
.ug-lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ug-lead__form label { display: block; font-size: 13px; color: var(--ug-muted); }
.ug-lead__form input[type="text"], .ug-lead__form input[type="tel"], .ug-lead__form select { display: block; width: 100%; height: 48px; margin-top: 4px; padding: 0 12px; box-sizing: border-box; border: 1px solid #cfd7e6; border-radius: 10px; background: #fff; color: var(--ug-ink); font-size: 15px; }
.ug-lead__form input[type="text"], .ug-lead__form input[type="tel"], .ug-lead__form select, .ug-mort__box input[type="text"] { text-align: left; font-style: normal; box-shadow: none; }
.ug-lead__form input::placeholder, .ug-mort__box input::placeholder { font-style: normal; color: #8a95ad; }
.ug-lead__form input:focus-visible, .ug-lead__form select:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 0; border-color: var(--ug-blue); }
.ug-lead__form .ug-lead__consent { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 13px; line-height: 1.4; }
.ug-lead__consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.ug-lead__form .ug-btn { width: 100%; }
.ug-lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ug-lead__ok, .ug-lead__err { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.ug-lead__ok { background: #e6f6ec; color: #14532d; }
.ug-lead__err { background: #fdecec; color: #8f1d24; }

/* Ипотечный калькулятор: компактный, по образцу калькуляторов банков (поля с ползунками слева, итог справа) */
.ug-mort { padding-top: 40px; padding-bottom: 40px; background: var(--ug-bg); }
.ug-mort__in { max-width: 1110px; margin: 0 auto; display: block; }
.ug-mort__card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ug-mort__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ug-line); }
.ug-fld { position: relative; padding: 8px 12px 14px; border-radius: 10px; background: var(--ug-bg); }
.ug-fld--wide { grid-column: 1 / -1; }
.ug-fld__l { display: block; font-size: 12px; line-height: 1.2; color: var(--ug-muted); }
.ug-fld__l b { margin-left: 4px; color: var(--ug-ink); }
.ug-fld input[type="text"] { display: block; width: 100%; height: 30px; padding: 0; border: 0; background: transparent; box-shadow: none; font: 600 18px/30px var(--ug-font); color: var(--ug-ink); text-align: left; }
.ug-fld input[type="text"]:focus-visible { outline: 0; box-shadow: 0 2px 0 var(--ug-blue); }
.ug-fld input[type="range"] { position: absolute; left: 12px; right: 12px; bottom: 3px; width: calc(100% - 24px); height: 6px; margin: 0; accent-color: var(--ug-blue); cursor: pointer; }
.ug-mort__res { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ug-line); }
.ug-mort__cap { font-size: 13px; color: var(--ug-muted); }
.ug-mort__res strong { display: block; font-size: 32px; line-height: 1.1; color: var(--ug-navy); }
.ug-mort__res dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 4px 0 6px; }
.ug-mort__res dl div:last-child { grid-column: 1 / -1; }
.ug-mort__res dt { font-size: 12px; color: var(--ug-muted); }
.ug-mort__res dd { margin: 0; font: 600 15px/1.3 var(--ug-font); color: var(--ug-ink); }
.ug-mort__res .ug-btn { width: 100%; min-height: 46px; }
.ug-mort__res small { font-size: 11px; line-height: 1.35; color: #8a95ad; }
/* Агент */
.ug-agent { padding-top: 52px; padding-bottom: 52px; background: #fff; }
.ug-agent__in { display: flex; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--ug-line); border-radius: 20px; background: linear-gradient(135deg, #f5f7fb, #fff); }
.ug-agent__ph { flex: 0 0 auto; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(20, 33, 61, .18); }
.ug-agent__tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ug-blue-soft); color: var(--ug-blue-dark); font-size: 12px; font-weight: 700; }
.ug-agent h2 { margin-bottom: 8px !important; }
.ug-agent__txt p { margin: 0 0 16px; max-width: 560px; font-size: 16px; line-height: 1.55; color: var(--ug-muted); }
.ug-agent__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Нижняя панель на телефоне */
.ug-bar { display: none; }

/* ---------- Движение (спокойное, без лишнего) ---------- */
.ug-in { animation: ug-up .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes ug-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ug-js .ug-reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.ug-reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.ug-tiles__grid .ug-tile, .ug-how__list li { transition-delay: 0s; }
.ug-js .ug-reveal:not(.is-in) .ug-tile, .ug-js .ug-reveal:not(.is-in) .ug-how__list li { opacity: 0; transform: translateY(18px); }
.ug-reveal.is-in .ug-tile, .ug-reveal.is-in .ug-how__list li { animation: ug-up .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k, 0) * 80ms); }
.ug-win { animation: ug-twinkle 5s ease-in-out infinite; fill-opacity: .9; }
.ug-win--2 { animation-delay: 1.7s; animation-duration: 6.5s; }
.ug-win--3 { animation-delay: 3.1s; animation-duration: 7.5s; }
@keyframes ug-twinkle { 0%, 100% { fill-opacity: .9; } 45% { fill-opacity: .25; } 60% { fill-opacity: .9; } }
.ug-paused .ug-win { animation-play-state: paused; }
body.ug-skin .mh-estate-vertical .swiper-slide img { transition: transform .5s ease; }
body.ug-skin .mh-estate-vertical:hover .swiper-slide-active img { transform: scale(1.04); }

@media (max-width: 1000px) {
	.ug-tiles__grid, .ug-how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ug-lead__in, .ug-mort__in { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 782px) {
	body.ug-skin { padding-bottom: 66px; }
	.ug-bar { position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ug-line); box-shadow: 0 -6px 20px rgba(20, 33, 61, .1); }
	.ug-bar__a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 10px; background: var(--ug-bg); color: var(--ug-ink); font-size: 12px; font-weight: 600; text-decoration: none; }
	.ug-bar__a .ug-ico { width: 22px; height: 22px; color: var(--ug-blue); }
	.ug-bar__a--main { background: var(--ug-red); color: #fff; }
	.ug-bar__a--main .ug-ico { color: #fff; }
	/* кнопка «Наверх» (плагин WPFront) лежала поверх «Позвонить» — поднимаем над нижней панелью, справа */
	body.ug-skin #wpfront-scroll-top-container { left: auto !important; right: 12px !important; bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
	body.ug-skin #wpfront-scroll-top-container img { width: 40px !important; height: 40px !important; }
	.ug-lead__row { grid-template-columns: 1fr; }
	.ug-agent__in { flex-direction: column; align-items: flex-start; text-align: left; padding: 20px; }
	.ug-skin section[class^="ug-"] h2, .ug-skin .ug-newhead h2 { font-size: 24px; }
}
@media (max-width: 640px) {
}
@media (max-width: 520px) {
	.ug-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ug-how__list { grid-template-columns: 1fr; }
	.ug-tile { padding: 14px; }
	.ug-tile__ico { width: 44px; height: 44px; margin-bottom: 6px; }
	.ug-tile__t { font-size: 17px; }
	.ug-tile__m { font-size: 13px; }
	.ug-hero__in { padding-bottom: 52px; }
	.ug-hero__bg { opacity: .45; }
	.ug-win { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ug-in, .ug-reveal.is-in .ug-tile, .ug-reveal.is-in .ug-how__list li { animation: none; }
	.ug-js .ug-reveal:not(.is-in) { opacity: 1; transform: none; }
	.ug-js .ug-reveal:not(.is-in) .ug-tile, .ug-js .ug-reveal:not(.is-in) .ug-how__list li { opacity: 1; transform: none; }
	.ug-win { animation: none; }
	.ug-reveal, .ug-btn, .ug-tile, .ug-tile__go, body.ug-skin .mh-estate-vertical .swiper-slide img { transition: none; }
	.ug-tile:hover, .ug-btn:hover, body.ug-skin .mh-estate-vertical:hover .swiper-slide-active img { transform: none; }
}

/* ---------- Соцсети убраны с сайта (виджеты выключены в плагине, это запасной вариант) ---------- */
body.ug-skin .mh-top-header__element--social-icons, body.ug-skin .widget-mh-social-icons, body.ug-skin .mh-social-icons, body.ug-skin .ymc_widget_inforemer { display: none !important; }

/* ---------- Карточки объектов: одинаковый размер у всех ---------- */
body.ug-skin .mh-estate-vertical .swiper-container { height: auto !important; aspect-ratio: 16 / 9; }
body.ug-skin .mh-estate-vertical .swiper-slide { height: 100%; }
body.ug-skin .mh-estate-vertical .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
body.ug-skin .mh-estate-vertical__heading, body.ug-skin .mh-estate-vertical__subheading { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
body.ug-skin .mh-estate-vertical__heading { -webkit-line-clamp: 2; min-height: 2.7em; }
body.ug-skin .mh-estate-vertical__subheading { -webkit-line-clamp: 2; min-height: 2.8em; }
body.ug-skin .mh-estate-vertical__primary { min-height: 52px; }

/* ---------- Карточка: платёж по семейной ипотеке ---------- */
[class*="__primary"]:has(> .ug-cipo) { flex-wrap: wrap; }
[class*="__primary"] > .ug-cipo { flex: 0 0 auto; }
.ug-cipo { display: block; flex: none; align-self: flex-start; width: max-content; max-width: 100%; box-sizing: border-box; margin-top: 6px; padding: 3px 9px; overflow: hidden; text-overflow: ellipsis; border-radius: 999px; background: #e6f6ec; color: #14532d !important; font-family: "Segoe UI", Roboto, Arial, sans-serif; font-size: 12.5px !important; font-weight: 600 !important; font-style: normal; line-height: 1.35 !important; white-space: nowrap; text-transform: none; letter-spacing: 0; }

/* ---------- Заявка: способ оплаты ---------- */
.ug-lead__pay { margin: 0 0 12px; padding: 0; border: 0; }
.ug-lead__pay legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--ug-muted); }
.ug-chipr { display: inline-block; margin: 0 6px 6px 0; cursor: pointer; }
.ug-lead__form .ug-chipr { display: inline-block; font-size: 14px; color: var(--ug-ink); }
.ug-chipr input { position: absolute; opacity: 0; pointer-events: none; }
.ug-chipr span { display: inline-block; padding: 9px 14px; border: 1px solid #cfd7e6; border-radius: 999px; background: #fff; line-height: 1.1; transition: background-color .15s, border-color .15s, color .15s; }
.ug-chipr:hover span { border-color: var(--ug-blue); }
.ug-chipr input:checked + span { background: var(--ug-blue); border-color: var(--ug-blue); color: #fff; }
.ug-chipr input:focus-visible + span { outline: 3px solid #8fb4ff; outline-offset: 1px; }

/* ---------- Агент: три кнопки ---------- */
.ug-agent__btns .ug-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Отзывы: компактнее и в движении ---------- */
body.ug-skin-home #post-5 > .vc_row:has(.mh-testimonials--standard) .vc_column-inner { padding-top: 32px; padding-bottom: 20px; }
body.ug-skin-home .mh-testimonial__inner { padding: 16px 18px; }
body.ug-skin-home .mh-testimonial__text { font-size: 14px; line-height: 1.55; }
body.ug-skin-home .mh-testimonial__text:before { font-size: 40px; margin-bottom: 2px; }
body.ug-skin-home .mh-testimonial__text p { -webkit-line-clamp: 5; }
body.ug-skin-home .mh-testimonial__author-info { margin-top: 10px; padding-top: 10px; }
body.ug-skin-home .mh-testimonial__author { font-size: 14px; }
body.ug-skin-home .mh-testimonials--standard .owl-stage { padding-bottom: 8px; scrollbar-width: none; }
body.ug-skin-home .mh-testimonials--standard .owl-stage::-webkit-scrollbar { display: none; }
.ug-slider-nav { margin-top: 2px; }
.ug-slider-nav__dots { display: flex; gap: 6px; }
.ug-slider-nav__dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #c9d3e6; transition: width .25s, background-color .25s; }
.ug-slider-nav__dots i.on { width: 22px; border-radius: 4px; background: var(--ug-blue); }

/* ---------- Подвал ---------- */
body.ug-skin footer#footer, body.ug-skin .mh-footer-top, body.ug-skin .mh-footer-bottom { display: none !important; }
.ug-footer { background: #0e2159; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.5; }
.ug-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.ug-footer a:hover { color: #fff; text-decoration: underline; }
.ug-footer__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 28px; max-width: 1140px; margin: 0 auto; padding: 44px 16px 30px; box-sizing: border-box; }
.ug-footer__logo { display: block; width: auto; height: 60px; padding: 8px 12px; margin-bottom: 14px; border-radius: 10px; background: #fff; box-sizing: content-box; }
.ug-footer__brand p { margin: 0; max-width: 300px; }
body.ug-skin .ug-footer h3 { margin: 0 0 12px; font: 700 15px/1.2 var(--ug-font); color: #fff; text-transform: none; letter-spacing: 0; }
.ug-footer ul { margin: 0; padding: 0; list-style: none; }
.ug-footer li { padding: 3px 0; }
.ug-footer__contacts p { margin: 0 0 6px; }
.ug-footer__phone { display: block; margin-bottom: 8px; font: 700 20px/1.2 var(--ug-font); color: #fff !important; }
.ug-footer__msg { display: flex; gap: 8px; margin-top: 10px; }
.ug-footer__msg a { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-weight: 600; }
.ug-footer__msg a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.ug-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.ug-footer__bin { align-items: center; }
.ug-footer a.ug-footer__ym { display: inline-block; line-height: 0; opacity: .9; }
.ug-footer a.ug-footer__ym:hover { opacity: 1; }
.ug-footer__ym img { display: block; width: 88px; height: 31px; border-radius: 4px; }
.ug-footer__bin { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1140px; margin: 0 auto; padding: 16px 16px 6px; box-sizing: border-box; font-size: 13px; }
.ug-footer__legal { max-width: 1140px; margin: 0 auto; padding: 0 16px 20px; box-sizing: border-box; font-size: 12px; color: rgba(255, 255, 255, .55); }

@media (max-width: 782px) {
	.ug-hero__in { padding: 34px 16px 96px; }
	body.ug-skin .ug-hero h1 { font-size: 28px; }
	.ug-hero__sub { font-size: 15px; margin-bottom: 18px; }
	.ug-search { padding: 6px; border-radius: 14px; }
	.ug-search__f { flex-basis: 100%; }
	.ug-search button { width: 100%; }
	.ug-stats { gap: 8px 24px; margin-top: 20px; }
	.ug-stats b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	body.ug-skin .mh-estate-vertical, .ug-search button, .ug-chips a { transition: none; }
	body.ug-skin .mh-estate-vertical:hover { transform: none; }
}

@media (max-width: 1000px) {
	.ug-mort__card { grid-template-columns: 1fr; }
	.ug-footer__in { grid-template-columns: 1fr 1fr; }
	.ug-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.ug-mort__form { grid-template-columns: 1fr; }
	.ug-footer__in { grid-template-columns: 1fr; padding-top: 32px; }
	.ug-footer__bin { flex-direction: column; }
}

/* ===== 0.6.1: ширина и высота карточек, компактный вид, точки, кнопка связи ===== */
body.ug-skin .mh-grid > [class*="mh-grid__"]:has(.mh-estate-vertical) { display: flex; min-width: 0; }
body.ug-skin .mh-grid > [class*="mh-grid__"]:has(.mh-estate-vertical) > div { display: flex; flex: 1 1 auto; width: 100%; min-width: 0; }
body.ug-skin .mh-estate-vertical { display: flex; flex-direction: column; width: 100%; min-width: 0; max-width: 100%; }
body.ug-skin .mh-estate-vertical .swiper-container { min-width: 0; max-width: 100%; }
body.ug-skin .mh-estate-vertical__content { padding: 10px 14px 4px; }
body.ug-skin .mh-estate-vertical__heading { margin: 0 0 4px; font-size: 15px; }
body.ug-skin .mh-estate-vertical__subheading { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; margin: 0 0 4px; }
body.ug-skin .mh-estate-vertical__primary { flex-direction: row; flex-wrap: nowrap; align-items: baseline; gap: 8px; min-height: 0; margin: 0 0 6px; overflow: hidden; }
body.ug-skin .mh-estate-vertical__primary > div:not(.ug-old) { white-space: nowrap; }
body.ug-skin .mh-estate-vertical__primary > .ug-old { margin: 0; font-size: 13px; white-space: nowrap; }
body.ug-skin .mh-estate-vertical__bottom { height: auto; min-height: 0; padding: 0 14px 8px; }
body.ug-skin .mh-estate-vertical__content > .mh-estate-vertical__bottom { margin-top: auto; padding: 8px 0 8px; }

/* Поле «Цена до» в первом экране: без курсива, как у остальных */
.ug-search input, .ug-search select { font-style: normal !important; }
.ug-search input::placeholder { font-style: normal; color: #8a95ad; opacity: 1; }

/* Точки переключения везде одинаковые (новости, партнёры и т. п.) */
body.ug-skin .owl-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
body.ug-skin .owl-dots .owl-dot { width: auto; height: auto; padding: 0; margin: 0; background: none; border: 0; }
body.ug-skin .owl-dots .owl-dot span { display: block; width: 8px; height: 8px; margin: 0; border-radius: 50%; background: #c9d3e6; transition: width .25s, background-color .25s; }
body.ug-skin .owl-dots .owl-dot.active span { width: 22px; border-radius: 4px; background: var(--ug-blue); }

/* Кнопка «Связаться» (компьютер) */
.ug-fab { position: fixed; z-index: 9980; right: 22px; bottom: 22px; }
.ug-fab__btn { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--ug-blue); color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(29, 99, 224, .4); transition: transform .15s, background-color .15s; }
.ug-fab__btn:hover { background: var(--ug-blue-dark); transform: scale(1.06); }
.ug-fab__btn:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 3px; }
.ug-fab__btn .ug-ico { width: 26px; height: 26px; }
.ug-fab__panel { position: absolute; right: 0; bottom: 68px; display: grid; gap: 4px; width: 260px; padding: 12px; border: 1px solid var(--ug-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(20, 33, 61, .22); animation: ug-up .25s ease both; }
.ug-fab__panel[hidden] { display: none; }
.ug-fab__panel b { padding: 2px 6px 6px; font-size: 14px; color: var(--ug-ink); }
.ug-fab__panel a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ug-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.ug-fab__panel a:hover { background: var(--ug-blue-soft); color: var(--ug-blue-dark); }
.ug-fab__panel a .ug-ico { width: 22px; height: 22px; color: var(--ug-blue); }
@media (max-width: 782px) { .ug-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .ug-fab__panel { animation: none; } .ug-fab__btn { transition: none; } }

/* ===== 0.6.2 ===== */
/* Тема сдвигает список вверх на 96 px (под слайдер, которого больше нет): из-за этого заголовок перекрывал верх первых карточек */
body.ug-skin-home #myhome-listing-grid { margin-top: 0 !important; }
/* Нижняя строка карточки (дата, «Сравнить», «Подробнее») компактнее */
body.ug-skin .mh-estate-vertical__bottom__inner, body.ug-skin .mh-estate-vertical__buttons-wrapper { height: 46px; min-height: 0; }
body.ug-skin-home #post-5 > .vc_row:has(#myhome-listing-grid) .vc_column-inner { padding-top: 0; padding-bottom: 0; }
body.ug-skin .mh-estate-vertical__buttons-wrapper .mdl-button { height: 32px; min-height: 32px; line-height: 30px; padding: 0 12px; font-size: 13px; }
body.ug-skin .mh-estate-vertical__date { font-size: 12px; }
body.ug-skin .mh-estate-vertical__more-info { line-height: 1.3; }

/* Карточки на главной ("Новые объекты" и "Рекомендуемые"): ровная сетка, все строки одной высоты */
body.ug-skin-home .mh-slider__extra-content .mh-properties,
body.ug-skin-home .vc_row .mh-grid:has(> [class*="mh-grid__1of3"]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; margin: 0; }
body.ug-skin-home .mh-slider__extra-content .mh-properties > .mh-property,
body.ug-skin-home .mh-grid > [class*="mh-grid__1of3"] { width: auto !important; flex: none !important; margin: 0 !important; padding: 0 !important; }
@media (max-width: 1000px) {
	body.ug-skin-home .mh-slider__extra-content .mh-properties,
	body.ug-skin-home .vc_row .mh-grid:has(> [class*="mh-grid__1of3"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body.ug-skin-home .mh-slider__extra-content .mh-properties,
	body.ug-skin-home .vc_row .mh-grid:has(> [class*="mh-grid__1of3"]) { grid-template-columns: 1fr; }
}

/* ===== 0.6.3 ===== */
/* Служебные «хвосты» сетки (clearfix) занимали лишнюю строку и отодвигали кнопки «Смотреть все» */
body.ug-skin-home .mh-slider__extra-content .mh-properties::before, body.ug-skin-home .mh-slider__extra-content .mh-properties::after,
body.ug-skin-home .vc_row .mh-grid:has(> [class*="mh-grid__1of3"])::before, body.ug-skin-home .vc_row .mh-grid:has(> [class*="mh-grid__1of3"])::after { display: none !important; content: none !important; }
/* Кнопка «Смотреть все рекомендуемые» вплотную к карточкам */
body.ug-skin-home .vc_row:has(.mh-grid > [class*="mh-grid__1of3"]) .mh-grid + div { margin-top: 4px !important; padding-top: 0 !important; }
body.ug-skin-home .vc_row:has(.mh-grid > [class*="mh-grid__1of3"]) .vc_column-inner { padding-bottom: 28px; }
/* Подсказка с текстом объявления при наведении на фото убрана: карточки везде ведут себя одинаково */
body.ug-skin .mh-thumbnail .mh-estate-vertical__text { display: none !important; }
body.ug-skin .mh-thumbnail:before, body.ug-skin .mh-thumbnail:after, body.ug-skin .mh-thumbnail__inner:before, body.ug-skin .mh-thumbnail__inner:after { background: transparent !important; opacity: 0 !important; }
/* Карточки «Рекомендуемые»: фото и плашки в том же стиле, что и у новых объектов */
body.ug-skin .mh-thumbnail { display: block; position: relative; overflow: hidden; }
body.ug-skin .mh-thumbnail__inner { overflow: hidden; }
body.ug-skin .mh-thumbnail__inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.ug-skin .mh-estate-vertical:hover .mh-thumbnail__inner img { transform: scale(1.04); }
body.ug-skin .mh-thumbnail .mh-caption { position: absolute; top: 10px; right: 10px; left: auto !important; display: flex; gap: 4px; }
@media (prefers-reduced-motion: reduce) { body.ug-skin .mh-thumbnail__inner img { transition: none; } body.ug-skin .mh-estate-vertical:hover .mh-thumbnail__inner img { transform: none; } }
/* Заголовки разделов на главной одним стилем: «Отзывы», «Новости», «Рекомендуемые» (в странице они набраны по-разному) */
body.ug-skin-home .mh-heading { text-transform: lowercase !important; }
body.ug-skin-home .mh-heading::first-letter { text-transform: uppercase !important; }
/* Автор отзыва слева */
body.ug-skin-home .mh-testimonial__author-info, body.ug-skin-home .mh-testimonial__author { text-align: left !important; justify-content: flex-start !important; }
/* Ссылки в подвале: удобно нажимать пальцем */
.ug-footer li a { display: inline-block; padding: 4px 0; }
@media (max-width: 782px) {
	.ug-footer li a, .ug-footer__contacts p a { display: block; padding: 11px 0; }
	.ug-footer__msg a { padding: 12px 18px; }
	.ug-lead__consent a { padding: 10px 2px; display: inline-block; }
}
/* На телефоне в «Новых объектах» четыре карточки, остальное по кнопке «Смотреть все» */
@media (max-width: 640px) {
	body.ug-skin-home .mh-slider__extra-content .mh-properties > .mh-property:nth-child(n+5) { display: none; }
}

/* ---------- Вкладка «Объекты»: карта над списком ---------- */
.ug-omap { margin: 0 0 22px; padding: 18px; border: 1px solid var(--ug-line); border-radius: 18px; background: #fff; }
.ug-omap__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ug-skin section.ug-omap h2 { margin: 0 0 4px; font: 700 22px/1.25 var(--ug-font); color: var(--ug-ink); text-transform: none; }
.ug-omap__head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ug-muted); }
.ug-omap__toggle { flex: 0 0 auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
.ug-omap__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ug-omap__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid #cfd7e6; border-radius: 999px; background: #fff; color: var(--ug-ink); font: 600 14px/1 var(--ug-font); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ug-omap__chip span { font-weight: 400; color: var(--ug-muted); }
.ug-omap__chip:hover { border-color: var(--ug-blue); }
.ug-omap__chip.is-on { background: var(--ug-blue); border-color: var(--ug-blue); color: #fff; }
.ug-omap__chip.is-on span { color: rgba(255, 255, 255, .8); }
.ug-omap__chip:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 1px; }
.ug-omap__map { position: relative; height: 420px; overflow: hidden; border-radius: 14px; background: var(--ug-bg); }
.ug-omap__load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ug-muted); }
.ug-omap__note { margin: 10px 0 0; font-size: 13px; color: var(--ug-muted); }
.ug-omap.is-closed .ug-omap__box, .ug-omap.is-closed .ug-omap__note { display: none; }
@media (max-width: 640px) {
	.ug-omap { padding: 14px; border-radius: 14px; }
	.ug-omap__head { flex-direction: column; gap: 8px; }
	.ug-omap__map { height: 340px; }
	.ug-omap__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.ug-omap__chips::-webkit-scrollbar { display: none; }
	.ug-omap__chip { flex: 0 0 auto; }
}

/* карточка объекта в балуне карты */
.ug-bal { display: flex; flex-direction: column; gap: 4px; width: 240px; color: #14213d; text-decoration: none; font: 14px/1.4 "Segoe UI", Roboto, Arial, sans-serif; }
.ug-bal img { display: block; width: 240px; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.ug-bal b { font-size: 14px; line-height: 1.3; }
.ug-bal__p { font-size: 17px; font-weight: 700; color: #1b3a8c; }
.ug-bal small { font-size: 12px; color: #5b6785; }
.ug-bal__go { margin-top: 2px; color: #1d63e0; font-weight: 700; }
.ug-bal .ug-cipo { margin-top: 0; }

/* ---------- Главная: «Рекомендуем посмотреть» ---------- */
body.ug-skin-home #post-5 > .ug-rec { order: 4; }
body.ug-skin-home #post-5 > .vc_row:has(.mh-estate-vertical--list) { display: none !important; } /* старый блок темы */
.ug-rec { padding: 8px 0 40px; }
.ug-rec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ug-skin section.ug-rec h2 { margin: 0 0 6px; }
.ug-rec__head p { margin: 0; font-size: 15px; color: var(--ug-muted); }
.ug-rec__all { flex: 0 0 auto; font-weight: 700; text-decoration: none; }
.ug-rec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ug-rc[hidden] { display: none; }
.ug-rc > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ug-line); border-radius: 16px; background: #fff; color: var(--ug-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ug-rc > a:hover { border-color: var(--ug-blue); box-shadow: 0 10px 26px rgba(29, 99, 224, .14); transform: translateY(-3px); color: var(--ug-ink); }
.ug-rc > a:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.ug-rc__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ug-bg); }
.ug-rc__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ug-rc > a:hover .ug-rc__img img { transform: scale(1.04); }
.ug-rc__tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ug-rc__tag { padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; }
.ug-rc__tag--fam { background: #1f8a4c; }
.ug-rc__tag--off { background: var(--ug-red); }
.ug-rc__body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; padding: 14px 16px 16px; }
.ug-rc__price { font-size: 20px; font-weight: 700; color: var(--ug-navy); }
.ug-rc__price del { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--ug-muted); text-decoration-color: var(--ug-red); }
.ug-rc__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.35; }
.ug-rc__spec { font-size: 14px; color: var(--ug-ink); }
.ug-rc__city { font-size: 13px; color: var(--ug-muted); }
.ug-rc .ug-cipo { margin-top: 2px; }
.ug-js .ug-reveal:not(.is-in) .ug-rc { opacity: 0; transform: translateY(18px); }
.ug-reveal.is-in .ug-rc { animation: ug-up .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k, 0) * 60ms); }
@media (max-width: 1000px) { .ug-rec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.ug-rec__head { flex-direction: column; align-items: flex-start; }
	.ug-rec__grid { grid-template-columns: 1fr; }
	#ug-rec .ug-omap__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	#ug-rec .ug-omap__chip { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.ug-js .ug-reveal:not(.is-in) .ug-rc { opacity: 1; transform: none; }
	.ug-reveal.is-in .ug-rc { animation: none; }
	.ug-rc > a, .ug-rc__img img { transition: none; }
	.ug-rc > a:hover { transform: none; }
}

/* ---------- Главная: строка для продавцов «Нужно срочно продать?» ---------- */
.ug-sell { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin: 16px 0 0; padding: 10px 16px 10px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; line-height: 1.35; text-decoration: none; box-sizing: border-box; transition: background-color .2s, border-color .2s; }
.ug-sell:hover, .ug-sell:focus-visible { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); color: #fff; }
.ug-sell:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.ug-sell b { font-weight: 700; }
.ug-sell__ico { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ug-navy); }
.ug-sell__ico .ug-ico { width: 20px; height: 20px; }
.ug-sell__go { flex: 0 0 auto; font-size: 18px; transition: transform .2s; }
.ug-sell:hover .ug-sell__go { transform: translateX(3px); }
@media (max-width: 640px) { .ug-sell { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ug-sell, .ug-sell__go { transition: none; } .ug-sell:hover .ug-sell__go { transform: none; } }

/* ---------- Документы в подвале и плашка о cookie ---------- */
.ug-footer__docs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ug-footer__cc { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .85; }
.ug-footer__cc:hover { opacity: 1; }
.ug-cc { position: fixed; z-index: 9995; left: 16px; bottom: 16px; max-width: 460px; box-sizing: border-box; padding: 16px 18px; border: 1px solid var(--ug-line); border-radius: var(--ug-radius); background: #fff; box-shadow: 0 12px 36px rgba(20, 33, 61, .18); color: var(--ug-ink); font: 400 14px/1.5 var(--ug-font); }
.ug-cc[hidden] { display: none; }
.ug-cc p { margin: 0 0 12px; }
.ug-cc a { color: var(--ug-blue); text-decoration: underline; }
.ug-cc__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ug-cc .ug-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (max-width: 782px) {
	.ug-cc { left: 8px; right: 8px; bottom: calc(74px + env(safe-area-inset-bottom)); max-width: none; padding: 14px; }
	.ug-cc__btns .ug-btn { flex: 1 1 140px; }
}


/* ---------- Калькулятор: выбор программы плитками (стили для всех страниц, в том числе главной) ---------- */
.ug-mort__presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; grid-column: 1 / -1; }
.ug-mort__preset { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 64px; margin: 0; padding: 9px 12px 10px; border: 1px solid var(--ug-line); border-radius: 12px; background: #fff; color: var(--ug-ink); font: 400 13px/1.25 var(--ug-font); text-align: left; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.ug-mort__preset b { font: 700 20px/1.1 var(--ug-font); color: var(--ug-navy); }
.ug-mort__preset span { font-weight: 600; color: var(--ug-ink); }
.ug-mort__preset small { font-size: 12px; line-height: 1.25; color: var(--ug-muted); }
.ug-mort__preset:hover { border-color: #9db8ef; background: #fafcff; }
.ug-mort__preset:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.ug-mort__preset.is-on { border-color: var(--ug-blue); background: var(--ug-blue-soft); box-shadow: inset 0 0 0 1px var(--ug-blue); }
.ug-mort__preset.is-on b { color: var(--ug-blue); }
.ug-mort__preset.is-on::after { content: ""; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ug-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ug-fld__l { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ug-fld__l b { margin-left: 0; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--ug-blue); font-size: 12px; font-weight: 700; }
@media (max-width: 520px) {
	.ug-mort__presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ug-mort__preset:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Стрелки на фото в карточках объектов и в каруселях темы ----------
   Тема рисовала их значками шрифта Slider Revolution, который больше не подключается. */
.mh-property .swiper-button-prev:before, .mh-property .swiper-button-next:before,
.swiper-container--single .swiper-button-prev:before, .swiper-container--single .swiper-button-next:before { font-family: Arial, "Helvetica Neue", sans-serif !important; font-weight: 400 !important; font-size: 54px !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.mh-property .swiper-button-prev:before, .swiper-container--single .swiper-button-prev:before { content: "\2039" !important; }
.mh-property .swiper-button-next:before, .swiper-container--single .swiper-button-next:before { content: "\203A" !important; }
.owl-prev i:before, .owl-next i:before { font-family: Arial, "Helvetica Neue", sans-serif !important; font-size: 30px !important; font-style: normal; }
.owl-prev i:before { content: "\2039" !important; }
.owl-next i:before { content: "\203A" !important; }
.mfp-arrow-left:after, .mfp-arrow-right:after { font-family: Arial, "Helvetica Neue", sans-serif !important; font-size: 30px !important; }
.mfp-arrow-left:after { content: "\2039" !important; }
.mfp-arrow-right:after { content: "\203A" !important; }


/* адрес почты, записанный задом наперёд от спам-роботов (см. UGEF_Legal::hide_emails) */
.ug-m { unicode-bidi: bidi-override; direction: rtl; }
