:root {
	--page-bg: #f5f5f5;
	--surface: #ffffff;
	--surface-secondary: #f7f7f7;
	--text: #111111;
	--text-secondary: #666666;
	--border: #e3e3e3;
	--primary: #00aaff;
	--primary-hover: #0095dd;
	--accent: #ff4053;
	--success: #02b875;
	--shadow: 0 8px 30px rgba(0, 0, 0, .08);
	--radius: 18px;
	--radius-small: 12px;
	--container: 1280px;
}

/* =========================================================
   Базовые стили
   ========================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden;
	color: var(--text);
	background: var(--page-bg);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

body.map-is-expanded {
	overflow: hidden;
}

img,
svg,
iframe,
video {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	max-width: 100%;
	font: inherit;
}

button {
	color: inherit;
}

svg {
	display: block;
}

.container {
	width: min(calc(100% - 32px), var(--container));
	margin-right: auto;
	margin-left: auto;
}

#dle-content {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

/* =========================================================
   Шапка
   ========================================================= */

.site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	border-bottom: 1px solid var(--border);
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(14px);
}

.header-container {
	display: flex;
	min-height: 72px;
	align-items: center;
	gap: 32px;
}

.site-logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
}

.site-logo__icon {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	color: #fff;
	border-radius: 12px;
	background: var(--primary);
}

.main-menu {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-right: auto;
	font-size: 15px;
	font-weight: 600;
}

.main-menu a {
	transition: color .2s ease;
}

.main-menu a:hover {
	color: var(--primary);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.login-button {
	padding: 11px 8px;
	font-weight: 600;
}

.add-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	color: #fff;
	border-radius: 12px;
	background: var(--primary);
	font-weight: 700;
	transition:
		background .2s ease,
		transform .2s ease;
}

.add-button:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.add-button__plus {
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.mobile-menu-button {
	display: none;
	width: 42px;
	height: 42px;
	padding: 9px;
	cursor: pointer;
	border: 0;
	border-radius: 10px;
	background: var(--surface-secondary);
}

.mobile-menu-button span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: var(--text);
	transition: transform .2s ease;
}

.mobile-menu {
	display: none;
	border-top: 1px solid var(--border);
	background: #fff;
}

.mobile-menu .container {
	display: flex;
	flex-direction: column;
	padding-top: 12px;
	padding-bottom: 16px;
}

.mobile-menu a {
	padding: 11px 0;
	border-bottom: 1px solid #eee;
	font-weight: 600;
}

.mobile-menu--open {
	display: block;
}

/* =========================================================
   Главная страница и поиск
   ========================================================= */

.site-main {
	min-height: calc(100vh - 260px);
}

.hero-section {
	padding: 36px 0 24px;
	background: #fff;
}

.hero-heading {
	margin-bottom: 24px;
}

.hero-heading h1 {
	margin: 0 0 6px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
}

.hero-heading p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 18px;
}

.property-search {
	display: grid;
	grid-template-columns:
		minmax(260px, 2fr)
		minmax(180px, 1fr)
		minmax(170px, 1fr)
		auto;
	gap: 10px;
	padding: 10px;
	border: 2px solid var(--primary);
	border-radius: 18px;
	background: #fff;
}

.search-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 3px 14px;
	border-right: 1px solid var(--border);
}

.search-field label {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 700;
}

.search-field input,
.search-field select {
	width: 100%;
	min-width: 0;
	height: 32px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
}

.search-button {
	display: inline-flex;
	min-width: 130px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	cursor: pointer;
	color: #fff;
	border: 0;
	border-radius: 12px;
	background: var(--primary);
	font-weight: 700;
}

.search-button:hover {
	background: var(--primary-hover);
}

.search-button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* =========================================================
   Карта
   ========================================================= */

.map-section {
	padding: 28px 0;
	background: #fff;
}

.map-heading,
.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.map-heading h2,
.section-title h2 {
	margin: 0 0 4px;
	font-size: 26px;
	line-height: 1.2;
}

.map-heading p,
.section-title p {
	margin: 0;
	color: var(--text-secondary);
}

.map-expand-button {
	padding: 10px 16px;
	cursor: pointer;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
}

.map-expand-button:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.property-map {
	position: relative;
	width: 100%;
	height: clamp(360px, 48vw, 600px);
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #e8edf0;
}

.property-map > div,
.property-map > iframe {
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.property-map--expanded {
	position: fixed;
	z-index: 3000;
	inset: 0;
	width: 100vw;
	height: 100dvh;
	border: 0;
	border-radius: 0;
}

/* =========================================================
   Категории на главной
   ========================================================= */

.categories-section {
	padding: 10px 0 36px;
	background: #fff;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.category-card {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: #fff;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.category-card:hover {
	border-color: var(--primary);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.category-card__icon {
	display: grid;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	border-radius: 15px;
	background: #edf9ff;
	font-size: 26px;
}

.category-card__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.category-card strong {
	font-size: 16px;
}

.category-card small {
	overflow: hidden;
	color: var(--text-secondary);
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* =========================================================
   Контент и хлебные крошки
   ========================================================= */

.content-layout {
	padding: 36px 0 60px;
}

.content-column {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	margin: 24px 0 0;
	color: #777;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.breadcrumbs nav,
.breadcrumbs > span {
	min-width: 0;
	max-width: 100%;
}

.breadcrumbs a {
	color: var(--primary);
}

.breadcrumbs a:hover {
	color: var(--primary-hover);
	text-decoration: underline;
}

.view-switcher {
	display: flex;
	gap: 6px;
	padding: 4px;
	border-radius: 10px;
	background: #e9e9e9;
}

.view-button {
	display: grid;
	width: 38px;
	height: 34px;
	padding: 8px;
	cursor: pointer;
	border: 0;
	border-radius: 8px;
	background: transparent;
	place-items: center;
}

.view-button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.view-button--active {
	color: var(--primary);
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* =========================================================
   Сетка объявлений
   ========================================================= */

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

/*
 * ВАЖНО:
 * На странице addnews.html форма DLE находится внутри .news-grid.
 * Без этого правила форма занимает только одну колонку из трёх.
 */
.news-grid:has(.add-property-page) {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
}

.news-grid:has(.add-property-page) > form,
#entryform:has(.add-property-page) {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.news-grid:has(.property-full) {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
}

.news-grid:has(.property-full) > #dle-content,
.news-grid:has(.property-full) .property-full {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

/* =========================================================
   Карточки объявлений
   ========================================================= */

.property-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition:
		transform .2s ease,
		box-shadow .2s ease;
}

.property-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.property-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #eee;
}

.property-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.property-card:hover .property-card__image img {
	transform: scale(1.035);
}

.property-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	background: #eee;
}

.property-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	color: #fff;
	border-radius: 8px;
	background: rgba(17, 17, 17, .82);
	font-size: 12px;
	font-weight: 700;
}

.property-card__body {
	padding: 16px;
}

.property-card__top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.property-card__title {
	min-width: 0;
	flex: 1;
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.property-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.property-card__title a:hover {
	color: var(--primary);
}

.favorite-button {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	align-items: center;
	justify-content: center;
	padding: 8px;
	cursor: pointer;
	color: #444;
	border: 0;
	border-radius: 50%;
	background: #f3f3f3;
}

.favorite-button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.favorite-button:hover,
.favorite-button--active {
	color: var(--accent);
	background: #fff0f2;
}

.property-card__price {
	margin-top: 12px;
	font-size: 22px;
	font-weight: 800;
}

.property-card__currency {
	font-size: 18px;
}

.property-card__params {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 9px;
}

.property-card__params span {
	padding: 5px 8px;
	border-radius: 7px;
	background: var(--surface-secondary);
	color: #444;
	font-size: 13px;
	font-weight: 600;
}

.property-card__address {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 13px;
	color: var(--text-secondary);
	font-size: 14px;
}

.property-card__address svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	margin-top: 2px;
	fill: currentColor;
}

.property-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 13px;
	border-top: 1px solid var(--border);
}

.property-card__date {
	color: var(--text-secondary);
	font-size: 13px;
}

.property-card__more {
	color: var(--primary);
	font-size: 14px;
	font-weight: 700;
}

.news-grid--list {
	grid-template-columns: 1fr;
}

.news-grid--list .property-card {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
}

.news-grid--list .property-card__image {
	height: 100%;
	aspect-ratio: auto;
}

/* =========================================================
   Полная публикация
   ========================================================= */

.property-full {
	display: block;
	margin: 24px 0 60px;
	overflow: visible;
}

.property-full,
.property-full__header,
.property-full__layout,
.property-full__main,
.property-full__heading,
.property-description,
.property-location {
	min-width: 0;
	max-width: 100%;
}

.property-full__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.property-full__heading {
	flex: 1 1 auto;
}

.property-full__heading h1 {
	margin: 0 0 10px;
	font-size: clamp(27px, 4vw, 42px);
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.property-full__address {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	color: var(--text-secondary);
	overflow-wrap: anywhere;
}

.property-full__address svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: currentColor;
}

.favorite-button--large {
	display: inline-flex;
	width: auto;
	height: 44px;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 0 15px;
	border-radius: 12px;
	font-weight: 700;
}

.favorite-button--large svg {
	width: 22px;
	height: 22px;
}

.property-full__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 28px;
	width: 100%;
}

.property-full__main {
	width: 100%;
}

.property-gallery {
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: #eee;
}

.property-gallery img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

.property-specifications {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.property-specification {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 16px;
	overflow-wrap: anywhere;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: #fff;
}

.property-specification span {
	color: var(--text-secondary);
	font-size: 13px;
}

.property-specification strong {
	margin-top: 3px;
	font-size: 18px;
}

.property-description,
.property-location {
	width: 100%;
	margin-top: 24px;
	padding: 24px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	overflow-wrap: anywhere;
}

.property-description h2,
.property-location h2 {
	margin: 0 0 18px;
	font-size: 24px;
}

.property-description p {
	margin: 0 0 16px;
}

.property-description ul,
.property-description ol {
	padding-left: 24px;
}

.property-description img,
.property-description video,
.property-description iframe {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 16px 0;
}

.property-description table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.property-description pre,
.property-description code {
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.property-location > p {
	margin: 0;
	overflow-wrap: anywhere;
}

.property-location__map {
	width: 100%;
	height: 430px;
	margin-top: 18px;
	overflow: hidden;
	border-radius: var(--radius-small);
	background: #e8edf0;
}

.property-location__map > div,
.property-location__map > iframe {
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	border: 0;
}

.property-sidebar {
	position: sticky;
	top: 96px;
	min-width: 0;
}

.property-price-box {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.property-full__price {
	overflow-wrap: anywhere;
	font-size: 30px;
	font-weight: 800;
}

.property-price-note {
	margin-top: 3px;
	color: var(--text-secondary);
	font-size: 14px;
}

.property-contact-button,
.property-message-button {
	display: flex;
	width: 100%;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	padding: 12px;
	cursor: pointer;
	border: 0;
	border-radius: 12px;
	font-weight: 700;
	text-align: center;
}

.property-contact-button {
	color: #fff;
	background: var(--primary);
}

.property-contact-button:hover {
	background: var(--primary-hover);
}

.property-message-button {
	margin-top: 10px;
	color: var(--primary);
	background: #edf9ff;
}

.property-published {
	margin-top: 18px;
	color: var(--text-secondary);
	font-size: 13px;
	text-align: center;
}

.property-tags {
	width: 100%;
	min-width: 0;
	margin-top: 20px;
	padding: 16px;
	overflow-wrap: anywhere;
	border-radius: var(--radius-small);
	background: #fff;
}

/* =========================================================
   Комментарии
   ========================================================= */

.property-comments {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin-top: 24px;
	clear: both;
	overflow: hidden;
}

.property-comments form,
#dle-comments-form {
	width: 100%;
	max-width: 100%;
	margin-top: 24px;
}

.property-comments input,
.property-comments textarea,
.property-comments select,
#dle-comments-form input,
#dle-comments-form textarea,
#dle-comments-form select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.property-comments textarea,
#dle-comments-form textarea {
	min-height: 120px;
	resize: vertical;
}

/* =========================================================
   Пагинация
   ========================================================= */

.pagination {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.pagination__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
}

.pagination a:hover,
.pagination .navigation {
	color: #fff;
	background: var(--primary);
}

/* =========================================================
   Подвал
   ========================================================= */

.site-footer {
	padding: 44px 0 22px;
	color: #d9d9d9;
	background: #181818;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
}

.site-logo--footer {
	color: #fff;
}

.footer-about p {
	max-width: 420px;
	margin: 16px 0 0;
	color: #999;
}

.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-menu strong {
	margin-bottom: 6px;
	color: #fff;
}

.footer-menu a {
	color: #aaa;
}

.footer-menu a:hover {
	color: #fff;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid #333;
	color: #777;
	font-size: 13px;
}

/* =========================================================
   Страница добавления объявления
   ========================================================= */

.add-property-page {
	display: block !important;
	width: 100% !important;
	max-width: 1100px !important;
	min-width: 0 !important;
	margin: 32px auto 72px;
}

.add-property-page__intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 24px;
	padding: clamp(24px, 4vw, 38px);
	overflow: hidden;
	border: 1px solid #e3ebf3;
	border-radius: 24px;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 170, 255, .14), transparent 34%),
		linear-gradient(135deg, #fff 0%, #f5fbff 100%);
	box-shadow: 0 14px 42px rgba(25, 55, 90, .07);
}

.add-property-page__intro-content {
	min-width: 0;
}

.add-property-page__eyebrow {
	margin-bottom: 9px;
	color: var(--primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.add-property-page__intro h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 5vw, 44px);
	line-height: 1.08;
	letter-spacing: -.03em;
}

.add-property-page__intro p {
	max-width: 600px;
	margin: 0;
	color: var(--text-secondary);
	font-size: 16px;
}

.add-property-page__intro-icon {
	display: grid;
	width: 76px;
	height: 76px;
	flex: 0 0 76px;
	place-items: center;
	color: #fff;
	border-radius: 24px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 14px 28px rgba(0, 170, 255, .28);
	font-size: 42px;
	font-weight: 300;
	line-height: 1;
}

.add-property-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.add-property-card {
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid #e3eaf1;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(25, 55, 90, .055);
}

.add-property-card__heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 25px;
}

.add-property-card__number {
	display: grid;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	place-items: center;
	color: var(--primary);
	border-radius: 13px;
	background: #eaf8ff;
	font-size: 12px;
	font-weight: 800;
}

.add-property-card__heading h2 {
	margin: 0 0 4px;
	color: #172333;
	font-size: clamp(19px, 3vw, 23px);
	line-height: 1.2;
}

.add-property-card__heading p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.45;
}

.add-property-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.add-property-field:last-child {
	margin-bottom: 0;
}

.add-property-field--wide {
	grid-column: 1 / -1;
}

.add-property-field label,
.add-property-captcha__input label,
.xfieldscolleft {
	color: #253143;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.add-property-required {
	color: #ef4054;
}

.add-property-input,
.add-property-textarea,
.add-property-fields--xfields input[type="text"],
.add-property-fields--xfields input[type="number"],
.add-property-fields--xfields input[type="email"],
.add-property-fields--xfields input[type="tel"],
.add-property-fields--xfields input[type="url"],
.add-property-fields--xfields input[type="date"],
.add-property-fields--xfields select,
.add-property-fields--xfields textarea {
	display: block;
	width: 100%;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #d9e2eb;
	border-radius: 13px;
	outline: none;
	background: #fff;
	color: var(--text);
	font: inherit;
	line-height: 1.35;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		background-color .2s ease;
}

.add-property-input:hover,
.add-property-textarea:hover,
.add-property-fields--xfields input:hover,
.add-property-fields--xfields select:hover,
.add-property-fields--xfields textarea:hover {
	border-color: #b9cbd9;
}

.add-property-input:focus,
.add-property-textarea:focus,
.add-property-fields--xfields input:focus,
.add-property-fields--xfields select:focus,
.add-property-fields--xfields textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(0, 170, 255, .13);
}

.add-property-input::placeholder,
.add-property-textarea::placeholder {
	color: #9aa8b5;
	opacity: 1;
}

.add-property-textarea {
	min-height: 190px;
	resize: vertical;
	line-height: 1.6;
}

.add-property-textarea--short {
	min-height: 112px;
}

.add-property-help,
.xfieldsnote {
	color: #7c8996;
	font-size: 12px;
	line-height: 1.45;
}

/* Поля xfields */

.add-property-fields--xfields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 20px;
}

.add-property-fields--xfields .xfieldsrow {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.add-property-fields--xfields .xfieldscolleft {
	width: auto !important;
	padding: 0 !important;
}

.add-property-fields--xfields .xfieldscolright {
	width: 100% !important;
	min-width: 0;
	padding: 0 !important;
}

.add-property-fields--xfields .xfieldsrow.xf_image {
	grid-column: 1 / -1;
	padding: 22px !important;
	border: 1px dashed #aebfce !important;
	border-radius: 17px;
	background: linear-gradient(135deg, #f8fcff, #f4f9fc);
}

.add-property-fields--xfields .xfieldsrow.xf_image .xfieldscolleft {
	margin-bottom: 2px;
	color: #1c2b3b;
	font-size: 16px;
}

.add-property-fields--xfields .qq-upload-button,
.add-property-fields--xfields .btn-green {
	display: inline-flex !important;
	width: auto !important;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 11px 18px !important;
	cursor: pointer;
	color: #fff !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: var(--primary) !important;
	font-size: 14px !important;
	font-weight: 700;
	transition:
		background .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.add-property-fields--xfields .qq-upload-button:hover,
.add-property-fields--xfields .btn-green:hover {
	background: var(--primary-hover) !important;
	box-shadow: 0 8px 18px rgba(0, 170, 255, .22);
	transform: translateY(-1px);
}

.add-property-fields--xfields br {
	display: none;
}

/* =========================================================
   Кастомный список категорий DLE
   ========================================================= */

.add-property-category {
	position: relative;
	width: 100%;
}

/*
 * Скрываем системный select DLE.
 * Его name="catlist[]" сохраняется для отправки формы.
 */
.add-property-category > select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.property-category__button {
	display: flex;
	width: 100%;
	min-height: 54px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	cursor: pointer;
	color: #172333;
	border: 1px solid #d9e2eb;
	border-radius: 13px;
	outline: none;
	background: #fff;
	font: inherit;
	font-weight: 500;
	text-align: left;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		background-color .2s ease;
}

.property-category__button:hover {
	border-color: #aebfce;
	background: #fbfdff;
}

.property-category__button:focus-visible,
.add-property-category.is-open .property-category__button {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(0, 170, 255, .14);
}

.property-category__value {
	min-width: 0;
	overflow: hidden;
	color: #172333;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.property-category__value.is-placeholder {
	color: #9aa8b5;
}

.property-category__button svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: #617181;
	transition: transform .2s ease;
}

.add-property-category.is-open .property-category__button svg {
	transform: rotate(180deg);
}

.property-category__dropdown {
	position: absolute;
	z-index: 100;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	max-height: 280px;
	overflow-y: auto;
	padding: 7px;
	border: 1px solid #d9e2eb;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 35px rgba(25, 55, 90, .16);
}

.property-category__dropdown[hidden] {
	display: none !important;
}

.property-category__option {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 11px;
	padding: 12px 11px;
	cursor: pointer;
	border-radius: 9px;
	color: #253143;
	font-size: 14px;
	line-height: 1.35;
	transition:
		background-color .15s ease,
		color .15s ease;
}

.property-category__option:hover {
	background: #edf9ff;
	color: #008ed0;
}

.property-category__option input {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	margin: 0;
	cursor: pointer;
	accent-color: var(--primary);
}

.property-category__option-text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.property-category__option--child {
	padding-left: 34px;
	color: #5f6d7b;
	font-size: 13px;
}

.property-category__option--parent {
	font-weight: 700;
}

/* =========================================================
   Капча
   ========================================================= */

.add-property-captcha {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
}

.add-property-captcha__image {
	padding: 9px;
	border: 1px solid #dce5ed;
	border-radius: 13px;
	background: #f7fafc;
}

.add-property-captcha__image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.add-property-captcha__input {
	display: flex;
	min-width: 220px;
	flex: 1 1 240px;
	flex-direction: column;
	gap: 8px;
}

/* =========================================================
   Кнопка отправки
   ========================================================= */

.add-property-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 5px 2px;
}

.add-property-submit__note {
	color: var(--text-secondary);
	font-size: 13px;
}

.add-property-submit__button {
	display: inline-flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 24px;
	cursor: pointer;
	color: #fff;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 10px 22px rgba(0, 170, 255, .23);
	font-weight: 800;
	transition:
		background .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.add-property-submit__button:hover {
	background: linear-gradient(135deg, #009be8, #007fbd);
	box-shadow: 0 13px 28px rgba(0, 170, 255, .3);
	transform: translateY(-2px);
}

.add-property-submit__button:active {
	transform: translateY(0);
}

.add-property-submit__button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* =========================================================
   Планшеты
   ========================================================= */

@media (max-width: 1100px) {
	.main-menu {
		display: none;
	}

	.header-actions {
		margin-left: auto;
	}

	.mobile-menu-button {
		display: block;
	}

	.property-search {
		grid-template-columns: 1fr 1fr;
	}

	.search-field {
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.search-button {
		min-height: 52px;
	}

	.category-grid,
	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.property-full__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.add-property-page {
		max-width: 980px !important;
	}
}

/* =========================================================
   Мобильные устройства
   ========================================================= */

@media (max-width: 760px) {
	.container {
		width: min(calc(100% - 22px), var(--container));
	}

	.header-container {
		min-height: 62px;
		gap: 10px;
	}

	.site-logo__text,
	.login-button {
		display: none;
	}

	.add-button {
		padding: 10px 12px;
		font-size: 13px;
	}

	.add-button__plus {
		display: none;
	}

	.hero-section {
		padding-top: 24px;
	}

	.hero-heading p {
		font-size: 15px;
	}

	.property-search {
		grid-template-columns: 1fr;
		padding: 8px;
		border-width: 1px;
	}

	.search-field {
		padding: 8px 10px;
	}

	.search-field input,
	.search-field select {
		height: 35px;
	}

	.map-section {
		padding-top: 18px;
	}

	.map-heading,
	.section-title {
		align-items: flex-start;
	}

	.map-heading p,
	.section-title p {
		display: none;
	}

	.map-heading h2,
	.section-title h2 {
		font-size: 22px;
	}

	.map-expand-button {
		padding: 8px 10px;
		font-size: 13px;
	}

	.property-map {
		height: 420px;
		border-radius: 14px;
	}

	.category-grid,
	.news-grid {
		grid-template-columns: 1fr;
	}

	.category-card {
		padding: 14px;
	}

	.content-layout {
		padding-top: 28px;
	}

	.view-switcher {
		display: none;
	}

	.news-grid--list .property-card {
		display: block;
	}

	.property-full {
		margin-top: 16px;
	}

	.property-full__header {
		flex-direction: column;
		gap: 16px;
	}

	.property-full__heading {
		width: 100%;
	}

	.property-full__heading h1 {
		font-size: clamp(25px, 8vw, 36px);
	}

	.favorite-button--large {
		width: 100%;
		justify-content: center;
	}

	.property-full__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.property-sidebar {
		position: static;
		order: -1;
	}

	.property-specifications {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.property-description,
	.property-location {
		padding: 18px;
	}

	.property-description h2,
	.property-location h2 {
		font-size: 21px;
	}

	.property-location__map {
		height: 350px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 5px;
	}

	.breadcrumbs {
		margin-top: 16px;
		font-size: 13px;
	}

	.add-property-page {
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 18px;
		margin-bottom: 42px;
	}

	.add-property-page__intro {
		align-items: flex-start;
		gap: 18px;
		border-radius: 19px;
	}

	.add-property-page__intro-icon {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
		border-radius: 16px;
		font-size: 30px;
	}

	.add-property-page__intro p {
		font-size: 14px;
	}

	.add-property-card {
		border-radius: 18px;
	}

	.add-property-fields--xfields {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.add-property-fields--xfields .xfieldsrow.xf_image {
		grid-column: auto;
		padding: 18px !important;
	}

	.add-property-submit {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.add-property-submit__button {
		width: 100%;
	}
}

/* =========================================================
   Маленькие телефоны
   ========================================================= */

@media (max-width: 480px) {
	.add-button span:last-child {
		font-size: 12px;
	}

	.property-map {
		height: 360px;
	}

	.property-card__body {
		padding: 14px;
	}

	.property-specifications {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.property-specification {
		padding: 12px;
	}

	.property-description,
	.property-location {
		padding: 14px;
	}

	.property-price-box {
		padding: 18px;
	}

	.property-full__price {
		font-size: 26px;
	}

	.add-property-page {
		margin-top: 12px;
		margin-bottom: 30px;
	}

	.add-property-page__intro {
		padding: 20px;
	}

	.add-property-page__intro-icon {
		display: none;
	}

	.add-property-card {
		padding: 18px 16px;
	}

	.add-property-card__heading {
		gap: 11px;
		margin-bottom: 20px;
	}

	.add-property-card__number {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
		border-radius: 10px;
	}

	.add-property-card__heading h2 {
		font-size: 18px;
	}

	.add-property-card__heading p {
		font-size: 13px;
	}

	.add-property-input,
	.add-property-textarea,
	.add-property-fields--xfields input,
	.add-property-fields--xfields select,
	.add-property-fields--xfields textarea {
		padding: 13px 14px;
		border-radius: 11px;
	}

	.add-property-captcha {
		align-items: stretch;
		flex-direction: column;
	}

	.add-property-captcha__input {
		min-width: 0;
		flex-basis: auto;
	}

	.add-property-submit__button {
		min-height: 52px;
		padding: 13px 18px;
	}

	.property-category__dropdown {
		max-height: 250px;
	}

	.property-category__button {
		min-height: 52px;
	}
}

/* =========================================================
   Уменьшение анимации
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* =========================================================
   Безопасное оформление загрузчика DLE / Plupload
   ========================================================= */

#xfield_holder_poster {
	width: 100%;
}

#xfield_holder_poster .xfieldscolright {
	width: 100% !important;
	min-width: 0;
}

#xfupload_poster {
	display: block;
	width: 100%;
	min-width: 0;
}

#xfupload_poster .qq-uploader {
	display: block;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

#xfupload_poster .qq-upload-button,
#upload_button_poster {
	display: inline-flex !important;
	width: auto !important;
	min-width: 210px;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px !important;
	cursor: pointer !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: linear-gradient(135deg, #00aaff, #008ed0) !important;
	box-shadow: 0 8px 18px rgba(0, 170, 255, .18) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-align: center;
	transition:
		background .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

#xfupload_poster .qq-upload-button:hover,
#upload_button_poster:hover {
	background: linear-gradient(135deg, #009be8, #007fbd) !important;
	box-shadow: 0 11px 24px rgba(0, 170, 255, .28) !important;
	transform: translateY(-1px);
}

#xfupload_poster .qq-upload-button:active,
#upload_button_poster:active {
	transform: translateY(0);
}

/*
 * Не изменяем position, размеры и z-index
 * служебных элементов Plupload.
 */
#xfupload_poster .moxie-shim {
	cursor: pointer !important;
}

#uploadedfile_poster {
	width: 100%;
	margin-bottom: 12px;
}

#uploadedfile_poster:empty {
	display: none;
}

#uploadedfile_poster img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

#xfield_holder_poster .xfieldsnote {
	margin-top: 10px;
}

@media (max-width: 480px) {
	#xfupload_poster .qq-upload-button,
	#upload_button_poster {
		width: 100% !important;
		min-width: 0;
	}
}

