/*
 * realty.css — стили для сайта недвижимости
 * Использует CSS-переменные темы elevate-construction:
 *   --wp--preset--color--primary      #ceebff  (голубой акцент, переопределён ниже)
 *   --wp--preset--color--secondary    #1F2359  (тёмно-синий)
 *   --wp--preset--color--heading-color #121205
 *   --wp--preset--color--foreground   #3E3F3C
 *   --wp--preset--color--background   #FFFFFF
 *   --wp--preset--color--background-alt #F5F5F5
 *   --wp--preset--color--border-color #E0E0E0
 *   --wp--preset--color--meta-color   #F9F9EF
 *   --wp--preset--spacing--*          пресеты отступов темы
 *
 * Акцент --wp--preset--color--primary (#ceebff) задаётся в functions.php
 * через wp_add_inline_style( 'global-styles', … ), чтобы не проигрывать
 * порядку загрузки инлайна theme.json.
 */

/* ─── Глобальные сбросы ───────────────────────────────────────────────────── */

html, body {
	overflow-x: hidden;
}

/* Десктоп: единый зазор glass-nav → крошки для светлых hero (без фото) и single ЖК — не «костыль», а дизайн-токен */
:root {
	--rc-hero-top-desktop-tight: 150px;
}

/* ─── Общий контейнер страниц ─────────────────────────────────────────────── */

.rc-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 26px 80px;
}

/* Зазор под hero (статья, блог, застройщики, страница города — не каталог ЖК) */
.rc-city-hero + .rc-page:not(.rc-catalog-page) {
	margin-top: clamp(36px, 5vw, 56px);
}

.rc-page-hero {
	background-color: var(--wp--preset--color--meta-color);
	padding: 160px 26px 60px; /* top = nav offset + nav height + breathing room */
	text-align: center;
	margin-bottom: 60px;
}

.rc-page-hero h1 {
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.2;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 12px;
}

/* Единый стиль крошек — см. блок .rc-breadcrumb ниже */
.rc-page-hero .rc-breadcrumb {
	margin-bottom: 1rem;
}

.rc-page-hero__sub {
	max-width: 640px;
	margin: 10px auto 0;
	font-size: 1rem;
	opacity: 0.8;
	color: var(--wp--preset--color--foreground);
}

/* ─── Hero главной страницы (front-page.php) ─────────────────────────────── */

.rc-fp-hero {
	background-color: var(--wp--preset--color--meta-color);
	padding: 160px 26px 140px; /* bottom увеличен — карточки заходят на 80px */
}

/* ── Карточки преимуществ (перекрывают hero снизу) ─────────────────────────── */
.rc-fp-features {
	position: relative;
	z-index: 2;
	margin-top: -80px;
	padding: 0 26px 60px;
}

.rc-fp-features__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.rc-fp-feature-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 24px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rc-fp-feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.rc-fp-feature-card__icon {
	font-size: 2.25rem;
	line-height: 1;
	margin-bottom: 16px;
	display: block;
}

.rc-fp-feature-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
	line-height: 1.3;
}

.rc-fp-feature-card__desc {
	font-size: 0.875rem;
	color: #666;
	margin: 0;
	line-height: 1.55;
}

/* Если задано изображение через Customizer */
.rc-fp-hero--has-img {
	background-image: linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)), var(--rc-hero-img);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.rc-fp-hero--has-img .rc-fp-hero__title,
.rc-fp-hero--has-img .rc-fp-hero__sub {
	color: #fff;
}

.rc-fp-hero__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.rc-fp-hero__title {
	font-family: "Stack Sans Headline", sans-serif;
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 24px;
	max-width: 720px;
}

.rc-fp-hero__title .rc-fp-hero__accent {
	color: #fff;
}

.rc-fp-hero__sub {
	font-family: "Stack Sans Headline", sans-serif;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.65;
	color: var(--wp--preset--color--foreground);
	margin: 0 0 40px;
	max-width: 560px;
}

.rc-fp-hero--has-img .rc-fp-hero__sub {
	color: rgba(255, 255, 255, 0.85);
}

/* Hero страницы города: тот же фон/градиент, что главная; без блока из 4 карточек снизу */
.rc-city-hero.rc-fp-hero {
	padding: 160px 26px 100px;
}

/* Ровные зазоры: крошки — заголовок — подзаголовок/описание */
.rc-city-hero .rc-fp-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

/* ─── Хлебные крошки: без z-index, чтобы не перекрывать шапку (z-index в header) ─ */
.rc-breadcrumb {
	position: relative;
	z-index: auto;
	margin: 0 0 1.25rem;
	max-width: 100%;
}

/* Размеры/отступы одни и те же на светлом фоне и на фото (варианты ниже меняют только «кожу») */
.rc-breadcrumb__track {
	--rc-crumb-pad-y: 0.42rem;
	--rc-crumb-pad-x: 0.95rem;
	--rc-crumb-font: 0.875rem;
	--rc-crumb-gap: 0.4em;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: var(--rc-crumb-gap);
	row-gap: 0.2em;
	padding: var(--rc-crumb-pad-y) var(--rc-crumb-pad-x);
	font-size: var(--rc-crumb-font);
	line-height: 1.35;
	font-weight: 500;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.11);
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 4px 18px rgba(0, 0, 0, 0.06);
	color: var(--wp--preset--color--foreground, #3e3f3c);
}