/* =========================================================
   Автоматическое определение координат адреса
   ========================================================= */

.address-geocoder-status {
	margin-top: 8px;
	color: #7c8996;
	font-size: 12px;
	line-height: 1.45;
}

.address-geocoder-status--loading {
	color: #7c8996;
}

.address-geocoder-status--success {
	color: #02a875;
}

.address-geocoder-status--error {
	color: #e04454;
}

/* Заполняются автоматически, доступны для ручного исправления */
#xf_map_lat,
#xf_map_lng {
	background: #f8fbfd;
}
/* =========================================================
   Дополнительные фотографии объекта — DLE галерея
   ========================================================= */

#xfield_holder_gallery {
	grid-column: 1 / -1;
	padding: 22px !important;
	border: 1px dashed #aebfce !important;
	border-radius: 17px;
	background: linear-gradient(135deg, #f8fcff, #f4f9fc);
}

#xfield_holder_gallery .xfieldscolleft {
	margin-bottom: 2px;
	color: #1c2b3b;
	font-size: 16px;
	font-weight: 700;
}

#xfield_holder_gallery .xfieldscolright {
	width: 100% !important;
}

#xfupload_gallery,
#xfupload_gallery .qq-uploader {
	width: 100%;
	min-width: 0;
}

#xfupload_gallery .qq-upload-button,
#upload_button_gallery {
	display: inline-flex !important;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px !important;
	cursor: pointer;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: linear-gradient(135deg, #00aaff, #008ed0) !important;
	box-shadow: 0 8px 18px rgba(0, 170, 255, .18);
	font-size: 14px !important;
	font-weight: 700;
}

#xfupload_gallery .qq-upload-button:hover,
#upload_button_gallery:hover {
	background: linear-gradient(135deg, #009be8, #007fbd) !important;
}

/* Сетка загруженных дополнительных фотографий */
#uploadedfile_gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
	width: 100%;
	margin: 14px 0;
}

#uploadedfile_gallery .uploadedfile {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #dbe5ed;
	border-radius: 12px;
	background: #ffffff;
}

#uploadedfile_gallery .uploadedfile img {
	display: block;
	width: 100%;
	height: 115px;
	object-fit: cover;
}

@media (max-width: 480px) {
	#xfield_holder_gallery {
		padding: 18px !important;
	}

	#xfupload_gallery .qq-upload-button,
	#upload_button_gallery {
		width: 100%;
	}

	#uploadedfile_gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}
}

/* =========================================================
   Фото и галерея на странице полного объявления
   ========================================================= */

.property-full__eyebrow {
	margin-bottom: 8px;
	color: var(--primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.property-media {
	width: 100%;
}

.property-gallery--main {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	cursor: zoom-in;
	border: 0;
	border-radius: var(--radius);
	background: #edf1f4;
}

.property-gallery--main img {
	display: block;
	width: 100%;
	min-height: 300px;
	max-height: 680px;
	object-fit: cover;
	transition: transform .35s ease;
}

.property-gallery--main:hover img {
	transform: scale(1.025);
}

.property-gallery__zoom {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	color: #fff;
	border-radius: 10px;
	background: rgba(15, 27, 40, .75);
	backdrop-filter: blur(8px);
	font-size: 13px;
	font-weight: 700;
}

.property-gallery__zoom svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.property-gallery--placeholder {
	display: flex;
	min-height: 360px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #7a8895;
	border: 1px solid #dbe4eb;
	border-radius: var(--radius);
	background: #f7fafc;
	font-size: 15px;
}

.property-gallery--placeholder svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

/* Краткое описание */

.property-short-description {
	margin-top: 22px;
	padding: 18px 20px;
	border-left: 4px solid var(--primary);
	border-radius: 0 13px 13px 0;
	background: #edf9ff;
	color: #304152;
	font-size: 16px;
	line-height: 1.65;
}

.property-short-description p {
	margin: 0;
}

/* Блок дополнительных фото */

.property-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.property-section-heading h2 {
	margin: 0 0 4px;
	color: #172333;
	font-size: 24px;
	line-height: 1.2;
}

.property-section-heading p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 14px;
}

.property-gallery-more__count {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	color: #087eb5;
	border-radius: 999px;
	background: #eaf8ff;
	font-size: 12px;
	font-weight: 800;
}

.property-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.property-gallery-grid__item {
	position: relative;
	display: block;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	cursor: zoom-in;
	border: 0;
	border-radius: 13px;
	background: #edf1f4;
	aspect-ratio: 4 / 3;
}

.property-gallery-grid__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.property-gallery-grid__item:hover img {
	transform: scale(1.06);
}

.property-gallery-grid__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	opacity: 0;
	color: #fff;
	background: rgba(0, 114, 178, .35);
	place-items: center;
	transition: opacity .2s ease;
}

.property-gallery-grid__item:hover .property-gallery-grid__overlay,
.property-gallery-grid__item:focus-visible .property-gallery-grid__overlay {
	opacity: 1;
}

.property-gallery-grid__overlay svg {
	width: 34px;
	height: 34px;
	fill: currentColor;
}

/* Цена и кнопки */

.property-price-box__label {
	margin-bottom: 5px;
	color: #7c8996;
	font-size: 13px;
	font-weight: 700;
}

.property-full__price--empty {
	font-size: 24px;
}

.property-sidebar__divider {
	height: 1px;
	margin: 20px 0 2px;
	background: #e6edf2;
}

.property-contact-button svg,
.property-message-button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.property-published {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.property-published svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* =========================================================
   Просмотр всех фотографий объекта — как в объявлениях
   ========================================================= */

body.property-viewer-open {
	overflow: hidden;
}

.property-viewer[hidden] {
	display: none !important;
}

.property-viewer {
	position: fixed;
	z-index: 10050;
	inset: 0;
	display: grid;
	padding: 26px;
	place-items: center;
}

.property-viewer__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	cursor: zoom-out;
	border: 0;
	background: rgba(8, 15, 23, .94);
}

.property-viewer__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 58px;
	grid-template-rows: minmax(0, 1fr) auto;
	width: min(1220px, 100%);
	max-height: calc(100dvh - 52px);
	align-items: center;
	gap: 14px 18px;
}

.property-viewer__figure {
	position: relative;
	display: flex;
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	height: min(74vh, 780px);
	max-height: calc(100dvh - 170px);
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	background: #111c26;
}

.property-viewer__image {
	display: block;
	width: 100%;
	height: 100%;
	user-select: none;
	object-fit: contain;
}

.property-viewer__close,
.property-viewer__arrow {
	display: grid;
	padding: 0;
	cursor: pointer;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .2);
	background: rgba(255, 255, 255, .12);
	backdrop-filter: blur(8px);
	place-items: center;
	transition:
		background .2s ease,
		transform .2s ease;
}

.property-viewer__close:hover,
.property-viewer__arrow:hover {
	background: var(--primary);
	transform: scale(1.05);
}

.property-viewer__close {
	position: absolute;
	z-index: 3;
	top: -14px;
	right: -14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 32px;
	line-height: 1;
}

.property-viewer__close span {
	display: block;
	margin-top: -4px;
}

.property-viewer__arrow {
	z-index: 2;
	width: 52px;
	height: 52px;
	border-radius: 50%;
}

.property-viewer__arrow:disabled {
	cursor: default;
	opacity: .35;
}

.property-viewer__arrow:disabled:hover {
	background: rgba(255, 255, 255, .12);
	transform: none;
}

.property-viewer__arrow svg {
	width: 29px;
	height: 29px;
	fill: currentColor;
}

.property-viewer__arrow--prev {
	grid-column: 1;
	grid-row: 1;
}

.property-viewer__arrow--next {
	grid-column: 3;
	grid-row: 1;
}

.property-viewer__counter {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	gap: 6px;
	padding: 7px 11px;
	color: #fff;
	border-radius: 8px;
	background: rgba(0, 0, 0, .58);
	font-size: 13px;
	font-weight: 700;
}

.property-viewer__thumbs {
	display: flex;
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
	max-width: 900px;
	min-height: 72px;
	gap: 9px;
	margin: 0 auto;
	padding: 3px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.property-viewer__thumb {
	width: 92px;
	height: 68px;
	flex: 0 0 92px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	opacity: .62;
	border: 2px solid transparent;
	border-radius: 9px;
	background: #172333;
	transition:
		opacity .2s ease,
		border-color .2s ease,
		transform .2s ease;
}

.property-viewer__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.property-viewer__thumb.is-active {
	opacity: 1;
	border-color: var(--primary);
}

.property-viewer__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.property-gallery--main > a {
	cursor: zoom-in;
}

/* Указатель, что дополнительные фото можно открыть */
.property-gallery-grid .xfieldimagegallery li {
	cursor: zoom-in;
}

@media (max-width: 760px) {
	.property-viewer {
		padding: 12px;
	}

	.property-viewer__dialog {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 10px;
		max-height: calc(100dvh - 24px);
	}

	.property-viewer__figure {
		height: min(67vh, 600px);
		max-height: calc(100dvh - 145px);
		border-radius: 10px;
	}

	.property-viewer__arrow {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.property-viewer__arrow svg {
		width: 25px;
		height: 25px;
	}

	.property-viewer__close {
		top: 7px;
		right: 7px;
		width: 39px;
		height: 39px;
		font-size: 28px;
	}

	.property-viewer__counter {
		right: 9px;
		bottom: 9px;
		padding: 6px 9px;
		font-size: 12px;
	}

	.property-viewer__thumbs {
		min-height: 59px;
		gap: 7px;
	}

	.property-viewer__thumb {
		width: 76px;
		height: 56px;
		flex-basis: 76px;
		border-radius: 7px;
	}
}

@media (max-width: 420px) {
	.property-viewer__dialog {
		grid-template-columns: 38px minmax(0, 1fr) 38px;
		gap: 5px;
	}

	.property-viewer__arrow {
		width: 36px;
		height: 42px;
		border-radius: 9px;
	}

	.property-viewer__arrow svg {
		width: 23px;
		height: 23px;
	}

	.property-viewer__figure {
		height: min(61vh, 500px);
	}

	.property-viewer__thumb {
		width: 64px;
		height: 48px;
		flex-basis: 64px;
	}
}

/* =========================================================
   Красивый блок галереи полной новости
   ========================================================= */

.property-gallery-more {
	position: relative;
	width: 100%;
	margin-top: 26px;
	padding: 0;
	overflow: hidden;
	border: 1px solid #dce8f0;
	border-radius: 20px;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 170, 255, .12), transparent 32%),
		linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
	box-shadow: 0 10px 28px rgba(25, 55, 90, .06);
}

/* Верхняя тонкая акцентная линия */
.property-gallery-more::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(90deg, #00aaff 0%, #42c8ff 48%, #b5ecff 100%);
}

.property-gallery-more__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 25px 25px 20px;
	border-bottom: 1px solid #e4edf3;
}

.property-gallery-more__title {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 13px;
}

.property-gallery-more__icon {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	color: #078dc9;
	border: 1px solid #ccecfb;
	border-radius: 15px;
	background: linear-gradient(135deg, #eaf9ff, #d9f3ff);
	box-shadow: 0 7px 15px rgba(0, 170, 255, .11);
	place-items: center;
}

.property-gallery-more__icon svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.property-gallery-more__title h2 {
	margin: 0 0 3px;
	color: #172333;
	font-size: clamp(20px, 2.3vw, 25px);
	line-height: 1.2;
	letter-spacing: -.02em;
}

.property-gallery-more__title p {
	margin: 0;
	color: #718091;
	font-size: 13px;
	line-height: 1.4;
}

.property-gallery-more__badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 8px 12px;
	color: #087eb5;
	border: 1px solid #c9ecfb;
	border-radius: 999px;
	background: #effaff;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.property-gallery-more__badge svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Внутренние отступы области с фотографиями */
.property-gallery-more .property-gallery-grid {
	padding: 18px 25px 25px;
}

/* Сетка картинок, которую генерирует DLE */
.property-gallery-more .property-gallery-grid .xfieldimagegallery {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.property-gallery-more .property-gallery-grid .xfieldimagegallery li {
	position: relative;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	cursor: zoom-in;
	border: 1px solid #d9e7ef;
	border-radius: 14px;
	background: #edf3f6;
	aspect-ratio: 4 / 3;
	box-shadow: 0 4px 10px rgba(22, 52, 75, .05);
	transition:
		transform .23s ease,
		border-color .23s ease,
		box-shadow .23s ease;
}

/* Затемнение и иконка при наведении */
.property-gallery-more .property-gallery-grid .xfieldimagegallery li::after {
	position: absolute;
	inset: 0;
	content: "";
	opacity: 0;
	background:
		linear-gradient(rgba(0, 141, 208, .08), rgba(0, 99, 150, .38)),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16a6.47 6.47 0 0 0 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14Z'/%3E%3C/svg%3E") center / 34px no-repeat;
	pointer-events: none;
	transition: opacity .22s ease;
}

.property-gallery-more .property-gallery-grid .xfieldimagegallery li:hover {
	z-index: 1;
	border-color: #75cef3;
	box-shadow: 0 12px 20px rgba(0, 128, 190, .18);
	transform: translateY(-3px);
}

.property-gallery-more .property-gallery-grid .xfieldimagegallery li:hover::after {
	opacity: 1;
}

.property-gallery-more .property-gallery-grid .xfieldimagegallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.property-gallery-more .property-gallery-grid .xfieldimagegallery li:hover img {
	transform: scale(1.07);
}

/* Планшеты */
@media (max-width: 900px) {
	.property-gallery-more .property-gallery-grid .xfieldimagegallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

/* Телефоны */
@media (max-width: 760px) {
	.property-gallery-more {
		border-radius: 17px;
	}

	.property-gallery-more__header {
		align-items: flex-start;
		padding: 20px 18px 17px;
	}

	.property-gallery-more__icon {
		width: 43px;
		height: 43px;
		flex-basis: 43px;
		border-radius: 13px;
	}

	.property-gallery-more__icon svg {
		width: 23px;
		height: 23px;
	}

	.property-gallery-more__title h2 {
		font-size: 20px;
	}

	.property-gallery-more__title p {
		font-size: 12px;
	}

	.property-gallery-more__badge {
		min-height: 32px;
		padding: 6px 9px;
		font-size: 12px;
	}

	.property-gallery-more__badge svg {
		display: none;
	}

	.property-gallery-more .property-gallery-grid {
		padding: 14px 18px 18px;
	}

	.property-gallery-more .property-gallery-grid .xfieldimagegallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
	}

	.property-gallery-more .property-gallery-grid .xfieldimagegallery li {
		border-radius: 11px;
	}
}

/* Очень маленькие экраны */
@media (max-width: 390px) {
	.property-gallery-more__header {
		flex-direction: column;
		gap: 12px;
	}

	.property-gallery-more__badge {
		margin-left: 56px;
	}

	.property-gallery-more .property-gallery-grid {
		padding: 12px;
	}

	.property-gallery-more .property-gallery-grid .xfieldimagegallery {
		gap: 7px;
	}
}

/* Длинные значения характеристик: условия продажи и т.п. */

.property-specification--wide {
	grid-column: span 2;
}

.property-specification--wide strong {
	line-height: 1.35;
}

@media (max-width: 380px) {
	.property-specification--wide {
		grid-column: 1 / -1;
	}
}
#title {
	background: linear-gradient(135deg, #ffffff, #f4fbff);
}

#title:focus {
	background: #ffffff;
}
/* Главное изображение poster в карточках объявлений */

.property-card__image > a {
	display: block;
	width: 100%;
	height: 100%;
}

.property-card__image > a > img,
.property-card__image img.xfieldimage {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.property-card:hover .property-card__image > a > img,
.property-card:hover .property-card__image img.xfieldimage {
	transform: scale(1.035);
}

.property-card__placeholder {
	flex-direction: column;
	gap: 9px;
}

.property-card__placeholder svg {
	width: 32px;
	height: 32px;
	fill: currentColor;
}

/* Текущий объект на карте страницы объявления */

.dle-news-map-marker.dle-news-map-marker--current {
	background-color: #1677ff !important;
	border-color: #ffffff !important;
	box-shadow:
		0 0 0 5px rgba(22, 119, 255, .25),
		0 4px 12px rgba(10, 74, 170, .5) !important;
}

.dle-news-map-marker.dle-news-map-marker--current::after {
	background-color: #ffffff !important;
}

/* =========================================================
   Единый стиль информационных блоков страницы объекта
   ========================================================= */

.property-details-section,
.property-section-card {
	position: relative;
	margin-top: 28px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e8edf5;
	border-radius: 18px;
	box-shadow: 0 7px 25px rgba(22, 48, 84, .055);
}

/* Синяя полоса сверху, как у блока фотографий */
.property-details-section::before,
.property-section-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1677ff 0%, #45a3ff 100%);
}

/* Шапка каждого блока */
.property-section-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 26px 20px;
	border-bottom: 1px solid #edf1f6;
}

.property-section-card__title {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.property-section-card__icon {
	display: inline-flex;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: #1677ff;
	background: #edf5ff;
	border-radius: 12px;
}

.property-section-card__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.property-section-card__title h2 {
	margin: 0;
	color: #18283e;
	font-size: 21px;
	font-weight: 750;
	line-height: 1.2;
}

.property-section-card__title p {
	margin: 5px 0 0;
	color: #7c899b;
	font-size: 14px;
	line-height: 1.4;
}

/* Контент описания и комментариев */
.property-section-card__content {
	padding: 24px 26px 26px;
	color: #37465c;
	font-size: 16px;
	line-height: 1.7;
}

.property-section-card__content > :first-child {
	margin-top: 0;
}

.property-section-card__content > :last-child {
	margin-bottom: 0;
}

.property-section-card__content p {
	margin: 0 0 16px;
}

/* Характеристики объекта */
.property-details-section .property-specifications {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding: 20px 26px 26px;
}

.property-details-section .property-specification {
	min-height: 94px;
	padding: 17px 18px;
	background: linear-gradient(135deg, #f8fbff 0%, #f4f8fd 100%);
	border: 1px solid #e6eef8;
	border-radius: 13px;
	transition:
		transform .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
}

.property-details-section .property-specification:hover {
	border-color: #b9d7ff;
	box-shadow: 0 8px 18px rgba(22, 119, 255, .09);
	transform: translateY(-2px);
}

.property-details-section .property-specification span {
	display: block;
	margin-bottom: 7px;
	color: #79869a;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.property-details-section .property-specification strong {
	display: block;
	color: #21334d;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.4;
}

.property-details-section .property-specification--wide {
	grid-column: span 2;
}

/* Карта внутри карточки */
.property-location .property-location__map {
	padding: 20px 26px 26px;
}

.property-location .property-location__map #dle-news-map {
	height: 430px;
	margin: 0;
	border: 1px solid #dce8f5;
	border-radius: 14px;
}

/* Комментарии */
.property-comments .comments-tree,
.property-comments #dle-comments-form,
.property-comments .dle-comments-form {
	margin-top: 0;
}

/* Планшеты */
@media (max-width: 900px) {
	.property-details-section .property-specifications {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.property-details-section .property-specification--wide {
		grid-column: span 2;
	}
}

/* Телефоны */
@media (max-width: 600px) {
	.property-details-section,
	.property-section-card {
		margin-top: 20px;
		border-radius: 14px;
	}

	.property-section-card__header {
		padding: 18px 17px 16px;
	}

	.property-section-card__icon {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}

	.property-section-card__icon svg {
		width: 20px;
		height: 20px;
	}

	.property-section-card__title h2 {
		font-size: 18px;
	}

	.property-section-card__title p {
		font-size: 13px;
	}

	.property-section-card__content {
		padding: 18px 17px 20px;
		font-size: 15px;
		line-height: 1.65;
	}

	.property-details-section .property-specifications {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 16px 17px 18px;
	}

	.property-details-section .property-specification,
	.property-details-section .property-specification--wide {
		grid-column: auto;
		min-height: auto;
		padding: 14px 15px;
	}

	.property-location .property-location__map {
		padding: 16px 17px 18px;
	}

	.property-location .property-location__map #dle-news-map {
		height: 330px;
		border-radius: 11px;
	}
}

/* =========================================================
   Похожие объявления на странице объекта
   ========================================================= */

.property-related {
	margin-top: 28px;
}

.property-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	padding: 22px 26px 26px;
}

.property-related__all-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	color: #1677ff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}

.property-related__all-link:hover {
	color: #095ed8;
}

.property-related__all-link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	transition: transform .2s ease;
}

.property-related__all-link:hover svg {
	transform: translateX(3px);
}

/* Карточки немного компактнее, чем на главной */
.property-card--related .property-card__image {
	aspect-ratio: 1.42 / 1;
}

.property-card--related .property-card__body {
	padding: 16px;
}

.property-card--related .property-card__title {
	font-size: 16px;
}

.property-card--related .property-card__price {
	margin-top: 12px;
	font-size: 19px;
}

.property-card--related .property-card__params {
	margin-top: 11px;
	gap: 6px;
}

.property-card--related .property-card__address {
	margin-top: 12px;
	font-size: 13px;
}

.property-card--related .property-card__footer {
	margin-top: 14px;
	padding-top: 13px;
}

@media (max-width: 1050px) {
	.property-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.property-related {
		margin-top: 20px;
	}

	.property-related .property-section-card__header {
		align-items: flex-start;
	}

	.property-related__all-link {
		padding-top: 10px;
		font-size: 0;
	}

	.property-related__all-link svg {
		width: 22px;
		height: 22px;
	}

	.property-related__grid {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px 17px 18px;
	}

	.property-card--related .property-card__image {
		aspect-ratio: 1.6 / 1;
	}
}

/* =========================================================
   Главная страница — карточный стиль
   ========================================================= */

.hero-section {
	padding: 34px 0 18px;
	background:
		linear-gradient(180deg, #f6fbff 0%, #f5f5f5 100%);
}

.home-hero-card,
.home-section-card,
.home-listing-header {
	position: relative;
	overflow: hidden;
	border: 1px solid #dfeaf3;
	border-radius: 20px;
	background:
		radial-gradient(
			circle at 100% 0%,
			rgba(0, 170, 255, .12),
			transparent 31%
		),
		linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
	box-shadow: 0 10px 28px rgba(25, 55, 90, .06);
}

.home-hero-card::before,
.home-section-card::before,
.home-listing-header::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(
		90deg,
		#00aaff 0%,
		#42c8ff 48%,
		#b5ecff 100%
	);
}

/* ---------------------------------------------------------
   Карточка поиска
   --------------------------------------------------------- */

.home-hero-card {
	padding: clamp(24px, 4vw, 38px);
}

.home-hero-card__content {
	position: relative;
	z-index: 1;
}

.home-hero-card__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 11px;
	color: #078dc9;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.home-hero-card__eyebrow-icon {
	display: inline-grid;
	width: 24px;
	height: 24px;
	place-items: center;
	color: #078dc9;
	border-radius: 7px;
	background: #dff5ff;
}

.home-hero-card__eyebrow-icon svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.home-hero-card .hero-heading {
	margin-bottom: 26px;
}

.home-hero-card .hero-heading h1 {
	color: #172333;
	font-size: clamp(30px, 4.2vw, 46px);
	letter-spacing: -.035em;
}

.home-hero-card .hero-heading p {
	max-width: 650px;
	color: #6e7f90;
	font-size: 17px;
	line-height: 1.55;
}

/* Поисковая форма внутри hero-карточки */
.home-hero-card .property-search {
	position: relative;
	z-index: 1;
	border: 1px solid #cfe7f3;
	border-radius: 16px;
	box-shadow: 0 10px 24px rgba(30, 88, 128, .09);
}

.home-hero-card .search-field {
	padding-top: 6px;
	padding-bottom: 6px;
}

.home-hero-card .search-field input,
.home-hero-card .search-field select {
	font-weight: 600;
}

.home-hero-card .search-button {
	min-height: 52px;
	border-radius: 11px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 7px 14px rgba(0, 170, 255, .18);
	transition:
		transform .2s ease,
		box-shadow .2s ease,
		background .2s ease;
}

.home-hero-card .search-button:hover {
	background: linear-gradient(135deg, #009be8, #007fbd);
	box-shadow: 0 10px 20px rgba(0, 170, 255, .26);
	transform: translateY(-1px);
}

.home-hero-card__features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 20px;
	color: #647586;
	font-size: 13px;
	font-weight: 700;
}

.home-hero-card__features span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.home-hero-card__features svg {
	width: 17px;
	height: 17px;
	color: #0796d4;
	fill: currentColor;
}

/* ---------------------------------------------------------
   Общие карточки разделов главной
   --------------------------------------------------------- */

.map-section {
	padding: 18px 0;
	background: transparent;
}

.categories-section {
	padding: 10px 0 20px;
	background: transparent;
}

.home-section-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px 26px 20px;
	border-bottom: 1px solid #e4edf3;
}

.home-section-card__title,
.home-listing-header__title {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 13px;
}

.home-section-card__icon,
.home-listing-header__icon {
	display: inline-grid;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	color: #078dc9;
	border: 1px solid #ccecfb;
	border-radius: 14px;
	background: linear-gradient(135deg, #eaf9ff, #d9f3ff);
	box-shadow: 0 7px 15px rgba(0, 170, 255, .1);
	place-items: center;
}

.home-section-card__icon svg,
.home-listing-header__icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.home-section-card__title h2,
.home-listing-header__title h2 {
	margin: 0 0 4px;
	color: #172333;
	font-size: clamp(20px, 2.3vw, 25px);
	line-height: 1.2;
	letter-spacing: -.02em;
}

.home-section-card__title p,
.home-listing-header__title p {
	margin: 0;
	color: #718091;
	font-size: 14px;
	line-height: 1.4;
}

/* ---------------------------------------------------------
   Карта
   --------------------------------------------------------- */

.home-section-card--map {
	padding-bottom: 26px;
}

.home-section-card--map .property-map {
	width: auto;
	height: clamp(380px, 47vw, 590px);
	margin: 20px 26px 0;
	border: 1px solid #d8e7f0;
	border-radius: 15px;
	box-shadow: 0 5px 16px rgba(25, 55, 90, .05);
}

/* Убираем внутренние отступы карты, которые задаёт плагин */
.home-section-card--map .property-map #dle-news-map {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	border-radius: 14px;
}