.rc-breadcrumb a {
	color: var(--wp--preset--color--secondary, #1f2359);
	text-decoration: none;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.rc-breadcrumb a:hover {
	text-decoration: underline;
	opacity: 0.92;
}

.rc-breadcrumb__sep {
	opacity: 0.45;
	font-weight: 400;
	color: inherit;
}

.rc-breadcrumb__current {
	font-weight: 700;
	color: inherit;
	opacity: 0.95;
}

/* Hero с тёмной подложкой / фото — padding/font как у .rc-breadcrumb__track */
.rc-fp-hero--has-img .rc-breadcrumb__track {
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(0, 0, 0, 0.22);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 28px rgba(0, 0, 0, 0.25);
	color: rgba(255, 255, 255, 0.92);
}

.rc-fp-hero--has-img .rc-breadcrumb a {
	color: #fff;
}

.rc-fp-hero--has-img .rc-breadcrumb a:hover {
	color: #fff;
}

/* Длинный заголовок — меньше кегль, чем у главной hero; отступы к соседям — через gap у .rc-fp-hero__inner */
.rc-city-hero__title {
	font-family: "Stack Sans Headline", sans-serif;
	font-size: clamp(1.45rem, 2.65vw, 2.15rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.02em;
	margin: 0;
	max-width: 920px;
	color: var(--wp--preset--color--heading-color);
}

.rc-fp-hero--has-img .rc-city-hero__title {
	color: #fff;
}

.rc-city-hero__desc {
	font-family: "Stack Sans Headline", sans-serif;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.6;
	margin: 0;
	max-width: 720px;
	color: var(--wp--preset--color--foreground);
}

.rc-city-hero__desc p {
	margin: 0 0 0.75em;
}

.rc-city-hero__desc p:last-child {
	margin-bottom: 0;
}

.rc-fp-hero--has-img .rc-city-hero__desc {
	color: rgba(255, 255, 255, 0.88);
}

.rc-fp-hero--has-img .rc-city-hero__desc a {
	color: #fff;
}

/* Каталог ЖК: hero совпадает со страницей города; подзаголовок — одна строка текста */
.rc-city-hero .rc-breadcrumb {
	margin: 0;
}

.rc-catalog-hero .rc-city-hero__title {
	max-width: min(920px, 100%);
}

.rc-catalog-hero__lead {
	max-width: 720px;
}

.rc-catalog-page > .rc-filters:first-child {
	margin-top: 48px;
}

@media (max-width: 768px) {
	.rc-catalog-page > .rc-filters:first-child {
		margin-top: 32px;
	}
}

.rc-catalog-count {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.85;
	margin: 0 0 28px;
	letter-spacing: 0.01em;
}

.rc-catalog-count strong {
	color: var(--wp--preset--color--heading-color);
	font-weight: 700;
}

/* Страница города: блок типов ниже hero */
.rc-city-property-types {
	margin-top: 40px;
	margin-bottom: 56px;
}

/* Десктоп: крошки ближе к шапке; светлый hero без фото — тот же визуальный зазор, что с фоном-картинкой */
@media (min-width: 992px) {
	.rc-fp-hero.rc-city-hero:not(.rc-fp-hero--has-img) {
		padding-top: var(--rc-hero-top-desktop-tight);
	}

	.rc-city-hero .rc-breadcrumb,
	.rcs-hero .rc-breadcrumb {
		margin-top: -0.45rem;
	}
}

@media (max-width: 768px) {
	.rc-fp-hero {
		padding: 64px 20px;
	}

	.rc-fp-hero__title {
		font-size: clamp(2rem, 8vw, 2.75rem);
	}

	.rc-city-hero.rc-fp-hero {
		padding: 72px 20px 56px;
	}

	.rc-city-property-types {
		margin-top: 28px;
	}

	.rc-city-hero__title {
		font-size: clamp(1.25rem, 4.5vw, 1.75rem);
	}
}

/* ─── Кнопки ─────────────────────────────────────────────────────────────── */

.rc-btn {
	--rc-btn-hover-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 14px 28px;
	border-radius: 100px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
	line-height: 1.25;
	text-align: center;
}

@keyframes rc-btn-shimmer {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.rc-btn-primary {
	background-color: #888;
	color: #fff;
	border-color: #888;
}

.rc-btn-primary:hover {
	background-color: #666;
	color: #fff;
	border-color: #666;
}

/* Градиентная кнопка — только для "Выбрать город" */
.rc-btn-shimmer {
	background: linear-gradient(120deg, #c8d8eb, #a1badb, #8dafd9, #bdd0e8, #a1badb, #c8d8eb);
	background-size: 300% 300%;
	animation: rc-btn-shimmer 5s ease infinite;
	color: #1a2d42;
	border-color: transparent;
}

.rc-btn-shimmer:hover {
	filter: brightness(0.88);
	border-color: transparent;
}

/* «Оставить заявку» — тот же премиальный чёрный, что и submit в модальном окне.
   Ховер: без смены «подсветки» фона — только тень (см. outline / модалку). */
.rc-btn-blue {
	background-color: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
	letter-spacing: 0.02em;
	font-weight: 700;
}

.rc-btn-blue:hover {
	background-color: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
	box-shadow: var(--rc-btn-hover-shadow);
}

.rc-btn-secondary {
	background-color: #111;
	color: #fff;
	border-color: #111;
}

.rc-btn-secondary:hover {
	background-color: #111;
	color: #fff;
	border-color: #111;
	box-shadow: var(--rc-btn-hover-shadow);
}

.rc-btn-outline {
	background-color: transparent;
	color: #111;
	border-color: var(--wp--preset--color--border-color);
}

.rc-btn-outline:hover {
	background-color: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
	box-shadow: var(--rc-btn-hover-shadow);
}

/* ─── Карточка ЖК ────────────────────────────────────────────────────────── */

.rc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
	margin-bottom: 48px;
}

.rc-card {
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.35s ease, border-color 0.35s ease;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 10px 36px rgba(0, 0, 0, 0.05),
		0 2px 8px rgba(0, 0, 0, 0.03);
}

.rc-card:hover {
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.09),
		0 6px 16px rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.1);
}

.rc-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(165deg, #f5f5f5 0%, #ebebeb 100%);
}

.rc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.25, 0.85, 0.35, 1);
}

.rc-card:hover .rc-card__image img {
	transform: scale(1.03);
}

.rc-card__image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(165deg, #eee 0%, #e2e2e2 100%);
	color: rgba(0, 0, 0, 0.15);
	font-size: 3rem;
}

.rc-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(10, 10, 10, 0.88);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.rc-card__body {
	padding: 22px 22px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rc-card__developer {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground);
	opacity: 0.65;
	margin-bottom: 10px;
}

.rc-card__title {
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 14px;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.rc-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rc-card__title a:hover {
	color: var(--wp--preset--color--secondary);
}

.rc-card__price-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0 0 14px;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
}

.rc-card__price-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--foreground);
	opacity: 0.62;
}

.rc-card__price {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--wp--preset--color--heading-color);
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1.2;
}

.rc-card__meta {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.78;
	margin: 0 0 18px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.rc-card__meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.rc-card__footer {
	margin-top: auto;
	padding-top: 4px;
}

.rc-card__footer .rc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 22px;
	font-weight: 700;
	border-radius: 12px;
	border-color: rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.rc-specs-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rc-specs-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid var(--wp--preset--color--border-color);
	font-size: 0.9rem;
}

.rc-specs-list li:last-child {
	border-bottom: none;
}

.rc-specs-list__label {
	color: var(--wp--preset--color--foreground);
	opacity: 0.75;
}

.rc-specs-list__value {
	font-weight: 600;
	color: var(--wp--preset--color--heading-color);
	text-align: right;
}

/* ─── Страница города ─────────────────────────────────────────────────────── */

.rc-city-categories {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 60px;
}

.rc-city-cat-card {
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 4px;
	padding: 28px 24px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--wp--preset--color--background);
	transition: box-shadow 0.2s, border-color 0.2s;
}

.rc-city-cat-card:hover {
	box-shadow: 0 4px 20px rgba(26, 25, 29, 0.08);
	border-color: var(--wp--preset--color--secondary);
}

.rc-city-cat-card__icon {
	font-size: 2rem;
	line-height: 1;
	color: var(--wp--preset--color--secondary);
}

.rc-city-cat-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	margin: 0;
}

.rc-city-cat-card__desc {
	font-size: 0.85rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.75;
	margin: 0;
}

/* Сайдбар статьи: те же карточки типов, одна колонка */
.rc-city-categories--sidebar {
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 0;
}

.rc-city-categories--sidebar .rc-city-cat-card {
	padding: 20px 18px;
}

.rc-single-sidebar__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

/* Полноформатные карточки ЖК (как в каталоге), колонка уже */
.rc-single-sidebar__jk-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rc-single-sidebar .rc-card {
	max-width: 100%;
}

.rc-single-sidebar .rc-card__body {
	padding: 16px 18px 18px;
}

.rc-single-sidebar .rc-card__title {
	font-size: 1.0625rem;
}

.rc-single-sidebar .rc-card__price {
	font-size: 1.1rem;
}

.rc-single-sidebar .rc-card__footer .rc-btn {
	width: auto;
	font-size: 0.875rem;
	padding: 10px 16px;
	border-radius: 100px;
}