.home-section-card--map .map-expand-button {
	flex: 0 0 auto;
	color: #087eb5;
	border-color: #c9ecfb;
	background: #effaff;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		transform .2s ease;
}

.home-section-card--map .map-expand-button:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
	transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Категории
   --------------------------------------------------------- */

.home-section-card--categories {
	padding-bottom: 25px;
}

.home-section-card--categories .category-grid {
	padding: 20px 26px 0;
}

.home-section-card--categories .category-card {
	position: relative;
	min-height: 92px;
	padding: 17px;
	border-color: #dce8ef;
	border-radius: 14px;
	background: linear-gradient(135deg, #ffffff, #f8fcff);
}

.home-section-card--categories .category-card:hover {
	border-color: #7acdef;
	box-shadow: 0 10px 21px rgba(0, 144, 211, .12);
	transform: translateY(-3px);
}

.home-section-card--categories .category-card__icon {
	border: 1px solid #d2edf9;
	background: linear-gradient(135deg, #effbff, #dff5ff);
}

.category-card__arrow {
	display: inline-grid;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	margin-left: auto;
	color: #6da6bf;
	border-radius: 50%;
	background: #edf8fd;
	place-items: center;
	transition:
		color .2s ease,
		background .2s ease,
		transform .2s ease;
}

.category-card__arrow svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.category-card:hover .category-card__arrow {
	color: #ffffff;
	background: #00aaff;
	transform: translateX(3px);
}

/* ---------------------------------------------------------
   Свежие объявления
   --------------------------------------------------------- */

.content-layout {
	padding-top: 22px;
}

.home-listing-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	padding: 19px 24px;
}

.home-listing-header .view-switcher {
	flex: 0 0 auto;
	border: 1px solid #dce8ef;
	background: #edf7fc;
}

.home-listing-header .view-button--active {
	color: #078dc9;
	box-shadow: 0 3px 10px rgba(0, 108, 162, .1);
}

/* Карточки объявлений на главной немного выразительнее */
.home-listing-header + .news-grid .property-card {
	border-color: #dfe8ef;
	box-shadow: 0 4px 13px rgba(25, 55, 90, .035);
}

.home-listing-header + .news-grid .property-card:hover {
	border-color: #b9e0f2;
	box-shadow: 0 13px 28px rgba(25, 55, 90, .12);
}

/* ---------------------------------------------------------
   Адаптация
   --------------------------------------------------------- */

@media (max-width: 1100px) {
	.home-hero-card .property-search {
		grid-template-columns: 1fr 1fr;
	}

	.home-hero-card .search-button {
		grid-column: span 2;
	}

	.home-section-card--categories .category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.hero-section {
		padding: 20px 0 10px;
	}

	.home-hero-card,
	.home-section-card,
	.home-listing-header {
		border-radius: 17px;
	}

	.home-hero-card {
		padding: 22px 18px 20px;
	}

	.home-hero-card .hero-heading {
		margin-bottom: 20px;
	}

	.home-hero-card .hero-heading h1 {
		font-size: 30px;
	}

	.home-hero-card .hero-heading p {
		font-size: 15px;
	}

	.home-hero-card .property-search {
		grid-template-columns: 1fr;
		border-radius: 13px;
	}

	.home-hero-card .search-button {
		grid-column: auto;
	}

	.home-hero-card__features {
		gap: 8px 14px;
		margin-top: 16px;
		font-size: 12px;
	}

	.map-section {
		padding: 12px 0;
	}

	.categories-section {
		padding: 8px 0 12px;
	}

	.home-section-card__header {
		align-items: flex-start;
		padding: 20px 18px 17px;
	}

	.home-section-card__icon,
	.home-listing-header__icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
		border-radius: 12px;
	}

	.home-section-card__icon svg,
	.home-listing-header__icon svg {
		width: 21px;
		height: 21px;
	}

	.home-section-card__title h2,
	.home-listing-header__title h2 {
		font-size: 20px;
	}

	.home-section-card__title p,
	.home-listing-header__title p {
		display: block;
		font-size: 12px;
	}

	.home-section-card--map {
		padding-bottom: 18px;
	}

	.home-section-card--map .property-map {
		height: 390px;
		margin: 16px 18px 0;
		border-radius: 12px;
	}

	.home-section-card--categories {
		padding-bottom: 18px;
	}

	.home-section-card--categories .category-grid {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 16px 18px 0;
	}

	.home-section-card--categories .category-card {
		min-height: 77px;
		padding: 13px;
	}

	.home-listing-header {
		margin-bottom: 16px;
		padding: 17px 18px;
	}

	.home-listing-header .view-switcher {
		display: none;
	}
}

@media (max-width: 480px) {
	.home-hero-card__features {
		display: grid;
		grid-template-columns: 1fr;
	}

	.home-section-card--map .property-map {
		height: 345px;
	}

	.home-section-card--map .map-expand-button {
		padding: 8px 10px;
		font-size: 12px;
	}
}

/* =========================================================
   Страница поиска недвижимости
   ========================================================= */

.property-search-page {
	width: 100%;
	max-width: 1100px;
	margin: 28px auto 60px;
}

.property-search-page__intro {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 22px;
	padding: clamp(23px, 4vw, 34px);
	overflow: hidden;
	border: 1px solid #dce9f2;
	border-radius: 21px;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 170, 255, .14), transparent 34%),
		linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
	box-shadow: 0 12px 32px rgba(25, 55, 90, .06);
}

.property-search-page__icon {
	display: grid;
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	color: #ffffff;
	border-radius: 18px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 10px 22px rgba(0, 170, 255, .24);
	place-items: center;
}

.property-search-page__icon svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.property-search-page__eyebrow {
	margin-bottom: 7px;
	color: #078dc9;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.property-search-page__intro h1 {
	margin: 0 0 7px;
	color: #172333;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.12;
	letter-spacing: -.03em;
}

.property-search-page__intro p {
	max-width: 650px;
	margin: 0;
	color: #718091;
	font-size: 15px;
	line-height: 1.55;
}

/* Основная карточка формы поиска */

.property-search-panel {
	position: relative;
	overflow: hidden;
	border: 1px solid #dfeaf2;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 9px 27px rgba(25, 55, 90, .055);
}

.property-search-panel::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(90deg, #00aaff, #42c8ff, #b5ecff);
}

.property-search-panel__header {
	padding: 24px 26px 20px;
	border-bottom: 1px solid #e7eef3;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 170, 255, .08), transparent 40%),
		#ffffff;
}

.property-search-panel__title {
	display: flex;
	align-items: center;
	gap: 13px;
}

.property-search-panel__title-icon {
	display: grid;
	width: 43px;
	height: 43px;
	flex: 0 0 43px;
	color: #078dc9;
	border: 1px solid #caecfa;
	border-radius: 13px;
	background: linear-gradient(135deg, #edfbff, #dff4ff);
	place-items: center;
}

.property-search-panel__title-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.property-search-panel__title h2 {
	margin: 0 0 4px;
	color: #172333;
	font-size: 22px;
	line-height: 1.2;
}

.property-search-panel__title p {
	margin: 0;
	color: #718091;
	font-size: 14px;
	line-height: 1.4;
}

.property-search-panel__content {
	padding: 25px 26px 27px;
}

/* Простая форма */

.property-search-simple {
	display: flex;
	align-items: flex-end;
	gap: 14px;
}

.property-search-simple__field {
	min-width: 0;
	flex: 1 1 auto;
}

.property-search-simple__field > label,
.property-search-control > label {
	display: block;
	margin-bottom: 7px;
	color: #253143;
	font-size: 14px;
	font-weight: 700;
}

.property-search-simple__field input,
.property-search-simple__field select,
.property-search-control input,
.property-search-control select,
.property-search-control textarea,
.property-search-panel input[type="text"],
.property-search-panel input[type="search"],
.property-search-panel input[type="number"],
.property-search-panel select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #d6e1e9;
	border-radius: 12px;
	outline: none;
	background: #ffffff;
	color: #172333;
	font: inherit;
	transition:
		border-color .2s ease,
		box-shadow .2s ease;
}

.property-search-simple__field input:focus,
.property-search-simple__field select:focus,
.property-search-control input:focus,
.property-search-control select:focus,
.property-search-control textarea:focus,
.property-search-panel input[type="text"]:focus,
.property-search-panel input[type="search"]:focus,
.property-search-panel input[type="number"]:focus,
.property-search-panel select:focus {
	border-color: #00aaff;
	box-shadow: 0 0 0 4px rgba(0, 170, 255, .13);
}

.property-search-simple__actions,
.property-search-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.property-search-simple__actions {
	flex: 0 0 auto;
}

/* Кнопки */

.property-search-action {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 11px 17px;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	transition:
		color .2s ease,
		background .2s ease,
		border-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.property-search-action:hover {
	transform: translateY(-1px);
}

.property-search-action--primary {
	color: #ffffff;
	border-color: #00aaff;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 8px 17px rgba(0, 170, 255, .2);
}

.property-search-action--primary:hover {
	background: linear-gradient(135deg, #009be8, #007fbd);
	box-shadow: 0 10px 22px rgba(0, 170, 255, .29);
}

.property-search-action--secondary {
	color: #087eb5;
	border-color: #c5eaf9;
	background: #effaff;
}

.property-search-action--secondary:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
}

.property-search-action--ghost {
	color: #596b7b;
	border-color: #d9e3ea;
	background: #ffffff;
}

.property-search-action--ghost:hover {
	border-color: #a9c9dc;
	background: #f6fbfe;
}

/* Расширенная форма */

.property-search-advanced {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.property-search-group {
	min-width: 0;
	padding: 19px;
	border: 1px solid #e1eaf0;
	border-radius: 14px;
	background: linear-gradient(135deg, #ffffff, #f9fcfe);
}

.property-search-group--wide {
	grid-column: span 2;
}

.property-search-group h3 {
	margin: 0 0 16px;
	color: #1c2d42;
	font-size: 16px;
	line-height: 1.3;
}

.property-search-group .property-search-control + .property-search-options {
	margin-top: 13px;
}

.property-search-options {
	color: #526475;
	font-size: 14px;
	line-height: 1.6;
}

.property-search-options + .property-search-options {
	margin-top: 11px;
}

.property-search-options select {
	margin-top: 5px;
}

.property-search-control--inline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 15px;
}

.property-search-control--inline label {
	flex: 1 1 auto;
	margin: 0;
}

.property-search-control--inline input {
	width: 95px;
	flex: 0 0 95px;
	min-height: 42px;
}

.property-search-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	cursor: pointer;
	color: #526475;
	font-size: 14px;
}

.property-search-check input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: #00aaff;
}

.property-search-categories {
	max-height: 250px;
	padding-right: 5px;
	overflow: auto;
	color: #526475;
	font-size: 14px;
	line-height: 1.65;
}

.property-search-categories select {
	min-height: 180px;
}

.property-search-panel__actions {
	margin-top: 22px;
	padding-top: 21px;
	border-top: 1px solid #e7eef3;
}

/* Сообщение DLE о результатах */

.property-search-message {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	padding: 14px 17px;
	color: #32526a;
	border: 1px solid #cee7f3;
	border-radius: 13px;
	background: #f1faff;
	font-size: 14px;
	font-weight: 600;
}

.property-search-message__icon {
	display: inline-grid;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	color: #078dc9;
	place-items: center;
}

.property-search-message__icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Текстовый вид результатов поиска */

.search-result-text-card,
.search-result-comment-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid #dfe9ef;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 5px 16px rgba(25, 55, 90, .04);
}

.search-result-text-card__top,
.search-result-comment-card__heading {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.search-result-text-card__icon,
.search-result-comment-card__icon {
	display: inline-grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	color: #078dc9;
	border-radius: 11px;
	background: #eaf8ff;
	place-items: center;
}

.search-result-text-card__icon svg,
.search-result-comment-card__icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.search-result-text-card__title,
.search-result-comment-card__heading h2 {
	margin: 0;
	color: #1c2d42;
	font-size: 18px;
	line-height: 1.35;
}

.search-result-text-card__title a:hover {
	color: #00aaff;
}

.search-result-text-card__category {
	margin-top: 4px;
	color: #718091;
	font-size: 13px;
}

.search-result-text-card__category a {
	color: #078dc9;
}

.search-result-text-card__text,
.search-result-comment-card__text {
	margin-top: 16px;
	color: #46596b;
	font-size: 15px;
	line-height: 1.65;
}

.search-result-text-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e8eef2;
	color: #7a8996;
	font-size: 13px;
}

.search-result-text-card__footer a {
	color: #078dc9;
	font-size: 14px;
	font-weight: 750;
}

/* Адаптация */

@media (max-width: 760px) {
	.property-search-page {
		margin-top: 18px;
		margin-bottom: 38px;
	}

	.property-search-page__intro {
		align-items: flex-start;
		padding: 21px 18px;
		border-radius: 17px;
	}

	.property-search-page__icon {
		width: 47px;
		height: 47px;
		flex-basis: 47px;
		border-radius: 14px;
	}

	.property-search-page__icon svg {
		width: 24px;
		height: 24px;
	}

	.property-search-page__intro h1 {
		font-size: 27px;
	}

	.property-search-page__intro p {
		font-size: 14px;
	}

	.property-search-panel {
		border-radius: 17px;
	}

	.property-search-panel__header {
		padding: 20px 18px 17px;
	}

	.property-search-panel__content {
		padding: 18px;
	}

	.property-search-panel__title-icon {
		width: 39px;
		height: 39px;
		flex-basis: 39px;
		border-radius: 11px;
	}

	.property-search-panel__title h2 {
		font-size: 19px;
	}

	.property-search-panel__title p {
		font-size: 12px;
	}

	.property-search-simple {
		align-items: stretch;
		flex-direction: column;
	}

	.property-search-simple__actions {
		width: 100%;
	}

	.property-search-simple__actions .property-search-action {
		flex: 1 1 180px;
	}

	.property-search-advanced {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.property-search-group,
	.property-search-group--wide {
		grid-column: auto;
		padding: 16px;
	}

	.property-search-panel__actions {
		flex-direction: column;
	}

	.property-search-panel__actions .property-search-action {
		width: 100%;
	}

	.search-result-text-card,
	.search-result-comment-card {
		padding: 17px;
		border-radius: 14px;
	}
}

@media (max-width: 420px) {
	.property-search-page__icon {
		display: none;
	}

	.property-search-simple__actions {
		flex-direction: column;
	}

	.property-search-simple__actions .property-search-action {
		width: 100%;
	}

	.property-search-control--inline {
		align-items: stretch;
		flex-direction: column;
	}

	.property-search-control--inline input {
		width: 100%;
		flex-basis: auto;
	}
}

/* =========================================================
   Исправление страницы поиска DLE
   Форма поиска попадает внутрь .news-grid как её первый элемент.
   Растягиваем форму на всю ширину сетки.
   ========================================================= */

.news-grid > form#fullsearch {
	grid-column: 1 / -1 !important;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.news-grid > form#fullsearch .property-search-page {
	width: 100% !important;
	max-width: 1100px !important;
	margin-top: 0 !important;
	margin-right: auto !important;
	margin-bottom: 14px !important;
	margin-left: auto !important;
}

/*
 * Сообщение с числом результатов расположено внутри формы,
 * поэтому оно также будет иметь ширину страницы поиска.
 */
.news-grid > form#fullsearch .property-search-message {
	width: 100%;
}

/* На телефоне форма и результаты занимают одну колонку */
@media (max-width: 760px) {
	.news-grid > form#fullsearch .property-search-page {
		margin-bottom: 6px !important;
	}
}

/* =========================================================
   Статические страницы DLE
   ========================================================= */

.news-grid > .static-page {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.static-page {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.static-page__card {
	width: 100%;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #dfeaf2;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 9px 27px rgba(25, 55, 90, .055);
}

.static-page__header {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 26px;
	border-bottom: 1px solid #e5edf3;
	background:
		radial-gradient(
			circle at 100% 0%,
			rgba(0, 170, 255, .11),
			transparent 36%
		),
		linear-gradient(145deg, #ffffff, #f8fcff);
}

.static-page__header::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(
		90deg,
		#00aaff,
		#42c8ff,
		#b5ecff
	);
}

.static-page__eyebrow {
	margin-bottom: 7px;
	color: #078dc9;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.static-page__header h1 {
	margin: 0;
	color: #172333;
	font-size: clamp(25px, 3vw, 35px);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.static-page__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	color: #778797;
	font-size: 13px;
}

.static-page__tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.static-page__tool {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	padding: 8px 11px;
	color: #087eb5;
	border: 1px solid #c8eafa;
	border-radius: 10px;
	background: #effaff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.static-page__content {
	width: 100%;
	min-width: 0;
	padding: 26px;
	color: #37465c;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.static-page__content > :first-child {
	margin-top: 0;
}

.static-page__content > :last-child {
	margin-bottom: 0;
}

/*
 * У страницы /na-karte.html карта имеет собственную карточку,
 * рамку и отступы. Убираем внешнюю карточку static.tpl,
 * чтобы не было «карточки внутри карточки».
 */
.static-page:has(.map-search-page) .static-page__card {
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.static-page:has(.map-search-page) .static-page__header {
	display: none;
}

.static-page:has(.map-search-page) .static-page__content {
	padding: 0;
}

.static-page:has(.map-search-page) .map-search-page {
	margin-top: 0;
}

@media (max-width: 760px) {
	.static-page__card {
		border-radius: 16px;
	}

	.static-page__header {
		flex-direction: column;
		padding: 21px 18px;
	}

	.static-page__tools {
		justify-content: flex-start;
	}

	.static-page__content {
		padding: 19px 18px;
	}
}

/* =========================================================
   Прокрутка списка объектов на странице «На карте»
   ========================================================= */

.map-search-page__layout {
	min-height: 0;
}

.map-search-results {
	min-height: 0;
	overflow: hidden;
}

.map-search-results__list {
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* Более заметная полоса прокрутки в Chrome / Edge / Safari */
.map-search-results__list::-webkit-scrollbar {
	width: 8px;
}

.map-search-results__list::-webkit-scrollbar-track {
	background: transparent;
}

.map-search-results__list::-webkit-scrollbar-thumb {
	border: 2px solid #f7fafc;
	border-radius: 20px;
	background: #a9cfdf;
}

.map-search-results__list::-webkit-scrollbar-thumb:hover {
	background: #69b9d8;
}

/* В мобильной версии прокрутка также только внутри списка */
@media (max-width: 760px) {
	.map-search-results {
		height: 560px;
		min-height: 0;
	}

	.map-search-results__list {
		min-height: 0;
		overflow-y: auto;
	}
}

/* Главная: расширенный поиск недвижимости */
.property-search--map {
	grid-template-columns:
		minmax(180px, 1.45fr)
		repeat(5, minmax(105px, 1fr))
		auto;
}

.property-search--map .search-button {
	align-self: end;
	min-height: 44px;
}

@media (max-width: 1180px) {
	.property-search--map {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.property-search--map .search-button {
		justify-content: center;
	}
}

@media (max-width: 700px) {
	.property-search--map {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.property-search--map .search-field--main,
	.property-search--map .search-button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 420px) {
	.property-search--map {
		grid-template-columns: 1fr;
	}

	.property-search--map .search-field--main,
	.property-search--map .search-button {
		grid-column: auto;
	}
}

/* =========================================================
   Фильтры на страницах категорий
   ========================================================= */

.category-map-search-section {
	padding: 28px 0 8px;
}

.category-map-search-card {
	position: relative;
	overflow: hidden;
	padding: 24px;
	border: 1px solid #dfeaf2;
	border-radius: 20px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(0, 170, 255, .13),
			transparent 32%
		),
		linear-gradient(145deg, #ffffff, #f8fcff);
	box-shadow: 0 10px 28px rgba(25, 55, 90, .06);
}

.category-map-search-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(
		90deg,
		#00aaff,
		#42c8ff,
		#b5ecff
	);
}

.category-map-search-card__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 19px;
}

.category-map-search-card__heading span {
	display: block;
	margin-bottom: 5px;
	color: #078dc9;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.category-map-search-card__heading h1 {
	margin: 0;
	color: #172333;
	font-size: 25px;
	line-height: 1.15;
	letter-spacing: -.025em;
}

.category-map-search-card__map-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 13px;
	color: #087eb5;
	border: 1px solid #c5eaf9;
	border-radius: 10px;
	background: #effaff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease, background .2s ease;
}

.category-map-search-card__map-link:hover {
	color: #ffffff;
	background: #00aaff;
}

.property-search--category {
	width: 100%;
	margin: 0;
}

@media (max-width: 760px) {
	.category-map-search-section {
		padding-top: 18px;
	}

	.category-map-search-card {
		padding: 19px 17px;
		border-radius: 16px;
	}

	.category-map-search-card__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.category-map-search-card__heading h1 {
		font-size: 23px;
	}
}

/* AJAX-состояния фильтра на страницах категорий */

.news-grid > .category-search-state {
	grid-column: 1 / -1;
	display: flex;
	min-height: 220px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 9px;
	padding: 28px;
	color: #718190;
	border: 1px solid #dfeaf2;
	border-radius: 16px;
	background: #ffffff;
	text-align: center;
}

.category-search-state strong {
	color: #263b51;
	font-size: 17px;
}

.category-search-state span:not(.category-search-state__loader) {
	font-size: 14px;
}

.category-search-state__loader {
	width: 30px;
	height: 30px;
	border: 3px solid #d7edf8;
	border-top-color: #00aaff;
	border-radius: 50%;
	animation: category-search-spin .8s linear infinite;
}

@keyframes category-search-spin {
	to {
		transform: rotate(360deg);
	}
}

.property-search--category .search-button:disabled {
	cursor: wait;
	opacity: .72;
}

.search-button--loading svg {
	animation: category-search-spin .8s linear infinite;
}

/* Действия в карточке недвижимости: «На карте» и «Подробнее» */

.property-card__footer {
	gap: 10px;
}

.property-card__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-left: auto;
}

.property-card__map-link {
	color: #087eb5 !important;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.property-card__map-link::before {
	display: inline-block;
	margin-right: 4px;
	content: "⌖";
	font-size: 14px;
	line-height: 1;
	vertical-align: -1px;
}

.property-card__map-link:hover {
	color: #00aaff !important;
	text-decoration: underline;
}

@media (max-width: 420px) {
	.property-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.property-card__actions {
		justify-content: flex-start;
		margin-left: 0;
	}
}
/* Красивая ссылка «Подробнее» в карточках объектов */

.property-card__details-link {
	display: inline-flex;
	min-height: 30px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 5px 9px;
	color: #087eb5 !important;
	border: 1px solid #c5eaf9;
	border-radius: 8px;
	background: #effaff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		transform .2s ease;
}

.property-card__details-link span {
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	transition: transform .2s ease;
}

.property-card__details-link:hover {
	color: #ffffff !important;
	border-color: #00aaff;
	background: #00aaff;
	transform: translateY(-1px);
}

.property-card__details-link:hover span {
	transform: translateX(2px);
}

.property-card__details-link:focus-visible,
.property-card__map-link:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .25);
	outline-offset: 2px;
}

@media (max-width: 420px) {
	.property-card__details-link {
		min-height: 32px;
		padding: 6px 10px;
	}
}
/* =========================================================
   Страница входа
   ========================================================= */

.auth-page {
	display: flex;
	min-height: 520px;
	align-items: center;
	justify-content: center;
	padding: 35px 0 60px;
}

.auth-card {
	width: 100%;
	max-width: 470px;
	padding: 34px;
	border: 1px solid #dfeaf2;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(25, 55, 90, .08);
	text-align: center;
}

.auth-card__icon {
	display: grid;
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	align-items: center;
	justify-content: center;
	color: #087eb5;
	border: 1px solid #c9eaf8;
	border-radius: 19px;
	background: #effaff;
}

.auth-card__icon svg {
	width: 34px;
	height: 34px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.auth-card__eyebrow {
	margin-bottom: 7px;
	color: #078dc9;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.auth-card h1 {
	margin: 0;
	color: #172333;
	font-size: 30px;
	line-height: 1.15;
}

.auth-card__description {
	margin: 11px auto 24px;
	color: #718190;
	font-size: 14px;
	line-height: 1.55;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
	text-align: left;
}

.auth-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.auth-form__field label {
	color: #526475;
	font-size: 13px;
	font-weight: 750;
}

.auth-form__field input[type="text"],
.auth-form__field input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 10px 13px;
	border: 1px solid #d7e3ea;
	border-radius: 11px;
	outline: 0;
	background: #ffffff;
	color: #233449;
	font: inherit;
	font-size: 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-form__field input:focus {
	border-color: #00aaff;
	box-shadow: 0 0 0 4px rgba(0, 170, 255, .12);
}

.auth-form__remember {
	color: #718190;
	font-size: 13px;
}

.auth-form__remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.auth-form__submit {
	width: 100%;
	min-height: 46px;
	padding: 10px 16px;
	cursor: pointer;
	color: #ffffff;
	border: 0;
	border-radius: 11px;
	background: linear-gradient(135deg, #00aaff, #087eb5);
	box-shadow: 0 8px 18px rgba(8, 126, 181, .2);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	transition: transform .2s ease, box-shadow .2s ease;
}

.auth-form__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 11px 23px rgba(8, 126, 181, .28);
}

.auth-form__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 20px;
	margin-top: 20px;
	font-size: 13px;
}

.auth-form__links a {
	color: #087eb5;
	font-weight: 750;
	text-decoration: none;
}

.auth-form__links a:hover {
	color: #00aaff;
	text-decoration: underline;
}

.auth-form__register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid #c5eaf9;
	border-radius: 9px;
	background: #effaff;
}

@media (max-width: 560px) {
	.auth-page {
		padding: 20px 0 35px;
	}

	.auth-card {
		padding: 27px 19px;
		border-radius: 17px;
	}

	.auth-card h1 {
		font-size: 26px;
	}
}

/* =========================================================
   Страница регистрации
   ========================================================= */

.auth-card--registration {
	max-width: 510px;
}

.auth-card__icon svg {
	overflow: visible;
}

.auth-form__rules {
	color: #718190;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}

.auth-form__rules label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.auth-form__rules input {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	margin-top: 1px;
	accent-color: #087eb5;
}

.auth-form__rules a {
	color: #087eb5;
	font-weight: 700;
}

.auth-form__captcha {
	display: flex;
	flex-direction: column;
	gap: 7px;
	text-align: left;
}

.auth-form__captcha-image {
	display: flex;
	min-height: 44px;
	align-items: center;
	padding: 5px;
	border: 1px solid #d7e3ea;
	border-radius: 10px;
	background: #f7fbfd;
}

.auth-form__captcha-image img {
	display: block;
	max-width: 220px;
	height: auto;
}

.auth-form__question {
	padding: 11px 13px;
	color: #344c62;
	border: 1px solid #d7e3ea;
	border-radius: 10px;
	background: #f7fbfd;
	font-size: 14px;
}

.auth-form__captcha input[type="text"],
.auth-form__question + input {
	width: 100%;
	height: 46px;
	padding: 10px 13px;
	border: 1px solid #d7e3ea;
	border-radius: 11px;
	outline: 0;
	background: #ffffff;
	color: #233449;
	font: inherit;
	font-size: 14px;
}

.auth-form__captcha input:focus,
.auth-form__question + input:focus {
	border-color: #00aaff;
	box-shadow: 0 0 0 4px rgba(0, 170, 255, .12);
}

/* Страница авторизации и регистрации не должна быть карточкой сетки */
.news-grid > .auth-page {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
}

.auth-page {
	width: 100%;
	min-width: 0;
}

.auth-page-wrapper {
	width: 100%;
	min-width: 0;
	grid-column: 1 / -1;
}

.auth-page-wrapper .auth-page {
	width: 100%;
	min-height: 520px;
}

/* Центрирование формы регистрации внутри сетки объявлений */
.news-grid > #registration {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* Общая область авторизации */
#registration > .auth-page {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* Карточка регистрации */
#registration .auth-card {
	width: min(100%, 560px);
	margin: 0 auto;
}

/* Внутренний контейнер полей */
#registration .auth-form {
	width: 100%;
}

/* Поля регистрации */
#registration .auth-form__field,
#registration .auth-form__rules,
#registration .auth-form__submit {
	width: 100%;
}

/* CAPTCHA не должна растягиваться некорректно */
#registration .auth-form__captcha-image {
	max-width: 100%;
}

/* Мобильные устройства */
@media (max-width: 640px) {
	.news-grid > #registration {
		padding: 0;
	}

	#registration .auth-card {
		width: 100%;
	}

	#registration .auth-page {
		padding: 0;
	}
}

/* =========================================================
   Фикс страницы регистрации DLE
   ========================================================= */

/* Полностью отключаем сетку карточек только на регистрации */
html.is-registration-page .content-column {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

html.is-registration-page #news-grid {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Внешняя форма, которую создаёт DLE */
html.is-registration-page #registration {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Центральная область */
html.is-registration-page #registration > .auth-page {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	align-items: flex-start !important;
	justify-content: center !important;
	margin: 0 auto !important;
	padding: 35px 0 60px !important;
}

/* Карточка */
html.is-registration-page #registration .auth-card {
	display: block !important;
	width: 100% !important;
	max-width: 510px !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	padding: 34px !important;
}

/* Поля регистрации находятся непосредственно внутри карточки */
html.is-registration-page #registration .auth-form__field,
html.is-registration-page #registration .auth-form__captcha,
html.is-registration-page #registration .auth-form__rules {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	flex-direction: column !important;
	box-sizing: border-box !important;
}

/* Поля ввода */
html.is-registration-page #registration input[type="text"],
html.is-registration-page #registration input[type="email"],
html.is-registration-page #registration input[type="password"] {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

/* CAPTCHA */
html.is-registration-page #registration .auth-form__captcha-image {
	display: flex !important;
	width: 100% !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
}

/* Кнопка */
html.is-registration-page #registration .auth-form__submit {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Ссылка «Уже есть аккаунт?» */
html.is-registration-page #registration .auth-form__links {
	display: flex !important;
	width: 100% !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

/* Центрирование заголовков */
html.is-registration-page #registration .auth-card h1,
html.is-registration-page #registration .auth-card__eyebrow,
html.is-registration-page #registration .auth-card__description {
	text-align: center !important;
}

@media (max-width: 560px) {
	html.is-registration-page #registration > .auth-page {
		padding: 20px 0 35px !important;
	}

	html.is-registration-page #registration .auth-card {
		width: 100% !important;
		max-width: 100% !important;
		padding: 27px 19px !important;
	}
}

/* Кластеры объектов на карте */

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	color: #ffffff;
	background: rgba(22, 119, 255, .22);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	border: 3px solid #ffffff;
	border-radius: 50%;
	background: #1677ff;
	box-shadow: 0 3px 10px rgba(22, 50, 73, .3);
	font-size: 13px;
	font-weight: 800;
}

.marker-cluster-small {
	width: 42px;
	height: 42px;
	margin-left: -21px;
	margin-top: -21px;
}

.marker-cluster-small div {
	width: 34px;
	height: 34px;
}

.marker-cluster-medium {
	width: 48px;
	height: 48px;
	margin-left: -24px;
	margin-top: -24px;
}

.marker-cluster-medium div {
	width: 40px;
	height: 40px;
	background: #087dcc;
}

.marker-cluster-large {
	width: 56px;
	height: 56px;
	margin-left: -28px;
	margin-top: -28px;
}

.marker-cluster-large div {
	width: 48px;
	height: 48px;
	background: #075da4;
}

/* Страница регистрации */

.is-registration-page .content-layout {
	display: block;
	width: 100%;
}

.is-registration-page .content-column {
	width: 100%;
	max-width: none;
	min-width: 0;
}

.is-registration-page #news-grid {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
}

.is-registration-page #registration {
	display: block;
	width: 100%;
	margin: 0;
}

.auth-page {
	display: flex;
	width: 100%;
	justify-content: center;
	padding: 38px 16px 72px;
	box-sizing: border-box;
}

.auth-card {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 36px 38px 32px;
	border: 1px solid #dce8ef;
	border-radius: 24px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(19, 163, 224, .13),
			transparent 34%
		),
		#ffffff;
	box-shadow: 0 18px 48px rgba(28, 63, 91, .11);
	box-sizing: border-box;
}

.auth-card__icon {
	display: flex;
	width: 58px;
	height: 58px;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	border-radius: 18px;
	background: linear-gradient(135deg, #0ca8e8, #0879b8);
	box-shadow: 0 10px 22px rgba(8, 121, 184, .24);
}

.auth-card__icon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: #ffffff;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.auth-card__eyebrow {
	margin-bottom: 8px;
	color: #078bc5;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-align: center;
	text-transform: uppercase;
}

.auth-card h1 {
	margin: 0;
	color: #192b3e;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.auth-card__description {
	max-width: 390px;
	margin: 14px auto 28px;
	color: #718391;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.auth-form__fields {
	display: grid;
	gap: 17px;
}

.auth-form__field {
	display: grid;
	gap: 7px;
}

.auth-form__field label {
	color: #263b4e;
	font-size: 14px;
	font-weight: 700;
}

.auth-form__field input {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 0 15px;
	border: 1px solid #d5e2e9;
	border-radius: 12px;
	outline: none;
	background: #fbfdfe;
	color: #203447;
	font-family: inherit;
	font-size: 15px;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		background-color .2s ease;
	box-sizing: border-box;
}

.auth-form__field input::placeholder {
	color: #9aabb5;
}

.auth-form__field input:hover {
	border-color: #b8ceda;
}

.auth-form__field input:focus {
	border-color: #0b9bd5;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(11, 155, 213, .12);
}

.auth-form__field input:invalid:not(:placeholder-shown) {
	border-color: #dc7777;
}

.auth-form__field input:valid:not(:placeholder-shown) {
	border-color: #72ba92;
}

.auth-form__hint {
	color: #8798a3;
	font-size: 12px;
	line-height: 1.4;
}

.auth-form__rules {
	margin-top: 23px;
}

.auth-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	color: #617582;
	font-size: 13px;
	line-height: 1.5;
}

.auth-checkbox input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.auth-checkbox__mark {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-top: 1px;
	border: 1px solid #b8ccd6;
	border-radius: 6px;
	background: #ffffff;
	transition:
		border-color .2s ease,
		background-color .2s ease,
		box-shadow .2s ease;
}

.auth-checkbox__mark::after {
	position: absolute;
	top: 3px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	content: "";
	opacity: 0;
	transform: rotate(45deg);
	transition: opacity .2s ease;
}

.auth-checkbox input:checked + .auth-checkbox__mark {
	border-color: #078fc9;
	background: #078fc9;
	box-shadow: 0 0 0 4px rgba(7, 143, 201, .11);
}

.auth-checkbox input:checked + .auth-checkbox__mark::after {
	opacity: 1;
}

.auth-checkbox input:focus-visible + .auth-checkbox__mark {
	box-shadow: 0 0 0 4px rgba(7, 143, 201, .18);
}

.auth-checkbox__text a {
	color: #078bc5;
	font-weight: 700;
	text-decoration: none;
}

.auth-checkbox__text a:hover {
	text-decoration: underline;
}

.auth-form__submit {
	display: flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
	padding: 0 20px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, #0b9fd9, #087ab8);
	color: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 10px 20px rgba(8, 125, 184, .2);
	transition:
		transform .2s ease,
		box-shadow .2s ease,
		filter .2s ease;
}

.auth-form__submit:hover {
	filter: brightness(1.05);
	box-shadow: 0 13px 26px rgba(8, 125, 184, .28);
	transform: translateY(-1px);
}

.auth-form__submit:active {
	box-shadow: 0 6px 13px rgba(8, 125, 184, .2);
	transform: translateY(0);
}

.auth-form__submit:focus-visible {
	outline: 3px solid rgba(8, 125, 184, .24);
	outline-offset: 3px;
}

.auth-form__links {
	margin-top: 22px;
	text-align: center;
}

.auth-form__links a {
	color: #078bc5;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.auth-form__links a:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {

	.auth-page {
		padding: 22px 10px 46px;
	}

	.auth-card {
		padding: 28px 20px 25px;
		border-radius: 20px;
	}

	.auth-card h1 {
		font-size: 28px;
	}

	.auth-card__description {
		margin-bottom: 24px;
	}

}

/* =========================================================
   Финальная версия страницы регистрации
   ========================================================= */

html.is-registration-page .content-layout {
	display: block !important;
	width: 100% !important;
	padding-top: 0 !important;
}

html.is-registration-page .content-column {
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
}

html.is-registration-page #news-grid {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

html.is-registration-page #registration {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

html.is-registration-page .auth-page {
	display: flex !important;
	width: 100% !important;
	min-width: 0 !important;
	align-items: flex-start !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 34px 16px 70px !important;
	box-sizing: border-box !important;
}

html.is-registration-page .auth-card {
	display: block !important;
	width: 100% !important;
	max-width: 540px !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	padding: 36px 38px 32px !important;
	box-sizing: border-box !important;
}

html.is-registration-page .auth-form__fields {
	display: grid !important;
	width: 100% !important;
	gap: 17px !important;
}

html.is-registration-page .auth-form__field {
	display: grid !important;
	width: 100% !important;
	min-width: 0 !important;
	gap: 7px !important;
}

html.is-registration-page .auth-form__field input {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 50px !important;
	box-sizing: border-box !important;
}

html.is-registration-page .auth-form__hint {
	display: block !important;
	color: #8798a3 !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
}

html.is-registration-page .auth-form__rules {
	display: block !important;
	width: 100% !important;
	margin-top: 23px !important;
}

html.is-registration-page .auth-form__submit {
	display: flex !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

html.is-registration-page .auth-form__links {
	display: flex !important;
	width: 100% !important;
	justify-content: center !important;
	text-align: center !important;
}

@media (max-width: 600px) {
	html.is-registration-page .auth-page {
		padding: 22px 10px 46px !important;
	}

	html.is-registration-page .auth-card {
		max-width: 100% !important;
		padding: 28px 20px 25px !important;
		border-radius: 20px !important;
	}
}
/* =========================================================
   Поле телефона на странице входа
   ========================================================= */

#login-phone {
	display: block !important;
	width: 100% !important;
	height: 50px !important;
	min-height: 50px !important;
	margin: 0 !important;
	padding: 0 15px !important;
	border: 1px solid #d5e2e9 !important;
	border-radius: 12px !important;
	outline: none !important;
	background: #fbfdfe !important;
	color: #203447 !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		background-color .2s ease !important;
}

#login-phone::placeholder {
	color: #9aabb5 !important;
	opacity: 1 !important;
}

#login-phone:hover {
	border-color: #b8ceda !important;
}

#login-phone:focus {
	border-color: #0b9bd5 !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(11, 155, 213, .12) !important;
}

@media (max-width: 760px) {
	.profile-menu-button,
	.logout-menu-button {
		min-height: 38px;
		padding: 8px 10px;
		font-size: 12px;
	}
}

/* Блок контактов на странице объекта */

.property-contact-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 4px;
}

.property-contact-button--primary {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #087da8, #075d82);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(7, 93, 130, .2);
	transition:
		transform .2s ease,
		box-shadow .2s ease,
		background .2s ease;
}

.property-contact-button--primary:hover {
	background: linear-gradient(135deg, #096f94, #064c6b);
	box-shadow: 0 13px 26px rgba(7, 93, 130, .28);
	transform: translateY(-1px);
}

.property-contact-button--primary:active {
	transform: translateY(0);
}

.property-contact-button--primary svg {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	vertical-align: -4px;
	fill: currentColor;
}

.property-contact-panel__caption {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	color: #183b4d;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.property-contact-panel__caption svg {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	fill: #087da8;
}

.property-contact-questions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.property-contact-question {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #cfe2ea;
	border-radius: 10px;
	background: #f7fbfd;
	color: #14506a;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition:
		background .2s ease,
		border-color .2s ease,
		color .2s ease,
		transform .2s ease;
}

.property-contact-question:hover {
	border-color: #087da8;
	background: #eaf6fa;
	color: #075d82;
	transform: translateX(2px);
}

.property-contact-question:focus-visible,
.property-contact-button--primary:focus-visible {
	outline: 3px solid rgba(8, 125, 168, .28);
	outline-offset: 3px;
}

.property-contact-panel__hint {
	color: #78909c;
	font-size: 12px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.property-contact-panel {
		gap: 12px;
	}

	.property-contact-button--primary {
		min-height: 50px;
	}

	.property-contact-question {
		padding: 12px;
	}
}

/* =========================================================
   Мобильная боковая панель объекта
   ========================================================= */

@media screen and (max-width: 760px) {
	.property-sidebar {
		position: static !important;
		top: auto !important;
		bottom: auto !important;
		z-index: auto !important;
	}
}

/* =========================================================
   Кнопка показа / скрытия пароля
   ========================================================= */

.password-input-wrapper {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
	width: 100% !important;
	padding-right: 52px !important;
}

.password-toggle-button {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: 8px;
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	color: #718391;
	border: 0;
	border-radius: 10px;
	outline: none;
	background: transparent;
	transform: translateY(-50%);
	transition:
		color .2s ease,
		background-color .2s ease;
}

.password-toggle-button:hover {
	color: #078bc5;
	background: #eaf8ff;
}

.password-toggle-button:focus-visible {
	color: #078bc5;
	background: #eaf8ff;
	box-shadow: 0 0 0 3px rgba(0, 170, 255, .22);
}

.password-toggle-button svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
	pointer-events: none;
}

@media (max-width: 600px) {
	.password-toggle-button {
		right: 6px;
		width: 40px;
		height: 40px;
	}
}

/* =========================================================
   Восстановление пароля
   ========================================================= */

.estate-auth-page {
	display: flex;
	width: 100%;
	min-height: 440px;
	align-items: center;
	justify-content: center;
	padding: 35px 15px;
}

.estate-auth-card {
	width: 100%;
	max-width: 520px;
	padding: 38px;
	text-align: center;
	border: 1px solid #e1edf3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(17, 81, 111, .10);
}

.estate-auth-card__icon {
	display: flex;
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	align-items: center;
	justify-content: center;
	color: #078bc5;
	border-radius: 18px;
	background: linear-gradient(135deg, #e5f8ff 0%, #d5f2ff 100%);
}

.estate-auth-card__icon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.estate-auth-card__title {
	margin: 0 0 12px;
	color: #183442;
	font-size: 28px;
	font-weight: 750;
	line-height: 1.2;
}

.estate-auth-card__lead {
	max-width: 420px;
	margin: 0 auto 28px;
	color: #718391;
	font-size: 15px;
	line-height: 1.6;
}

.estate-auth-form {
	text-align: left;
}

.estate-auth-field {
	margin-bottom: 20px;
}

.estate-auth-label {
	display: block;
	margin: 0 0 8px;
	color: #35505e;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
}

.estate-auth-required {
	color: #e54d5d;
}

.estate-auth-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	color: #243c49;
	font: inherit;
	font-size: 15px;
	border: 1px solid #cddde5;
	border-radius: 11px;
	outline: none;
	background: #fff;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.estate-auth-input::placeholder {
	color: #99aab4;
	opacity: 1;
}

.estate-auth-input:hover {
	border-color: #a8cad9;
}

.estate-auth-input:focus {
	border-color: #078bc5;
	box-shadow: 0 0 0 4px rgba(7, 139, 197, .13);
}

.estate-auth-captcha {
	display: flex;
	gap: 12px;
	align-items: center;
}

.estate-auth-captcha__image {
	display: flex;
	flex: 0 0 auto;
	min-width: 130px;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #d8e6ec;
	border-radius: 11px;
	background: #f5fafc;
}

.estate-auth-captcha__image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.estate-auth-captcha .estate-auth-input {
	min-width: 0;
}