@media (max-width: 960px) {
	.rc-single-layout {
		grid-template-columns: 1fr !important;
	}
}

/* ─── Фильтры каталога ────────────────────────────────────────────────────── */

.rc-filters {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	padding: 28px 24px 24px;
	margin-bottom: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 18px;
	align-items: flex-end;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.06),
		0 2px 8px rgba(0, 0, 0, 0.04);
}

.rc-filters--catalog {
	background: linear-gradient(165deg, #ffffff 0%, #fafafa 100%);
}

.rc-filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 160px;
}

.rc-filter-group--actions {
	flex: 1 1 100%;
	min-width: 0;
	padding-top: 22px;
}

.rc-filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}

.rc-filter-actions__submit {
	min-width: 140px;
}

/* Тень ховера на «Применить»/«Сбросить» не перекрывается соседними полями и не «теряется» внутри flex */
.rc-filters,
.rc-filter-actions {
	overflow: visible;
}

.rc-filters .rc-btn:hover {
	position: relative;
	z-index: 2;
}

@media (min-width: 960px) {
	.rc-filter-group--actions {
		flex: 0 0 auto;
		width: auto;
		min-width: 280px;
		margin-left: auto;
		padding-top: 26px;
		align-self: flex-end;
	}

	.rc-filter-actions {
		width: auto;
		justify-content: flex-end;
	}

	/* Только «Применить» — кнопка слева в блоке фильтров */
	.rc-filter-group--actions:not(:has(.rc-filter-actions__reset)) {
		margin-left: 0;
		margin-right: auto;
		align-self: flex-start;
		min-width: unset;
	}

	.rc-filter-group--actions:not(:has(.rc-filter-actions__reset)) .rc-filter-actions {
		justify-content: flex-start;
	}
}

.rc-filter-group label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
}

.rc-filter-group input {
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 4px;
	font-size: 0.9375rem;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--heading-color);
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.rc-filter-group input:focus {
	outline: none;
	border-color: var(--wp--preset--color--secondary);
}

/* ─── Фильтр каталога: выпадающие пресеты ─────────────────────────────────── */

.rc-filter-combobox {
	position: relative;
	z-index: 1;
}

.rc-filter-combobox.is-open {
	z-index: 40;
}

.rc-filter-combobox__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

.rc-filter-combobox__control {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 48px;
}

.rc-filter-combobox__input-shell {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px 0 0 12px;
	border-right: none;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rc-filter-combobox.is-open .rc-filter-combobox__input-shell {
	border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 1px rgba(31, 35, 89, 0.12);
}

.rc-filter-combobox__inner--with-input .rc-filter-combobox__field {
	flex: 1;
	min-width: 0;
	min-height: 100%;
	height: 100%;
	align-self: stretch;
	padding: 12px 38px 12px 16px;
	border: none;
	border-radius: 12px 0 0 12px;
	background: transparent;
	font-size: 0.9375rem;
	line-height: 1.35;
	-moz-appearance: textfield;
	appearance: textfield;
	box-sizing: border-box;
}

.rc-filter-combobox__inner--with-input .rc-filter-combobox__field::-webkit-outer-spin-button,
.rc-filter-combobox__inner--with-input .rc-filter-combobox__field::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rc-filter-combobox__clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	line-height: 1;
	transition: background 0.12s, color 0.12s;
}

.rc-filter-combobox__clear::before {
	content: "\00d7";
	font-size: 1.35rem;
	font-weight: 300;
	line-height: 1;
}

.rc-filter-combobox__clear:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #222;
}

.rc-filter-combobox__clear[hidden] {
	display: none !important;
}

.rc-filter-combobox__toggle {
	flex-shrink: 0;
	align-self: stretch;
	width: 46px;
	min-height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 0 12px 12px 0;
	border-left: none;
	background: linear-gradient(180deg, #fcfcfc 0%, #f3f4f6 100%);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

.rc-filter-combobox__toggle::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #444;
	transition: transform 0.2s ease;
}

.rc-filter-combobox.is-open .rc-filter-combobox__toggle::after {
	transform: rotate(180deg);
}

.rc-filter-combobox__toggle:hover {
	background: #eceef2;
	border-color: rgba(0, 0, 0, 0.14);
}

.rc-filter-combobox.is-open .rc-filter-combobox__toggle {
	border-color: var(--wp--preset--color--secondary);
}

/* Год сдачи — та же сетка, что у цены: shell + крестик + toggle */
.rc-filter-combobox__year-display {
	flex: 1;
	min-width: 0;
	min-height: 100%;
	align-self: stretch;
	padding: 12px 38px 12px 16px;
	border: none;
	border-radius: 12px 0 0 12px;
	background: transparent;
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--wp--preset--color--heading-color);
	cursor: pointer;
	text-align: left;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.rc-filter-combobox__value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rc-filter-combobox__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.12),
		0 6px 16px rgba(0, 0, 0, 0.06);
	max-height: min(320px, 60vh);
	overflow-y: auto;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 8px;
	scrollbar-width: thin;
	scrollbar-color: #6b7280 #f0f2f5;
}

.rc-filter-combobox__panel::-webkit-scrollbar {
	width: 8px;
}

.rc-filter-combobox__panel::-webkit-scrollbar-track {
	background: #f0f2f5;
	border-radius: 8px;
}

.rc-filter-combobox__panel::-webkit-scrollbar-thumb {
	background: #6b7280;
	border-radius: 8px;
}

.rc-filter-combobox__panel::-webkit-scrollbar-thumb:hover {
	background: #4b5563;
}

.rc-filter-combobox__panel[hidden] {
	display: none !important;
}

.rc-filter-combobox__panel li {
	margin: 0;
	padding: 12px 14px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1a1a1a;
	background: #f3f4f6;
	border-radius: 10px;
	cursor: pointer;
	line-height: 1.35;
	transition: background 0.15s ease, color 0.15s ease;
}

.rc-filter-combobox__panel li:hover,
.rc-filter-combobox__panel li:focus {
	background: #e8eaee;
	outline: none;
	color: #0a0a0a;
}

.rc-filter-combobox__panel li.is-selected {
	background: var(--wp--preset--color--heading-color);
	font-weight: 600;
	color: #fff;
}

.rc-filter-combobox__panel li.is-selected:hover,
.rc-filter-combobox__panel li.is-selected:focus {
	background: #0a0a0a;
	color: #fff;
}

/* ─── Блог-блок ───────────────────────────────────────────────────────────── */

.rc-blog-section {
	margin-top: 60px;
	padding-top: 48px;
	border-top: 1px solid var(--wp--preset--color--border-color);
}

.rc-section-title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 32px;
}

.rc-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.rc-blog-grid--page {
	margin-top: 8px;
}

.rc-blog-pagination {
	margin-top: 48px;
}

.rc-dev-archive-empty {
	margin: 24px 0 48px;
}

.rc-blog-count {
	font-size: 0.9375rem;
	color: #666;
	margin: 0 0 28px;
}

.rc-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	border: 2px solid #e8e8e8;
	box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	height: 100%;
}

.rc-blog-card:hover {
	border-color: #999;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13);
	transform: translateY(-4px);
}

.rc-blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
	flex-shrink: 0;
}

.rc-blog-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rc-blog-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	opacity: 0.35;
}

.rc-blog-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 22px 24px 24px;
}