.estate-auth-recaptcha {
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.estate-auth-submit {
	display: inline-flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 20px;
	cursor: pointer;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	border: 0;
	border-radius: 11px;
	outline: none;
	background: linear-gradient(135deg, #079bd8 0%, #0579b4 100%);
	box-shadow: 0 8px 18px rgba(7, 122, 180, .23);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.estate-auth-submit:hover {
	background: linear-gradient(135deg, #08a6e6 0%, #0684c2 100%);
	box-shadow: 0 10px 22px rgba(7, 122, 180, .31);
	transform: translateY(-1px);
}

.estate-auth-submit:active {
	transform: translateY(0);
}

.estate-auth-submit:focus-visible {
	box-shadow: 0 0 0 4px rgba(7, 139, 197, .22);
}

.estate-auth-submit svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.estate-auth-footer {
	margin-top: 22px;
	text-align: center;
	color: #718391;
	font-size: 14px;
	line-height: 1.5;
}

.estate-auth-footer a {
	color: #078bc5;
	font-weight: 650;
	text-decoration: none;
}

.estate-auth-footer a:hover {
	color: #056f9f;
	text-decoration: underline;
}

@media screen and (max-width: 560px) {
	.estate-auth-page {
		min-height: auto;
		padding: 20px 10px;
	}

	.estate-auth-card {
		padding: 28px 20px;
		border-radius: 16px;
	}

	.estate-auth-card__title {
		font-size: 24px;
	}

	.estate-auth-card__lead {
		margin-bottom: 24px;
		font-size: 14px;
	}

	.estate-auth-captcha {
		flex-direction: column;
		align-items: stretch;
	}

	.estate-auth-captcha__image {
		width: 100%;
	}

	.estate-auth-captcha__image img {
		max-height: 48px;
	}
}
/* =========================================================
   Страница восстановления пароля:
   форма не должна быть элементом первой колонки news-grid
   ========================================================= */

#news-grid > #dle-lostpassword {
	display: block;
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
}

#dle-lostpassword .estate-auth-page {
	width: 100%;
	margin: 0 auto;
}

#dle-lostpassword .estate-auth-card {
	margin-right: auto;
	margin-left: auto;
}

/* =========================================================
   Установка PWA «Адрес Сити»
   ========================================================= */

.pwa-install-button {
	display: inline-flex !important;
	min-height: 42px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	padding: 9px 15px !important;
	cursor: pointer !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	border: 1px solid transparent !important;
	border-radius: 11px !important;
	outline: none !important;
	background: linear-gradient(135deg, #08a6e6 0%, #057cb9 100%) !important;
	box-shadow: 0 7px 16px rgba(7, 130, 190, .23) !important;
	transition:
		transform .2s ease,
		box-shadow .2s ease,
		filter .2s ease !important;
}

.pwa-install-button[hidden] {
	display: none !important;
}

.pwa-install-button:hover {
	filter: brightness(1.05);
	box-shadow: 0 10px 22px rgba(7, 130, 190, .32) !important;
	transform: translateY(-1px);
}

.pwa-install-button:active {
	box-shadow: 0 5px 12px rgba(7, 130, 190, .20) !important;
	transform: translateY(0);
}

.pwa-install-button:focus-visible {
	box-shadow:
		0 0 0 4px rgba(7, 166, 230, .25),
		0 8px 18px rgba(7, 130, 190, .25) !important;
}

.pwa-install-button svg {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

/* Окно инструкции по установке */

.pwa-install-modal {
	position: fixed;
	z-index: 10050;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.pwa-install-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 43, 59, .58);
	backdrop-filter: blur(3px);
}

.pwa-install-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 410px;
	padding: 30px 27px 26px;
	color: #294653;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(4, 41, 59, .30);
}

.pwa-install-modal__close {
	position: absolute;
	top: 10px;
	right: 11px;
	display: inline-flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	color: #718391;
	font-size: 28px;
	line-height: 1;
	border: 0;
	border-radius: 9px;
	background: transparent;
}

.pwa-install-modal__close:hover {
	color: #057cb9;
	background: #edf9fd;
}

.pwa-install-modal__icon {
	display: flex;
	width: 59px;
	height: 59px;
	margin: 0 auto 16px;
	align-items: center;
	justify-content: center;
	color: #078bc5;
	border-radius: 18px;
	background: linear-gradient(135deg, #e6f8ff, #d5f1fb);
}

.pwa-install-modal__icon svg {
	width: 29px;
	height: 29px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.pwa-install-modal__title {
	margin: 0 0 10px;
	color: #183442;
	font-size: 22px;
	line-height: 1.25;
}

.pwa-install-modal__text {
	margin: 0 0 16px;
	color: #718391;
	font-size: 14px;
	line-height: 1.55;
}

.pwa-install-modal__steps {
	margin: 0 0 21px;
	padding: 14px 15px 14px 34px;
	color: #405b67;
	text-align: left;
	font-size: 14px;
	line-height: 1.6;
	border-radius: 12px;
	background: #f3fafc;
}

.pwa-install-modal__steps li + li {
	margin-top: 6px;
}

.pwa-install-modal__action {
	display: inline-flex;
	min-width: 145px;
	min-height: 45px;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	cursor: pointer;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #08a6e6 0%, #057cb9 100%);
	box-shadow: 0 7px 16px rgba(7, 130, 190, .20);
}

.pwa-install-modal__action:hover {
	filter: brightness(1.05);
}

@media screen and (max-width: 760px) {
	.pwa-install-button {
		width: 42px !important;
		min-width: 42px !important;
		padding: 0 !important;
		border-radius: 12px !important;
	}

	.pwa-install-button span {
		display: none;
	}

	.pwa-install-button svg {
		width: 20px;
		height: 20px;
	}
}

@media screen and (max-width: 420px) {
	.pwa-install-modal__dialog {
		padding: 27px 19px 20px;
		border-radius: 17px;
	}
}

/* Страница скачивания Android-приложения */

.app-download-card {
	max-width: 560px;
}

.app-download-button {
	text-decoration: none;
}

.app-download-note {
	margin-top: 22px;
	padding: 17px 18px;
	color: #405b67;
	text-align: left;
	font-size: 14px;
	line-height: 1.55;
	border: 1px solid #d8eaf1;
	border-radius: 12px;
	background: #f4fafc;
}

.app-download-note strong {
	display: block;
	margin-bottom: 7px;
	color: #183442;
}

.app-download-note ol {
	margin: 0;
	padding-left: 20px;
}

.app-download-note li + li {
	margin-top: 4px;
}

/* =========================================================
   Кнопка скачивания Android-приложения в подвале
   ========================================================= */

.android-app-download-button {
	position: relative;
	display: flex !important;
	width: 100%;
	min-height: 68px;
	align-items: center;
	gap: 11px;
	margin: 4px 0 5px;
	padding: 10px 12px;
	overflow: hidden;
	color: #ffffff !important;
	border: 1px solid rgba(112, 215, 255, .38);
	border-radius: 14px;
	background:
		radial-gradient(
			circle at 100% 0%,
			rgba(129, 226, 255, .33),
			transparent 43%
		),
		linear-gradient(135deg, #078fc9 0%, #066aa4 100%);
	box-shadow: 0 9px 20px rgba(0, 0, 0, .20);
	text-decoration: none !important;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease,
		filter .2s ease;
}

.android-app-download-button::before {
	position: absolute;
	top: -65%;
	left: -15%;
	width: 70%;
	height: 220%;
	content: "";
	opacity: .22;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, .9),
		transparent
	);
	transform: rotate(22deg) translateX(-170%);
	transition: transform .55s ease;
}

.android-app-download-button:hover {
	color: #ffffff !important;
	border-color: rgba(196, 244, 255, .85);
	box-shadow: 0 13px 27px rgba(0, 0, 0, .28);
	filter: brightness(1.07);
	transform: translateY(-2px);
}

.android-app-download-button:hover::before {
	transform: rotate(22deg) translateX(265%);
}

.android-app-download-button:active {
	box-shadow: 0 6px 14px rgba(0, 0, 0, .20);
	transform: translateY(0);
}

.android-app-download-button:focus-visible {
	outline: 3px solid rgba(104, 215, 255, .65);
	outline-offset: 3px;
}

.android-app-download-button__icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	width: 43px;
	height: 43px;
	flex: 0 0 43px;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 13px;
	background: rgba(255, 255, 255, .15);
}

.android-app-download-button__icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.android-app-download-button__content {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 1px;
}

.android-app-download-button__small {
	overflow: hidden;
	opacity: .82;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.android-app-download-button__title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.android-app-download-button__arrow {
	position: relative;
	z-index: 1;
	display: inline-flex;
	width: 25px;
	height: 25px;
	flex: 0 0 25px;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	transition: transform .2s ease;
}

.android-app-download-button:hover .android-app-download-button__arrow {
	transform: translateX(3px);
}

@media (max-width: 760px) {
	.android-app-download-button {
		max-width: 360px;
	}
}

/* =========================================================
   Скачивание Android APK
   ========================================================= */

/* Кнопка APK в шапке */

.android-apk-header-button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 14px;
	cursor: pointer;
	color: #087eb5 !important;
	border: 1px solid #bfe5f5;
	border-radius: 11px;
	background: #effaff;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.android-apk-header-button:hover {
	color: #ffffff !important;
	border-color: #078bc5;
	background: linear-gradient(135deg, #0aa5df, #0876b0);
	box-shadow: 0 7px 16px rgba(7, 126, 181, .23);
	transform: translateY(-1px);
}

.android-apk-header-button:active {
	box-shadow: none;
	transform: translateY(0);
}

.android-apk-header-button:focus-visible {
	outline: 3px solid rgba(7, 139, 197, .25);
	outline-offset: 3px;
}

.android-apk-header-button svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

/* Простая ссылка APK в подвале */

.footer-menu .android-apk-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	margin: 2px 0 5px;
	padding: 8px 10px;
	color: #79d5fa !important;
	border: 1px solid rgba(85, 197, 237, .30);
	border-radius: 9px;
	background: rgba(0, 170, 255, .09);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		transform .2s ease;
}

.footer-menu .android-apk-footer-link:hover {
	color: #ffffff !important;
	border-color: #27baf2;
	background: #087eb5;
	transform: translateX(2px);
}

.footer-menu .android-apk-footer-link svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

/* Пункт в раскрывающемся мобильном меню */

.mobile-menu .android-apk-mobile-link {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #087eb5;
	font-weight: 750;
}

.android-apk-mobile-link__icon {
	display: inline-flex;
	width: 31px;
	height: 31px;
	flex: 0 0 31px;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	border-radius: 9px;
	background: linear-gradient(135deg, #0aa5df, #0876b0);
}

.android-apk-mobile-link__icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

@media screen and (max-width: 760px) {
	.android-apk-header-button {
		width: 42px;
		min-width: 42px;
		padding: 0;
		border-radius: 12px;
	}

	.android-apk-header-button span {
		display: none;
	}

	.android-apk-header-button svg {
		width: 20px;
		height: 20px;
	}
}

/*111*/
/* =========================================================
   Разворачивание карты на весь экран
   ========================================================= */

/*
 * В полноэкранном режиме эта же кнопка остаётся доступной
 * поверх карты и становится кнопкой «Свернуть карту».
 */
body.map-is-expanded .map-expand-button {
	position: fixed !important;
	z-index: 3100 !important;
	top: max(14px, env(safe-area-inset-top));
	right: max(14px, env(safe-area-inset-right));

	display: inline-flex !important;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 15px;

	color: #ffffff !important;
	border-color: rgba(255, 255, 255, .32) !important;
	border-radius: 12px;
	background: rgba(16, 42, 59, .88) !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
	backdrop-filter: blur(10px);
}

body.map-is-expanded .map-expand-button:hover {
	color: #ffffff !important;
	border-color: #ffffff !important;
	background: #078bc5 !important;
	transform: translateY(-1px);
}

@media (max-width: 760px) {
	body.map-is-expanded .map-expand-button {
		top: max(10px, env(safe-area-inset-top));
		right: max(10px, env(safe-area-inset-right));
		min-height: 42px;
		padding: 9px 12px;
		font-size: 13px;
	}
}

/* =========================================================
   Переключение светлой / тёмной темы в APK «Адрес Сити»
   ========================================================= */

/*
 * По умолчанию переключатель скрыт.
 * Его увидят только пользователи внутри Android-приложения.
 */
.app-theme-toggle {
	display: none;
}

/* Кнопка темы только в WebView приложения */
html.is-adrescity-app .app-theme-toggle {
	display: inline-flex;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	color: #087eb5;
	border: 1px solid #bfe5f5;
	border-radius: 11px;
	background: #effaff;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

html.is-adrescity-app .app-theme-toggle:hover {
	color: #ffffff;
	border-color: #078bc5;
	background: linear-gradient(135deg, #0aa5df, #0876b0);
	box-shadow: 0 7px 16px rgba(7, 126, 181, .23);
	transform: translateY(-1px);
}

html.is-adrescity-app .app-theme-toggle:active {
	transform: translateY(0);
}

.app-theme-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

/* В светлой теме показывается луна — предложение включить ночь */
.app-theme-toggle__sun {
	display: none;
}

.app-theme-toggle__moon {
	display: block;
}

/* В тёмной теме показывается солнце — предложение включить день */
html.theme-dark .app-theme-toggle__sun {
	display: block;
}

html.theme-dark .app-theme-toggle__moon {
	display: none;
}

/* =========================================================
   Тёмная тема приложения
   ========================================================= */

html.theme-dark {
	color-scheme: dark;

	--page-bg: #101820;
	--surface: #17232d;
	--surface-secondary: #1d2c37;
	--text: #eef6fa;
	--text-secondary: #aabdc8;
	--border: #2c414e;
	--primary: #22b6f2;
	--primary-hover: #5acbfa;
	--shadow: 0 10px 30px rgba(0, 0, 0, .30);
}

/* Общий фон */
html.theme-dark body {
	color: #eef6fa;
	background: #101820;
}

/* Шапка */
html.theme-dark .site-header {
	border-color: #2a3d49;
	background: rgba(18, 30, 39, .96);
}

html.theme-dark .mobile-menu {
	border-color: #2a3d49;
	background: #14212b;
}

html.theme-dark .mobile-menu a {
	border-color: #2a3d49;
}

html.theme-dark .mobile-menu-button {
	color: #eef6fa;
	background: #22333e;
}

html.theme-dark .mobile-menu-button span {
	background: #eef6fa;
}

html.theme-dark .login-button {
	color: #eef6fa;
}

/* Фон основных разделов */
html.theme-dark .hero-section,
html.theme-dark .map-section,
html.theme-dark .categories-section {
	background: transparent;
}

html.theme-dark .hero-section {
	background: linear-gradient(180deg, #13222d 0%, #101820 100%);
}

/* Основные карточки */
html.theme-dark .home-hero-card,
html.theme-dark .home-section-card,
html.theme-dark .home-listing-header,
html.theme-dark .property-card,
html.theme-dark .property-search-panel,
html.theme-dark .property-search-page__intro,
html.theme-dark .category-map-search-card,
html.theme-dark .static-page__card,
html.theme-dark .auth-card,
html.theme-dark .estate-auth-card,
html.theme-dark .property-price-box,
html.theme-dark .property-details-section,
html.theme-dark .property-section-card,
html.theme-dark .property-gallery-more,
html.theme-dark .property-description,
html.theme-dark .property-location {
	border-color: #2b414f;
	background:
		radial-gradient(
			circle at 100% 0%,
			rgba(0, 170, 255, .10),
			transparent 35%
		),
		#17232d;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

/* Границы между частями карточек */
html.theme-dark .home-section-card__header,
html.theme-dark .property-section-card__header,
html.theme-dark .property-gallery-more__header,
html.theme-dark .property-search-panel__header,
html.theme-dark .static-page__header,
html.theme-dark .property-card__footer {
	border-color: #2b414f;
	background-color: transparent;
}

/* Основные заголовки */
html.theme-dark .hero-heading h1,
html.theme-dark .home-section-card__title h2,
html.theme-dark .home-listing-header__title h2,
html.theme-dark .property-full__heading h1,
html.theme-dark .property-section-card__title h2,
html.theme-dark .property-gallery-more__title h2,
html.theme-dark .property-search-page__intro h1,
html.theme-dark .property-search-panel__title h2,
html.theme-dark .category-map-search-card__heading h1,
html.theme-dark .static-page__header h1,
html.theme-dark .auth-card h1,
html.theme-dark .estate-auth-card__title,
html.theme-dark .property-card__title,
html.theme-dark .property-card__price,
html.theme-dark .property-full__price {
	color: #f2f8fb;
}

/* Второстепенный текст */
html.theme-dark .hero-heading p,
html.theme-dark .home-section-card__title p,
html.theme-dark .home-listing-header__title p,
html.theme-dark .property-card__address,
html.theme-dark .property-card__date,
html.theme-dark .property-search-page__intro p,
html.theme-dark .property-search-panel__title p,
html.theme-dark .property-section-card__title p,
html.theme-dark .property-gallery-more__title p,
html.theme-dark .static-page__content,
html.theme-dark .static-page__meta,
html.theme-dark .auth-card__description,
html.theme-dark .estate-auth-card__lead,
html.theme-dark .footer-about p {
	color: #aabdc8;
}

/* Поля формы */
html.theme-dark .property-search,
html.theme-dark .home-hero-card .property-search {
	border-color: #355464;
	background: #14232d;
	box-shadow: none;
}

html.theme-dark .search-field {
	border-color: #2c4452;
}

html.theme-dark .search-field label,
html.theme-dark .map-search-filter span,
html.theme-dark .auth-form__field label,
html.theme-dark .estate-auth-label {
	color: #aabdc8;
}

html.theme-dark .search-field input,
html.theme-dark .search-field select,
html.theme-dark .property-search-panel input,
html.theme-dark .property-search-panel select,
html.theme-dark .auth-form__field input,
html.theme-dark .estate-auth-input {
	color: #eef6fa;
	background: #1b2a35;
	border-color: #36505e;
}

html.theme-dark .search-field input::placeholder,
html.theme-dark .property-search-panel input::placeholder,
html.theme-dark .auth-form__field input::placeholder,
html.theme-dark .estate-auth-input::placeholder {
	color: #8298a5;
}

/* Карточки характеристик и параметры объекта */
html.theme-dark .property-specification,
html.theme-dark .property-details-section .property-specification,
html.theme-dark .property-card__params span,
html.theme-dark .property-search-group,
html.theme-dark .app-download-note {
	color: #dbeaf0;
	border-color: #304754;
	background: #1d2d38;
}

html.theme-dark .property-specification span,
html.theme-dark .property-details-section .property-specification span {
	color: #aabdc8;
}

html.theme-dark .property-specification strong,
html.theme-dark .property-details-section .property-specification strong {
	color: #eef6fa;
}

/* Карта на главной */
html.theme-dark .home-section-card--map .property-map,
html.theme-dark .property-map {
	border-color: #324b59;
}

/* Подвал */
html.theme-dark .site-footer {
	background: #0b1218;
}

html.theme-dark .footer-bottom {
	border-color: #263944;
}

/* Кнопка темы в тёмном режиме */
html.theme-dark .app-theme-toggle {
	color: #ffe28b;
	border-color: #4b5d55;
	background: #26333a;
}

html.theme-dark .app-theme-toggle:hover {
	color: #ffffff;
	border-color: #22b6f2;
	background: #087eb5;
}

/* Ссылка установки APK внутри уже установленного приложения не нужна */
html.is-adrescity-app .android-apk-header-button,
html.is-adrescity-app .android-apk-mobile-link,
html.is-adrescity-app .android-apk-footer-link,
html.is-adrescity-app .android-app-download-button,
html.is-adrescity-app .pwa-install-button {
	display: none !important;
}

@media (max-width: 760px) {
	html.is-adrescity-app .app-theme-toggle {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
		border-radius: 12px;
	}
}

/* =========================================================
   Тёмная тема: блок категорий на главной
   ========================================================= */

html.theme-dark
.home-section-card--categories
.category-card {
	color: #eef6fa;
	border-color: #304754;
	background:
		linear-gradient(
			135deg,
			rgba(37, 72, 90, .55),
			rgba(23, 42, 53, .92)
		);
	box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
}

html.theme-dark
.home-section-card--categories
.category-card:hover {
	border-color: #3dbdec;
	background:
		linear-gradient(
			135deg,
			rgba(32, 104, 135, .55),
			rgba(24, 52, 66, .96)
		);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

html.theme-dark
.home-section-card--categories
.category-card__icon {
	border-color: #31596c;
	background:
		linear-gradient(
			135deg,
			#1d4255,
			#183442
		);
}

html.theme-dark
.home-section-card--categories
.category-card strong {
	color: #eef6fa;
}

html.theme-dark
.home-section-card--categories
.category-card small {
	color: #aabdc8;
}

html.theme-dark
.home-section-card--categories
.category-card__arrow {
	color: #80d8f7;
	background: #203d4d;
}

html.theme-dark
.home-section-card--categories
.category-card:hover
.category-card__arrow {
	color: #ffffff;
	background: #078bc5;
}

/* =========================================================
   Резервирование места мобильной кнопки заявки
   ========================================================= */

.dle-callback-sticky-placeholder {
	display: block;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
}

@media screen and (max-width: 760px) {
	.property-full
	.property-sidebar
	button.dle-callback-start.is-mobile-sticky {
		will-change: transform;
	}
}

/* =========================================================
   Компактный поиск на главной странице для мобильных
   ========================================================= */

.home-search-expand-button {
	display: none;
}

@media screen and (max-width: 760px) {

	/*
	 * В закрытом состоянии остаётся одна строка поиска:
	 * поле адреса / названия и кнопка параметров.
	 */
	#home-map-search {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 52px;
		gap: 8px;
		padding: 7px;
		border-color: #cfe7f3;
		border-radius: 14px;
		background: #ffffff;
		box-shadow: 0 7px 18px rgba(30, 88, 128, .08);
	}

	#home-map-search .home-search-compact-field {
		grid-column: 1;
		padding: 0 8px;
		border: 0;
	}

	#home-map-search .home-search-compact-field label {
		display: none;
	}

	#home-map-search .home-search-compact-field input {
		height: 46px;
		font-size: 15px;
		font-weight: 600;
	}

	#home-map-search .home-search-expand-button {
		display: inline-flex;
		grid-column: 2;
		width: 52px;
		height: 46px;
		align-items: center;
		justify-content: center;
		padding: 0;
		cursor: pointer;
		color: #087eb5;
		border: 1px solid #c5eaf9;
		border-radius: 11px;
		background: #effaff;
		transition:
			color .2s ease,
			background-color .2s ease,
			border-color .2s ease,
			transform .2s ease;
	}

	#home-map-search .home-search-expand-button:active {
		transform: scale(.97);
	}

	#home-map-search .home-search-expand-button svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 2;
	}

	#home-map-search .home-search-expand-button span {
		display: none;
	}

	/*
	 * До раскрытия скрываем все дополнительные параметры
	 * и кнопку отправки.
	 */
	#home-map-search:not(.is-mobile-search-open)
	.home-search-advanced-field,
	#home-map-search:not(.is-mobile-search-open)
	.home-search-submit {
		display: none;
	}

	/*
	 * Раскрытое состояние: показываются нынешние поля поиска.
	 */
	#home-map-search.is-mobile-search-open {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 8px;
	}

	#home-map-search.is-mobile-search-open
	.home-search-compact-field,
	#home-map-search.is-mobile-search-open
	.home-search-advanced-field,
	#home-map-search.is-mobile-search-open
	.home-search-submit {
		grid-column: 1;
	}

	#home-map-search.is-mobile-search-open
	.home-search-compact-field,
	#home-map-search.is-mobile-search-open
	.home-search-advanced-field {
		display: flex;
		padding: 8px 10px;
		border-bottom: 1px solid #dce8ef;
	}

	#home-map-search.is-mobile-search-open
	.home-search-compact-field label {
		display: block;
	}

	#home-map-search.is-mobile-search-open
	.home-search-expand-button {
		display: inline-flex;
		position: absolute;
		z-index: 2;
		top: 17px;
		right: 17px;
		width: 35px;
		height: 35px;
		border-color: transparent;
		background: transparent;
	}

	#home-map-search.is-mobile-search-open
	.home-search-expand-button svg {
		width: 20px;
		height: 20px;
		transform: rotate(180deg);
	}

	#home-map-search.is-mobile-search-open
	.home-search-compact-field input {
		padding-right: 42px;
	}

	#home-map-search.is-mobile-search-open
	.home-search-submit {
		display: inline-flex;
		width: 100%;
		min-height: 50px;
		margin-top: 9px;
	}

	#home-map-search.is-mobile-search-open
	.home-search-advanced-field:last-of-type {
		border-bottom: 0;
	}

	/* Тёмная тема APK */
	html.theme-dark #home-map-search {
		border-color: #355464;
		background: #14232d;
		box-shadow: none;
	}

	html.theme-dark #home-map-search .home-search-expand-button {
		color: #79d8fa;
		border-color: #365564;
		background: #1d3440;
	}

	html.theme-dark #home-map-search.is-mobile-search-open
	.home-search-expand-button {
		background: transparent;
	}

	html.theme-dark #home-map-search.is-mobile-search-open
	.home-search-compact-field,
	html.theme-dark #home-map-search.is-mobile-search-open
	.home-search-advanced-field {
		border-color: #2c4452;
	}
}

/* =========================================================
   Карта объекта на мобильных:
   свайп прокручивает страницу, а карта открывается отдельно
   ========================================================= */

.property-location__map {
	position: relative;
}

.property-location__mobile-map-link {
	display: none;
}

@media screen and (max-width: 760px) {

	/*
	 * Leaflet-карта не перехватывает свайпы одним пальцем.
	 * Поэтому при движении по карте прокручивается страница.
	 */
	.property-location__map > #dle-news-map,
	.property-location__map > iframe {
		pointer-events: none !important;
	}

	/*
	 * Кнопка остаётся активной и ведёт на страницу общей карты
	 * с выбранным объектом.
	 */
.property-location__mobile-map-link {
	position: absolute;
	z-index: 1100;
	top: auto;
    right: 50%;
    bottom: 30px;

		display: inline-flex;
		min-height: 42px;
		align-items: center;
		justify-content: center;
		gap: 7px;
		padding: 9px 14px;

		cursor: pointer;
		color: #ffffff !important;
		border: 1px solid rgba(255, 255, 255, .45);
		border-radius: 11px;
		background: rgba(7, 93, 130, .92);
		box-shadow: 0 7px 18px rgba(7, 35, 50, .30);
		backdrop-filter: blur(8px);

		font-size: 13px;
		font-weight: 750;
		line-height: 1;
		text-decoration: none !important;

		transform: translateX(50%);
		transition:
			background-color .2s ease,
			transform .2s ease,
			box-shadow .2s ease;
	}

	.property-location__mobile-map-link:hover,
	.property-location__mobile-map-link:focus-visible {
		color: #ffffff !important;
		background: #078bc5;
		box-shadow: 0 10px 22px rgba(7, 93, 130, .38);
		transform: translateX(50%) translateY(-1px);
	}

	.property-location__mobile-map-link:active {
		transform: translateX(50%);
	}

	.property-location__mobile-map-link svg {
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
		fill: currentColor;
	}
}

/* Тёмная тема APK */

html.theme-dark .property-location__mobile-map-link {
	color: #ffffff !important;
	border-color: rgba(127, 216, 247, .42);
	background: rgba(10, 75, 105, .94);
}

/* =========================================================
   Полноэкранная карта главной — принудительные размеры
   ========================================================= */

body.map-is-expanded #property-map.property-map--expanded {
	position: fixed !important;
	z-index: 3000 !important;
	inset: 0 !important;

	display: block !important;
	width: 100vw !important;
	min-width: 100vw !important;
	max-width: none !important;
	height: 100dvh !important;
	min-height: 100dvh !important;
	max-height: none !important;
	margin: 0 !important;

	overflow: hidden !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Сам Leaflet внутри развёрнутой карты занимает весь экран */
body.map-is-expanded #property-map.property-map--expanded > div,
body.map-is-expanded #property-map.property-map--expanded > iframe {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	max-height: none !important;
	border-radius: 0 !important;
	pointer-events: auto !important;
}

/*
 * На мобильном устройстве у Leaflet могут быть внутренние
 * контейнеры с pointer-events: none от обычного режима.
 * В полноэкранном режиме карта вновь полностью интерактивна.
 */
@media screen and (max-width: 760px) {
	body.map-is-expanded
	#property-map.property-map--expanded
	#dle-news-map {
		pointer-events: auto !important;
	}
}

/* ==========================================================
   Служебные страницы: ошибки, вход, регистрация, восстановление
   ========================================================== */

.box.berrors.fix_grid {
	position: relative;
	max-width: 620px;
	margin: 44px auto 70px;
	padding: 34px 36px 32px 112px;
	box-sizing: border-box;

	color: #253044;
	background: #ffffff;
	border: 1px solid #ffe0df;
	border-radius: 20px;
	box-shadow: 0 14px 38px rgba(37, 48, 68, 0.09);
}

.box.berrors.fix_grid::before {
	content: "!";
	position: absolute;
	top: 32px;
	left: 34px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 52px;
	height: 52px;

	color: #d73a49;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;

	background: #fff0f0;
	border-radius: 50%;
}

.box.berrors.fix_grid b {
	display: block;
	margin: 0 0 10px;

	color: #202b3e;
	font-size: 22px;
	font-weight: 750;
	line-height: 1.3;
}

.box.berrors.fix_grid ul {
	margin: 0 0 24px;
	padding: 0;

	color: #667085;
	font-size: 16px;
	line-height: 1.55;
	list-style: none;
}

.box.berrors.fix_grid a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	box-sizing: border-box;

	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;

	background: #276ef1;
	border-radius: 10px;
	box-shadow: 0 7px 16px rgba(39, 110, 241, 0.22);
	transition: background-color 0.2s ease, transform 0.2s ease,
		box-shadow 0.2s ease;
}

.box.berrors.fix_grid a:hover {
	color: #ffffff;
	background: #185bd2;
	box-shadow: 0 10px 20px rgba(39, 110, 241, 0.28);
	transform: translateY(-1px);
}

.box.berrors.fix_grid a:focus-visible {
	outline: 3px solid rgba(39, 110, 241, 0.28);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.box.berrors.fix_grid {
		margin: 25px auto 45px;
		padding: 92px 22px 24px;
		border-radius: 16px;
	}

	.box.berrors.fix_grid::before {
		top: 24px;
		left: 50%;
		transform: translateX(-50%);
	}

	.box.berrors.fix_grid b {
		font-size: 20px;
		text-align: center;
	}

	.box.berrors.fix_grid ul {
		text-align: center;
	}

	.box.berrors.fix_grid a {
		width: 100%;
	}
}

/* =========================================================
   Страница обратной связи DLE
   ========================================================= */

/*
 * DLE помещает форму #sendmail прямо внутрь .news-grid.
 * Растягиваем её на всю ширину, а не на первую ячейку
 * стандартной сетки объявлений.
 */
.news-grid > form#sendmail {
	display: block !important;
	grid-column: 1 / -1 !important;

	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;

	margin: 0 !important;
	padding: 0 !important;
}

/* Контейнер страницы */
#sendmail #feedback-form {
	display: block;
	width: 100%;
	max-width: 1060px;
	min-width: 0;
	margin: 30px auto 70px;
}

/* На всякий случай: форма и карточки не выходят за контейнер */
#sendmail .feedback-page,
#sendmail .feedback-card,
#sendmail .feedback-help-card {
	min-width: 0;
}

/* Адаптация */
@media (max-width: 850px) {
	#sendmail #feedback-form {
		max-width: 680px;
	}
}

@media (max-width: 620px) {
	#sendmail #feedback-form {
		margin-top: 16px;
		margin-bottom: 42px;
	}
}

/* =========================================================
   Тёмная тема APK — служебные страницы
   Вход, регистрация, восстановление, обратная связь, ошибки
   ========================================================= */

/* ---------------------------------------------------------
   Общие сообщения DLE: ошибка / уведомление
   --------------------------------------------------------- */

html.theme-dark .box.berrors.fix_grid {
	color: #dbeaf0;
	border-color: #5a3a42;
	background: #241d23;
	box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
}

html.theme-dark .box.berrors.fix_grid::before {
	color: #ff8794;
	background: #44242c;
}

html.theme-dark .box.berrors.fix_grid b {
	color: #fff1f2;
}

html.theme-dark .box.berrors.fix_grid ul,
html.theme-dark .box.berrors.fix_grid {
	color: #d8b9c0;
}

/* Кнопка «Вернуться назад» */
html.theme-dark .box.berrors.fix_grid a {
	color: #ffffff;
	background: #168dcc;
	box-shadow: 0 7px 16px rgba(22, 141, 204, .26);
}

html.theme-dark .box.berrors.fix_grid a:hover {
	color: #ffffff;
	background: #22b6f2;
	box-shadow: 0 10px 21px rgba(34, 182, 242, .34);
}

/* =========================================================
   Профиль: подтверждённый телефон и уведомление о модерации
   ========================================================= */

/* Подтверждённый телефон */

#userinfo .profile-publish-notice {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin: 0 0 26px;
	padding: 19px;
	border: 1px solid #bfe8d0;
	border-radius: 16px;
	background: linear-gradient(135deg, #f4fff8, #effbf5);
	box-shadow: 0 8px 22px rgba(24, 126, 70, .07);
}

#userinfo .profile-publish-notice__icon {
	display: grid;
	width: 41px;
	height: 41px;
	flex: 0 0 41px;
	place-items: center;
	color: #ffffff;
	border-radius: 13px;
	background: linear-gradient(135deg, #25ae62, #168044);
	box-shadow: 0 7px 14px rgba(24, 126, 70, .2);
	font-size: 23px;
	font-weight: 800;
	line-height: 1;
}

#userinfo .profile-publish-notice__content {
	min-width: 0;
}

#userinfo .profile-publish-notice__content strong {
	display: block;
	color: #176b3d;
	font-size: 17px;
	line-height: 1.35;
}

#userinfo .profile-publish-notice__content p {
	margin: 5px 0 14px;
	color: #527263;
	font-size: 14px;
	line-height: 1.55;
}

#userinfo .profile-publish-notice__button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	color: #ffffff;
	border-radius: 10px;
	background: linear-gradient(135deg, #25ae62, #168044);
	box-shadow: 0 7px 15px rgba(24, 126, 70, .17);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition:
		filter .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

#userinfo .profile-publish-notice__button:hover {
	color: #ffffff;
	filter: brightness(1.05);
	box-shadow: 0 10px 20px rgba(24, 126, 70, .25);
	transform: translateY(-1px);
}

#userinfo .profile-publish-notice__button:focus-visible {
	outline: 3px solid rgba(24, 126, 70, .3);
	outline-offset: 3px;
}

/* Уведомление о модерации */

#userinfo .profile-moderation-notice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: none;
	margin: 26px 0 0;
	padding: 18px 20px;
	color: #23445d;
	border: 1px solid #cfe7fb;
	border-radius: 14px;
	background: #f0f8ff;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.55;
}

#userinfo .profile-moderation-notice::before {
	display: none;
	content: none;
}

#userinfo .profile-moderation-notice__icon {
	display: flex;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	align-items: center;
	justify-content: center;
	color: #1778b8;
	border-radius: 50%;
	background: #d9efff;
	font-family: Georgia, serif;
	font-size: 17px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
}

#userinfo .profile-moderation-notice__content {
	min-width: 0;
}

#userinfo .profile-moderation-notice__content strong {
	display: block;
	margin: 1px 0 4px;
	color: #1b4968;
	font-size: 15px;
	font-weight: 750;
}

#userinfo .profile-moderation-notice__content p {
	margin: 0;
	color: #587286;
	font-size: 14px;
	line-height: 1.5;
}

/* Тёмная тема */

html.theme-dark #userinfo .profile-publish-notice {
	border-color: #315b46;
	background: linear-gradient(135deg, #18382a, #172f25);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

html.theme-dark #userinfo .profile-publish-notice__content strong {
	color: #91e7b4;
}

html.theme-dark #userinfo .profile-publish-notice__content p {
	color: #b3cdbd;
}

html.theme-dark #userinfo .profile-moderation-notice {
	color: #b8d7e6;
	border-color: #2c5367;
	background: linear-gradient(135deg, #172d39, #1a303c);
}

html.theme-dark #userinfo .profile-moderation-notice__icon {
	color: #82ddff;
	background: #21495b;
}

html.theme-dark #userinfo .profile-moderation-notice__content strong {
	color: #dff5ff;
}