.rc-blog-card__meta {
	font-size: 0.8125rem;
	color: #888;
	margin-bottom: 10px;
}

.rc-blog-card__title {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 12px;
	line-height: 1.35;
}

.rc-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.rc-blog-card__title a:hover {
	color: #306da7;
}

.rc-blog-card__excerpt {
	font-size: 0.9375rem;
	color: #555;
	margin: 0 0 18px;
	line-height: 1.55;
	flex-grow: 1;
}

.rc-blog-card__btn {
	align-self: flex-start;
	font-size: 0.875rem !important;
	padding: 10px 18px !important;
	margin-top: auto;
}

/* ─── Главная: список городов ─────────────────────────────────────────────── */

.rc-cities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

/* ── Карточка города ─────────────────────────────────────────────────────── */
.rc-city-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: #fff;
	border-radius: 24px;
	padding: 10px 24px 24px;
	box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
	border: 2px solid #e8e8e8;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	overflow: hidden;
}

.rc-city-card:hover {
	border-color: #999;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13);
	transform: translateY(-4px);
}

/* Верхний блок: иконка + название + счётчик */
.rc-city-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.rc-city-card__flag {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111;
}

.rc-city-card__flag-emoji {
	font-size: 2.5rem;
	line-height: 1;
	display: block;
	/* Крупные флаги-emoji в macOS/Win 10+ / моб. */
}

.rc-city-card__flag svg {
	width: 40px;
	height: 40px;
}

.rc-city-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rc-city-card__name {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	line-height: 1.2;
}

.rc-city-card__desc {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.5;
	margin: 0 0 14px;
}

/* Превью изображения */
.rc-city-card__img-wrap {
	margin-top: auto;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f0f0f0;
}

.rc-city-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rc-city-card__img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
}

/* ─── CTA «Оставить заявку» (главная + single.php) ───────────────────────── */

.rc-request-section {
	background: #ceebff;
	border-radius: 4px;
	padding: 48px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	margin: 48px 0 40px;
	color: #111;
}

.rc-request-section__text {
	flex: 1;
	min-width: min(100%, 280px);
}

.rc-request-section h2 {
	font-size: 1.625rem;
	font-weight: 800;
	color: #111;
	margin: 0 0 8px;
	line-height: 1.25;
}

.rc-request-section p {
	margin: 0;
	font-size: 1rem;
	color: #111;
	line-height: 1.5;
}

.rc-request-section .rc-btn-blue {
	flex-shrink: 0;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.rc-request-section {
		padding: 36px 24px;
		flex-direction: column;
		align-items: stretch;
	}

	.rc-request-section .rc-btn-blue {
		width: 100%;
		text-align: center;
	}
}

/* ─── Модальное окно ──────────────────────────────────────────────────────── */

.rc-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rc-modal-overlay.is-open {
	display: flex;
}

.rc-modal {
	background: var(--wp--preset--color--background);
	border-radius: 8px;
	padding: 40px 36px;
	width: 100%;
	max-width: 440px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: rcModalIn 0.25s ease;
}

@keyframes rcModalIn {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rc-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--wp--preset--color--foreground);
	line-height: 1;
	padding: 4px 8px;
	transition: color 0.15s;
}

.rc-modal__close:hover {
	color: var(--wp--preset--color--heading-color);
}

.rc-modal__title {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 6px;
}

.rc-modal__subtitle {
	font-size: 0.875rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.75;
	margin: 0 0 24px;
}

.rc-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rc-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rc-form__field label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--heading-color);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rc-form__field input {
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 4px;
	font-size: 1rem;
	color: var(--wp--preset--color--heading-color);
	background: var(--wp--preset--color--background);
	transition: border-color 0.15s;
	width: 100%;
	box-sizing: border-box;
}

.rc-form__field input:focus {
	outline: none;
	border-color: var(--wp--preset--color--secondary);
}

.rc-form__field input.rc-error {
	border-color: #e53935;
}

.rc-form__field .rc-field-error {
	font-size: 0.8rem;
	color: #e53935;
	margin: 0;
}

.rc-form__submit {
	width: 100%;
	padding: 14px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--heading-color);
	border: none;
	border-radius: 100px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s ease;
	margin-top: 4px;
}

.rc-form__submit:hover:not(:disabled) {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
}

.rc-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Модальное окно и форма захвата ЖК — премиальная чёрная кнопка отправки */
.rc-modal .rc-form__submit,
.rcs-lead-form .rc-form__submit {
	background: #0a0a0a;
	color: #fff;
	border: 1px solid #0a0a0a;
	letter-spacing: 0.02em;
}

.rc-modal .rc-form__submit:hover:not(:disabled),
.rcs-lead-form .rc-form__submit:hover:not(:disabled) {
	background: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
	box-shadow: var(--rc-btn-hover-shadow, 0 10px 28px rgba(0, 0, 0, 0.28));
}

.rc-modal .rc-form__submit:active:not(:disabled),
.rcs-lead-form .rc-form__submit:active:not(:disabled) {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rc-form__message {
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-top: 8px;
	text-align: center;
}

.rc-form__message.success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.rc-form__message.error {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

/* ─── "Оставить заявку" — фиксированная кнопка ───────────────────────────── */

.rc-floating-btn {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 999;
	line-height: 0;
}

.rc-floating-btn .rc-btn {
	border: 2px solid #fff;
	box-sizing: border-box;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
	transition: box-shadow .2s, transform .2s, background-color .2s, border-color .2s;
}

/* Отдельный ховер: не как у остальных чёрных кнопок (без крупной «чёрной» тени) */
.rc-floating-btn .rc-btn:hover {
	background-color: #0a0a0a;
	border-color: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
	transform: translateY(-2px);
}

/* ─── Пагинация ───────────────────────────────────────────────────────────── */

.rc-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 48px;
}

.rc-pagination a,
.rc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--foreground);
	transition: 0.15s;
}

.rc-pagination a:hover,
.rc-pagination .current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--heading-color);
	border-color: var(--wp--preset--color--primary);
}

/* ─── Пустые результаты ───────────────────────────────────────────────────── */

.rc-no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--wp--preset--color--foreground);
}

.rc-no-results p {
	font-size: 1.0625rem;
	opacity: 0.75;
	margin: 0 0 20px;
}