html.theme-dark #userinfo .profile-moderation-notice__content p {
	color: #b8d7e6;
}

/* Мобильные устройства */

@media (max-width: 760px) {
	#userinfo .profile-publish-notice {
		gap: 12px;
		padding: 16px;
	}

	#userinfo .profile-publish-notice__icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		border-radius: 11px;
		font-size: 20px;
	}

	#userinfo .profile-publish-notice__content strong {
		font-size: 16px;
	}

	#userinfo .profile-publish-notice__content p {
		font-size: 13px;
	}

	#userinfo .profile-publish-notice__button {
		width: 100%;
	}
}

@media (max-width: 560px) {
	#userinfo .profile-moderation-notice {
		gap: 12px;
		padding: 15px;
	}
}

/* ---------------------------------------------------------
   Вход и регистрация: .auth-card
   --------------------------------------------------------- */

html.theme-dark .auth-card {
	border-color: #2b414f;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(34, 182, 242, .12),
			transparent 35%
		),
		#17232d;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

html.theme-dark .auth-card__icon {
	color: #82ddff;
	border-color: #2e6076;
	background: linear-gradient(135deg, #1b4558, #183846);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
}

html.theme-dark .auth-card__icon svg {
	stroke: #82ddff;
}

html.theme-dark .auth-card h1 {
	color: #f2f8fb;
}

html.theme-dark .auth-card__eyebrow {
	color: #79d8fa;
}

html.theme-dark .auth-card__description,
html.theme-dark .auth-form__hint,
html.theme-dark .auth-form__rules,
html.theme-dark .auth-checkbox {
	color: #aabdc8;
}

html.theme-dark .auth-form__field label {
	color: #dbeaf0;
}

html.theme-dark .auth-form__field input,
html.theme-dark .auth-card #login-phone,
html.theme-dark #login-phone {
	color: #eef6fa !important;
	border-color: #36505e !important;
	background: #1b2a35 !important;
}

html.theme-dark .auth-form__field input::placeholder,
html.theme-dark .auth-card #login-phone::placeholder,
html.theme-dark #login-phone::placeholder {
	color: #8298a5 !important;
}

html.theme-dark .auth-form__field input:hover,
html.theme-dark .auth-card #login-phone:hover,
html.theme-dark #login-phone:hover {
	border-color: #4d6d7d !important;
}

html.theme-dark .auth-form__field input:focus,
html.theme-dark .auth-card #login-phone:focus,
html.theme-dark #login-phone:focus {
	border-color: #22b6f2 !important;
	background: #1d2e39 !important;
	box-shadow: 0 0 0 4px rgba(34, 182, 242, .16) !important;
}

html.theme-dark .auth-form__captcha-image,
html.theme-dark .auth-form__question {
	color: #c5dce6;
	border-color: #36505e;
	background: #1d2d38;
}

html.theme-dark .auth-form__captcha input[type="text"],
html.theme-dark .auth-form__question + input {
	color: #eef6fa;
	border-color: #36505e;
	background: #1b2a35;
}

html.theme-dark .auth-form__captcha input:focus,
html.theme-dark .auth-form__question + input:focus {
	border-color: #22b6f2;
	box-shadow: 0 0 0 4px rgba(34, 182, 242, .16);
}

html.theme-dark .auth-checkbox__mark {
	border-color: #55707e;
	background: #1b2a35;
}

html.theme-dark .auth-checkbox input:checked + .auth-checkbox__mark {
	border-color: #22b6f2;
	background: #168dcc;
}

html.theme-dark .auth-checkbox__text a,
html.theme-dark .auth-form__links a {
	color: #79d8fa;
}

html.theme-dark .auth-checkbox__text a:hover,
html.theme-dark .auth-form__links a:hover {
	color: #b7ecff;
}

/* ---------------------------------------------------------
   Восстановление пароля: .estate-auth-card
   --------------------------------------------------------- */

html.theme-dark .estate-auth-card {
	border-color: #2b414f;
	background: #17232d;
	box-shadow: 0 12px 38px rgba(0, 0, 0, .28);
}

html.theme-dark .estate-auth-card__icon {
	color: #82ddff;
	background: linear-gradient(135deg, #1b4558, #183846);
}

html.theme-dark .estate-auth-card__title {
	color: #f2f8fb;
}

html.theme-dark .estate-auth-card__lead,
html.theme-dark .estate-auth-footer {
	color: #aabdc8;
}

html.theme-dark .estate-auth-label {
	color: #dbeaf0;
}

html.theme-dark .estate-auth-input {
	color: #eef6fa;
	border-color: #36505e;
	background: #1b2a35;
}

html.theme-dark .estate-auth-input::placeholder {
	color: #8298a5;
}

html.theme-dark .estate-auth-input:hover {
	border-color: #4d6d7d;
}

html.theme-dark .estate-auth-input:focus {
	border-color: #22b6f2;
	box-shadow: 0 0 0 4px rgba(34, 182, 242, .16);
}

html.theme-dark .estate-auth-captcha__image {
	border-color: #36505e;
	background: #1d2d38;
}

html.theme-dark .estate-auth-footer a {
	color: #79d8fa;
}

html.theme-dark .estate-auth-footer a:hover {
	color: #b7ecff;
}

/* ---------------------------------------------------------
   Обратная связь
   --------------------------------------------------------- */

html.theme-dark #sendmail .feedback-card,
html.theme-dark #sendmail .feedback-help-card {
	border-color: #2b414f;
	background: #17232d;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

html.theme-dark #sendmail .feedback-card__head {
	border-color: #2b414f;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(34, 182, 242, .12),
			transparent 38%
		),
		linear-gradient(145deg, #1b2b36, #17232d);
}

html.theme-dark #sendmail .feedback-card__icon {
	color: #82ddff;
	background: #1d3d4d;
}

html.theme-dark #sendmail .feedback-card__title,
html.theme-dark #sendmail .feedback-help-card h2 {
	color: #f2f8fb;
}

html.theme-dark #sendmail .feedback-card__subtitle,
html.theme-dark #sendmail .feedback-help-card p,
html.theme-dark #sendmail .feedback-help-list li,
html.theme-dark #sendmail .feedback-form-actions__hint {
	color: #aabdc8;
}

html.theme-dark #sendmail .feedback-form-label {
	color: #dbeaf0;
}

html.theme-dark #sendmail .feedback-form-input,
html.theme-dark #sendmail .feedback-form-row select,
html.theme-dark #sendmail .feedback-form-row textarea {
	color: #eef6fa;
	border-color: #36505e;
	background: #1b2a35;
}

html.theme-dark #sendmail .feedback-form-input::placeholder,
html.theme-dark #sendmail .feedback-form-row textarea::placeholder {
	color: #8298a5;
}

html.theme-dark #sendmail .feedback-form-input:hover,
html.theme-dark #sendmail .feedback-form-row select:hover,
html.theme-dark #sendmail .feedback-form-row textarea:hover {
	border-color: #4d6d7d;
}

html.theme-dark #sendmail .feedback-form-input:focus,
html.theme-dark #sendmail .feedback-form-row select:focus,
html.theme-dark #sendmail .feedback-form-row textarea:focus {
	border-color: #22b6f2;
	box-shadow: 0 0 0 4px rgba(34, 182, 242, .16);
}

html.theme-dark #sendmail .feedback-form-input--file::file-selector-button {
	color: #a9e4fa;
	background: #214354;
}

html.theme-dark #sendmail .feedback-security-note {
	color: #aabdc8;
	border-color: #304754;
	background: #1d2d38;
}

html.theme-dark #sendmail .feedback-security-note__icon {
	color: #82ddff;
	background: #214656;
}

html.theme-dark #sendmail .feedback-help-card__icon {
	color: #73e4a2;
	background: #1d4938;
}

html.theme-dark #sendmail .feedback-help-list {
	border-color: #2b414f;
}

html.theme-dark #sendmail .feedback-help-list li::before {
	background: #35c978;
	box-shadow: 0 0 0 4px rgba(53, 201, 120, .14);
}

/* =========================================================
   Полноэкранный просмотр фото объекта — дополнения
   ========================================================= */

.property-viewer__arrow svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.3;
}

.property-viewer__image {
	-webkit-user-drag: none;

	/*
	 * Запрещаем браузеру масштабировать саму страницу,
	 * пока пользователь работает с изображением.
	 * Масштабирование выполняет JavaScript просмотрщика.
	 */
	touch-action: none;

	will-change: transform;
	transform-origin: center center;
}

/* Во время увеличения фото не должно выделяться */
.property-viewer__figure,
.property-viewer__image {
	-webkit-user-select: none;
	user-select: none;
}

/* Для плавного перемещения увеличенного изображения */
.property-viewer__figure {
	cursor: grab;
}

.property-viewer__image {
	cursor: grab;
}

.property-viewer__image:active {
	cursor: grabbing;
}

.property-viewer__figure {
	/*
	 * Жестами управляет JavaScript:
	 * pinch-to-zoom, перемещение увеличенного фото и свайпы.
	 */
	touch-action: none;
}

@media (max-width: 760px) {
	.property-viewer {
		padding:
			max(12px, env(safe-area-inset-top))
			10px
			max(12px, env(safe-area-inset-bottom));
	}

	.property-viewer__dialog {
		grid-template-columns: 42px minmax(0, 1fr) 42px;
		gap: 7px;
	}

	.property-viewer__figure {
		height: min(70dvh, 650px);
		max-height: calc(100dvh - 145px);
	}

	.property-viewer__arrow {
		width: 40px;
		height: 48px;
		border-radius: 11px;
	}

	.property-viewer__arrow svg {
		width: 24px;
		height: 24px;
	}

	.property-viewer__thumbs {
		padding-bottom: env(safe-area-inset-bottom);
	}
}

/* Тёмная тема приложения */
html.theme-dark .property-viewer__figure {
	background: #0c151c;
}

html.theme-dark .property-viewer__thumb {
	background: #172a35;
}

html.theme-dark .property-viewer__thumb.is-active {
	border-color: #22b6f2;
}

/* =========================================================
   Увеличенный просмотр фотографий на телефонах и в APK
   ========================================================= */

@media screen and (max-width: 760px) {

	/*
	 * Окно просмотра использует практически весь экран.
	 * Небольшой отступ сохраняется только для безопасных зон
	 * Android-устройств и вырезов камеры.
	 */
	.property-viewer {
		padding:
			max(4px, env(safe-area-inset-top))
			4px
			max(4px, env(safe-area-inset-bottom));
	}

	/*
	 * Убираем колонки для стрелок:
	 * сами кнопки будут поверх фотографии.
	 */
	.property-viewer__dialog {
		display: block;
		width: 100%;
		max-width: none;
		height: 100dvh;
		max-height: none;
	}

	/*
	 * Фото занимает максимум высоты устройства.
	 * Раньше здесь было только 67–70% высоты экрана.
	 */
	.property-viewer__figure {
		position: absolute;
		inset: 0;

		display: flex;
		width: 100%;
		height: 100dvh;
		max-height: none;

		border-radius: 0;
		background: #05080a;
	}

	/*
	 * contain показывает фото целиком.
	 * Оно станет настолько большим, насколько позволяет
	 * исходное разрешение и пропорции изображения.
	 */
	.property-viewer__image {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: none;
		object-fit: contain;
	}

	/*
	 * Миниатюры скрываем на телефонах:
	 * они отнимали заметную часть полезной высоты.
	 * Листание остаётся свайпом и стрелками.
	 */
	.property-viewer__thumbs {
		display: none !important;
	}

	/*
	 * Стрелки располагаются поверх изображения,
	 * поэтому не уменьшают его ширину.
	 */
	.property-viewer__arrow {
		position: absolute;
		z-index: 5;
		top: 50%;

		width: 46px;
		height: 58px;

		border-color: rgba(255, 255, 255, .22);
		border-radius: 13px;
		background: rgba(10, 18, 24, .62);

		transform: translateY(-50%);
	}

	.property-viewer__arrow--prev {
		left: max(8px, env(safe-area-inset-left));
	}

	.property-viewer__arrow--next {
		right: max(8px, env(safe-area-inset-right));
	}

	.property-viewer__arrow:hover {
		transform: translateY(-50%) !important;
	}

	.property-viewer__close {
		position: fixed;
		z-index: 10;
		top: max(12px, env(safe-area-inset-top));
		right: max(12px, env(safe-area-inset-right));

		width: 46px;
		height: 46px;

		color: #ffffff;
		border-color: rgba(255, 255, 255, .25);
		background: rgba(10, 18, 24, .7);
	}

	.property-viewer__counter {
		position: fixed;
		z-index: 10;
		right: max(12px, env(safe-area-inset-right));
		bottom: max(14px, env(safe-area-inset-bottom));

		padding: 8px 12px;
		border-radius: 10px;
		background: rgba(0, 0, 0, .7);
		font-size: 13px;
	}

	/*
	 * В APK часто используется более высокий экран.
	 * Это исключает нежелательные ограничения браузера.
	 */
	html.is-adrescity-app .property-viewer__figure {
		height: 100vh;
		height: 100dvh;
	}
}

/* Маленькие телефоны: стрелки компактнее, но фото по-прежнему во весь экран */
@media screen and (max-width: 420px) {
	.property-viewer__arrow {
		width: 40px;
		height: 54px;
	}

	.property-viewer__arrow--prev {
		left: 5px;
	}

	.property-viewer__arrow--next {
		right: 5px;
	}

	.property-viewer__arrow svg {
		width: 23px;
		height: 23px;
	}
}

/* =========================================================
   Мобильная карта: разрешаем открыть карточку объекта
   ========================================================= */

@media screen and (max-width: 760px) {

	/*
	 * Раньше карта главной страницы не принимала касания,
	 * поэтому невозможно было нажать на маркер, открыть
	 * карточку объекта и перейти в объявление.
	 */
	.home-section-card--map
	.property-map:not(.property-map--expanded)
	#dle-news-map,
	.home-section-card--map
	.property-map:not(.property-map--expanded)
	iframe {
		pointer-events: auto !important;
	}

	/*
	 * Разрешаем нажатия на маркеры, popup и ссылки
	 * Leaflet-карты в мобильной версии и APK.
	 */
	.home-section-card--map .leaflet-marker-icon,
	.home-section-card--map .leaflet-popup,
	.home-section-card--map .leaflet-popup-content,
	.home-section-card--map .leaflet-popup-content a,
	.home-section-card--map .dle-news-map-marker {
		pointer-events: auto !important;
	}
}

/* =========================================================
   Тёмная тема: текст в описании объявления
   ========================================================= */

html.theme-dark .property-description .property-section-card__content,
html.theme-dark .property-description .property-section-card__content p,
html.theme-dark .property-description .property-section-card__content li,
html.theme-dark .property-description .property-section-card__content div,
html.theme-dark .property-description .property-section-card__content span {
	color: #dbeaf0;
}

html.theme-dark .property-description .property-section-card__content strong,
html.theme-dark .property-description .property-section-card__content b,
html.theme-dark .property-description .property-section-card__content h1,
html.theme-dark .property-description .property-section-card__content h2,
html.theme-dark .property-description .property-section-card__content h3,
html.theme-dark .property-description .property-section-card__content h4 {
	color: #f3f9fc;
}

html.theme-dark .property-description .property-section-card__content a {
	color: #79d8fa;
	text-decoration: underline;
}

html.theme-dark .property-description .property-section-card__content blockquote {
	color: #dbeaf0;
	border-left-color: #22b6f2;
	background: #1b2d38;
}


/* =========================================================
   Тёмная тема: страница «Недвижимость на карте»
   /na-karte.html
   ========================================================= */

html.theme-dark .map-search-page {
	border-color: #2b414f !important;
	background: #17232d !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important;
}

html.theme-dark .map-search-page__top {
	border-color: #2b414f !important;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(34, 182, 242, .13),
			transparent 38%
		),
		linear-gradient(145deg, #1b2d38, #17232d) !important;
}

html.theme-dark .map-search-page__eyebrow {
	color: #79d8fa !important;
}

html.theme-dark .map-search-page__heading h1 {
	color: #f2f8fb !important;
}

html.theme-dark .map-search-page__heading p {
	color: #aabdc8 !important;
}

/* Фильтры */

html.theme-dark .map-search-filter span {
	color: #b9ccd5 !important;
}

html.theme-dark .map-search-filter select,
html.theme-dark .map-search-filter input {
	color: #eef6fa !important;
	border-color: #36505e !important;
	background: #1b2a35 !important;
}

html.theme-dark .map-search-filter select:hover,
html.theme-dark .map-search-filter input:hover {
	border-color: #4c6a7a !important;
}

html.theme-dark .map-search-filter select:focus,
html.theme-dark .map-search-filter input:focus {
	border-color: #22b6f2 !important;
	box-shadow: 0 0 0 4px rgba(34, 182, 242, .16) !important;
}

html.theme-dark .map-search-filter input::placeholder {
	color: #8298a5 !important;
}

html.theme-dark .map-search-filters__reset {
	color: #9de2fc !important;
	border-color: #356071 !important;
	background: #1d3c4b !important;
}

html.theme-dark .map-search-filters__reset:hover {
	color: #ffffff !important;
	border-color: #22b6f2 !important;
	background: #078bc5 !important;
}

/* Мобильные вкладки */

html.theme-dark .map-search-page__mobile-tabs {
	background: #1b303b !important;
}

html.theme-dark .map-search-page__tab {
	color: #aabdc8 !important;
}

html.theme-dark .map-search-page__tab--active {
	color: #82ddff !important;
	background: #243b47 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .24) !important;
}

/* Левая колонка со списком объектов */

html.theme-dark .map-search-results {
	border-color: #2b414f !important;
	background: #14232d !important;
}

html.theme-dark .map-search-results__header {
	border-color: #2b414f !important;
	background: #17232d !important;
}

html.theme-dark .map-search-results__header strong {
	color: #eef6fa !important;
}

html.theme-dark .map-search-results__header span {
	color: #aabdc8 !important;
}

html.theme-dark .map-search-results__loader {
	border-color: #2e5263 !important;
	border-top-color: #22b6f2 !important;
}

html.theme-dark .map-search-results__list {
	scrollbar-color: #406475 transparent;
}

html.theme-dark .map-search-results__list::-webkit-scrollbar-thumb {
	border-color: #14232d;
	background: #406475;
}

html.theme-dark .map-search-results__list::-webkit-scrollbar-thumb:hover {
	background: #5d8ca2;
}

/* Карточки объектов в списке */

html.theme-dark .map-search-card {
	border-color: #304957 !important;
	background: #1b2a35 !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .16) !important;
}

html.theme-dark .map-search-card:hover,
html.theme-dark .map-search-card.is-active {
	border-color: #22b6f2 !important;
	background: #1d303b !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .3) !important;
}

html.theme-dark .map-search-card__image {
	background: #253843 !important;
}

html.theme-dark .map-search-card__no-image {
	color: #aabdc8 !important;
}

html.theme-dark .map-search-card__title {
	color: #eef6fa !important;
}

html.theme-dark .map-search-card__title:hover {
	color: #79d8fa !important;
}

html.theme-dark .map-search-card__price {
	color: #ffffff !important;
}

html.theme-dark .map-search-card__params span {
	color: #c9dbe3 !important;
	background: #253a46 !important;
}

html.theme-dark .map-search-card__address,
html.theme-dark .map-search-card__footer {
	color: #aabdc8 !important;
}

html.theme-dark .map-search-card__footer button {
	color: #79d8fa !important;
}

html.theme-dark .map-search-card__footer button:hover {
	color: #b7ecff !important;
}

/* Пустое состояние */

html.theme-dark .map-search-empty {
	color: #aabdc8 !important;
}

html.theme-dark .map-search-empty strong {
	color: #eef6fa !important;
}

/* Область карты и кнопка возврата */

html.theme-dark .map-search-map-wrap,
html.theme-dark #dle-news-map-avito {
	background: #12202a !important;
}

html.theme-dark .map-search-map-wrap__recenter {
	color: #82ddff !important;
	border-color: #365564 !important;
	background: #1d3340 !important;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .3) !important;
}

html.theme-dark .map-search-map-wrap__recenter:hover {
	color: #ffffff !important;
	border-color: #22b6f2 !important;
	background: #078bc5 !important;
}

/*
 * У OpenStreetMap нет встроенной тёмной палитры в текущем
 * подключении. Фильтр делает плитки карты тёмными.
 */
html.theme-dark #dle-news-map-avito .leaflet-tile-pane {
	filter: brightness(.72) contrast(1.08) saturate(.72) invert(.88) hue-rotate(180deg);
}

/* Всплывающая карточка Leaflet после нажатия маркера */

html.theme-dark #dle-news-map-avito .leaflet-popup-content-wrapper,
html.theme-dark #dle-news-map-avito .leaflet-popup-tip {
	background: #1b2a35 !important;
	color: #eef6fa !important;
}

html.theme-dark #dle-news-map-avito .leaflet-popup-close-button {
	color: #aabdc8 !important;
}

html.theme-dark #dle-news-map-avito .leaflet-popup-close-button:hover {
	color: #ffffff !important;
}

html.theme-dark .map-search-popup {
	color: #eef6fa !important;
}

html.theme-dark .map-search-popup b,
html.theme-dark .map-search-popup strong {
	color: #ffffff !important;
}

html.theme-dark .map-search-popup small {
	color: #aabdc8 !important;
}

html.theme-dark .map-search-popup__image {
	background: #253a46 !important;
}

/* Кнопки масштабирования Leaflet */

html.theme-dark #dle-news-map-avito .leaflet-control-zoom a {
	color: #dbeaf0 !important;
	border-color: #36505e !important;
	background: #1b2a35 !important;
}

html.theme-dark #dle-news-map-avito .leaflet-control-zoom a:hover {
	color: #ffffff !important;
	background: #254453 !important;
}

html.theme-dark #dle-news-map-avito .leaflet-control-attribution {
	color: #aabdc8 !important;
	background: rgba(23, 35, 45, .82) !important;
}

html.theme-dark #dle-news-map-avito .leaflet-control-attribution a {
	color: #79d8fa !important;
}

/* =========================================================
   Тёмная тема APK — карта на главной и в карточке объекта
   ========================================================= */

/*
 * OpenStreetMap в текущем подключении не имеет отдельного
 * тёмного слоя. Затемняем только слой плиток Leaflet.
 *
 * Маркеры, popup и элементы управления остаются нормальными,
 * потому что они находятся в других Leaflet-pane.
 */
html.theme-dark #dle-news-map .leaflet-tile-pane,
html.theme-dark .property-map .leaflet-tile-pane,
html.theme-dark .property-location__map .leaflet-tile-pane {
	filter: brightness(.72) contrast(1.08) saturate(.72)
		invert(.88) hue-rotate(180deg);
}

/* Фон, который виден в момент загрузки плиток карты */
html.theme-dark .property-map,
html.theme-dark .property-location__map,
html.theme-dark #dle-news-map {
	background: #12202a !important;
}

/* Окно, появляющееся при нажатии на маркер */
html.theme-dark #dle-news-map .leaflet-popup-content-wrapper,
html.theme-dark #dle-news-map .leaflet-popup-tip,
html.theme-dark .property-map .leaflet-popup-content-wrapper,
html.theme-dark .property-map .leaflet-popup-tip,
html.theme-dark .property-location__map .leaflet-popup-content-wrapper,
html.theme-dark .property-location__map .leaflet-popup-tip {
	color: #eef6fa !important;
	background: #1b2a35 !important;
}

/* Кнопка закрытия popup */
html.theme-dark #dle-news-map .leaflet-popup-close-button,
html.theme-dark .property-map .leaflet-popup-close-button,
html.theme-dark .property-location__map .leaflet-popup-close-button {
	color: #aabdc8 !important;
}

html.theme-dark #dle-news-map .leaflet-popup-close-button:hover,
html.theme-dark .property-map .leaflet-popup-close-button:hover,
html.theme-dark .property-location__map .leaflet-popup-close-button:hover {
	color: #ffffff !important;
}

/* Кнопки + и − масштаба */
html.theme-dark #dle-news-map .leaflet-control-zoom a,
html.theme-dark .property-map .leaflet-control-zoom a,
html.theme-dark .property-location__map .leaflet-control-zoom a {
	color: #dbeaf0 !important;
	border-color: #36505e !important;
	background: #1b2a35 !important;
}

html.theme-dark #dle-news-map .leaflet-control-zoom a:hover,
html.theme-dark .property-map .leaflet-control-zoom a:hover,
html.theme-dark .property-location__map .leaflet-control-zoom a:hover {
	color: #ffffff !important;
	background: #254453 !important;
}

/* Подпись OpenStreetMap / Leaflet снизу карты */
html.theme-dark #dle-news-map .leaflet-control-attribution,
html.theme-dark .property-map .leaflet-control-attribution,
html.theme-dark .property-location__map .leaflet-control-attribution {
	color: #aabdc8 !important;
	background: rgba(23, 35, 45, .84) !important;
}

html.theme-dark #dle-news-map .leaflet-control-attribution a,
html.theme-dark .property-map .leaflet-control-attribution a,
html.theme-dark .property-location__map .leaflet-control-attribution a {
	color: #79d8fa !important;
}

.help-page {
	max-width: 940px;
	margin: 0 auto;
	padding: 12px 0 40px;
}

.help-page__intro {
	padding: 36px;
	border: 1px solid #dfe8f2;
	border-radius: 22px;
	background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 100%);
	box-shadow: 0 10px 30px rgba(33, 71, 113, 0.08);
}

.help-page__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	color: #1677ff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.help-page h1 {
	margin: 0 0 14px;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.16;
	color: #172033;
}

.help-page h2 {
	margin: 0 0 14px;
	font-size: 24px;
	line-height: 1.25;
	color: #172033;
}

.help-page p {
	margin: 0 0 16px;
	color: #526074;
	font-size: 16px;
	line-height: 1.7;
}

.help-page__primary-button,
.help-page__secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 8px 10px 0 0;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-page__primary-button {
	color: #ffffff;
	background: #1677ff;
	box-shadow: 0 8px 18px rgba(22, 119, 255, 0.22);
}

.help-page__secondary-button {
	color: #1677ff;
	border: 1px solid #b9d7ff;
	background: #ffffff;
}

.help-page__primary-button:hover,
.help-page__secondary-button:hover {
	transform: translateY(-1px);
}

.help-page__notice {
	margin: 24px 0;
	padding: 18px 20px;
	border-left: 4px solid #ff9d00;
	border-radius: 10px;
	color: #674700;
	background: #fff8e8;
	line-height: 1.6;
}

.help-page__section {
	margin-top: 22px;
	padding: 28px;
	border: 1px solid #e3eaf2;
	border-radius: 18px;
	background: #ffffff;
}

.help-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.help-page__actions a {
	color: #1677ff;
	font-weight: 700;
	text-decoration: none;
}

.help-page__actions a:hover {
	text-decoration: underline;
}