.rc-no-results .rc-btn {
	min-height: 48px;
	padding-inline: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE ЖК — single-residential_complex.php (rcs-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Герой ───────────────────────────────────────────────────────────────── */

.rcs-hero {
	background-color: #e8e8e8;
	padding: 160px 26px 44px;
}

/* Правило ниже в каскаде, чем базовый .rcs-hero — иначе shorthand padding снова даст 160px и правка «не применяется» */
@media (min-width: 992px) {
	.rcs-hero {
		padding-top: var(--rc-hero-top-desktop-tight);
	}
}

/* Single ЖК: светлая «таблетка» — те же pad/font/gap, что и у крошек на фото (без уменьшения кегля) */
.rcs-hero .rc-breadcrumb__track {
	border-color: rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 4px 18px rgba(0, 0, 0, 0.06);
	color: #3a3a3a;
}

.rcs-hero .rc-breadcrumb a {
	color: #111;
	font-weight: 500;
}

.rcs-hero .rc-breadcrumb .rc-breadcrumb__sep {
	opacity: 0.45;
}

/* Ровные зазоры: крошки — H1 — бейджи (single ЖК / застройщик) */
.rcs-hero__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.rcs-hero .rc-breadcrumb {
	margin: 0;
}

.rcs-hero__title {
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 800;
	color: #111;
	line-height: 1.22;
	letter-spacing: -0.025em;
	margin: 0;
}

.rcs-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	/* stretch: в одной строке все плашки получают одинаковую высоту (по самой высокой), без «парения» по центру */
	align-items: stretch;
}

/* Единая бокс-модель; высота строки с соседями выравнивается flex stretch у .rcs-hero__badges */
.rcs-hero__badges > .rcs-badge {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	min-height: 34px;
	height: auto;
	align-self: stretch;
	padding: 6px 14px;
	gap: 4px;
	border-radius: 100px;
	font-size: 0.8125rem;
	line-height: 1.25;
	border-style: solid;
	border-width: 1px;
}

.rcs-hero__badges > a.rcs-badge {
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	cursor: pointer;
}

/* Страница застройщика — сетка под лого; зазор крошка → блок — через gap у .rcs-hero__inner */
.rcs-hero--developer__layout {
	margin-top: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: center;
	/* .rcs-hero__inner с align-items:flex-start сжимает flex-ребёнка по ширине контента — без 100% лого не у правого края */
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
}

/* Вторая колонка — по ширине лого; плашка логотипа у правого края контейнера */
.rcs-hero--developer__layout--has-logo {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0;
	align-items: stretch;
}

/* Планшет и десктоп: ряд по высоте — левая колонка на всю высоту логотипа, кнопка у нижнего края */
@media (min-width: 769px) {
	.rcs-hero--developer__layout--has-logo {
		align-items: stretch;
	}

	.rcs-hero--developer__layout--has-logo .rcs-hero--developer__main {
		min-height: 0;
		height: 100%;
	}

	.rcs-hero--developer__layout--has-logo .rcs-hero--developer__logo-wrap {
		align-self: stretch;
	}

	.rcs-hero--developer__layout--has-logo .rcs-hero--developer__cta {
		margin-top: auto;
	}
}

.rcs-hero--developer__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #d9d9d9;
	box-sizing: border-box;
	padding: clamp(22px, 4vw, 40px);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rcs-hero--developer__layout--has-logo .rcs-hero--developer__main {
	grid-column: 1;
	border-radius: 18px 0 0 18px;
	padding-right: clamp(20px, 3vw, 32px);
}

/* head-top: название + плашки слева (flex-start), не у правого края к логотипу. Подзаголовок — строкой ниже. */
.rcs-hero--developer__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
}

.rcs-hero--developer__head-top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

@media (min-width: 769px) {
	.rcs-hero--developer__head {
		gap: 0.45rem;
	}

	.rcs-hero--developer__head-top {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: clamp(1.25rem, 2.4vw, 2.25rem);
	}

	.rcs-hero--developer__head-top .rcs-hero__title {
		max-width: min(100%, 50rem);
	}

	.rcs-hero--developer__head-top .rcs-hero__badges {
		flex: 0 1 auto;
	}
}

.rcs-hero--developer__subtitle {
	margin: 0;
	font-size: clamp(0.9rem, 1.1vw, 1.0625rem);
	font-weight: 500;
	line-height: 1.4;
	color: #333;
	letter-spacing: 0.01em;
	max-width: 40rem;
}

/* line-height плотнее, чем у single ЖК */
.rcs-hero--developer__head .rcs-hero__title,
.rcs-hero--developer__head-top .rcs-hero__title {
	margin: 0;
	min-width: 0;
	max-width: 100%;
	line-height: 1.1;
}

.rcs-hero--developer__head .rcs-hero__badges,
.rcs-hero--developer__head-top .rcs-hero__badges {
	justify-content: flex-start;
}

.rcs-hero--developer__cta {
	margin-top: 22px;
}

.rcs-hero--developer__logo-wrap {
	width: 100%;
	max-width: 220px;
	margin-inline: auto;
	aspect-ratio: 1;
	border-radius: 16px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 3vw, 28px);
	box-sizing: border-box;
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.06),
		0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.rcs-hero--developer__layout--has-logo .rcs-hero--developer__logo-wrap {
	grid-column: 2;
	grid-row: 1;
	justify-self: stretch;
	align-self: stretch;
	width: min(100%, 240px);
	max-width: 240px;
	margin-inline: 0;
	min-height: min(260px, 100%);
	aspect-ratio: auto;
	height: auto;
	padding: clamp(22px, 4vw, 36px);
	border-radius: 0 18px 18px 0;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		0 12px 32px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-left-width: 0;
}

.rcs-hero--developer__logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.rcs-developer-about .rcs-developer-wrap {
	max-width: 820px;
}

.rcs-developer-about__content.entry-content > *:first-child {
	margin-top: 0;
}

.dev-complexes-section .rc-section-title {
	margin-bottom: 28px;
}

.rc-dev-empty {
	margin: 0;
	padding: 40px 24px;
	text-align: center;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--foreground);
	opacity: 0.82;
	background: rgba(255, 255, 255, 0.65);
	border: 1px dashed rgba(0, 0, 0, 0.12);
	border-radius: 16px;
}

.rcs-page-band--muted .rc-dev-empty {
	background: rgba(255, 255, 255, 0.5);
}

/* Плашки в герое ЖК/застройщика: внешняя высота задаётся у `> .rcs-badge`; здесь — цвет «серо-таблетки» */
.rcs-hero__badges .rcs-badge:not(.rcs-badge--developer-link) {
	font-weight: 600;
	background: #727272;
	border-color: rgba(255, 255, 255, 0.12);
	color: #fffffe;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.rcs-hero__badges .rcs-badge img.emoji {
	width: 1em;
	height: 1em;
	margin: 0;
	vertical-align: -0.15em;
	flex-shrink: 0;
}

.rcs-hero__badges .rcs-badge--price {
	background: #727272;
	border-color: rgba(255, 255, 255, 0.12);
	color: #fffffe;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.rcs-hero__badges .rcs-badge--sea,
.rcs-hero__badges .rcs-badge--install {
	background: #727272;
	border-color: rgba(255, 255, 255, 0.12);
	color: #fffffe;
}

/* Страница застройщика: плашка «Объекты в {город}» — светлая, как раньше */
.rcs-hero__badges .rcs-badge.rcs-badge--light {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: #222;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Ссылка на застройщика: палитра и hover; размер задаётся у `> .rcs-badge` */
.rcs-hero__badges a.rcs-badge.rcs-badge--developer-link {
	color: #fff;
	background-color: #0a0a0a;
	border-color: #0a0a0a;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.rcs-hero__badges a.rcs-badge.rcs-badge--developer-link:hover {
	background-color: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.rcs-hero__badges a.rcs-badge.rcs-badge--developer-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Полосы страницы ЖК: белый / #e8e8e8 */
.rcs-page-band {
	padding: 56px 0;
}

.rcs-page-band--white {
	background: #fff;
}

.rcs-page-band--muted {
	background: #e8e8e8;
}

/* ─── Основная секция: галерея + сайдбар ─────────────────────────────────── */

.rcs-main-section {
	margin-bottom: 0;
}

.rcs-main-section.rcs-page-band {
	padding: 48px 0 56px;
}

.rcs-main-grid {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 40px;
	align-items: start;
	padding-top: 0;
	padding-bottom: 0;
}

/* ─── Галерея ─────────────────────────────────────────────────────────────── */

.rcs-gallery {
	min-width: 0;
}

.rcs-gallery__main {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f2f2f2;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.rcs-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
}

.rcs-gallery__nav {
	position: absolute;
	top: 0;
	bottom: 0;
	left: auto;
	right: auto;
	margin-top: auto;
	margin-bottom: auto;
	height: 40px;
	width: 40px;
	padding: 0;
	line-height: 0;
	font-size: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	z-index: 2;
	-webkit-appearance: none;
	appearance: none;
}

.rcs-gallery__nav-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	pointer-events: none;
	overflow: visible;
}

.rcs-gallery__nav:hover {
	background: rgba(0, 0, 0, 0.7);
}

.rcs-gallery__prev {
	left: 10px;
}

.rcs-gallery__next {
	right: 10px;
}

.rcs-gallery__expand {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	z-index: 2;
}

.rcs-gallery__expand:hover {
	background: rgba(0, 0, 0, 0.7);
}

.rcs-gallery__counter {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 0.8125rem;
	padding: 4px 10px;
	border-radius: 100px;
	pointer-events: none;
}

.rcs-gallery__thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.rcs-thumb {
	width: 76px;
	height: 56px;
	border-radius: 3px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: none;
	transition: border-color 0.15s;
	flex-shrink: 0;
}

.rcs-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rcs-thumb.is-active,
.rcs-thumb:hover {
	border-color: var(--wp--preset--color--primary);
}

.rcs-gallery__placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--background-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	border-radius: 4px;
}

/* ─── Инфо-сайдбар ────────────────────────────────────────────────────────── */

.rcs-info-sidebar {
	position: sticky;
	top: 24px;
}

.rcs-info-card {
	background: #fff;
	border: 4px solid #e8e8e8;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.rcs-price-block {
	margin: -24px -24px 22px -24px;
	padding: 20px 24px 22px;
	border-radius: 0;
	background: #0a0a0a;
	color: #fff;
}

.rcs-price-label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 6px;
}

.rcs-price-value {
	font-size: 1.375rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	letter-spacing: -0.045em;
	word-spacing: -0.02em;
	white-space: nowrap;
}

.rcs-info-card .rc-specs-list {
	border-color: rgba(0, 0, 0, 0.08);
}

.rcs-info-card .rc-specs-list li {
	border-bottom-color: rgba(0, 0, 0, 0.07);
}

.rcs-highlight-block {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 0.9rem;
	background: #fafafa;
	border: 1px solid rgba(0, 0, 0, 0.06);
	color: #222;
}

.rcs-highlight-block--install {
	background: #f6faf7;
	border: 1px solid rgba(17, 85, 48, 0.15);
}

.rcs-highlight-block--sea {
	background: #f4f9fc;
	border: 1px solid rgba(8, 91, 130, 0.15);
}

.rcs-highlight-block__icon {
	font-size: 1.25rem;
	flex-shrink: 0;
	line-height: 1.4;
}

.rcs-highlight-block__line {
	margin-bottom: 4px;
	line-height: 1.4;
}

.rcs-highlight-block__line:last-child {
	margin-bottom: 0;
}

.rcs-cta-deal {
	width: 100%;
	margin-top: 4px;
	margin-bottom: 10px;
	text-align: center;
}

/* ─── Планировки ──────────────────────────────────────────────────────────── */

.rcs-layouts-section {
	padding: 0;
}

.rcs-layouts-section.rcs-page-band {
	padding: 56px 0;
}

.rcs-layouts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.rcs-layout-card {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 10px 36px rgba(0, 0, 0, 0.06),
		0 2px 8px rgba(0, 0, 0, 0.03);
	transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Без transform — карточки не смещаются относительно сетки */
.rcs-layout-card:hover {
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.09),
		0 4px 14px rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.11);
}

.rcs-layout-card__img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #fff;
}

.rcs-layout-card__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	cursor: zoom-in;
	transition: transform 0.45s cubic-bezier(0.25, 0.85, 0.35, 1);
}

.rcs-layout-card:hover .rcs-layout-card__img img {
	transform: scale(1.03);
}

.rcs-layout-card__no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
}

.rcs-layout-card__body {
	padding: 20px 22px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rcs-layout-card__name {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--heading-color);
	margin: 0;
	line-height: 1.35;
}

.rcs-layout-card__area {
	font-size: 0.875rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.78;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.rcs-layout-card__price {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
	opacity: 0.72;
	margin-bottom: 14px;
}

/* Планировки: кнопка — чёрный фон как .rc-btn-blue; hover — тень; форма — таблетка. Отступ от «Цена по запросу» — margin у .rcs-layout-card__price */
button.rcs-layout-cta {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	margin-top: auto;
	align-self: stretch;
	width: 100%;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 18px;
	line-height: 1.25;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background-color: #0a0a0a;
	border: 1px solid #0a0a0a;
	border-radius: 100px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

button.rcs-layout-cta:hover {
	background-color: #0a0a0a;
	color: #fff;
	border-color: #0a0a0a;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

button.rcs-layout-cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* ─── Разбор комплекса ────────────────────────────────────────────────────── */

.rcs-review-section {
	padding: 0;
}

.rcs-review-section.rcs-page-band {
	padding: 56px 0;
}

.rcs-review-wrap {
	max-width: 820px;
	padding: 0;
	margin: 0 auto;
}

.rcs-review-body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--foreground);
}

.rcs-review-body p {
	margin: 0 0 1em;
}

/* ─── О застройщике ───────────────────────────────────────────────────────── */

.rcs-developer-section {
	padding: 0;
}

.rcs-developer-section.rcs-page-band {
	padding: 56px 0;
}

.rcs-developer-wrap {
	max-width: 820px;
	padding: 0;
	margin: 0 auto;
}

.rcs-developer-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 16px;
}

a.rcs-developer-name__link {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

a.rcs-developer-name__link:hover {
	border-bottom-color: currentColor;
	opacity: 0.92;
}

a.rcs-developer-name__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 3px;
	border-radius: 2px;
}

.rcs-developer-body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--wp--preset--color--foreground);
}

.rcs-developer-body p {
	margin: 0 0 1em;
}

/* ─── Форма захвата ───────────────────────────────────────────────────────── */

.rcs-lead-section {
	padding: 0;
}

.rcs-lead-section.rcs-page-band {
	padding: 56px 0;
}

.rcs-lead-wrap {
	display: grid;
	grid-template-columns: 1fr minmax(0, 440px);
	gap: 48px;
	align-items: center;
}

.rcs-lead-title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 800;
	color: #111;
	margin: 0 0 10px;
	line-height: 1.25;
}

.rcs-lead-sub {
	font-size: 1rem;
	color: #555;
	margin: 0;
}