.help-page__check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.help-page__check-list li {
	position: relative;
	margin: 0 0 13px;
	padding-left: 30px;
	color: #526074;
	line-height: 1.65;
}

.help-page__check-list li::before {
	position: absolute;
	top: 3px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	color: #ffffff;
	background: #20a34a;
	content: "✓";
	font-size: 12px;
	font-weight: 700;
}

.help-page__table-wrap {
	overflow-x: auto;
}

.help-page__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.help-page__table th,
.help-page__table td {
	padding: 13px 14px;
	border: 1px solid #e2eaf2;
	text-align: left;
	vertical-align: top;
}

.help-page__table th {
	color: #26364d;
	background: #f3f7fb;
	font-weight: 700;
}

.help-page__table td {
	color: #526074;
}

.help-page__section--contact {
	text-align: center;
	border-color: #cfe2ff;
	background: #f4f9ff;
}

@media (max-width: 640px) {
	.help-page {
		padding-top: 0;
	}

	.help-page__intro,
	.help-page__section {
		padding: 22px 18px;
		border-radius: 14px;
	}

	.help-page h2 {
		font-size: 21px;
	}

	.help-page__primary-button,
	.help-page__secondary-button {
		width: 100%;
		margin-right: 0;
	}
}

/* =========================================================
   Избранные объявления
   ========================================================= */

.favorites-link {
	position: relative;
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 12px;
	color: #087eb5 !important;
	border: 1px solid #c5eaf9;
	border-radius: 11px;
	background: #effaff;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
	transition:
		color .2s ease,
		background .2s ease,
		border-color .2s ease,
		transform .2s ease;
}

.favorites-link:hover {
	color: #ffffff !important;
	border-color: #ff4053;
	background: #ff4053;
	transform: translateY(-1px);
}

.favorites-link svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.favorites-link__count,
.mobile-favorites-link small,
.footer-favorites-link small {
	display: inline-flex;
	min-width: 19px;
	height: 19px;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	color: #ffffff;
	border-radius: 999px;
	background: #ff4053;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.favorites-link:hover .favorites-link__count {
	color: #ff4053;
	background: #ffffff;
}

.mobile-favorites-link {
	display: flex !important;
	align-items: center;
	gap: 8px;
}

.mobile-favorites-link > span {
	color: #ff4053;
	font-size: 22px;
	line-height: 1;
}

.mobile-favorites-link small {
	margin-left: auto;
}

.footer-favorites-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
}

.footer-favorites-link > span {
	color: #ff8290;
	font-size: 19px;
	line-height: 1;
}

.estate-favorites-page {
	width: 100%;
	margin: 4px auto 55px;
	overflow: hidden;
	border: 1px solid #dfeaf2;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(25, 55, 90, .06);
}

.estate-favorites-page__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 26px;
	border-bottom: 1px solid #e5edf3;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(255, 64, 83, .10),
			transparent 35%
		),
		linear-gradient(145deg, #ffffff, #fff9fa);
}

.estate-favorites-page__header::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(90deg, #ff4053, #ff8290, #ffd0d5);
}

.estate-favorites-page__eyebrow {
	margin-bottom: 7px;
	color: #e1374a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.estate-favorites-page__header h2 {
	margin: 0;
	color: #172333;
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.15;
}

.estate-favorites-page__header p {
	margin: 7px 0 0;
	color: #718091;
	font-size: 14px;
}

.estate-favorites-page__clear {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	cursor: pointer;
	color: #b23a48;
	border: 1px solid #f2c7cc;
	border-radius: 11px;
	background: #fff6f7;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	white-space: nowrap;
	transition:
		color .2s ease,
		background .2s ease,
		border-color .2s ease;
}

.estate-favorites-page__clear:hover {
	color: #ffffff;
	border-color: #e34a5a;
	background: #e34a5a;
}

.estate-favorites-grid {
	padding: 24px 26px 28px;
}

.estate-favorites-loading,
.estate-favorites-empty,
.estate-favorites-error {
	display: flex;
	min-height: 270px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	padding: 30px;
	color: #718091;
	text-align: center;
}

.estate-favorites-loading span {
	width: 34px;
	height: 34px;
	border: 3px solid #ffd5da;
	border-top-color: #ff4053;
	border-radius: 50%;
	animation: estate-favorites-spin .8s linear infinite;
}

@keyframes estate-favorites-spin {
	to {
		transform: rotate(360deg);
	}
}

.estate-favorites-empty__icon {
	display: grid;
	width: 66px;
	height: 66px;
	margin-bottom: 5px;
	color: #ff4053;
	border-radius: 50%;
	background: #fff0f2;
	font-size: 43px;
	line-height: 1;
	place-items: center;
}

.estate-favorites-empty h2,
.estate-favorites-error h2 {
	margin: 0;
	color: #263b51;
	font-size: 21px;
}

.estate-favorites-empty p,
.estate-favorites-error p {
	max-width: 500px;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.estate-favorites-empty__button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin-top: 9px;
	padding: 10px 16px;
	color: #ffffff !important;
	border-radius: 11px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 8px 18px rgba(0, 170, 255, .20);
	font-size: 14px;
	font-weight: 750;
}

.estate-favorites-empty__button:hover {
	color: #ffffff !important;
	filter: brightness(1.05);
	transform: translateY(-1px);
}

@media (max-width: 760px) {
	.favorites-link {
		width: 42px;
		min-width: 42px;
		padding: 0;
		border-radius: 12px;
	}

	.favorites-link__text {
		display: none;
	}

	.favorites-link__count {
		position: absolute;
		top: -5px;
		right: -5px;
		min-width: 18px;
		height: 18px;
		padding: 0 4px;
	}

	.estate-favorites-page {
		margin-top: 0;
		margin-bottom: 35px;
		border-radius: 16px;
	}

	.estate-favorites-page__header {
		align-items: flex-start;
		flex-direction: column;
		padding: 21px 18px;
	}

	.estate-favorites-page__clear {
		width: 100%;
	}

	.estate-favorites-grid {
		padding: 17px 18px 20px;
	}
}

/* Тёмная тема APK */

html.theme-dark .favorites-link {
	color: #ff9aa5 !important;
	border-color: #69404a;
	background: #34242b;
}

html.theme-dark .favorites-link:hover {
	color: #ffffff !important;
	border-color: #ff6474;
	background: #d94355;
}

html.theme-dark .estate-favorites-page {
	border-color: #2b414f;
	background: #17232d;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

html.theme-dark .estate-favorites-page__header {
	border-color: #2b414f;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(255, 80, 100, .11),
			transparent 35%
		),
		#17232d;
}

html.theme-dark .estate-favorites-page__header h2,
html.theme-dark .estate-favorites-empty h2,
html.theme-dark .estate-favorites-error h2 {
	color: #eef6fa;
}

html.theme-dark .estate-favorites-page__header p,
html.theme-dark .estate-favorites-empty,
html.theme-dark .estate-favorites-error,
html.theme-dark .estate-favorites-empty p,
html.theme-dark .estate-favorites-error p {
	color: #aabdc8;
}

html.theme-dark .estate-favorites-page__clear {
	color: #ffadb5;
	border-color: #68424b;
	background: #34242b;
}

html.theme-dark .estate-favorites-page__clear:hover {
	color: #ffffff;
	border-color: #df4c5d;
	background: #df4c5d;
}

html.theme-dark .estate-favorites-empty__icon {
	color: #ff9aa5;
	background: #38242c;
}

/* =========================================================
   Страница объявления: Поделиться
   ========================================================= */

.property-full__header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	gap: 10px;
}

.property-share-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 15px;
	cursor: pointer;
	color: #087eb5;
	border: 1px solid #c5eaf9;
	border-radius: 12px;
	background: #effaff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.property-share-button:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
	box-shadow: 0 7px 16px rgba(0, 170, 255, .20);
	transform: translateY(-1px);
}

.property-share-button:active {
	transform: translateY(0);
}

.property-share-button:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .25);
	outline-offset: 3px;
}

.property-share-button svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

/* Небольшое уведомление после копирования ссылки */

.property-share-message {
	position: fixed;
	z-index: 11000;
	bottom: 24px;
	left: 50%;
	max-width: min(calc(100% - 32px), 430px);
	padding: 13px 17px;
	opacity: 0;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	background: rgba(19, 43, 59, .96);
	box-shadow: 0 10px 28px rgba(15, 34, 47, .28);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	pointer-events: none;
	text-align: center;
	transform: translate(-50%, 15px);
	transition:
		opacity .25s ease,
		transform .25s ease;
}

.property-share-message.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.property-share-message--error {
	background: rgba(181, 54, 69, .97);
}

/* Мобильные устройства */

@media (max-width: 760px) {
	.property-full__header-actions {
		width: 100%;
	}

	.property-full__header-actions > button {
		flex: 1 1 0;
	}

	.property-share-button,
	.favorite-button--large {
		width: 100%;
		justify-content: center;
	}

	.property-share-message {
		right: 12px;
		bottom: calc(18px + env(safe-area-inset-bottom));
		left: 12px;
		max-width: none;
		transform: translateY(15px);
	}

	.property-share-message.is-visible {
		transform: translateY(0);
	}
}

/* Тёмная тема Android-приложения */

html.theme-dark .property-share-button {
	color: #82ddff;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark .property-share-button:hover {
	color: #ffffff;
	border-color: #22b6f2;
	background: #078bc5;
}

/* =========================================================
   Единый вид кнопок «Поделиться» и «В избранное»
   на полной странице объекта
   ========================================================= */

.property-full__header-actions .favorite-button--large {
	display: inline-flex;
	width: auto;
	min-height: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 15px;
	cursor: pointer;
	color: #087eb5;
	border: 1px solid #c5eaf9;
	border-radius: 12px;
	background: #effaff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.property-full__header-actions .favorite-button--large:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
	box-shadow: 0 7px 16px rgba(0, 170, 255, .20);
	transform: translateY(-1px);
}

.property-full__header-actions .favorite-button--large:active {
	transform: translateY(0);
}

.property-full__header-actions .favorite-button--large:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .25);
	outline-offset: 3px;
}

.property-full__header-actions .favorite-button--large svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: currentColor;
}

/*
 * Объект уже добавлен в избранное.
 * Сохраняем заметное красное состояние кнопки.
 */
.property-full__header-actions
.favorite-button--large.favorite-button--active {
	color: #d9364a;
	border-color: #ffc4cb;
	background: #fff0f2;
	box-shadow: none;
}

.property-full__header-actions
.favorite-button--large.favorite-button--active:hover {
	color: #ffffff;
	border-color: #ff4053;
	background: #ff4053;
	box-shadow: 0 7px 16px rgba(255, 64, 83, .22);
}

/* На телефоне обе кнопки занимают одинаковую ширину */

@media (max-width: 760px) {
	.property-full__header-actions .favorite-button--large {
		width: 100%;
		flex: 1 1 0;
	}
}

/* Тёмная тема Android-приложения */

html.theme-dark
.property-full__header-actions
.favorite-button--large {
	color: #82ddff;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark
.property-full__header-actions
.favorite-button--large:hover {
	color: #ffffff;
	border-color: #22b6f2;
	background: #078bc5;
}

html.theme-dark
.property-full__header-actions
.favorite-button--large.favorite-button--active {
	color: #ffadb5;
	border-color: #68424b;
	background: #34242b;
}

html.theme-dark
.property-full__header-actions
.favorite-button--large.favorite-button--active:hover {
	color: #ffffff;
	border-color: #df4c5d;
	background: #df4c5d;
}

/* =========================================================
   Единый стиль кнопок шапки сайта
   ========================================================= */

/*
 * Общие размеры и поведение всех действий в шапке.
 *
 * Второстепенные:
 * Избранное, Войти, Профиль, APK, тема, меню.
 *
 * Основные:
 * Регистрация, Разместить объявление.
 */

.header-actions {
	gap: 9px;
}

.header-actions .favorites-link,
.header-actions .login-button,
.header-actions .profile-menu-button,
.header-actions .android-apk-header-button,
.header-actions .app-theme-toggle,
.header-actions .mobile-menu-button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 9px 13px;
	color: #087eb5 !important;
	border: 1px solid #c5eaf9;
	border-radius: 11px;
	outline: none;
	background: #effaff;
	box-shadow: none;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

/* Единое состояние при наведении */

.header-actions .favorites-link:hover,
.header-actions .login-button:hover,
.header-actions .profile-menu-button:hover,
.header-actions .android-apk-header-button:hover,
.header-actions .app-theme-toggle:hover,
.header-actions .mobile-menu-button:hover {
	color: #ffffff !important;
	border-color: #00aaff;
	background: #00aaff;
	box-shadow: 0 7px 16px rgba(0, 170, 255, .20);
	transform: translateY(-1px);
}

.header-actions .favorites-link:active,
.header-actions .login-button:active,
.header-actions .profile-menu-button:active,
.header-actions .android-apk-header-button:active,
.header-actions .app-theme-toggle:active,
.header-actions .mobile-menu-button:active {
	box-shadow: none;
	transform: translateY(0);
}

.header-actions .favorites-link:focus-visible,
.header-actions .login-button:focus-visible,
.header-actions .profile-menu-button:focus-visible,
.header-actions .android-apk-header-button:focus-visible,
.header-actions .app-theme-toggle:focus-visible,
.header-actions .mobile-menu-button:focus-visible,
.header-actions .add-button:focus-visible,
.header-actions .logout-menu-button:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .25);
	outline-offset: 3px;
}

/* ---------------------------------------------------------
   Избранное
   --------------------------------------------------------- */

.header-actions .favorites-link {
	position: relative;
	padding-right: 12px;
	padding-left: 12px;
}

.header-actions .favorites-link svg {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

/*
 * В шапке счётчик остаётся красным, пока кнопка обычная.
 * При наведении становится белым, как иконка и текст.
 */
.header-actions .favorites-link:hover .favorites-link__count {
	color: #ff4053;
	background: #ffffff;
}

/* ---------------------------------------------------------
   Кнопка входа
   --------------------------------------------------------- */

.header-actions .login-button {
	padding-right: 14px;
	padding-left: 14px;
}

/* ---------------------------------------------------------
   APK
   --------------------------------------------------------- */

.header-actions .android-apk-header-button {
	padding-right: 13px;
	padding-left: 13px;
}

.header-actions .android-apk-header-button svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

/* ---------------------------------------------------------
   Переключатель темы APK
   --------------------------------------------------------- */

html.is-adrescity-app .header-actions .app-theme-toggle {
	display: inline-flex;
	width: 42px;
	height: 42px;
	min-height: 42px;
	flex: 0 0 42px;
	padding: 0;
}

/* ---------------------------------------------------------
   Кнопка мобильного меню
   --------------------------------------------------------- */

.header-actions .mobile-menu-button {
	display: none;
	width: 42px;
	height: 42px;
	min-height: 42px;
	flex: 0 0 42px;
	flex-direction: column;
	gap: 0;
	padding: 8px 10px;
}

.header-actions .mobile-menu-button span {
	width: 20px;
	height: 2px;
	margin: 3px 0;
	border-radius: 2px;
	background: currentColor;
	transition:
		background-color .2s ease,
		transform .2s ease;
}

.header-actions .mobile-menu-button:hover span {
	background: #ffffff;
}

/* ---------------------------------------------------------
   Главная кнопка: регистрация / разместить объявление
   --------------------------------------------------------- */

.header-actions .add-button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 9px 14px;
	color: #ffffff !important;
	border: 1px solid #00aaff;
	border-radius: 11px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 7px 16px rgba(0, 170, 255, .20);
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		background .2s ease,
		border-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.header-actions .add-button:hover {
	color: #ffffff !important;
	border-color: #008ed0;
	background: linear-gradient(135deg, #009be8, #007fbd);
	box-shadow: 0 10px 21px rgba(0, 170, 255, .29);
	transform: translateY(-1px);
}

.header-actions .add-button:active {
	box-shadow: 0 5px 12px rgba(0, 170, 255, .18);
	transform: translateY(0);
}

.header-actions .add-button__plus {
	font-size: 19px;
	font-weight: 400;
	line-height: .8;
}

/* ---------------------------------------------------------
   Профиль
   --------------------------------------------------------- */

.header-actions .profile-menu-button {
	padding-right: 14px;
	padding-left: 14px;
}

/* ---------------------------------------------------------
   Выход: такой же размер, но красная семантика действия
   --------------------------------------------------------- */

.header-actions .logout-menu-button {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 9px 13px;
	color: #b3424e !important;
	border: 1px solid #f0caca;
	border-radius: 11px;
	background: #fff7f7;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.header-actions .logout-menu-button:hover {
	color: #ffffff !important;
	border-color: #dc5555;
	background: #dc5555;
	box-shadow: 0 7px 16px rgba(220, 85, 85, .20);
	transform: translateY(-1px);
}

.header-actions .logout-menu-button:active {
	box-shadow: none;
	transform: translateY(0);
}

.header-actions .logout-menu-button:focus-visible {
	outline-color: rgba(220, 85, 85, .28);
}

/* =========================================================
   Планшеты и мобильное меню
   ========================================================= */

/*
 * На планшете основное меню уже скрыто и открывается
 * мобильное меню. Дублирующие длинные кнопки из шапки
 * скрываем — они остаются доступны внутри mobile-menu.
 */
@media (max-width: 1100px) {
	.header-container {
		gap: 14px;
	}

	.header-actions {
		gap: 8px;
	}

	.header-actions .mobile-menu-button {
		display: inline-flex;
	}

	.header-actions .login-button,
	.header-actions .profile-menu-button,
	.header-actions .logout-menu-button,
	.header-actions .android-apk-header-button,
	.header-actions .add-button {
		display: none !important;
	}
}

/*
 * На телефоне остаются:
 * сердце избранного;
 * тема — только в Android-приложении;
 * меню.
 */
@media (max-width: 760px) {
	.header-actions {
		gap: 7px;
	}

	.header-actions .favorites-link {
		width: 42px;
		min-width: 42px;
		height: 42px;
		min-height: 42px;
		flex: 0 0 42px;
		padding: 0;
		border-radius: 12px;
	}

	.header-actions .favorites-link__text {
		display: none;
	}

	.header-actions .favorites-link__count {
		position: absolute;
		top: -5px;
		right: -5px;
		min-width: 18px;
		height: 18px;
		padding: 0 4px;
	}

	html.is-adrescity-app .header-actions .app-theme-toggle {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
		border-radius: 12px;
	}
}

/* =========================================================
   Единые кнопки шапки в тёмной теме APK
   ========================================================= */

html.theme-dark .header-actions .favorites-link,
html.theme-dark .header-actions .login-button,
html.theme-dark .header-actions .profile-menu-button,
html.theme-dark .header-actions .android-apk-header-button,
html.theme-dark .header-actions .app-theme-toggle,
html.theme-dark .header-actions .mobile-menu-button {
	color: #82ddff !important;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark .header-actions .favorites-link:hover,
html.theme-dark .header-actions .login-button:hover,
html.theme-dark .header-actions .profile-menu-button:hover,
html.theme-dark .header-actions .android-apk-header-button:hover,
html.theme-dark .header-actions .app-theme-toggle:hover,
html.theme-dark .header-actions .mobile-menu-button:hover {
	color: #ffffff !important;
	border-color: #22b6f2;
	background: #078bc5;
	box-shadow: 0 7px 16px rgba(34, 182, 242, .20);
}

html.theme-dark .header-actions .add-button {
	color: #ffffff !important;
	border-color: #1aa9e2;
	background: linear-gradient(135deg, #139fd6, #0875ae);
}

html.theme-dark .header-actions .add-button:hover {
	color: #ffffff !important;
	border-color: #22b6f2;
	background: linear-gradient(135deg, #22b6f2, #0986bf);
}

html.theme-dark .header-actions .logout-menu-button {
	color: #ffadb5 !important;
	border-color: #68424b;
	background: #34242b;
}

html.theme-dark .header-actions .logout-menu-button:hover {
	color: #ffffff !important;
	border-color: #df4c5d;
	background: #df4c5d;
}

/* =========================================================
   Шапка: защита от переполнения на ноутбуках
   ========================================================= */

@media (max-width: 1240px) {
	.main-menu {
		display: none;
	}

	.header-actions {
		margin-left: auto;
	}

	.header-actions .mobile-menu-button {
		display: inline-flex;
	}

	/*
	 * Полные действия остаются в раскрывающемся меню.
	 * В шапке сохраняются избранное, меню и тема в APK.
	 */
	.header-actions .login-button,
	.header-actions .profile-menu-button,
	.header-actions .logout-menu-button,
	.header-actions .android-apk-header-button,
	.header-actions .add-button {
		display: none !important;
	}
}

/* =========================================================
   Переключатель светлой / тёмной темы:
   доступен на сайте и в Android-приложении
   ========================================================= */

.header-actions .app-theme-toggle {
	display: inline-flex;
	width: 42px;
	height: 42px;
	min-height: 42px;
	flex: 0 0 42px;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
}

/*
 * SVG используют stroke, поэтому и луна, и солнце
 * становятся видимыми в цвете текущей кнопки.
 */
.header-actions .app-theme-toggle svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

/* Светлая тема: показываем луну — предложение включить ночь */

html:not(.theme-dark) .app-theme-toggle__sun {
	display: none;
}

html:not(.theme-dark) .app-theme-toggle__moon {
	display: block;
}

/* Тёмная тема: показываем солнце — предложение включить свет */

html.theme-dark .app-theme-toggle__sun {
	display: block;
}

html.theme-dark .app-theme-toggle__moon {
	display: none;
}

/* На телефоне кнопка остаётся компактной */

@media (max-width: 760px) {
	.header-actions .app-theme-toggle {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
		border-radius: 12px;
	}
}

/* =========================================================
   Выпадающее меню категорий в шапке
   ========================================================= */

/* Контейнер dropdown */

.categories-menu {
	position: relative;
	flex: 0 0 auto;
}

/* Убираем системный треугольник details */

.categories-menu summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	cursor: pointer;
	color: inherit;
	border: 1px solid transparent;
	border-radius: 10px;
	list-style: none;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background-color .2s ease;
}

.categories-menu summary::-webkit-details-marker {
	display: none;
}

.categories-menu summary::marker {
	display: none;
	content: "";
}

.categories-menu summary svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	transition: transform .2s ease;
}

/* Состояние при открытом меню */

.categories-menu[open] summary {
	color: #087eb5;
	border-color: #c5eaf9;
	background: #effaff;
}

.categories-menu[open] summary svg {
	transform: rotate(180deg);
}

/* Выпадающая карточка */

.categories-menu__dropdown {
	position: absolute;
	z-index: 2000;
	top: calc(100% + 12px);
	left: 50%;
	width: 285px;
	padding: 10px;
	overflow: hidden;
	border: 1px solid #d7e8f1;
	border-radius: 15px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(0, 170, 255, .10),
			transparent 38%
		),
		#ffffff;
	box-shadow: 0 16px 35px rgba(22, 56, 78, .16);
	transform: translateX(-50%);
}

/* Заголовки двух групп */

.categories-menu__group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.categories-menu__title {
	display: block;
	padding: 7px 10px 5px;
	color: #718391;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Ссылки в выпадающем меню */

.categories-menu__dropdown a {
	display: flex;
	min-height: 37px;
	align-items: center;
	padding: 8px 10px;
	color: #253c4c;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.25;
	transition:
		color .16s ease,
		background-color .16s ease,
		transform .16s ease;
}

.categories-menu__dropdown a:hover {
	color: #087eb5;
	background: #eaf8ff;
	transform: translateX(2px);
}

.categories-menu__divider {
	height: 1px;
	margin: 9px 5px;
	background: #e2edf3;
}

/* Тёмная тема APK */

html.theme-dark .categories-menu[open] summary {
	color: #82ddff;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark .categories-menu__dropdown {
	border-color: #2e4654;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(34, 182, 242, .12),
			transparent 38%
		),
		#17232d;
	box-shadow: 0 16px 35px rgba(0, 0, 0, .34);
}

html.theme-dark .categories-menu__title {
	color: #8fa9b7;
}

html.theme-dark .categories-menu__dropdown a {
	color: #dbeaf0;
}

html.theme-dark .categories-menu__dropdown a:hover {
	color: #82ddff;
	background: #1d3c4b;
}

html.theme-dark .categories-menu__divider {
	background: #2b414f;
}

/*
 * На планшете и телефоне основное меню всё равно скрыто:
 * категории доступны через раскрывающееся mobile-menu.
 */
@media (max-width: 1240px) {
	.categories-menu[open] {
		display: none;
	}
}

/* =========================================================
   Единый стиль кнопок основного меню ПК
   Главная / На карте / Категории
   ========================================================= */

/* Главная и На карте */

.main-menu > a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 9px 14px;
	color: #087eb5;
	border: 1px solid #c5eaf9;
	border-radius: 11px;
	background: #effaff;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
	transition:
		color .2s ease,
		border-color .2s ease,
		background-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.main-menu > a:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
	box-shadow: 0 7px 16px rgba(0, 170, 255, .20);
	transform: translateY(-1px);
}

.main-menu > a:active {
	box-shadow: none;
	transform: translateY(0);
}

.main-menu > a:focus-visible,
.categories-menu summary:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .25);
	outline-offset: 3px;
}

/* ---------------------------------------------------------
   Категории — тот же стиль и размер
   --------------------------------------------------------- */

.categories-menu {
	display: inline-flex;
	align-items: center;
}