.rcs-lead-form {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.rcs-lead-submit {
	width: 100%;
	margin-top: 4px;
}

.rcs-lead-privacy {
	font-size: 0.75rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.6;
	margin: 8px 0 0;
	text-align: center;
}

/* ─── Лайтбокс ────────────────────────────────────────────────────────────── */

.rcs-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.rcs-lightbox.is-open {
	display: flex;
}

.rcs-lightbox__stage {
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rcs-lightbox__stage img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}

.rcs-lightbox__close {
	position: fixed;
	top: 20px;
	right: 24px;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	line-height: 1;
	z-index: 10001;
}

.rcs-lightbox__nav {
	position: fixed;
	top: 0;
	bottom: 0;
	left: auto;
	right: auto;
	margin-top: auto;
	margin-bottom: auto;
	height: 52px;
	width: 52px;
	padding: 0;
	line-height: 0;
	font-size: 0;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	z-index: 10001;
	-webkit-appearance: none;
	appearance: none;
}

.rcs-lightbox__nav-icon {
	display: block;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	pointer-events: none;
	overflow: visible;
}

.rcs-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Симметричные отступы от краёв вьюпорта (safe area + одинаковый inset слева/справа) */
.rcs-lightbox__prev {
	left: max(20px, env(safe-area-inset-left, 0px));
	right: auto;
}

.rcs-lightbox__next {
	right: max(20px, env(safe-area-inset-right, 0px));
	left: auto;
}

.rcs-lightbox__counter {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9375rem;
}

.rcs-lightbox--single .rcs-lightbox__nav,
.rcs-lightbox--single .rcs-lightbox__counter {
	display: none !important;
}

/* ─── Адаптив single ЖК ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.rcs-main-grid {
		grid-template-columns: 1fr;
	}

	.rcs-info-sidebar {
		position: static;
	}

	.rcs-lead-wrap {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 600px) {
	.rcs-gallery__thumbs {
		gap: 6px;
	}

	.rcs-thumb {
		width: 60px;
		height: 44px;
	}

	.rcs-layouts-grid {
		grid-template-columns: 1fr;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   ЗАСТРОЙЩИКИ — archive-developer.php & single-developer.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Список застройщиков ─────────────────────────────────────────────────── */

.dev-archive__count {
	font-size: 0.875rem;
	color: var(--wp--preset--color--foreground);
	opacity: 0.7;
	margin: 0 0 28px;
}

.dev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
	margin-bottom: 56px;
}

/* ─── Карточка застройщика (как .rc-blog-card) ─────────────────────────────── */

.dev-card {
	display: flex;
	flex-direction: column;
	background: #f1f1f1;
	border-radius: 24px;
	overflow: hidden;
	border: 2px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 3px 18px rgba(0, 0, 0, 0.05);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	height: 100%;
}

.dev-card:hover {
	border-color: rgba(0, 0, 0, 0.28);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13);
	transform: translateY(-4px);
}

.dev-card__logo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
	padding: 24px;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dev-card__logo-img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.dev-card__logo-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e8eaee;
	color: var(--wp--preset--color--heading-color);
	border: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 1.75rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dev-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 22px 24px 24px;
	min-height: 0;
	background: transparent;
}

.dev-card__name {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	font-weight: 700;
	color: var(--wp--preset--color--heading-color);
	margin: 0 0 12px;
	line-height: 1.35;
}

.dev-card__name a {
	color: inherit;
	text-decoration: none;
}

.dev-card__name a:hover {
	color: #306da7;
}

.dev-card__price {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 12px;
}

.dev-card__projects {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-grow: 1;
	min-height: 0;
}

.dev-card__project-item {
	font-size: 0.875rem;
}

.dev-card__project-link {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}

.dev-card__project-link:hover {
	color: var(--wp--preset--color--secondary);
}

.dev-card__project-badge {
	font-size: 0.6875rem;
	font-weight: 600;
	background: #d8d8d8;
	color: #252525;
	padding: 2px 8px;
	border-radius: 100px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.dev-card__cta {
	align-self: flex-start;
	font-size: 0.875rem !important;
	padding: 10px 18px !important;
	margin-top: auto;
}

/* «Подробнее»: белая кнопка на сером фоне карточки */
.dev-card__cta.rc-btn-outline {
	background-color: #fff !important;
	color: #111 !important;
	border: 1px solid rgba(0, 0, 0, 0.12) !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dev-card__cta.rc-btn-outline:hover {
	background-color: #0a0a0a !important;
	color: #fff !important;
	border-color: #0a0a0a !important;
	box-shadow: var(--rc-btn-hover-shadow, 0 10px 28px rgba(0, 0, 0, 0.28));
}

/* ─── Glassmorphism navbar (rc-glass-nav) ─────────────────────────────────── */

/*
 * Навбар накладывается поверх первого блока страницы (hero / page-hero).
 * <header> схлопывается до нулевой высоты; .rc-glass-nav__wrap абсолютен внутри него.
 * Контент начинается с y=0 и просвечивает под таблеткой.
 * Навбар НЕ sticky — уходит вместе со страницей при скролле.
 *
 * Плавный скролл по якорным ссылкам (#rc-cities и т.п.) — через CSS scroll-behavior.
 */

/* Плавный скролл по якорям */
html {
	scroll-behavior: smooth;
}

/* <header> схлопывается: не занимает пространство в потоке. Высокий z-index, чтобы бургер/выпад были над крошками hero */
header.wp-block-template-part {
	position: relative;
	height: 0;
	overflow: visible;
	z-index: 10000;
}

/* Обёртка абсолютно позиционирована внутри схлопнутого <header> */
.rc-glass-nav__wrap {
	position: absolute;
	top: 32px;
	left: 0;
	right: 0;
	padding: 0 24px;
	pointer-events: none; /* прозрачная обёртка не блокирует клики */
	z-index: 10000;
}

/* Сама таблетка-навбар */
.rc-glass-nav {
	position: relative;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 20px 16px 20px;
	background: rgba(5, 5, 5, 0.52);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.30);
	color: #ffffff;
	pointer-events: auto; /* таблетка кликабельна */
}

/* Логотип / название сайта */
.rc-glass-nav__logo {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	text-decoration: none;
	color: #ffffff;
	font-weight: 500;
	font-size: 1.5rem;
	text-transform: lowercase;
}

.rc-glass-nav__logo img {
	height: 32px;
	width: auto;
	display: block;
}

.rc-glass-nav__site-name {
	font-size: 1.5rem;
	font-weight: 400;
	text-transform: lowercase;
	line-height: 1;
	color: inherit;
}

/* Ссылки навигации */
.rc-glass-nav__links {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	justify-content: center;
}

.rc-glass-nav__links li {
	margin: 0;
	padding: 0;
}

.rc-glass-nav__links a {
	display: inline-block;
	padding: 8px 16px;
	color: #ffffff;
	text-decoration: none;
	font-size: 1rem;
	line-height: 1;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.rc-glass-nav__links a .rc-glass-nav__link-text {
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.rc-glass-nav__links a:hover {
	opacity: 0.92;
	color: #ffffff;
}

.rc-glass-nav__links a:hover .rc-glass-nav__link-text {
	border-bottom-color: currentColor;
}

.rc-glass-nav__links a:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Обёртка CTA-кнопки — прижимает к правому краю */
.rc-glass-nav__cta-wrap {
	flex-shrink: 0;
	margin-left: auto;
}

/* CTA «Оставить заявку» в шапке — прозрачная с белой обводкой (как в родительской теме) */
.rc-glass-nav__cta.wp-block-button__link {
	padding: 14px 28px;
	border-radius: 100px;
	border-width: 1px;
	border-style: solid;
	border-color: rgba(255, 255, 255, 0.7);
	background: transparent;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.25s ease;
	white-space: nowrap;
	box-shadow: none;
}

.rc-glass-nav__cta.wp-block-button__link:hover,
.rc-glass-nav__cta.wp-block-button__link:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.9);
	color: #ffffff;
	box-shadow: 0 8px 28px rgba(255, 255, 255, 0.18);
}

/* Подвал: глобальный elements.link (foreground #3e3f3c) иначе затемняет ссылки на #010101 */
.rc-footer-root a {
	color: #e8e8e8;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.rc-footer-root a:hover,
.rc-footer-root a:focus-visible {
	color: var(--wp--preset--color--primary, #ceebff);
	text-decoration-color: currentcolor;
}

/* То же для подвала из БД (до синхронизации с паттерном): колонка «Полезные ссылки» */
footer.wp-block-template-part .wp-block-columns .wp-block-column:last-child:not(:only-child) p a {
	color: #e8e8e8;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

footer.wp-block-template-part .wp-block-columns .wp-block-column:last-child:not(:only-child) p a:hover,
footer.wp-block-template-part .wp-block-columns .wp-block-column:last-child:not(:only-child) p a:focus-visible {
	color: var(--wp--preset--color--primary, #ceebff);
	text-decoration-color: currentcolor;
}

/* Бургер (мобиле) — скрыт на десктопе */
.rc-glass-nav__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	margin-left: auto;
	flex-shrink: 0;
}

.rc-glass-nav__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}


/* До ≈планшета в один ряд не помещаются ссылки + «Оставить заявку» — раньше моб. меню, чем остальная вёрстка (768) */
@media (max-width: 991px) {
	/* Navbar: бургер, выпадающие ссылки, CTA вне строки (как в раскладке <768) */
	.rc-glass-nav__wrap {
		top: 16px;
		padding: 0 12px;
	}

	.rc-glass-nav {
		position: relative;
		border-radius: 20px;
		gap: 12px;
		padding: 12px 14px;
		/* Плотнее фон + легче blur: WCAG-контраст на фоне hero и меньше работы GPU (Speed Index на мобиле) */
		background: rgba(5, 5, 5, 0.82);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	.rc-page-hero,
	.rc-fp-hero,
	.rcs-hero {
		padding-top: 110px;
	}

	.rc-glass-nav__links {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(5, 5, 5, 0.97);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-radius: 16px;
		padding: 12px 0;
		gap: 0;
		z-index: 10001;
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	}

	.rc-glass-nav__links--open {
		display: flex;
	}

	.rc-glass-nav__links a {
		padding: 12px 20px;
	}

	.rc-glass-nav__cta-wrap {
		display: none;
	}

	.rc-glass-nav__burger {
		display: flex;
	}
}

/* Страницы города и каталог /batumi/...: отступ шапка → крошки; моб. больше, планшет плотнее */
@media (min-width: 769px) and (max-width: 991px) {
	.rc-fp-hero.rc-city-hero,
	.rc-fp-hero.rc-catalog-hero,
	.rcs-hero {
		padding-top: 92px;
	}
}

/* ─── Адаптив @768px ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	/* Зазор под шапку: плотнее к моб. шапке + отрицательный margin у крошек */
	.rc-fp-hero.rc-city-hero,
	.rc-fp-hero.rc-catalog-hero,
	.rcs-hero {
		padding-top: 100px;
	}

	.rc-fp-hero.rc-city-hero .rc-breadcrumb,
	.rc-fp-hero.rc-catalog-hero .rc-breadcrumb,
	.rcs-hero .rc-breadcrumb {
		margin-top: -14px;
	}

	.rc-page {
		padding: 0 16px 60px;
	}

	.rc-page-hero {
		padding: 40px 16px;
	}

	.rc-filters {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 16px;
		padding: 20px 16px 18px;
	}

	/* В ряду align-items: flex-end — в колонке блоки прижимались вправо и не на всю ширину */
	.rc-filter-group {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
	}

	.rc-filter-group--actions {
		flex: 0 0 auto;
		margin-left: 0;
		padding-top: 4px;
		width: 100%;
	}

	.rc-filter-combobox {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.rc-filter-actions {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.rc-filter-actions .rc-btn {
		width: 100%;
		text-align: center;
	}

	.rc-filter-combobox__panel {
		max-height: min(260px, 50vh);
	}

	.rc-no-results .rc-btn {
		display: flex;
		width: min(100%, 420px);
		margin-inline: auto;
		padding-inline: 20px;
	}

	.rc-modal {
		padding: 28px 20px;
	}

	.rc-floating-btn {
		bottom: 16px;
		right: 16px;
	}

	.dev-grid {
		grid-template-columns: 1fr;
	}

	/* Страница застройщика: логотип — белый блок сверху, текст — серый снизу */
	.rcs-hero--developer__layout--has-logo {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.rcs-hero--developer__layout--has-logo .rcs-hero--developer__logo-wrap {
		order: -1;
		grid-column: auto;
		justify-self: stretch;
		align-self: stretch;
		width: 100%;
		max-width: none;
		min-height: 0;
		border-radius: 18px 18px 0 0;
		border-bottom: none;
		aspect-ratio: 16 / 9;
		max-height: 220px;
	}

	.rcs-hero--developer__layout--has-logo .rcs-hero--developer__main {
		order: 0;
		width: 100%;
		min-width: 0;
		border-radius: 0 0 18px 18px;
		padding-left: clamp(20px, 4vw, 28px);
		padding-right: clamp(20px, 4vw, 28px);
		padding-bottom: clamp(22px, 4vw, 32px);
	}

	.rcs-hero--developer__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.rcs-hero--developer__head-top {
		gap: 14px;
	}

	/* В колонке flex-grow:1 тянет h1 по вертикали — отключаем */
	.rcs-hero--developer__head .rcs-hero__title {
		flex: 0 1 auto;
		width: 100%;
	}

	.rcs-hero--developer__head .rcs-hero__badges {
		justify-content: flex-start;
		width: 100%;
	}

	.rcs-hero--developer__cta {
		margin-top: 18px;
	}

	.rcs-hero--developer__cta .rc-btn {
		width: 100%;
		box-sizing: border-box;
	}

	.rc-fp-hero {
		padding-bottom: 100px;
	}

	.rc-fp-features {
		margin-top: -48px;
		padding: 0 12px 40px;
	}

	.rc-fp-features__inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.rc-fp-feature-card {
		padding: 20px 18px;
	}

	.rc-fp-feature-card__icon {
		font-size: 1.75rem;
		margin-bottom: 10px;
	}
}

/* Каталог ЖК: «Цена от» и «Цена до» в два столбца на широком телефоне; «Срок» и кнопки на всю ширину */
@media (min-width: 480px) and (max-width: 768px) {
	.rc-filters.rc-filters--catalog {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 12px;
		align-items: start;
	}

	.rc-filters.rc-filters--catalog > .rc-filter-group:nth-child(3) {
		grid-column: 1 / -1;
	}

	.rc-filters.rc-filters--catalog > .rc-filter-group--actions {
		grid-column: 1 / -1;
	}
}

/* ─── Главная: без верхнего меню (glass-nav) и плавающей кнопки заявки ────── */
body.home .rc-glass-nav__wrap {
	display: none !important;
}

body.home .rc-floating-btn {
	display: none !important;
}

body.home .rc-fp-hero {
	padding-top: 56px;
}

@media (max-width: 768px) {
	body.home .rc-fp-hero {
		padding-top: 40px;
	}
}