.categories-menu summary {
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 0;
	padding: 9px 14px;
	color: #087eb5;
	border: 1px solid #c5eaf9;
	border-radius: 11px;
	background: #effaff;
	font-size: 13px;
	font-weight: 750;
	line-height: 1;
	transition:
		color .2s ease,
		border-color .2s ease,
		background-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.categories-menu summary:hover,
.categories-menu[open] summary {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
	box-shadow: 0 7px 16px rgba(0, 170, 255, .20);
	transform: translateY(-1px);
}

.categories-menu summary:active {
	box-shadow: none;
	transform: translateY(0);
}

.categories-menu[open] summary svg {
	transform: rotate(180deg);
}

/* Тёмная тема */

html.theme-dark .main-menu > a,
html.theme-dark .categories-menu summary {
	color: #82ddff;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark .main-menu > a:hover,
html.theme-dark .categories-menu summary:hover,
html.theme-dark .categories-menu[open] summary {
	color: #ffffff;
	border-color: #22b6f2;
	background: #078bc5;
	box-shadow: 0 7px 16px rgba(34, 182, 242, .20);
}

/*
 * На планшете и телефоне основное меню скрывается,
 * остаётся обычная мобильная кнопка меню.
 */
@media (max-width: 1240px) {
	.main-menu {
		display: none;
	}
}

/* =========================================================
   Категории в мобильном меню
   ========================================================= */

.mobile-menu__categories {
	display: flex;
	flex-direction: column;
	padding: 8px 0 5px;
}

.mobile-menu__category-title {
	display: block;
	margin-top: 5px;
	padding: 10px 0 6px;
	color: #718391;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.mobile-menu__category-title--spaced {
	margin-top: 10px;
	border-top: 1px solid #e3edf3;
	padding-top: 15px;
}

.mobile-menu .mobile-menu__category-link {
	display: flex;
	min-height: 42px;
	align-items: center;
	padding: 9px 0;
	color: #253c4c;
	border-bottom: 0;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
}

.mobile-menu .mobile-menu__category-link:hover {
	color: #087eb5;
}

.mobile-menu .mobile-menu__category-link--main {
	color: #087eb5;
	font-weight: 800;
}

.mobile-menu .mobile-menu__category-link--child {
	position: relative;
	padding-left: 19px;
	color: #617582;
	font-size: 13px;
	font-weight: 600;
}

.mobile-menu .mobile-menu__category-link--child::before {
	position: absolute;
	top: 50%;
	left: 1px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8fd7f3;
	content: "";
	transform: translateY(-50%);
}

/* Тёмная тема */

html.theme-dark .mobile-menu__category-title {
	color: #8fa9b7;
}

html.theme-dark .mobile-menu__category-title--spaced {
	border-color: #2b414f;
}

html.theme-dark .mobile-menu .mobile-menu__category-link {
	color: #dbeaf0;
}

html.theme-dark .mobile-menu .mobile-menu__category-link:hover,
html.theme-dark .mobile-menu .mobile-menu__category-link--main {
	color: #82ddff;
}

html.theme-dark .mobile-menu .mobile-menu__category-link--child {
	color: #aabdc8;
}

html.theme-dark .mobile-menu .mobile-menu__category-link--child::before {
	background: #22b6f2;
}

/* =========================================================
   Вход и регистрация в мобильном меню
   ========================================================= */

.mobile-menu__auth-actions {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 9px;
	margin: 12px 0 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e3edf3;
}

.mobile-menu .mobile-menu__auth-actions a {
	display: inline-flex;
	min-height: 43px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 12px;
	border: 1px solid #c5eaf9;
	border-radius: 11px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
}

.mobile-menu .mobile-menu__login-link {
	color: #087eb5;
	background: #effaff;
}

.mobile-menu .mobile-menu__register-link {
	color: #ffffff;
	border-color: #00aaff;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 7px 15px rgba(0, 170, 255, .18);
}

.mobile-menu .mobile-menu__register-link span {
	font-size: 19px;
	font-weight: 400;
	line-height: 1;
}

.mobile-menu .mobile-menu__login-link:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: #00aaff;
}

.mobile-menu .mobile-menu__register-link:hover {
	color: #ffffff;
	background: linear-gradient(135deg, #009be8, #007fbd);
}

/* Тёмная тема */

html.theme-dark .mobile-menu__auth-actions {
	border-color: #2b414f;
}

html.theme-dark .mobile-menu .mobile-menu__login-link {
	color: #82ddff;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark .mobile-menu .mobile-menu__login-link:hover {
	color: #ffffff;
	border-color: #22b6f2;
	background: #078bc5;
}

html.theme-dark .mobile-menu .mobile-menu__register-link {
	color: #ffffff;
	border-color: #1aa9e2;
	background: linear-gradient(135deg, #139fd6, #0875ae);
}

/* =========================================================
   Прокрутка длинного мобильного меню
   ========================================================= */

@media (max-width: 1240px) {
	.mobile-menu.mobile-menu--open {
		/*
		 * Fallback для старых Android WebView, затем современная
		 * динамическая высота с учётом панелей браузера / APK.
		 */
		max-height: calc(100vh - 63px);
		max-height: calc(100dvh - 63px);

		overflow-x: hidden;
		overflow-y: auto;

		-webkit-overflow-scrolling: touch;
		overscroll-behavior-y: contain;
		touch-action: pan-y;
	}

	.mobile-menu.mobile-menu--open .container {
		min-height: min-content;
		padding-bottom: calc(20px + env(safe-area-inset-bottom));
	}
}

/* =========================================================
   Пагинация DLE — единый вид и тёмная тема
   ========================================================= */

.pagination {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-top: 38px;
	padding: 4px 0;
}

.pagination__pages {
	display: flex;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

/*
 * Ссылки страниц и неактивные элементы.
 * DLE может выводить номера как <a> и текущую страницу как <span>.
 */
.pagination a,
.pagination span {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 11px;
	color: #426070;
	border: 1px solid #d7e6ee;
	border-radius: 11px;
	background: #ffffff;
	box-shadow: 0 3px 9px rgba(28, 70, 94, .045);
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	transition:
		color .2s ease,
		border-color .2s ease,
		background-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

/* Кликабельные страницы */

.pagination a {
	cursor: pointer;
	color: #087eb5;
}

.pagination a:hover {
	color: #ffffff;
	border-color: #00aaff;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 7px 16px rgba(0, 170, 255, .22);
	transform: translateY(-1px);
}

.pagination a:active {
	box-shadow: none;
	transform: translateY(0);
}

.pagination a:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .26);
	outline-offset: 3px;
}

/*
 * Текущая страница DLE.
 * Используем .navigation, но только если он находится
 * непосредственно внутри набора кнопок пагинации.
 */
.pagination__pages > .navigation,
.pagination > .navigation {
	cursor: default;
	color: #ffffff;
	border-color: #00aaff;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 7px 16px rgba(0, 170, 255, .22);
	pointer-events: none;
}

/*
 * Многоточие между далёкими страницами.
 * Нельзя стилизовать его как полноценную кнопку.
 */
.pagination__pages > span:not(.navigation),
.pagination > span:not(.navigation) {
	min-width: auto;
	padding: 0 4px;
	color: #8a9ca8;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	font-size: 17px;
	font-weight: 800;
	pointer-events: none;
}

/* Стрелки «Назад» / «Вперёд», если DLE выводит их текстом */

.pagination a:first-child,
.pagination a:last-child {
	font-weight: 800;
}

/* =========================================================
   Тёмная тема — пагинация
   ========================================================= */

html.theme-dark .pagination a,
html.theme-dark .pagination span {
	color: #b9d4df;
	border-color: #36505e;
	background: #1b2a35;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

html.theme-dark .pagination a {
	color: #82ddff;
}

html.theme-dark .pagination a:hover {
	color: #ffffff;
	border-color: #22b6f2;
	background: linear-gradient(135deg, #139fd6, #0875ae);
	box-shadow: 0 8px 18px rgba(34, 182, 242, .23);
}

html.theme-dark .pagination__pages > .navigation,
html.theme-dark .pagination > .navigation {
	color: #ffffff;
	border-color: #22b6f2;
	background: linear-gradient(135deg, #22b6f2, #078bc5);
	box-shadow: 0 8px 18px rgba(34, 182, 242, .25);
}

html.theme-dark .pagination__pages > span:not(.navigation),
html.theme-dark .pagination > span:not(.navigation) {
	color: #7893a0;
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}

/* =========================================================
   Адаптация для телефонов
   ========================================================= */

@media (max-width: 480px) {
	.pagination {
		margin-top: 28px;
	}

	.pagination__pages {
		gap: 5px;
	}

	.pagination a,
	.pagination span {
		min-width: 38px;
		height: 38px;
		padding: 0 9px;
		border-radius: 10px;
		font-size: 13px;
	}

	.pagination__pages > span:not(.navigation),
	.pagination > span:not(.navigation) {
		padding: 0 2px;
	}
}

/* =========================================================
   Исправление кликов и положения пагинации DLE
   ========================================================= */

/* Пагинация внутри сетки объявлений занимает всю её ширину */
.news-grid > .pagination {
	grid-column: 1 / -1;
	width: 100%;
}

/*
 * Только реальные ссылки DLE должны быть кликабельными:
 * <a href="...">2</a>, <a href="...">Вперёд →</a>.
 *
 * Вложенные span в ссылках также не должны перехватывать
 * или блокировать нажатие в Android WebView.
 */
.pagination a,
.pagination a * {
	cursor: pointer;
	pointer-events: auto !important;
}

/*
 * Номер текущей страницы и «Назад» на первой странице
 * DLE выводит обычными span — это корректно: у них нет URL.
 * Они не являются кнопками и не должны выглядеть как ссылки.
 */
.pagination__pages > span {
	cursor: default;
	pointer-events: auto !important;
}

/* Текущая страница: прямой span с числом */
.pagination__pages > span:not(:has(.pagination__button)) {
	color: #ffffff;
	border-color: #00aaff;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 7px 16px rgba(0, 170, 255, .22);
}

/* Неактивная кнопка «Назад» на первой странице */
.pagination__pages > span:has(.pagination__button--direction) {
	color: #9aabb5;
	border-color: #e2eaee;
	background: #f4f7f9;
	box-shadow: none;
}

/*
 * Убираем старое правило, которое отключало клики
 * у span и могло ломать вложенные элементы в WebView.
 */
.pagination__pages > span:not(.navigation),
.pagination > span:not(.navigation) {
	pointer-events: auto !important;
}

/* =========================================================
   Тёмная тема
   ========================================================= */

html.theme-dark .pagination__pages > span:not(:has(.pagination__button)) {
	color: #ffffff;
	border-color: #22b6f2;
	background: linear-gradient(135deg, #22b6f2, #078bc5);
	box-shadow: 0 8px 18px rgba(34, 182, 242, .25);
}

html.theme-dark
.pagination__pages
> span:has(.pagination__button--direction) {
	color: #708b99;
	border-color: #304754;
	background: #182934;
	box-shadow: none;
}

/* =========================================================
   Мобильное закрепление кнопок просмотра и ипотеки
   ========================================================= */

.property-action-sticky-placeholder {
	display: block;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
}

/* hidden всегда скрывает ипотечную кнопку вместе с контейнером */
.property-full [data-em-entry][hidden] {
	display: none !important;
}

@media screen and (max-width: 760px) {

	/*
	 * Заявка на просмотр — нижняя кнопка.
	 * Существующий внешний вид кнопки сохраняется.
	 */
	.property-full
	.property-sidebar
	button.dle-callback-start.is-mobile-sticky {
		position: fixed !important;
		z-index: 9998 !important;
		top: auto !important;
		right: 12px !important;
		bottom: calc(
			12px + env(safe-area-inset-bottom, 0px)
		) !important;
		left: 12px !important;

		display: flex !important;
		width: auto !important;
		max-width: none !important;
		min-height: 52px !important;
		margin: 0 !important;
		padding: 12px 16px !important;

		border-radius: 14px !important;
		transform: none !important;
		box-shadow: 0 8px 24px rgba(7, 93, 130, .34) !important;
	}

	/*
	 * Ипотека — над заявкой на просмотр.
	 * Отступ --em-sticky-offset рассчитывает JavaScript.
	 */
	.property-full
	.property-sidebar
	.em-object-button.is-mobile-sticky {
		position: fixed !important;
		z-index: 9998 !important;
		top: auto !important;
		right: 12px !important;
		bottom: calc(
			12px +
			env(safe-area-inset-bottom, 0px) +
			var(--em-sticky-offset, 0px)
		) !important;
		left: 12px !important;

		display: flex !important;
		width: auto !important;
		max-width: none !important;
		min-height: 52px !important;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin: 0 !important;
		padding: 12px 16px !important;

		border-radius: 14px !important;
		transform: none !important;
		box-shadow: 0 8px 24px rgba(7, 93, 130, .26) !important;
	}

	.property-full
	.property-sidebar
	.em-object-button.is-mobile-sticky svg {
		width: 22px;
		height: 22px;
		flex: 0 0 22px;
	}

	/* Контент внизу страницы не остаётся под кнопками */
	body.has-mobile-property-actions {
		padding-bottom: calc(
			var(--property-actions-space, 140px) +
			env(safe-area-inset-bottom, 0px)
		);
	}

	/* Не показываем закреплённые кнопки поверх открытой карты */
	body.map-is-expanded
	.property-full .is-mobile-sticky {
		visibility: hidden;
		pointer-events: none;
	}
}

/* ==========================================
   АдресСити — фирменный логотип
   ========================================== */

.site-logo.ac-brand {
	--ac-brand-ink: #142d44;
	--ac-brand-accent: #078f9c;
	--ac-brand-muted: #65798a;

	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;

	flex: 0 0 auto;
	width: auto;
	height: auto;
	min-width: 0;
	padding: 0;

	color: var(--ac-brand-ink);
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;

	font-family: Inter, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Arial, sans-serif;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;

	-webkit-tap-highlight-color: transparent;
}

.site-logo.ac-brand .ac-brand__mark {
	display: block;
	flex: 0 0 auto;

	width: 46px;
	height: 52px;
	overflow: visible;

	transition: transform .2s ease;
}

.site-logo.ac-brand .ac-brand__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	min-width: 0;
}

.site-logo.ac-brand .ac-brand__name {
	display: block;
	margin: 0;

	color: var(--ac-brand-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1.2px;
}

.site-logo.ac-brand .ac-brand__accent {
	color: var(--ac-brand-accent);
}

.site-logo.ac-brand .ac-brand__tagline {
	display: block;
	padding-left: 2px;

	color: var(--ac-brand-muted);
	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 2.8px;
	text-transform: uppercase;
}

.site-logo.ac-brand:focus-visible {
	outline: 3px solid #19c9ba;
	outline-offset: 6px;
	border-radius: 6px;
}

/* Подвал: основной текст наследует цвет его оформления. */
.site-footer .site-logo.ac-brand {
	--ac-brand-ink: inherit;
	--ac-brand-accent: #16b8b0;
	--ac-brand-muted: inherit;

	color: inherit;
}

.site-footer .ac-brand__tagline {
	opacity: .7;
}

/* Тёмная тема сайта и приложения. */
html.theme-dark .site-logo.ac-brand {
	--ac-brand-ink: #edf5fb;
	--ac-brand-accent: #35d3c6;
	--ac-brand-muted: #a1b4c5;
}

@media (hover: hover) and (pointer: fine) {
	.site-logo.ac-brand:hover {
		text-decoration: none;
	}

	.site-logo.ac-brand:hover .ac-brand__mark {
		transform: translateY(-2px);
	}
}

/* Компактная шапка на телефонах. */
@media (max-width: 760px) {
	.site-header .site-logo.ac-brand {
		gap: 6px;
	}

	.site-header .site-logo.ac-brand .ac-brand__mark {
		width: 36px;
		height: 42px;
	}

	.site-header .site-logo.ac-brand .ac-brand__name {
		font-size: 23px;
		letter-spacing: -1px;
	}

	.site-header .site-logo.ac-brand .ac-brand__content {
		gap: 5px;
	}

	.site-header .site-logo.ac-brand .ac-brand__tagline {
		font-size: 7px;
		letter-spacing: 2.2px;
	}
}

/* Дополнительное уменьшение для узких экранов. */
@media (max-width: 380px) {
	.site-header .site-logo.ac-brand {
		gap: 4px;
	}

	.site-header .site-logo.ac-brand .ac-brand__mark {
		width: 30px;
		height: 36px;
	}

	.site-header .site-logo.ac-brand .ac-brand__name {
		font-size: 20px;
	}

	.site-header .site-logo.ac-brand .ac-brand__tagline {
		font-size: 6px;
		letter-spacing: 1.8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-logo.ac-brand .ac-brand__mark {
		transition: none;
	}
}
/* Ссылка на правила подбора под похожими объявлениями */
.property-related__notice {
	display: flex;
	justify-content: flex-end;
	margin: 20px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid rgba(127, 127, 127, .2);
}

.property-related__notice-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 6px 0;
	color: #087f8c;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	transition: color .2s ease;
}

.property-related__notice-link > svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.property-related__notice-link > span:not(
	.property-related__notice-arrow
) {
	min-width: 0;
	overflow-wrap: anywhere;
}

.property-related__notice-arrow {
	flex-shrink: 0;
	transition: transform .2s ease;
}

.property-related__notice-link:hover {
	color: #065f69;
	text-decoration: none;
}

.property-related__notice-link:hover
.property-related__notice-arrow {
	transform: translateX(3px);
}

.property-related__notice-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 4px;
}

/* Тёмная тема */
.theme-dark .property-related__notice-link {
	color: #64d8cf;
}

.theme-dark .property-related__notice-link:hover {
	color: #a0eee8;
}

/* Мобильная версия */
@media (max-width: 760px) {
	.property-related__notice {
		justify-content: flex-start;
		margin-top: 16px;
		padding-top: 12px;
	}
}

/* Учитываем настройку уменьшения анимации */
@media (prefers-reduced-motion: reduce) {
	.property-related__notice-link,
	.property-related__notice-arrow {
		transition: none;
	}

	.property-related__notice-link:hover
	.property-related__notice-arrow {
		transform: none;
	}
}

/* ==================================================
   АдресСити: фотографии в форме добавления/редактирования
   Только поля gallery и poster
   ================================================== */

:is(#xfield_holder_gallery, #xfield_holder_poster) {
	--ac-photo-bg: #ffffff;
	--ac-photo-surface: #f3f8fa;
	--ac-photo-border: #dce7ec;
	--ac-photo-text: #193541;
	--ac-photo-muted: #687f8a;
	--ac-photo-accent: #087f8c;
	--ac-photo-danger: #cf424b;

	box-sizing: border-box;
	min-width: 0;
}

.theme-dark :is(#xfield_holder_gallery, #xfield_holder_poster) {
	--ac-photo-bg: #182b35;
	--ac-photo-surface: #12232c;
	--ac-photo-border: #314954;
	--ac-photo-text: #e7f1f5;
	--ac-photo-muted: #a4b8c2;
	--ac-photo-accent: #64d8cf;
	--ac-photo-danger: #ff8790;
}

:is(#xfield_holder_gallery, #xfield_holder_poster) *,
:is(#xfield_holder_gallery, #xfield_holder_poster) *::before,
:is(#xfield_holder_gallery, #xfield_holder_poster) *::after {
	box-sizing: border-box;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
:is(.xfieldscolright, .qq-uploader, [id^="xfupload_"]) {
	min-width: 0;
	max-width: 100%;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
[id^="uploadedfile_"] {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
	align-items: start;
	width: 100% !important;
	max-width: 100%;
	margin: 18px 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: both;
}

/* Убираем служебные clearfix из сетки */
:is(#xfield_holder_gallery, #xfield_holder_poster)
[id^="uploadedfile_"]::before,
:is(#xfield_holder_gallery, #xfield_holder_poster)
[id^="uploadedfile_"]::after {
	display: none !important;
	content: none !important;
}

/* Главное фото: одна компактная карточка */
#xfield_holder_poster [id^="uploadedfile_"] {
	grid-template-columns: minmax(0, 240px);
}

/* Карточка */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-preview-card.uploadedfile {
	display: flex !important;
	flex-direction: column;
	position: relative !important;
	inset: auto !important;
	float: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--ac-photo-border);
	border-radius: 14px;
	background: var(--ac-photo-bg);
	color: var(--ac-photo-text);
	box-shadow: 0 3px 12px rgb(0 0 0 / 5%);
}

/* Область изображения */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-content {
	display: flex !important;
	align-items: center;
	justify-content: center;
	position: relative !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 160px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	background: var(--ac-photo-surface);
	cursor: grab;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-content:active {
	cursor: grabbing;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-preview-image {
	display: block !important;
	position: static !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	transform: none !important;
	border-radius: 0;
}

/* Формат файла */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-ext {
	position: absolute !important;
	inset: 9px auto auto 9px !important;
	z-index: 2;
	width: auto !important;
	margin: 0;
	padding: 4px 7px;
	border-radius: 6px;
	background: rgb(16 39 50 / 72%);
	color: #fff;
	font: 600 10px/1.2 sans-serif;
	letter-spacing: .05em;
}

/* Декоративная лента не должна закрывать элементы */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.active-ribbon {
	display: none !important;
}

/* Подпись и размер */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-footer {
	position: static !important;
	width: 100% !important;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--ac-photo-bg);
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-footer-caption {
	display: block !important;
	width: 100%;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 12px !important;
	text-align: left;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-caption-info {
	display: block;
	width: 100% !important;
	max-width: 100%;
	overflow: hidden;
	color: var(--ac-photo-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-size-info {
	display: block;
	margin-top: 4px;
	overflow: hidden;
	color: var(--ac-photo-muted);
	font-size: 11px;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Панель действий всегда внутри своей карточки */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-footer-bottom {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	position: static !important;
	width: 100% !important;
	height: auto !important;
	min-height: 54px;
	margin: 0 !important;
	padding: 7px 10px !important;
	border-top: 1px solid var(--ac-photo-border);
	background: var(--ac-photo-surface);
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
:is(.file-preview, .file-delete) {
	display: block !important;
	position: static !important;
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
:is(.file-preview, .file-delete) > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px !important;
	height: 40px !important;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ac-photo-border);
	border-radius: 10px;
	background: var(--ac-photo-bg);
	color: var(--ac-photo-accent);
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
.file-delete > a {
	color: var(--ac-photo-danger);
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
:is(.file-preview, .file-delete) > a:hover {
	border-color: currentColor;
}

:is(#xfield_holder_gallery, #xfield_holder_poster)
:is(.file-preview, .file-delete) > a:focus-visible {
	outline: 2px solid var(--ac-photo-accent);
	outline-offset: 2px;
}

/* Не даём кнопке загрузки выходить за пределы формы */
:is(#xfield_holder_gallery, #xfield_holder_poster)
.qq-upload-button {
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

/* Телефон: две фотографии в ряд */
@media (max-width: 600px) {
	:is(#xfield_holder_gallery, #xfield_holder_poster)
	[id^="uploadedfile_"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	#xfield_holder_poster [id^="uploadedfile_"] {
		grid-template-columns: minmax(0, 220px);
	}

	:is(#xfield_holder_gallery, #xfield_holder_poster)
	.file-content {
		height: 130px !important;
	}

	:is(#xfield_holder_gallery, #xfield_holder_poster)
	.file-footer-caption {
		padding: 9px !important;
	}

	:is(#xfield_holder_gallery, #xfield_holder_poster)
	.file-footer-bottom {
		padding: 6px !important;
	}
}

@media (max-width: 360px) {
	:is(#xfield_holder_gallery, #xfield_holder_poster)
	[id^="uploadedfile_"] {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==================================================
   АдресСити — оформление стандартных диалогов DLE
   Применяется ко всем окнам jQuery UI в шаблоне
   ================================================== */

/* Затемнение страницы */
.ui-widget-overlay {
	position: fixed !important;
	inset: 0 !important;
	z-index: 10000 !important;
	background: rgba(12, 30, 40, 0.58) !important;
}

/* Окно: координатами открытия продолжает управлять jQuery UI */
.ui-dialog {
	box-sizing: border-box;
	z-index: 10001 !important;
	max-width: calc(100vw - 28px);
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #dce7ec !important;
	border-radius: 18px !important;
	background: #ffffff !important;
	color: #193541;
	box-shadow: 0 20px 70px rgba(8, 30, 43, 0.25);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
}

.ui-dialog *,
.ui-dialog *::before,
.ui-dialog *::after {
	box-sizing: border-box;
}

/* Шапка */
.ui-dialog .ui-dialog-titlebar {
	display: flex;
	align-items: center;
	position: relative;
	min-height: 64px;
	margin: 0;
	padding: 17px 64px 17px 22px !important;
	border: 0 !important;
	border-bottom: 1px solid #e3edf1 !important;
	border-radius: 0 !important;
	background: #f4f9fb !important;
	color: #193541;
}

.ui-dialog .ui-dialog-title {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	overflow: hidden;
	font-size: 17px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Кнопка закрытия: вместо слова Close — крестик */
.ui-dialog .ui-dialog-titlebar-close {
	display: flex !important;
	align-items: center;
	justify-content: center;
	position: absolute !important;
	top: 50% !important;
	right: 14px !important;
	width: 36px !important;
	height: 36px !important;
	margin: -18px 0 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #dce7ec !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	color: #637b87 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	cursor: pointer;
}

.ui-dialog .ui-dialog-titlebar-close span {
	display: none !important;
}

.ui-dialog .ui-dialog-titlebar-close::before {
	content: "\00d7";
	font-family: Arial, sans-serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
	border-color: #089aa6 !important;
	color: #087f8c !important;
}

/* Текст сообщения */
.ui-dialog .ui-dialog-content {
	position: relative;
	min-width: 0;
	padding: 24px 22px !important;
	overflow: auto;
	border: 0 !important;
	background: #ffffff !important;
	color: #193541;
	font-size: 15px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

/* Панель кнопок */
.ui-dialog .ui-dialog-buttonpane {
	margin: 0 !important;
	padding: 15px 20px !important;
	border: 0 !important;
	border-top: 1px solid #e3edf1 !important;
	background: #f4f9fb !important;
}

.ui-dialog .ui-dialog-buttonpane::before,
.ui-dialog .ui-dialog-buttonpane::after {
	display: none !important;
	content: none !important;
}

.ui-dialog .ui-dialog-buttonset {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	float: none !important;
}

/* Кнопки подтверждения и отмены */
.ui-dialog .ui-dialog-buttonpane button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 20px !important;
	border: 1px solid #d5e3e9 !important;
	border-radius: 11px !important;
	background: #ffffff !important;
	color: #264653 !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.ui-dialog .ui-dialog-buttonpane button .ui-button-text {
	padding: 0 !important;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
	border-color: #089aa6 !important;
	background: #eaf8fa !important;
}

.ui-dialog button:focus-visible {
	outline: 2px solid #089aa6;
	outline-offset: 2px;
}

/* Тёмная тема */
.theme-dark .ui-dialog {
	border-color: #314954 !important;
	background: #182b35 !important;
	color: #e7f1f5;
}

.theme-dark .ui-dialog .ui-dialog-titlebar,
.theme-dark .ui-dialog .ui-dialog-buttonpane {
	border-color: #314954 !important;
	background: #12232c !important;
	color: #e7f1f5;
}

.theme-dark .ui-dialog .ui-dialog-content {
	background: #182b35 !important;
	color: #e7f1f5;
}

.theme-dark .ui-dialog .ui-dialog-titlebar-close,
.theme-dark .ui-dialog .ui-dialog-buttonpane button {
	border-color: #38515d !important;
	background: #203842 !important;
	color: #e7f1f5 !important;
}

.theme-dark .ui-dialog .ui-dialog-titlebar-close:hover,
.theme-dark .ui-dialog .ui-dialog-buttonpane button:hover {
	border-color: #64d8cf !important;
	background: #284650 !important;
}

/* Телефон */
@media (max-width: 600px) {
	.ui-dialog .ui-dialog-titlebar {
		padding-left: 16px !important;
	}

	.ui-dialog .ui-dialog-content {
		padding: 20px 16px !important;
	}

	.ui-dialog .ui-dialog-buttonpane {
		padding: 12px 14px !important;
	}

	.ui-dialog .ui-dialog-buttonpane button {
		flex: 1 1 auto;
	}
}